To detect if a palm is alive or is just a picture, implementing using OpenCV.
This system is a course project of Digital Image Processing.
brief steps:
- Find palm image pixels using OTSU algorithm
- Find Contour of the pixels
- Get finger end vertices
- Monitoring the relative distance between finger end vertices.
- If changed to a threshold -> ALIVE
g++ source/hand_reco_lzhbrian.cpp \
-I/path/to/opencv3/include \
-L/path/to/opencv3/lib \
-lopencv_core -lopencv_highgui \
-lopencv_videoio -lopencv_objdetect \
-lopencv_imgproc -lopencv_imgcodecs \
-o hand_reco # To compile
./hand_reco # To run
- This system detects the relative distance of finger end vertices, so moving forward or backward won't trigger anything. (as shown below)
- If you stretch your fingers, which results in change of relative distance between finger end vertices, the system will consider it as a LIVE PALM. (as shown below)