forked from spmallick/learnopencv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76e653e
commit 2cf476c
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
1. RUN getModels.sh from command line | ||
2. Use the Notebook for better understanding and debugging | ||
3. Download caffe model from http://posefs1.perception.cs.cmu.edu/Users/ZheCao/pose_iter_440000.caffemodel | ||
The code belongs to the blog https://www.learnopencv.com/multi-person-pose-estimation-in-opencv-using-openpose | ||
|
||
Requirements : | ||
A.Requirements : | ||
1. OpenCV > 3.4.1 | ||
2. Matplotlib for Notebook | ||
3. 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 | ||
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 | ||
1. Python | ||
python muti-person-openpose.py | ||
|
||
2. C++ | ||
./multi-person-openpose | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters