【问题标题】:Mediapipe hands python result does not have multi_hand_world_landmarksMediapipe 手 python 结果没有 multi_hand_world_landmarks
【发布时间】: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.

它可能只出现在具有特殊背景的图片中吗?

【问题讨论】:

    标签: computer-vision mediapipe


    【解决方案1】:

    您好,我遇到了同样的问题,然后我检查了本地文件中的 hands.py。我发现输出定义中没有“multi_hand_world_landmarks”。我正在尝试更新到最新的媒体管道来解决它。

    【讨论】:

      猜你喜欢
      • 2017-06-06
      • 2015-05-09
      • 1970-01-01
      • 2021-12-26
      • 1970-01-01
      • 2021-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多