Fix RGB vs BGR issue for opencv camera
This commit is contained in:
parent
abb2698687
commit
f3c79b746f
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue