stereodemo icon indicating copy to clipboard operation
stereodemo copied to clipboard

OV9282 doesn't support THE_480_P resolution, defaulting to THE_400_P

Open RizwanBricks opened this issue 3 years ago • 2 comments

Thanks for the wonderful code. I tried running the demo using OAK-D, was getting error based on resolution.

[14442C1061F35DD700] [2.4] [510.014] [MonoCamera(1)] [error] OV9282 doesn't support THE_480_P resolution, defaulting to THE_400_P [14442C1061F35DD700] [2.4] [510.014] [MonoCamera(0)] [error] OV9282 doesn't support THE_480_P resolution, defaulting to THE_400_P

assert self.input.left_image.shape[1] == self.input.calibration.width and self.input.left_image.shape[0] == self.input.calibration.height

The demo without the OAK-D was working.

RizwanBricks avatar Jun 14 '22 13:06 RizwanBricks

Thanks for the report, I guess that the device fell back to THE_400_P resolution but the calibration was still retrieved for THE_480_P resolution.

A quick hack to make it work for you right now should be to replace THE_480_P by THE_400_P in stereodemo/oakd_source.py (pip install -e . if you want to test the change), but the proper fix would be to query what resolutions are supported and pick the closest supported one for both the images and the calibration.

Ideally I'd also like to have a combo to let the user select one of the supported resolution.

nburrus avatar Jun 15 '22 20:06 nburrus

Thanks for the quick help and support!

RizwanBricks avatar Jun 16 '22 07:06 RizwanBricks