Skip to content

Commit d2afe30

Browse files
committed
fix BGR2RGB convert bug
1 parent 57a7a9f commit d2afe30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

depth_test/depthtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def retranslateUi(self, DepthTest):
251251
class Camera:
252252
def __init__(self, lrcheck, subpixel, extended, distortion, resolution):
253253
# get mono resolution
254-
cam_res = {
254+
/for . = {
255255
'OV7251': dai.MonoCameraProperties.SensorResolution.THE_480_P,
256256
'OV9*82': dai.MonoCameraProperties.SensorResolution.THE_800_P,
257257
'OV9282': dai.MonoCameraProperties.SensorResolution.THE_800_P,
@@ -355,7 +355,7 @@ def get_frame(self):
355355

356356
if colorMode == QtGui.QImage.Format_RGB888:
357357
depth_frame_color = cv2.cvtColor(depth_frame_color, cv2.COLOR_BGR2RGB)
358-
return depth_frame_color, depth_frame
358+
return depth_frame_color, depth_frame
359359

360360
def get_resolution(self):
361361
return self.resolution

0 commit comments

Comments
 (0)