{"id":50913170,"url":"https://github.com/p4suta/gazedetect","last_synced_at":"2026-06-16T12:02:19.998Z","repository":{"id":362821930,"uuid":"1260935344","full_name":"P4suta/GazeDetect","owner":"P4suta","description":"ブラウザ完結のカメラ目線（アイコンタクト）検知・面接練習アプリ。MediaPipe + 頭部分離 + 適応キャリブ。Bun/Vite/Svelte5。","archived":false,"fork":false,"pushed_at":"2026-06-06T03:53:11.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T05:14:53.235Z","etag":null,"topics":["bun","eye-contact","gaze-tracking","mediapipe","svelte","typescript","webcam"],"latest_commit_sha":null,"homepage":"https://p4suta.github.io/GazeDetect/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/P4suta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-06T03:32:53.000Z","updated_at":"2026-06-06T03:53:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/P4suta/GazeDetect","commit_stats":null,"previous_names":["p4suta/gazedetect"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/P4suta/GazeDetect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P4suta%2FGazeDetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P4suta%2FGazeDetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P4suta%2FGazeDetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P4suta%2FGazeDetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P4suta","download_url":"https://codeload.github.com/P4suta/GazeDetect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P4suta%2FGazeDetect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34404748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun","eye-contact","gaze-tracking","mediapipe","svelte","typescript","webcam"],"created_at":"2026-06-16T12:02:19.019Z","updated_at":"2026-06-16T12:02:19.980Z","avatar_url":"https://github.com/P4suta.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GazeDetect\n\n[![ci](https://github.com/P4suta/GazeDetect/actions/workflows/ci.yml/badge.svg)](https://github.com/P4suta/GazeDetect/actions/workflows/ci.yml)\n[![deploy](https://github.com/P4suta/GazeDetect/actions/workflows/deploy.yml/badge.svg)](https://github.com/P4suta/GazeDetect/actions/workflows/deploy.yml)\n\nブラウザ完結で「カメラ目線（アイコンタクト）」をリアルタイム検知する面接練習アプリ。\nレンズを見ているかを OK / NG 表示し、目線維持率を集計する。\n\n**▶ デモ: https://p4suta.github.io/GazeDetect/** （Chromium 系推奨・カメラ許可が必要。ウィンドウは大きめに）\n\n## 仕組み\n\nカメラは画面の上にあり、画面を見ると少し下を向く＝相手からは目線が外れる。本当の「カメラ目線」は\nレンズを見ること——これを訓練する。\n\n- **頭部分離**: 頭部姿勢(MediaPipe の 4×4 顔変換行列)で de-rotate した **eye-in-head（眼球内）視線**を\n  主特徴にし、頭の動きと目の動きを分離。\n- **キャリブは品質で勝ち取る**: 適応しきい値以下の固視を“連続して”保持できたときだけ点が確定。崩れたら\n  猶予つきで減衰（リングは品質を正直に表す）。学習は座標既知の画面グリッド点のみ、**カメラ点は「レンズ\n  注視」視線の外挿で実測**（機種・配置に整合）。学習後に held-out 点で精度を検証。\n- **判定**: リッジ回帰で画面上の注視点(PoR)を推定 → One-Euro 平滑化 → カメラ点との距離で二重しきい値\n  ヒステリシス、瞬きは凍結。\n\n技術スタック: **Bun + Vite + Svelte 5 + Biome + bun test**（ツールは [mise](https://mise.jdx.dev/) 管理）、\n推論は **MediaPipe Tasks (FaceLandmarker, WASM)**。すべて client-side（サーバへ映像を送らない）。\n\n## クイックスタート（Web アプリ ＝ 本体）\n\n```bash\ncd web\nmise install      # bun を用意（mise.toml）\nmise run install  # 依存\nmise run dev      # 開発サーバ → ブラウザでカメラ許可\n```\n\n詳細・調整は [`web/README.md`](web/README.md)。\n\n## リポジトリ構成\n\n| パス | 内容 |\n| --- | --- |\n| `web/` | **本体**: ブラウザ完結の Web アプリ（Vite + Svelte 5 + TypeScript） |\n| ルートの Python (`main.py`/`gaze.py` 他) | 原型のデスクトップ版（MediaPipe + OpenCV）。ロジックの参照用に残置 |\n| `.github/workflows/` | CI（typecheck/lint/test/build）と GitHub Pages デプロイ |\n\n## ライセンス\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp4suta%2Fgazedetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp4suta%2Fgazedetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp4suta%2Fgazedetect/lists"}