{"id":34519490,"url":"https://github.com/mockba1501/pose-match","last_synced_at":"2026-05-01T08:33:02.298Z","repository":{"id":329812824,"uuid":"1115899691","full_name":"mockba1501/pose-match","owner":"mockba1501","description":"A motion-matching system that compares a user’s live camera pose against a static reference pose and computes similarity metrics.","archived":false,"fork":false,"pushed_at":"2025-12-21T20:24:13.000Z","size":8884,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-23T08:49:05.486Z","etag":null,"topics":["computer-vision","mediapipe","nextjs","pose-detection","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mockba1501.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":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":"2025-12-13T19:29:24.000Z","updated_at":"2025-12-21T20:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mockba1501/pose-match","commit_stats":null,"previous_names":["mockba1501/pose-match"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mockba1501/pose-match","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockba1501%2Fpose-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockba1501%2Fpose-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockba1501%2Fpose-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockba1501%2Fpose-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mockba1501","download_url":"https://codeload.github.com/mockba1501/pose-match/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockba1501%2Fpose-match/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["computer-vision","mediapipe","nextjs","pose-detection","typescript"],"created_at":"2025-12-24T04:35:57.455Z","updated_at":"2026-05-01T08:33:02.293Z","avatar_url":"https://github.com/mockba1501.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PoseMatch – Real-time Pose Similarity System\n\n**A pure geometric motion-matching system that compares a user’s live camera pose against a static reference pose.**\n\n![Tech Stack](https://img.shields.io/badge/Stack-Next.js_16_App_Router-black) ![Style](https://img.shields.io/badge/Style-Tailwind_CSS_v4-38bdf8) ![Vision](https://img.shields.io/badge/Vision-MediaPipe-orange)\n\n## 🚨 Critical Disclaimer\nThis system provides **geometric similarity metrics only**. It is **NOT** a medical or fitness tool. It does not evaluate safety, correctness, or health.\n\n---\n\n## 🚀 Features\n### ✅ Implemented\n- **Reference Pose Visualization**: Select and view reference poses with skeleton overlays.\n- **Real-time Camera Detection**:\n    - High-performance webcam integration using `requestAnimationFrame` loop.\n    - Zero-latency overlay rendering using direct Canvas operations.\n    - Robust permission handling and stream management.\n- **Pose Normalization**: Geometric normalization (mid-hip centering, torso scaling) ready for comparison logic.\n    - NOTE: Angle-based comparison does not require pose normalization.\n    - Normalization is kept for future distance-based metrics.\n- **Dual-Pipeline**: Separate state management for Reference (Static) and User (Dynamic) poses.\n- **Similarity Scoring**:\n    - **Joint Angle Analysis**: Computes specific joint angles (shoulders, elbows, hips, knees).\n    - **Tolerance Checking**: Compares user angles against reference with configurable tolerance (e.g., ±5°).\n- **Visual Feedback**:\n    - **Real-time Skeleton Coloring**: Joints change color based on match status (Gray=Idle, Green=Match, Yellow=Close, Red=Miss).\n\n\n### 🚧 In Progress (Next Steps)\n- **Advanced Metrics**: Vector-based cosine similarity for overall body alignment.\n- **Textual Feedback UI**: Instructions like \"Raise Left Arm\" or \"Widening Stance\".\n\n\n## 🛠️ Architecture\n- **Frontend**: Next.js 16 (App Router), React 19\n- **Styling**: Tailwind CSS v4\n- **Vision**: Google MediaPipe (GPU-accelerated)\n- **State Management**:\n    - **Ref-based Loop**: The detection loop runs outside React's render cycle for performance.\n    - **Throttled State**: Only significant pose updates trigger React re-renders.\n\n## 📦 Getting Started\n\n1. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n2. **Run development server**:\n   ```bash\n   npm run dev\n   ```\n3. **Open**: [http://localhost:3000](http://localhost:3000)\n\n## 🗺️ Roadmap\n- [x] **Phase 1**: Webcam setup \u0026 Static Reference Visualization\n- [x] **Phase 2**: Real-time MediaPipe Integration (Video Mode)\n- [x] **Phase 3**: Similarity Scoring Engine (Vector Math \u0026 Joint Angles)\n- [x] **Phase 4**: User Feedback System (Visual State Feedback)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockba1501%2Fpose-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmockba1501%2Fpose-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockba1501%2Fpose-match/lists"}