oguzakif commited on
Commit
d59e8e8
1 Parent(s): 400f928

rgb conversion conditioned in get_first_frame

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -216,8 +216,8 @@ def get_first_frame(video):
216
 
217
  if video_capture.isOpened():
218
  ret, frame = video_capture.read()
 
219
 
220
- RGB_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
221
  return RGB_frame
222
 
223
 
 
216
 
217
  if video_capture.isOpened():
218
  ret, frame = video_capture.read()
219
+ RGB_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
220
 
 
221
  return RGB_frame
222
 
223