【发布时间】:2021-12-23 19:52:25
【问题描述】:
我尝试在 Python 中使用 MediaPipe。
它工作正常,但hands.process() 的结果有multi_hand_world_landmarks,并且没有multi_hand_world_landmarks,我得到了
AttributeError: type object 'SolutionOutputs' has no attribute 'multi_hand_world_landmarks'
为什么?
源中的注释 https://github.com/google/mediapipe/blob/master/mediapipe/python/solutions/hands.py 表示结果必须有这个属性:
Returns:
A NamedTuple object with the following fields:
1) a "multi_hand_landmarks" field that contains the hand landmarks on
each detected hand.
2) a "multi_hand_world_landmarks" field that contains the hand landmarks
on each detected hand in real-world 3D coordinates that are in meters
with the origin at the hand's approximate geometric center.
3) a "multi_handedness" field that contains the handedness (left v.s.
right hand) of the detected hand.
它可能只出现在具有特殊背景的图片中吗?
【问题讨论】: