Update app.py
Browse files
app.py
CHANGED
@@ -98,11 +98,11 @@ def find_scenes(video_path, threshold):
|
|
98 |
ret, frame = vid.read()
|
99 |
|
100 |
# Save frame as PNG file
|
101 |
-
img =
|
102 |
cv2.imwrite(img,frame)
|
103 |
|
104 |
# Push image into stills List
|
105 |
-
stills.append(img)
|
106 |
|
107 |
# Push the list of video shots into data_outputs for Gradio file component
|
108 |
data_outputs.append(shots)
|
|
|
98 |
ret, frame = vid.read()
|
99 |
|
100 |
# Save frame as PNG file
|
101 |
+
img = str(frame_id) + '_screenshot.png'
|
102 |
cv2.imwrite(img,frame)
|
103 |
|
104 |
# Push image into stills List
|
105 |
+
stills.append((img, 'shot ' + str(frame_id)))
|
106 |
|
107 |
# Push the list of video shots into data_outputs for Gradio file component
|
108 |
data_outputs.append(shots)
|