gabguerin / Sign-Language-Recognition--MediaPipe-DTW

MIT License
84 stars 21 forks source link
mediapipe python sign-language sign-language-recognition

Sign Language Recognition - using MediaPipe and DTW

License: MIT

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

3. Import Videos of signs which will be considered as reference

The architecture of the videos/ folder must be:

|data/
    |-videos/
          |-Hello/
            |-<video_of_hello_1>.mp4
            |-<video_of_hello_2>.mp4
            ...
          |-Thanks/
            |-<video_of_thanks_1>.mp4
            |-<video_of_thanks_2>.mp4
            ...

To automatically create a small dataset of French signs:

4. Load the dataset and turn on the Webcam

5. Press the "r" key to record the sign.


Code Description

Landmark extraction (MediaPipe)

Hand Model

Sign Model

Sign Recorder

Dynamic Time Warping


References