Understanding the OpenPose code

CMU uses the OpenPose model, while OpenCV integrates the pre-trained OpenPose model in its new deep neural network (DNN) framework. The entire code block can be downloaded from the following GitHub page. This model uses the TensorFlow example instead of the Caffe model that was originally used by the OpenPose authors, can be found at https://github.com/quanhua92/human-pose-estimation-opencv.

OpenCV's OpenPose code can be executed in a Terminal using the following command:

python openpose.py --input image.jpg

To get started using your PC's web camera, just type the following in your Terminal:

python openpose.py

The following image shows the implementation of OpenPose for an image of a soccer player:

The algorithm ...

Get Mastering Computer Vision with TensorFlow 2.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.