Update pose docs
We need to save the `annotated_image` instead of the `image` to see the drawings.
This commit is contained in:
parent
f15da632de
commit
1f8e82378c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user