{"id":24496326,"url":"https://github.com/okamyuji/face-emotion-analyzer","last_synced_at":"2026-05-03T22:32:45.862Z","repository":{"id":273481782,"uuid":"919858171","full_name":"okamyuji/face-emotion-analyzer","owner":"okamyuji","description":"OpenCVとGoを使用したリアルタイム顔表情分析Webアプリケーション。WebRTCでブラウザからカメラにアクセスし、顔の検出と感情分析をリアルタイムで実行します","archived":false,"fork":false,"pushed_at":"2025-01-21T09:04:27.000Z","size":589,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T09:38:25.922Z","etag":null,"topics":["computer-vision","csp","csrf","face-detection","go","golang","machine-learning","motion-analysis","opencv","realtime-processing","security","web-application","webrtc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okamyuji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-21T06:23:13.000Z","updated_at":"2025-01-21T09:04:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e3e6079-6586-4410-81b3-36a881002a2c","html_url":"https://github.com/okamyuji/face-emotion-analyzer","commit_stats":null,"previous_names":["okamyuji/face-emotion-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okamyuji/face-emotion-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fface-emotion-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fface-emotion-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fface-emotion-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fface-emotion-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okamyuji","download_url":"https://codeload.github.com/okamyuji/face-emotion-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fface-emotion-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","csp","csrf","face-detection","go","golang","machine-learning","motion-analysis","opencv","realtime-processing","security","web-application","webrtc"],"created_at":"2025-01-21T21:16:30.303Z","updated_at":"2026-05-03T22:32:45.858Z","avatar_url":"https://github.com/okamyuji.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Emotion Analyzer\n\n顔画像から感情を分析するWebアプリケーション\n\n## 機能\n\n- リアルタイムの顔検出と感情分析\n- 複数の顔の同時検出\n- 感情分析結果の可視化\n- キャッシュによるパフォーマンス最適化\n- メトリクス収集とモニタリング\n\n## 技術スタック\n\n- Go 1.21+\n- OpenCV (gocv)\n- Prometheus (メトリクス)\n- AWS CloudWatch (モニタリング)\n- Docker \u0026 Docker Compose\n\n## 必要条件\n\n- Go 1.21以上\n- OpenCV 4.x\n- Docker \u0026 Docker Compose\n- Make\n\n## インストール\n\n```bash\n# リポジトリのクローン\ngit clone https://github.com/okamyuji/face-emotion-analyzer.git\ncd face-emotion-analyzer\n\n# 依存関係のインストール\nmake deps\n\n# 開発用サーバーの起動\nmake dev\n```\n\n## 設定\n\n`config/`ディレクトリ内の設定ファイルで以下の項目を設定できます：\n\n- サーバー設定（ポート、タイムアウトなど）\n- セキュリティ設定（CORS、レート制限など）\n- 画像処理設定（最大サイズ、品質など）\n- OpenCV設定（検出パラメータ）\n- ロギング設定\n\n## API エンドポイント\n\n### メインエンドポイント\n\n- `GET /` - メインページ（顔認識インターフェース）\n- `POST /analyze` - 画像分析エンドポイント\n    - リクエスト: Base64エンコードされたJPEG画像\n    - レスポンス: 検出された顔の位置と感情分析結果\n\n### システムエンドポイント\n\n- `GET /health` - ヘルスチェックエンドポイント\n    - 応答: `200 OK` - サービスが正常に動作中\n- `GET /metrics` - Prometheusメトリクスエンドポイント\n    - アプリケーションの各種メトリクスを提供\n    - Prometheusフォーマットで出力\n\n### 静的ファイル\n\n- `GET /static/*` - 静的ファイル（CSS、JavaScript、画像）\n    - セキュリティヘッダー付きで配信\n\n## 開発\n\n```bash\n# テストの実行\nmake test\n\n# リンター実行\nmake lint\n\n# ビルド\nmake build\n\n# Docker開発環境の起動\nmake docker-dev\n```\n\n## デプロイ\n\n```bash\n# 本番用ビルド\nmake build-prod\n\n# Dockerイメージのビルド\nmake docker-build\n\n# コンテナの起動\nmake docker-run\n```\n\n## モニタリング\n\n- Prometheusメトリクス\n    - リクエスト統計\n    - 処理時間\n    - エラー率\n    - リソース使用状況\n    - キャッシュ効率\n    - GPU使用率\n\n- CloudWatchメトリクス\n    - アプリケーションメトリクス\n    - インフラメトリクス\n    - カスタムメトリクス\n\n## セキュリティ\n\n- CSRF保護\n- レート制限\n- セキュリティヘッダー\n- CORS設定\n- 入力検証\n\n## ライセンス\n\nMIT\n\n## 貢献\n\n1. Forkする\n2. フィーチャーブランチを作成 (`git checkout -b feature/amazing-feature`)\n3. 変更をコミット (`git commit -m 'Add amazing feature'`)\n4. ブランチをプッシュ (`git push origin feature/amazing-feature`)\n5. Pull Requestを作成\n\n## 作者\n\n[okamyuji](https://github.com/okamyuji)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamyuji%2Fface-emotion-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokamyuji%2Fface-emotion-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamyuji%2Fface-emotion-analyzer/lists"}