AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'UPPER_
作者:互联网
# print(help(mp.python.solutions.holistic))
使用此命令查看包含的函数
错误部分
# body_connections = mp.solutions.holistic.UPPER_BODY_POSE_CONNECTIONS \
# if self.up_body_only else mp.solutions.holistic.POSE_CONNECTIONS
修改为:
body_connections = mp.solutions.holistic.POSE_CONNECTIONS \
if self.up_body_only else mp.solutions.holistic.POSE_CONNECTIONS
标签:BODY,mediapipe,holistic,POSE,body,CONNECTIONS,solutions,mp 来源: https://www.cnblogs.com/xingnie/p/16065717.html