Skip to content

Commit

Permalink
Convert BGR to RGB part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed Jun 5, 2024
1 parent e706a1f commit 777de82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/utils/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def play_video(video_base64: str) -> None:

while cap.isOpened():
ret, frame = cap.read()
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
if not ret:
break
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
cv2.imshow("Video Player", frame)
# Press 'q' to exit the video
if cv2.waitKey(25) & 0xFF == ord("q"):
Expand Down

0 comments on commit 777de82

Please sign in to comment.