python-openpose determines whether user's neck is bended or not
사진을 분석하여 사용자의 목 각도를 측정하는 모듈
사진에 보이는 사용자의 옆모습에서,
목 아래 부터 귀까지의 직선이 얼마나 기울어졌는지 측정하여 거북목을 판단한다.
-
사용자의 허리 각도를 구하는 소스 참고
(https://hanryang1125.tistory.com/6) -
openpose github repo
(https://github.com/CMU-Perceptual-Computing-Lab/openpose) -
demo image source
(https://news.nate.com/view/20190906n05074?mid=n0400)
- Download zip file
- Go to openpose-master and download zip file.
- In that file, model installation command for Mac
cd openpose-master
./models/getModels.sh
for Windows
./models/getModels.bat
- When installation is done, copy files
models/pose/body_25/pose_deploy.prototxt
andmodels/pose/body_25/pose_iter_584000.caffemodel
- put those files in same directory that
main.py
exists. - put one or more image files in the same directory, and correct image files' name in
main.py
code. - install opencv-python
pip install opencv-python
- start command:
python3 main.py