fffiloni commited on
Commit
10aa385
·
1 Parent(s): da9328a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def convert_mp4_to_frames(video_path):
29
  if not ret:
30
  break
31
 
32
- # Convert the frame to grayscale if needed
33
- # frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
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)