# 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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
人体姿态检测.zip (7个子文件)
人体姿态检测
human-pose-estimation-opencv-master
.gitignore 1KB
output.JPG 66KB
README.md 995B
openpose.py 3KB
LICENSE 11KB
graph_opt.pb 7.44MB
image.jpg 24KB
共 7 条
- 1
不脱发的程序猿
- 粉丝: 23w+
- 资源: 5759
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页