【发布时间】:2022-08-02 16:11:39
【问题描述】:
def PoseEstimation(frame,win_name):
with mp_holistic(min_detection_confidence=0.5,min_tracking_confidence=0.5) as holistic
frame = cv.cvtColor(frame, cv.COLOR_BGR2RGB)
results = holistic.process(frame)
frame = cv.cvtColor(frame, cv.COLOR_RGB2BGR)
# 2. Right hand
mp_drawing.draw_landmarks(frame, results.right_hand_landmarks, mp_holistic.HAND_CONNECTIONS,
mp_drawing.DrawingSpec(color=(80,22,10), thickness=2, circle_radius=4),
mp_drawing.DrawingSpec(color=(80,44,121), thickness=2, circle_radius=2)
)
cv.imshow(win_name, frame)
我的代码在这里
错误是
将 mp_holistic(min_detection_confidence=0.5,min_tracking_confidence=0.5) 作为整体:
TypeError: \'module\' 对象不可调用
我应该怎么做才能使用该模块
标签: python opencv artificial-intelligence mediapipe