Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/machphy/hand_gesture_drawing
https://github.com/machphy/hand_gesture_drawing
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/machphy/hand_gesture_drawing
- Owner: machphy
- Created: 2024-06-27T04:58:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T16:29:29.000Z (5 months ago)
- Last Synced: 2024-06-28T06:15:22.446Z (5 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interactive Hand Gesture Drawing Application
This is a real-time drawing application that uses OpenCV and MediaPipe for hand tracking. The application allows you to draw using your finger with multiple color options and a simple interface.
## Features
- **Real-Time Hand Tracking**: Utilizes MediaPipe to track hand movements accurately.
- **Multiple Colors**: Easily switch between blue, green, red, and yellow for your drawings.
- **Clear Canvas**: Clear the canvas with a simple gesture.
- **User-Friendly Interface**: Color selection buttons arranged vertically on the right side for easy access.## Technologies Used
- **OpenCV**: For image processing and computer vision tasks.
- **MediaPipe**: For real-time hand tracking.
- **Python**: For overall application development.## How It Works
1. **Hand Detection**: The app detects your hand and tracks the position of your fingers.
2. **Drawing**: Move your finger across the screen to draw. Select different colors by pointing to the corresponding color box on the right.
3. **Clear Canvas**: Clear your drawing by gesturing towards the 'CLEAR' box.## Installation
1. **Clone the repository**:
```bash
git clone https://github.com/machphy/Hand_Gesture_Drawing.git
cd hand-gesture-drawing
```2. **Create and activate a virtual environment**:
```bash
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
```3. **Install the required packages**:
```bash
pip install -r requirements.txt
```## Running the Application
1. **Run the application**:
```bash
python hand_gesture_drawing.py
```2. **Usage Instructions**:
- The webcam will open and start detecting your hand.
- Move your finger to draw on the screen.
- Select colors by pointing to the corresponding color box on the right side.
- Clear the canvas by pointing to the 'CLEAR' box.## Future Improvements
- Adding more colors and brush sizes.
- Implementing gesture recognition for additional commands.
- Enhancing the overall user experience with more intuitive controls.## Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome all improvements and new features.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
## Contact
For any questions or suggestions, please feel free to reach out to me at [[email protected]].
---
### Requirements File (`requirements.txt`)
```
opencv-python-headless
mediapipe
numpy```
## COPYRIGHTCopyright (c) 2024 rajeevsharma
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.