Skip to content

Custom Hand Gesture Recognition using OpenCV, mediapipe and sklearn.

Notifications You must be signed in to change notification settings

Abhi-0212000/Custom-HandGesture-Recognition

Repository files navigation

Custom-Hand-Gesture-Recognition

Custom Hand Gesture Recognition using OpenCV, mediapipe and sklearn.

Easy to use and easy to understand. A simple Custom Hand Gesture Recognition using a Random Forest Classifier.

What functionality does each file in this repo have?

  1. collectDataSet.py
    • To collect the images for each gesture that we are going to classify.
  2. createDataSet.py
    • From the images that we collected, we extracted the hand landmark information and created 2 lists. One with landmark information of hand and the other with corresponding gesture class. And created a pickle file (data.pickle) using 2 lists.
  3. modelTraining.py
    • We trained a Random Forest Classification model using the landmark data inside a pickled file(data.pickl e). And saved the best accurate model (model.p) using pickle.
  4. modelTesting.py
    • We access the camera, read the frames, and predict the gesture. This model can predict a maximum of 2 hand gestures at a time. And we display the frame with a visualization of landmark points, and a bounding box with a gesture name on it.
Custom-HandGesture-Recognition.mp4

About

Custom Hand Gesture Recognition using OpenCV, mediapipe and sklearn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages