Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content