Giter VIP home page Giter VIP logo

handgesture2emoji's Introduction

HandGesture2Emoji

This program provides demo of live stream hand gesture classification. I contains 3 parts: 1) dataset selection, 2) model training, 3) live recogniation demo.

The dataset is selected from HaGRID - HAnd Gesture Recognition Image Dataset, which contains the hand gestures below: gestures

In dataset selection, we select part of hand gestures, and match each to an emoji.

idx dataset emoji shortcode Unicode comment
0 call ๐Ÿค™ :call_me_hand: U+1F919
1 dislike ๐Ÿ‘Ž :thumbs_down: U+1F44E
2 fist โœŠ :raised_fist: U+270A
3 like ๐Ÿ‘ :thumbs_up: U+1F44D
4 mute ๐Ÿค :zipper_mouth_face: U+1F910 uncommon
5 ok ๐Ÿ‘Œ :ok_hand: U+1F44C
6 one โ˜ :index_pointing_up: U+261D
7 palm ๐Ÿ– :raised_hand_with_fingers_splayed: U+1F590
8 peace โœŒ :victory_hand: U+270C
9 rock ๐Ÿค˜ :sign_of_the_horns: U+1F918
10 stop โœ‹ :raised_hand: U+270B similar to stop inv
11 stop inv. ๐Ÿคš :raised_back_of_hand: U+1F91A similar to stop

We prepare the training dataset into HandLandmarks.csv. The process is done by DataPrepare.py. We first detection the hand landmarks of images in HaGRID dataset by mediapipe landmarker model. Each hand landmark will be preprocessed and converted into one row (65 columns) in csv file. The structure of one row is: 1) index 0 is label, same as the table above; 2) index 1 is handerness, right is 0 and left is 1; 3) index 2 to index 64 are positions (x,y,z) of 21 landmarks of a hand, shown in image below. The hand landmarks will be preprocessed, steps are: 1) shift all landmark points so point0 is at (0,0,0) 2) rotate all (x,y) to set the line between point0 and point5 vertical.

The model is trained by gesture_classification.ipynb, which output a model gesture_classifier.tflite. The demo gesture_classifier.py use the model to preform live stream hand gesture classification.

handgesture2emoji's People

Contributors

shadowfax221 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.