Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ def convert_mp4_to_frames(video_path):
|
|
29 |
if not ret:
|
30 |
break
|
31 |
|
32 |
-
# Convert
|
33 |
-
|
34 |
|
35 |
# Append the frame to the list of frames
|
36 |
frames.append(frame)
|
|
|
29 |
if not ret:
|
30 |
break
|
31 |
|
32 |
+
# Convert BGR to RGB
|
33 |
+
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
34 |
|
35 |
# Append the frame to the list of frames
|
36 |
frames.append(frame)
|