首先需要下载人体姿态评估的预训练模型。
基于COCO数据集训练的模型下载地址:http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/coco/pose_iter_440000.caffemodel
基于MPI数据集训练的模型下载地址:http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/mpi/pose_iter_160000.caffemodel
prototxt 下载地址:https://github.com/opencv/opencv/wiki/Deep-Learning-in-OpenCV
代码见资料
参考资料:
https://mp.weixin.qq.com/s/Fbx_6boBU8_x1lC0R1013w OpenCV深度神经网络实现人体姿态评估
https://blog.csdn.net/qq_42722197/article/details/122762534 使用OpenCV对运动员的姿势进行检测