luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
919 stars 231 forks source link

[BUG] Oak-d-lite maximum resolution operation #508

Open hello-word-yang opened 2 years ago

hello-word-yang commented 2 years ago

According to the camera parameters, the maximum resolution of the oak-d-lite color camera is greater than 12mp.

0D22AA23-E52F-464a-855B-AE7C925CE617

I try to run 12mp resolution. , but it failed.

BB5BB05E-06EE-4264-8C18-47A0DF63167A

It seems that the maximum can only reach 4k.

Below is the code I tried. camRgb.setResolution(dai.ColorCameraProperties.SensorResolution.THE_12_MP) camRgb.setVideoSize(camRgb.getResolutionSize()) camRgb.setPreviewSize(camRgb.getResolutionSize())

In addition, the maximum resolution of the mono camera is 640x480, but I cannot set it to the maximum because the API only has 800P, 720P, and 400P.

Luxonis-Brandon commented 2 years ago

Hi @hello-word-yang ,

We are currently in pre-order stage of OAK-D-Lite with planned delivery in December - of both the physical units - and finalized firmware/software/etc. support.
Pre-order here: https://www.indiegogo.com/projects/opencv-ai-kit-lite/x/24417886#/.

So for the posterity of the world's view of this Github issue, the sample you have is a pre-production unit sample.

All that said, if you'd like to get 13MP out of the sensor, you can see below

At the moment you can use ColorCamera.isp output with THE_12_MP to get frames at full res (13MP actually). For example can use this https://github.com/luxonis/depthai-experiments/tree/oak-d-lite/gen2-color-isp-raw

python3 -m pip install -r requirements.txt
python3 main.py

Can resize the preview window, and press C to capture a frame at full res.

Thanks, Brandon

alex-luxonis commented 2 years ago

For the OV7251 Mono camera, the full resolution 640x480 is also available, see in this test script: https://github.com/luxonis/depthai-python/pull/365/files#diff-e45827163d98411d60dffeeef9dc0e333dc4556d5ccdc15fb342efa9773f14eeR89 dai.MonoCameraProperties.SensorResolution.THE_480_P

hello-word-yang commented 2 years ago

Hi

Thanks for your help, I have achieved RGB running maximum resolution and MONo running 480P, which is really great.