Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

frame image naming convention change

Aaron Cherian1a6beefcd8fe
diff --git a/freemocap/runmediapipe.py b/freemocap/runmediapipe.py
index 7ecc14e7..e9b12ba7 100644
--- a/freemocap/runmediapipe.py
+++ b/freemocap/runmediapipe.py
@@ -58,7 +58,9 @@ def runMediaPipe(session, dummyRun=False):
annotated_image, results.pose_landmarks, mp_holistic.POSE_CONNECTIONS)
#save annotated image
- cv2.imwrite(str(imgPath)+ '/' + str(frameNum) + '.png', annotated_image)
+ frameName = str(frameNum).zfill(6)
+
+ cv2.imwrite(str(imgPath)+ '/' + frameName + '.png', annotated_image)
#load the next image (will break `while-loop` on the last frame)
success, image = cap.read()#load next image from video