From 1f8e82378c6104015a182835a7b67b44e7ad385d Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 6 Nov 2020 11:23:07 +0100 Subject: [PATCH] Update pose docs We need to save the `annotated_image` instead of the `image` to see the drawings. --- docs/solutions/pose.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/solutions/pose.md b/docs/solutions/pose.md index c9c7f7159..cf6bc51ec 100644 --- a/docs/solutions/pose.md +++ b/docs/solutions/pose.md @@ -187,7 +187,7 @@ for idx, file in enumerate(file_list): annotated_image = image.copy() mp_drawing.draw_landmarks( 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() # For webcam input: