{"id":30389293,"url":"https://github.com/aimaster-dev/pong-motion-control","last_synced_at":"2025-08-21T08:19:01.775Z","repository":{"id":293505366,"uuid":"984232872","full_name":"aimaster-dev/pong-motion-control","owner":"aimaster-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-15T17:28:46.000Z","size":24851,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T17:48:09.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/aimaster-dev.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}},"created_at":"2025-05-15T15:45:12.000Z","updated_at":"2025-05-15T17:28:50.000Z","dependencies_parsed_at":"2025-05-15T17:58:15.186Z","dependency_job_id":null,"html_url":"https://github.com/aimaster-dev/pong-motion-control","commit_stats":null,"previous_names":["aimaster-dev/pong-motion-control"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimaster-dev/pong-motion-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fpong-motion-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fpong-motion-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fpong-motion-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fpong-motion-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimaster-dev","download_url":"https://codeload.github.com/aimaster-dev/pong-motion-control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimaster-dev%2Fpong-motion-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271448405,"owners_count":24761441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":[],"created_at":"2025-08-21T08:19:00.882Z","updated_at":"2025-08-21T08:19:01.766Z","avatar_url":"https://github.com/aimaster-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✋ Pong Game with Hand Gesture Control\n\nThis is an AI-powered Pong game that uses real-time hand gesture recognition to control paddles using your webcam. Open hands detected on either side of the screen move the paddles up or down — no keyboard or mouse needed!\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"pong.gif\" width=800\u003e\u003cbr/\u003e\n  \u003ci\u003eDemo\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\n## 🎮 Features\n\n- Real-time hand detection with **TensorFlow** and pre-trained model\n- Gesture-based paddle movement (open hand = move)\n- Split-screen detection for two-player interaction\n- Pong gameplay with paddle \u0026 ball physics in **Pygame**\n- Overlays interactive regions and visual cues using **OpenCV**\n\n---\n\n## 🧠 Technologies Used\n\n- **TensorFlow** for hand detection\n- **OpenCV** for camera feed and visualization\n- **Pygame** for game mechanics\n- **NumPy** for image and numerical operations\n\n---\n\n## 🛠️ Installation\n\n1. Clone this repository  \n```bash\ngit clone https://github.com/yourusername/pong-motion-control.git\ncd pong-motion-control\n````\n\n2. Install dependencies\n\n```bash\npip install pygame opencv-python tensorflow numpy\n```\n\n3. Add your pre-trained TensorFlow model to `src/pretrained_model.pb`\n\n---\n\n## ▶️ Run the Game\n\n```bash\npython main.py\n```\n\nPress `SPACE` to start the game\nPress `ESC` to exit\n\n---\n\n## 🎯 Controls\n\n* Open your hand in the **top area** → Move paddle **up**\n* Open your hand in the **bottom area** → Move paddle **down**\n\nLeft hand = Player 1\nRight hand = Player 2\n\n---\n\n## 📂 File Structure\n\n```\n├── main.py              # Main game file\n├── src/\n│   └── utils.py              # Hand detection and prediction utilities\n│   └── pretrained_model.pb   # TensorFlow frozen inference graph\n```\n\n---\n\n## 🧪 Notes\n\n* Ensure your webcam is working and well-lit\n* You can adjust thresholds and chunk size in the `FLAGS`\n\n---\n\n## 📜 License\n\nMIT License – use, modify, and play freely!\n\n---\n\n## 🤖 Inspired by\n\nGesture-based gaming, AI-powered interfaces, and classic Pong nostalgia.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimaster-dev%2Fpong-motion-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimaster-dev%2Fpong-motion-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimaster-dev%2Fpong-motion-control/lists"}