luxonis / depthai-core

DepthAI C++ Library
MIT License
231 stars 126 forks source link

Undistortion of ColorCamera node #1119

Open VojtaBTL opened 2 weeks ago

VojtaBTL commented 2 weeks ago

Hi, recently with new update 2.28.0, there is support of undistortion. However, it is only supported for Camera node, not for ColorCamera right?

I tried the Camera node, but due to the lack of documentation about possible resolution etc. I cannot use it, because the resolution is set directly and not via ISP scale. Moreover, if I set the same resolution for Camera node like the one after ISP scaling in ColorCamera, it ouputs errors.

My question and wish is, is it possible to have some description of such usage? Or is it somewhere already?

Thanks a lot.

jakaskerl commented 23 hours ago

However, it is only supported for Camera node, not for ColorCamera right?

Correct.

You should be able to set a size for each output (setSize(), setVideoSize(), ..) which will optimally set the resolution and downscaling to achieve that size.

There is currently no in depth description; I am thinking of making a calculator for it.

Thanks, Jaka