Update pose docs

We need to save the `annotated_image` instead of the `image` to see the drawings.
This commit is contained in:
Paul 2020-11-06 11:23:07 +01:00 committed by GitHub
parent f15da632de
commit 1f8e82378c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ for idx, file in enumerate(file_list):
annotated_image = image.copy() annotated_image = image.copy()
mp_drawing.draw_landmarks( mp_drawing.draw_landmarks(
annotated_image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS) annotated_image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS)
cv2.imwrite('/tmp/annotated_image' + str(idx) + '.png', image) cv2.imwrite('/tmp/annotated_image' + str(idx) + '.png', annotated_image)
pose.close() pose.close()
# For webcam input: # For webcam input: