You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When streaming for example with video or isp outputs using an OAK-D-Lite, an error on preview size is thrown, even if I am not using the preview output:
Traceback (most recent call last):
File "program.py", line 18, in <module>
device = dai.Device(pipeline, usb2Mode=False)
RuntimeError: ColorCamera(0) - 'preview' width or height (300, 300) bigger than sensor resolution (480, 270)
Which means it will go from 1920x1080 to 480x270. And since video/preview are derived from isp output, you can't have higher preview/video size than isp (in your case 480x270). So you shouldn't downscale the isp that much if you want to have 300x300 preview. Thoughts?
Thanks, Erik
Moreover I just fount out that my "hack" can cause some problems (that doesn't appear without camera.setPreviewSize(2, 2)), in particular with this code:
Describe the bug
When streaming for example with
video
orisp
outputs using an OAK-D-Lite, an error on preview size is thrown, even if I am not using thepreview
output:Minimal Reproducible Example
This is my code:
The resolution 300x300 is the default preview size. To fix I have to add this line:
Expected behavior
There shouldn't be a check on preview size if I'm not using
preview
output.Attach system log
The text was updated successfully, but these errors were encountered: