姿态估计库出现问题
Traceback (most recent call last):
File "D:/bishe/SelfPose/PoseMoudle.py", line 71, in <module>
main()
File "D:/bishe/SelfPose/PoseMoudle.py", line 57, in main
detector = poseDetector()
File "D:/bishe/SelfPose/PoseMoudle.py", line 25, in __init__
self.detectionCon, self.trackCon)#此处False为后续更改
File "D:\python-3.7.0\lib\site-packages\mediapipe\python\solutions\pose.py", line 162, in __init__
outputs=['pose_landmarks', 'pose_world_landmarks', 'segmentation_mask'])
File "D:\python-3.7.0\lib\site-packages\mediapipe\python\solution_base.py", line 260, in __init__
for name, data in (side_inputs or {}).items()
File "D:\python-3.7.0\lib\site-packages\mediapipe\python\solution_base.py", line 260, in <dictcomp>
for name, data in (side_inputs or {}).items()
File "D:\python-3.7.0\lib\site-packages\mediapipe\python\solution_base.py", line 513, in _make_packet
return getattr(packet_creator, 'create_' + packet_data_type.value)(data)
原因是版本更新 增加了个参数
解决办法
self.pose = self.mpPose.Pose(self.mode, self.upBody, self.smooth, self.detectionCon, self.trackCon)```
######更改为
self.pose = self.mpPose.Pose(self.mode, self.upBody, self.smooth,False,
self.detectionCon, self.trackCon)