Skip to content

Commit 1aea6b1

Browse files
committed
Fix swapped width and height parameters in reshape function
1 parent eba227a commit 1aea6b1

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)