# human-pose-estimation-opencv
Perform Human Pose Estimation in OpenCV Using OpenPose MobileNet
![OpenCV Using OpenPose MobileNet](output.JPG)
# How to use
- Test with webcam
```
python openpose.py
```
- Test with image
```
python openpose.py --input image.jpg
```
- Use `--thr` to increase confidence threshold
```
python openpose.py --input image.jpg --thr 0.5
```
# Notes:
- I modified the [OpenCV DNN Example](https://github.com/opencv/opencv/blob/master/samples/dnn/openpose.py) to use the `Tensorflow MobileNet Model`, which is provided by [ildoonet/tf-pose-estimation](https://github.com/ildoonet/tf-pose-estimation/tree/master/models/graph/mobilenet_thin), instead of `Caffe Model` from CMU OpenPose. The original `openpose.py` from `OpenCV example` only uses `Caffe Model` which is more than 200MB while the `Mobilenet` is only 7MB.
- Basically, we need to change the `cv.dnn.blobFromImage` and use `out = out[:, :19, :, :]` to get only the first 19 rows in the `out` variable.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Parul-university-PU-code-hackathon-main.zip (34个子文件)
Parul-university-PU-code-hackathon-main
human-pose-estimation-opencv
graph_opt.pb 7.44MB
output.JPG 66KB
image1.jpg 142KB
dance.mp4 2.88MB
image2.jpg 109KB
LICENSE 11KB
image.jpg 24KB
sample1.py 81B
360_F_187094944_SpbjG2YhPxTyJsHcR8rdj98Je39fBXgU.jpg 72KB
openpose.py 3KB
toy.py 6KB
__pycache__
toy.cpython-311.pyc 7KB
test.py 3KB
README.md 1022B
eye2-modified.png 52KB
epic.png 80KB
output.txt 0B
epic.py 1KB
human-pose-estimation-opencv - Copy
graph_opt.pb 7.44MB
output.JPG 66KB
image1.jpg 142KB
dance.mp4 2.88MB
image2.jpg 109KB
LICENSE 11KB
image.jpg 24KB
sample1.py 81B
360_F_187094944_SpbjG2YhPxTyJsHcR8rdj98Je39fBXgU.jpg 72KB
openpose.py 3KB
toy.py 6KB
__pycache__
toy.cpython-311.pyc 7KB
test.py 3KB
README.md 1022B
test.py 0B
README.md 120B
共 34 条
- 1
资源评论
hakesashou
- 粉丝: 6611
- 资源: 1665
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功