AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'UPPER_BOD

Posted 星涅爱别离

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'UPPER_BOD相关的知识,希望对你有一定的参考价值。

# 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

以上是关于AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'UPPER_BOD的主要内容,如果未能解决你的问题,请参考以下文章