Fix RGB vs BGR issue for opencv camera

This commit is contained in:
Julian Stirling 2025-11-09 22:25:24 +00:00
parent abb2698687
commit f3c79b746f

View file

@ -106,7 +106,7 @@ class OpenCVCamera(BaseCamera):
raise RuntimeError( raise RuntimeError(
f"Failed to capture frame from camera {self.camera_index}" f"Failed to capture frame from camera {self.camera_index}"
) )
return frame return cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
def capture_image( def capture_image(
self, self,