local-camera.md
Last updated
Last updated
Copyright (c) Brandeis University
s### Hand Gesture Recognition After reaching the dead-end in the previous approach and being inspired by several successful projects (on Github and other personal tech blogs), I implemented an explict-feature-driven hand recognition algorithm. It relies on background extraction to "extract" hands (giving gray scale images), and based on which compute features to recognize the number of fingers. It worked pretty well if the camera and the background are ABSOLUTELY stationary but it isn't the case in our project: as the camera is mounted on the robot and the robot keeps moving (meaning the background keeps changing). Code can be founded here
Opencv python hand gesture recognition
Hand Tracking And Gesture Detection
OpenCV
ROS Kinetic (Python 2.7 is required)
A Camera connected to your device
Copy this package into your workspace and run catkin_make
.
Simply Run roslaunch gesture_teleop teleop.launch
. A window showing real time video from your laptop webcam will be activated. Place your hand into the region of interest (the green box) and your robot will take actions based on the number of fingers you show. 1. Two fingers: Drive forward 2. Three fingers: Turn left 3. Four fingers: Turn right 4. Other: Stop
This package contains two nodes.
detect.py
: Recognize the number of fingers from webcam and publish a topic of type String
stating the number of fingers. I won't get into details of the hand-gesture recognition algorithm. Basically, it extracts the hand in the region of insteret by background substraction and compute features to recognize the number of fingers.
teleop.py
: Subscribe to detect.py
and take actions based on the number of fingers seen.
Using Kinect on mutant instead of local webcam.
Furthermore, use depth camera to extract hand to get better quality images
Incorporate Skeleton tracking into this package to better localize hands (I am using region of insterests to localize hands, which is a bit dumb).