Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,8 @@ def find_scenes(video_path, threshold=27.0):
|
|
53 |
|
54 |
# Display and save frame
|
55 |
#cv2.imshow('frame', frame); cv2.waitKey(0)
|
56 |
-
|
57 |
-
|
58 |
stills.append(img)
|
59 |
#outputs.append("video")
|
60 |
#shot_in = scene_list[1][0].get_frames() / scene_list[1][0].get_framerate()
|
|
|
53 |
|
54 |
# Display and save frame
|
55 |
#cv2.imshow('frame', frame); cv2.waitKey(0)
|
56 |
+
img = str(frame_id) + '_screenshot.png'
|
57 |
+
cv2.imwrite(img,frame)
|
58 |
stills.append(img)
|
59 |
#outputs.append("video")
|
60 |
#shot_in = scene_list[1][0].get_frames() / scene_list[1][0].get_framerate()
|