Update app.py
Browse files
app.py
CHANGED
|
@@ -685,7 +685,7 @@ def _extract_keyframes_every_second(
|
|
| 685 |
cv2.imwrite(str(tmp_path), cv2.cvtColor(cropped_rgb, cv2.COLOR_RGB2BGR))
|
| 686 |
|
| 687 |
# Append extracted frame and metadata
|
| 688 |
-
images.append(
|
| 689 |
frames_info.append({
|
| 690 |
"index": sec + 1,
|
| 691 |
"start": sec,
|
|
|
|
| 685 |
cv2.imwrite(str(tmp_path), cv2.cvtColor(cropped_rgb, cv2.COLOR_RGB2BGR))
|
| 686 |
|
| 687 |
# Append extracted frame and metadata
|
| 688 |
+
images.append(Image.fromarray(cropped_rgb))
|
| 689 |
frames_info.append({
|
| 690 |
"index": sec + 1,
|
| 691 |
"start": sec,
|