{"id":15132088,"url":"https://github.com/makjp/ball_swatter","last_synced_at":"2026-01-18T17:33:29.802Z","repository":{"id":286341676,"uuid":"937501542","full_name":"makJP/Ball_Swatter","owner":"makJP","description":"College_Project","archived":false,"fork":false,"pushed_at":"2025-03-04T19:29:56.000Z","size":19661,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:16:40.819Z","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/makJP.png","metadata":{},"created_at":"2025-02-23T07:55:00.000Z","updated_at":"2025-03-04T19:29:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/makJP/Ball_Swatter","commit_stats":null,"previous_names":["makjp/ball_swatter"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makJP%2FBall_Swatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makJP%2FBall_Swatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makJP%2FBall_Swatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makJP%2FBall_Swatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makJP","download_url":"https://codeload.github.com/makJP/Ball_Swatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399884,"owners_count":20932880,"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":["image-processing","opencv","python"],"created_at":"2024-09-26T04:03:28.373Z","updated_at":"2026-01-18T17:33:29.772Z","avatar_url":"https://github.com/makJP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ball Swatter - Hand Gesture Ball Game 🎮🖐🏻\n  College project\n\n# Overview\nThis is a Python-based game that utilizes OpenCV and MediaPipe for hand tracking and image processing. The game features a stadium-themed user interface where balls of two colors RED and GREEN appear on the screen. The player controls the game using hand gestures, specifically closing their hand to catch the balls, as tracked by their camera.\n\n# Key Features:\n1. Stadium Background: A dynamic UI featuring a stadium backdrop.\n2. Hand Tracking: The camera tracks hand movements using MediaPipe's hand-tracking functionality.\n3. Two Ball Types:\n    - Green Ball: Catching increases your score by 1.\n    - Red Ball: Catching decreases your score by 1.\n4. Difficulty Scaling: Over time, more balls appear on the screen.\n5. Time Limit: The game lasts for 1 minute.\n\n# How to Play\n1. Install the necessary dependencies (OpenCV, MediaPipe):\n   - pip install opencv-python mediapipe\n2. Run the game by executing main.py in the source code directory.\n3. A stadium-themed window will open where green and red balls start to appear.\n4. Using your camera, close your hand to \"catch\" the balls:\n   - Catch green balls to increase your score.\n   - Avoid catching red balls, or your score will decrease.\n5. The game ends after 1 minute, and your score is displayed.\n\n# Requirements\n- Python 3.x\n- OpenCV for image processing\n- MediaPipe for hand tracking\n- Install all dependencies using: -\u003e pip install -r requirements.txt\n\n# Future Improvements\n- Adding levels or increasing difficulty modes.\n- Introducing different types of gestures for more interactive gameplay.\n- High-score tracking and leaderboards.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakjp%2Fball_swatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakjp%2Fball_swatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakjp%2Fball_swatter/lists"}