functional test_code
This commit is contained in:
1 parent
2f03bafc0e
commit
7072a05c11
1 file changed
+2
-2
+2
-2
@@ -252,8 +252,8 @@ def main():
|
||||
# Tiefenbild auf die Farbkamera ausrichten
|
||||
depth_aligned = capture.transformed_depth
|
||||
|
||||
# Farbbild konvertieren (BGRA -> BGR -> RGB)
|
||||
color_bgr = capture.color[:, :, :3]
|
||||
# Farbbild konvertieren (BGRA -> BGR -> RGB) mit expliziter Kopie für fortlaufenden Speicher
|
||||
color_bgr = capture.color[:, :, :3].copy()
|
||||
color_rgb = cv2.cvtColor(color_bgr, cv2.COLOR_BGR2RGB)
|
||||
h, w, _ = color_rgb.shape
|
||||
|
||||
|
||||
Reference in new issue
Block a user