Skip to content

Conversation

@99991
Copy link
Contributor

@99991 99991 commented Jan 8, 2022

By default, the width is equal to the height, so things worked anyway, but the preview image will be garbled when the size is changed to anything non-square here:

camRgb.setPreviewSize(300, 300)

As best practice, it might be a good idea to not use square shapes so this error would have been more obvious.

Copy link
Collaborator

@themarpe themarpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

@themarpe themarpe merged commit 81aa95b into luxonis:main Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants