VeuReu commited on
Commit
46c8fc2
·
verified ·
1 Parent(s): de8a65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(cropped)
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,