{"id":27113065,"url":"https://github.com/alok-ahirrao/playing_with_computer_vision","last_synced_at":"2025-04-07T02:42:30.679Z","repository":{"id":178447790,"uuid":"661644892","full_name":"alok-ahirrao/Playing_with_Computer_Vision","owner":"alok-ahirrao","description":"🎮 Computer Vision Games in Python! Hill climbing racing with hand detection, stack builder, pin pong ball, and dino game. Explore immersive gameplay with cutting-edge tech. Join me on this coding adventure! 🚀","archived":false,"fork":false,"pushed_at":"2025-02-26T15:37:15.000Z","size":1330,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T16:37:52.664Z","etag":null,"topics":["computer-vision","gui","machine-learning","machine-learning-algorithms","project-based-learning","pyautogui","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alok-ahirrao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-07-03T10:29:11.000Z","updated_at":"2025-02-26T15:37:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fb770cd-7b03-47fa-8133-9ca40c86397f","html_url":"https://github.com/alok-ahirrao/Playing_with_Computer_Vision","commit_stats":null,"previous_names":["alok-ahirrao/playing_with_computer_vision"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alok-ahirrao%2FPlaying_with_Computer_Vision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alok-ahirrao%2FPlaying_with_Computer_Vision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alok-ahirrao%2FPlaying_with_Computer_Vision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alok-ahirrao%2FPlaying_with_Computer_Vision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alok-ahirrao","download_url":"https://codeload.github.com/alok-ahirrao/Playing_with_Computer_Vision/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584064,"owners_count":20962071,"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","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","gui","machine-learning","machine-learning-algorithms","project-based-learning","pyautogui","python"],"created_at":"2025-04-07T02:42:30.148Z","updated_at":"2025-04-07T02:42:30.673Z","avatar_url":"https://github.com/alok-ahirrao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playing with Computer Vision\n\n[![SQBBF.gif](https://s11.gifyu.com/images/SQBBF.gif)](https://www.linkedin.com/in/alokahirrao/)\n\n## GUI\n\n![Game photo](https://iili.io/HiNUD3N.jpg)\n\n### Games Overview:\n\n1. **Tower Building**  \n   - [Play Tower Building on Microsoft Store](https://apps.microsoft.com/detail/9MXKDQKFJGBJ?hl=en-us\u0026gl=IN\u0026ocid=pdpshare)\n\n2. **Hill Climb Racing**  \n   - [Play Hill Climb Racing on Microsoft Store](https://apps.microsoft.com/detail/9WZDNCRDCWK8?hl=en\u0026gl=IN\u0026ocid=pdpshare)\n\n3. **Dino Game**  \n   - [Play Dino Game Online](https://www.google.com/search?q=dino+game) (Simply search \"Dino Game\" in Google for offline play or play directly in your browser when disconnected from the internet!)\n\n4. **Pong Classic**  \n   - This game is built in the project code using **OpenCV**. It’s a classic Pong game where you control paddles with hand gestures.\n\n### Features:\n- **Hand Gesture Recognition** using OpenCV and MediaPipe.\n- **Key Simulation** through custom key press libraries.\n- **Interactive GUI** to select and play different games.\n\n![Game photo](https://iili.io/HiNUmvt.jpg)\n![Game photo](https://iili.io/HiNUbaI.jpg)\n![Game photo](https://iili.io/HiNUZ4p.jpg)\n![Game photo](https://iili.io/HiNUpyX.jpg)\n\n---\n\n### Files and Formats:\n\n```\n/my-project\n│\n├── .idea/                  # IDE configuration files (used by JetBrains IDEs like PyCharm)\n├── Resources/              # Folder containing all background images and game-related assets\n│   ├── Background.png      # Background image used in the GUI\n│   └── gameOver.png        # Game over screen image\n├── __pycache__/            # Automatically generated folder by Python containing compiled bytecode files\n├── img_re/                 # Folder for storing image-related resources\n│   ├── dino.png            # Example image for the Dino game\n│   └── pong_ball.png       # Example image for the Pong game\n├── .gitattributes          # Git configuration file for line endings and attributes\n├── GUI.py                  # Python script for the Graphical User Interface (GUI)\n├── README.md               # Project documentation\n├── directkeys1.py          # Python script for simulating key presses for Game 1\n├── directkeys2.py          # Python script for simulating key presses for Game 2\n├── directkeys3.py          # Python script for simulating key presses for Game 3\n├── game1.png               # Image file (PNG format) used for displaying the button for Game 1\n├── game2.png               # Image file (PNG format) used for displaying the button for Game 2\n├── game3.png               # Image file (PNG format) used for displaying the button for Game 3\n├── game4.png               # Image file (PNG format) used for displaying the button for Game 4\n├── hand_landmarks.png      # Image file (PNG format) used for visualizing hand landmarks\n├── main.py                 # Python script that runs the game control system\n└── requirements.txt        # File listing all the dependencies for the project\n```\n\n---\n\n### How to Run:\n\n1. **Run the Game GUI**:\n   - To start the game, **run `main.py` first**. This will launch the GUI where you can select the game.\n   \n   ```bash\n   python main.py\n   ```\n\n2. **Select a Game**:\n   - You will see the four game options in the GUI:\n     - **Tower Building**\n     - **Hill Climb Racing**\n     - **Dino Game**\n     - **Pong Classic**\n\n3. **Control the Game**:\n   - **Hand gestures** will control the game.\n   - Use gestures to simulate pressing keys like **\"Space\"** for jumping, **\"Enter\"** for selecting, or **\"Left/Right arrows** for movement, depending on the game selected.\n\n4. **Libraries**:\n   - Install the required libraries by running:\n     ```bash\n     pip install -r requirements.txt\n     ```\n\n5. **Game Control**:\n   - The games are controlled using **hand gestures** detected through **OpenCV** and **MediaPipe**.\n\n---\n\n### Conclusion\n\nThis project demonstrates how to build a **hand-gesture-controlled gaming system** using **OpenCV** and **MediaPipe**. By using this directory structure and the accompanying Python scripts, you can easily manage the assets, game logic, and interface for an interactive game.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falok-ahirrao%2Fplaying_with_computer_vision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falok-ahirrao%2Fplaying_with_computer_vision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falok-ahirrao%2Fplaying_with_computer_vision/lists"}