GestuText is a hand gesture recognition system using MediaPipe, OpenCV, and scikit-learn. It detects hand gestures from a camera in real-time and classifies them using a trained Random Forest model.
| Gesture | Class | Label |
|---|---|---|
| 👌 | 0 | OK |
| 👍 | 1 | Yes |
| 👎 | 2 | No |
| ✌️ | 3 | Peace Out |
collect_data.py– Captures webcam images of each gestureprocess_data.py– Extracts hand landmarks using MediaPipe and saves data todata.pickletrain_model.py– Trains a Random Forest classifier and savesmodel.prun_model_live.py– Uses webcam to detect gestures in real-time and display predictions
-
Collect Data
Runcollect_data.pyand follow on-screen instructions to capture 200 images per gesture. -
Process Data
python process_data.py