Skip to content

Instantly share code, notes, and snippets.

View NandhaKishorM's full-sized avatar

Nandakishor NandhaKishorM

View GitHub Profile
@NandhaKishorM
NandhaKishorM / 01-README.md
Created September 30, 2020 05:00 — forked from TheJLifeX/01-README.md
Simple Hand Mouvement Recognition Code - Hand tracking - Mediapipe

Simple Hand Mouvement Recognition Code - Hand tracking - Mediapipe

Goal of this gist is to recognize some simple hand mouvements like Scrolling, Zoom in/out and Slide left/right (see 08-hand-mouvement.gif below).

The whole code for that can be found here: hand-mouvement-recognition-calculator.cc.

You can clone my forked version of mediapipe here: https://github.com/TheJLifeX/mediapipe. I have already commited all code in that repository in the "hand-mouvement-recognition" branch (https://github.com/TheJLifeX/mediapipe/tree/hand-mouvement-recognition).

If you want to know how to recognize hand gesture like ONE, TWO, TREE, FOUR, FIVE, SIX, YEAH, ROCK, SPIDERMAN and OK. You can read this gist: [Simple Hand Gesture Recognition](https://gist.github.com/TheJLifeX/74958cc59db477a91837244ff5

!echo "item { id: 1 name: 'dell'}" "item { id: 2 name: 'HP'}" "item { id: 3 name: 'lenovo'}" "item { id: 4 name: 'acer'}"> label_map.pbtxt
#appending
import sys
sys.path.append("/opt/tf_model/research")
sys.path.append("/opt/tf_model/research/object_detection")
#import libraries
import os
import cv2
import numpy as np
import tensorflow as tf
from utils import label_map_util
import sys
sys.path.append("/opt/tf_model/research")
sys.path.append("/opt/tf_model/research/object_detection")
import os
import cv2
import numpy as np
import tensorflow as tf
from utils import label_map_util
from utils import visualization_utils as vis_util
import sys
sys.path.append("/opt/tf_model/research")
sys.path.append("/opt/tf_model/research/object_detection")