Skip to content

Commit

Permalink
Convert BGR to RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed Jun 5, 2024
1 parent 3035588 commit e4bad06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vision_agent/utils/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def play_video(video_base64: str) -> None:
# Display the first frame and wait for any key press to start the video
ret, frame = cap.read()
if ret:
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
cv2.imshow("Video Player", frame)
_LOGGER.info("Press any key to start playing the video")
_LOGGER.info(f"Press any key to start playing the video: {temp_video_path}")
cv2.waitKey(0) # Wait for any key press

while cap.isOpened():
Expand Down

0 comments on commit e4bad06

Please sign in to comment.