The code belongs to the blog https://www.learnopencv.com/multi-person-pose-estimation-in-opencv-using-openpose
A.Requirements :
- OpenCV > 3.4.1
- Matplotlib for Notebook
- RUN getModels.sh from command line Or Download caffe model from http://posefs1.perception.cs.cmu.edu/Users/ZheCao/pose_iter_440000.caffemodel and put it in pose/coco folder
B.Compiling cpp file
Using g++ Command to compile the cpp file in ubuntu:
g++ -o3 -std=c++11 multi-person-openpose.cpp pkg-config --libs --cflags opencv
-lpthread -o multi-person-openpose
Using CMake cmake . make
C. Usage
- Python
python multi-person-openpose.py
- C++
./multi-person-openpose
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.