{"id":25432926,"url":"https://github.com/shobhit-nagpal/playback","last_synced_at":"2026-04-19T04:34:07.764Z","repository":{"id":270669880,"uuid":"911091524","full_name":"Shobhit-Nagpal/playback","owner":"Shobhit-Nagpal","description":"Control your media with a wave of your hand","archived":false,"fork":false,"pushed_at":"2025-01-02T09:49:50.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T17:42:17.612Z","etag":null,"topics":["mediapipe","opencv","opencv-python","python"],"latest_commit_sha":null,"homepage":"","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/Shobhit-Nagpal.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-01-02T08:17:45.000Z","updated_at":"2025-01-02T09:49:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"c793cbee-0a9e-4402-bc95-fb6a96762e50","html_url":"https://github.com/Shobhit-Nagpal/playback","commit_stats":null,"previous_names":["shobhit-nagpal/playback"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shobhit-Nagpal/playback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fplayback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fplayback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fplayback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fplayback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shobhit-Nagpal","download_url":"https://codeload.github.com/Shobhit-Nagpal/playback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fplayback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31995096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["mediapipe","opencv","opencv-python","python"],"created_at":"2025-02-17T05:17:21.705Z","updated_at":"2026-04-19T04:34:07.756Z","avatar_url":"https://github.com/Shobhit-Nagpal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playback 👋 🎬\n\nPlayback is a Python-based gesture recognition system that allows you to control media playback using hand gestures captured through your webcam. It uses computer vision and hand tracking to provide a touchless media control experience.\n\n## Features\n\n- Real-time hand gesture detection\n- Media playback control through hand movements\n- Clean, modular, and type-safe Python implementation\n- Configurable gesture thresholds and settings\n\n## Supported Gestures\n\n| Gesture | Action | Description |\n|---------|--------|-------------|\n| Pinch | Play/Pause | Bring thumb and index finger together |\n| Left Hand | Rewind | Move hand to the left side of the frame |\n| Right Hand | Forward | Move hand to the right side of the frame |\n\n## Requirements\n\n- Python 3.7+\n- Webcam\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/Shobhit-Nagpal/playback.git\ncd playback\n```\n\n2. Install required packages:\n```bash\npip install opencv-python mediapipe pyautogui numpy\n```\n\n## Usage\n\nRun the main script:\n```bash\npython play.py\n```\n\nTo exit the application, press 'q' while the window is in focus.\n\n## Configuration\n\nThe application uses two configuration classes that can be customized:\n\n### GestureConfig\n```python\n@dataclass\nclass GestureConfig:\n    pinch_threshold: float = 0.1    # Sensitivity for pinch detection\n    left_threshold: float = 0.3     # Left boundary for rewind gesture\n    right_threshold: float = 0.7    # Right boundary for forward gesture\n    cooldown: int = 10              # Frames to wait between gestures\n```\n\n### MediaConfig\n```python\n@dataclass\nclass MediaConfig:\n    frame_width: int = 600         # Width of camera frame\n    frame_height: int = 800        # Height of camera frame\n    window_name: str = \"HandFlix\"  # Window title\n```\n\n## Project Structure\n\n```\nhandflix/\n│\n├── play.py          # Main application file\n├── README.md           # This file\n```\n\n## Code Structure\n\nThe project is organized into three main classes:\n\n1. `GestureController`: Handles gesture recognition using MediaPipe\n2. `MediaController`: Manages media control actions\n3. `Playback`: Main application class that coordinates everything\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Common Issues\n\n1. **Webcam not detected**: Ensure your webcam is properly connected and not being used by another application.\n2. **MediaPipe installation**: If you encounter issues installing MediaPipe, try:\n   ```bash\n   pip install --upgrade pip\n   pip install mediapipe\n   ```\n3. **Gesture sensitivity**: Adjust the thresholds in `GestureConfig` if gestures are too sensitive or not sensitive enough.\n\n## Acknowledgments\n\n- [MediaPipe](https://mediapipe.dev/) for hand tracking capabilities\n- [OpenCV](https://opencv.org/) for computer vision functionality\n- [PyAutoGUI](https://pyautogui.readthedocs.io/) for media control simulation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobhit-nagpal%2Fplayback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshobhit-nagpal%2Fplayback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobhit-nagpal%2Fplayback/lists"}