functional test_code

This commit is contained in:
lindingerlu99122 committed 2026-11-04 14:58:10 +01:00
1 parent 2f03bafc0e
commit 7072a05c11
1 file changed
+2 -2
+2 -2
View File
@@ -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