{"id":23681343,"url":"https://github.com/rishraks/virtual_mouse","last_synced_at":"2026-01-02T23:30:15.274Z","repository":{"id":269706042,"uuid":"908209931","full_name":"rishraks/Virtual_Mouse","owner":"rishraks","description":"This application employs computer vision to detect hand gestures via a webcam, enabling seamless touch-free cursor control. It provides an efficient and accessible alternative to traditional input devices, focusing on precision and simplicity for essential operations like movement and clicking.","archived":false,"fork":false,"pushed_at":"2024-12-25T13:05:15.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T14:18:53.727Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishraks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-25T13:02:27.000Z","updated_at":"2024-12-25T13:05:18.000Z","dependencies_parsed_at":"2024-12-25T14:28:55.271Z","dependency_job_id":null,"html_url":"https://github.com/rishraks/Virtual_Mouse","commit_stats":null,"previous_names":["rishraks/virtual_mouse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FVirtual_Mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FVirtual_Mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FVirtual_Mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FVirtual_Mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishraks","download_url":"https://codeload.github.com/rishraks/Virtual_Mouse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239728166,"owners_count":19687311,"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":[],"created_at":"2024-12-29T18:36:32.241Z","updated_at":"2026-01-02T23:30:15.219Z","avatar_url":"https://github.com/rishraks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual Mouse Project\n\n## Overview\nThe Virtual Mouse Project simulates mouse interactions using hand gestures detected through a webcam. It uses computer vision techniques to track hand movements and performs actions such as clicking and double-clicking.\n\n## Features\n- Real-time hand tracking using a webcam.\n- Gesture-based control for:\n  - Left click.\n  - Double click.\n\n## Prerequisites\nEnsure the following software and libraries are installed on your system:\n\n- **Python 3.7 or later**\n- Required Python Libraries:\n  ```bash\n  pip install opencv-python mediapipe numpy pyautogui\n  ```\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/rishraks/Virtual_Mouse.git\n   cd virtual-mouse\n   ```\n2. Install dependencies:\n   ```bash\n   pip install opencv-python mediapipe numpy pyautogui\n   ```\n3. Run the project:\n   ```bash\n   python Virtual_Mouse.py\n   ```\n\n## Usage\n1. Launch the program.\n2. Ensure your webcam is enabled and your hand is visible within the frame.\n3. Use predefined gestures to control the mouse:\n   - **Left Click**: Tap index finger and thumb together once.\n   - **Double Click**: Tap index finger and thumb together twice quickly.\n\n## File Structure\n```\nvirtual-mouse/\n├── env/                  # Virtual environment for dependencies\n├── Virtual_Mouse.py      # Main script for running the project\n├── LICENSE               # License for the project\n└── README.md             # Project documentation\n```\n\n## How It Works\n1. **Hand Detection**: The project uses [MediaPipe Hands](https://google.github.io/mediapipe/solutions/hands.html) for real-time hand detection and landmark identification.\n2. **Gesture Recognition**: Predefined rules map hand gestures to mouse actions.\n3. **Mouse Control**: The [PyAutoGUI](https://pyautogui.readthedocs.io/en/latest/) library interacts with the system to simulate mouse clicks.\n\n## Customization\n- **Modify Gestures**: Update the gesture logic in `Virtual_Mouse.py` to include new gestures or tweak existing ones.\n- **Change Sensitivity**: Adjust parameters within the script to control responsiveness.\n- **Add Features**: Extend functionality by adding new gestures or integrating additional libraries.\n\n## Limitations\n- Performance may vary under poor lighting conditions.\n- Accuracy depends on the background and hand visibility.\n\n## Future Improvements\n- Add support for right-click and scroll gestures.\n- Implement a graphical interface for configuration and usage.\n\n## License\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n## Acknowledgements\n- [OpenCV](https://opencv.org/)\n- [MediaPipe](https://google.github.io/mediapipe/)\n- [PyAutoGUI](https://pyautogui.readthedocs.io/en/latest/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishraks%2Fvirtual_mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishraks%2Fvirtual_mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishraks%2Fvirtual_mouse/lists"}