Skip to content

Commit 81aa95b

Browse files
authored
Merge pull request #478 from 99991/main
Fix swapped width and height parameters in reshape function
2 parents eba227a + 1aea6b1 commit 81aa95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ColorCamera/rgb_camera_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def clamp(num, v0, v1):
103103
while True:
104104
previewFrames = previewQueue.tryGetAll()
105105
for previewFrame in previewFrames:
106-
cv2.imshow('preview', previewFrame.getData().reshape(previewFrame.getWidth(), previewFrame.getHeight(), 3))
106+
cv2.imshow('preview', previewFrame.getData().reshape(previewFrame.getHeight(), previewFrame.getWidth(), 3))
107107

108108
videoFrames = videoQueue.tryGetAll()
109109
for videoFrame in videoFrames:

0 commit comments

Comments
 (0)