No description available.
Last updated Jun 25, 2026
96
Stars
26
Forks
5
Issues
0
Stars/day
Attention Score
14
Language breakdown
Python 100.0%
โธ Files
click to expand
README
Sign Language Recognition - using MediaPipe and DTW
This repository proposes an implementation of a Sign Recognition Model using the MediaPipe library for landmark extraction and Dynamic Time Warping (DTW) as a similarity metric between signs.

Source : https://www.sicara.ai/blog/sign-language-recognition-using-mediapipe
Set up
1. Open terminal and go to the Project directory
2. Install the necessary libraries
pip install -r requirements.txt
3. Import Videos of signs which will be considered as reference
The architecture of thevideos/ folder must be:
|data/
|-videos/
|-Hello/
|-<videoofhello_1>.mp4
|-<videoofhello_2>.mp4
...
|-Thanks/
|-<videoofthanks_1>.mp4
|-<videoofthanks_2>.mp4
...
To automatically create a small dataset of French signs:
- Install
ffmpeg(for MacOSbrew install ffmpeg) - Run:
python yt_download.py - Add more YouTube links in `
yt_links.csvif needed
4. Load the dataset and turn on the Webcam
- python main.py `
5. Press the "r" key to record the sign.
Code Description
Landmark extraction (MediaPipe)
- The Holistic Model of MediaPipe allows us to extract the keypoints of the Hands, Pose and Face models.
Hand Model
- In this project a HandModel has been created to define the Hand gesture at each frame.
- In order to be invariant to orientation and scale, the feature vector of the
Sign Model
- The SignModel is created from a list of landmarks (extracted from a video)
- For each frame, we store the feature vectors of each hand.
Sign Recorder
- The SignRecorder class stores the HandModels of left hand and right hand for each frame when recording.
- Once the recording is finished, it computes the DTW of the recorded sign and
- Finally, a voting logic is added to output a result only if the prediction confidence is higher than a threshold.
Dynamic Time Warping
- DTW is widely used for computing time series similarity.
- In this project, we compute the DTW of the variation of hand connexion angles over time.
References
- Pham Chinh Huu, Le Quoc Khanh, Le Thanh Ha : Human Action Recognition Using Dynamic Time Warping and Voting Algorithm - Mediapipe : Pose classification
๐ More in this category