• OAK 1 max THE_4_K resolution vs THE_4000X3000 FOV

I have a project which sometimes uses an OAK 1 camera and sometimes uses an OAK 1 max camera. For consistency with the imaging I want to use THE_4_K resolution in both instances. However, when I use the OAK 1 max with the 4 K resolution i note that the centre of the image does not align with the centre of the camera, when I switch to the 4000x3000 resolution this is resolved. I would expect the centre point of my image to be the same regardless of the resolution.

My question is: how do i use an OAK 1 max camera with the 4 K resolution, so that the centre of the image does line up with the centre of the camera?

Whatever fix i use must only impact the way the OAK 1 max works and not the OAK 1.

Any help would be great, thanks.

    Thank you for your response.

    I see that setSensorCrop() requires the top left x and y coordinates of the box. In order to calculate this, i need to know the resolution of the camera (which i set to THE_4_K) and also the original resolution prior to any internal cropping. This is the piece I am not sure how to retrieve.

    When I look at getIspSize() or getResolutionSize(), both return (3840, 2160) i.e. THE_4_K. In the case of the oak 1 max, is there a way to see that the initial resolution is (4056, 3040) which is then cropped to (3840, 2160).

    For example, in the case of the oak 1 i believe this should return (3840, 2160), indicating i do not need to setSensorCrop(). In the case of the oak 1max this should return (4056, 3040) i.e. the resolution from THE_12_MP, which then allows me to correctly calculate the coordinates for setSensorCrop() for a resolution of (3840, 2160).

    In general i always want the centre of my image to align with the centre of the camera, so it would be nice if I can write a function which always ensures this, even if i swap between cameras and/or resolutions.

    thanks again.

    • erik replied to this.

      Hi mcopping ,
      OAK-1 is 12MP, but when set to 4K it will automatically center crop to 4K (from 12MP), so you don't need to handle this manually. Thoughts?
      Thanks, Erik

      Thanks for the feedback, that is good to know. It suggests to me the problem is else where in my code, if the centre crop is automatically set.