rgb conversion conditioned in get_first_frame
Browse files
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 |
|