Spaces:
Runtime error
Runtime error
AhmedIbrahim007
commited on
Commit
•
a02b4d6
1
Parent(s):
f42083a
Update extract_frames.py
Browse files- extract_frames.py +1 -1
extract_frames.py
CHANGED
@@ -35,7 +35,7 @@ def ExtractFrames(videoPath):
|
|
35 |
break
|
36 |
|
37 |
# Construct the filename for the frame
|
38 |
-
frame_filename = os.path.join(output_dir, f'
|
39 |
|
40 |
# Save the current frame as an image file
|
41 |
cv2.imwrite(frame_filename, frame)
|
|
|
35 |
break
|
36 |
|
37 |
# Construct the filename for the frame
|
38 |
+
frame_filename = os.path.join(output_dir, f'frame_{frame_index:04d}.png')
|
39 |
|
40 |
# Save the current frame as an image file
|
41 |
cv2.imwrite(frame_filename, frame)
|