Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arshitarora/real-time-hand-recognition
https://github.com/arshitarora/real-time-hand-recognition
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arshitarora/real-time-hand-recognition
- Owner: ArshitArora
- Created: 2023-08-02T08:40:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-02T08:43:57.000Z (over 1 year ago)
- Last Synced: 2024-09-18T10:49:17.023Z (4 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hand Gesture Control using Python 🖐️👋
This Python program utilizes computer vision and keyboard control to interpret hand gestures and perform corresponding actions. It uses the `cv2` library for image processing, the `cvzone` module for hand tracking, and the `pynput` library for keyboard control.
## Requirements 🛠️
- Python 3.x
- OpenCV (`cv2`)
- cvzone (`HandTrackingModule`)
- pynput## Usage 🚀
1. Install the required libraries:
```bash
pip install opencv-python pynput
pip install cvzone
## How it works 🤔
The program captures video input from the default camera, tracks hand gestures using the HandDetector from cvzone, and maps these gestures to keyboard commands using the pynput library.✋ If all fingers are closed, the program simulates pressing the Left Arrow key to move left.
🖐️ If all fingers are open, the program simulates pressing the Right Arrow key to move right.## Customization 🎨
You can customize the gesture-to-action mapping by modifying the fingers list based on your preference.## Acknowledgments 🙌
This project was created with the help of the cvzone and pynput libraries.