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