资源算法Openpose-Hand-Detection

Openpose-Hand-Detection

2020-03-09 | |  1213 |   0 |   0

Openpose-Hand-Detection

CMU Perpetual Computing Lab Openpose modifications for v1.4.0 to add Python wrapper for Hand point detection

Licence: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/LICENSE

Environment for this build:

Ubuntu 18.04
Python 3.5.3
OpenCV 4.0.0-alpha
Openpose 1.4.0 [https://github.com/ortegatron/hand_standalone]

The current openpose version by CMU doesn't have a python wrapper for Hand point detection. Ortegatron created a nice version but based on Openpose v1.3.0. I took Ortegratron's code and merge into 1.4.0 and rebuild openpose. Placed the generated _openpose.so on the openpose home directory

execute the program op-hands-one-ok.py to see hard coded hands extraction of COCO hand pose

图片.png

COCO Hand model has 21 points as shown below. The left hands numpy array returned from the forward_hands function can be used to calculate the angles of the fingers for certain recognition of finger gestures.

图片.png

Openpose is not the only method for hand fingers detection, pure OpenCV has imbedded DNN codes [cv2.dnn.blobFromImage] from v3.4 onwards and download pose_iter_102000.caffemodel weights file, one can do a net.forward to extract out the hand points. As always, the use of a single image is limited in application. Using a webcam will allow a stream of hands and the speed of prediction will be more important and techniques can be added to increase the accuracy such as greenscreening the background before detection and python multithreading/processing.

图片.png

Openpose released a new python wrapper. I updated the sample code with a webcam viewer https://github.com/StrongRay/Openpose-Hand-Detection/blob/master/web-hand.py Here's how the hands are detected with a hardcoded handRectangle.

图片.png

Latest Deep Dive into fingers

An interesting exploration into fingers. Extraction seemed to be orientated wrongly. Discovered that lighting makes alot of difference to the detection of fingers. Will move next into finger-straightness-with-tolerance next.

图片.png

Upgraded from UBUNTU 16 to 17 and rebuild OpenCV 4.1 and recompile Openpose 1.5 Look at the speed now

图片.png

上一篇:PyTorch-OpenPose-Realtime-Multi-Person-2D-Pose-Estimation-using-Part-Affinity-Fields

下一篇:openpose-simple

用户评价
全部评价

热门资源

  • stanford_corenlp_...

    UPDATE MARCH 2018: this code is obsolete, beyon...

  • tensorflow-sketch...

    Discrlaimer: This is not an official Google pro...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • qp_testing

    qp_testing mkdir build cd build cmake .. make