Hi,
We are trying to run our own model to get a disparity/depth map (which is aligned to the left mono cam), which we want to align with the rgb image. Could you share the functions that are used to do this?
Hi,
We are trying to run our own model to get a disparity/depth map (which is aligned to the left mono cam), which we want to align with the rgb image. Could you share the functions that are used to do this?
To clarify, we wanted to run our own depth estimation model, using the rectified left and right stereo pair images.
So each frame, we extract rectified left and right from the camera, as well as rgb.
We run our depth estimation model, which outputs a disparity as seen from the left camera's point of view.
We would like to align this output to the rgb image, which in the pipeline can be done by using the stereo.setDepthAlign(rgbCamSocket) function. However, we are trying to do this outside of the pipeline. We were wondering what kind of intrinsics/matrices/operations you do internally to do this alignment, as I cannot find it in the source code
Hi @Tsjarly ,
Currently not supported, but we will soon expose DepthAlign node, which will be used for ToF alignment as well. For now, you can align it on host, demo here:
luxonis/depthai-python94b3177
As we are using the OV9782 sensors, I had to change the resolution of the rgb cam to THE800P. I basically changed all resolutions to 800P (and obtaining intrinsics from the camera with that format), and commented out the isp scaling factor for the rgb camera, to match output sizes for all images. Other than that I run the code exactly as showed in the example
In my case Im just getting streams from cameras, depth and detection is happening on host, I just want to align my Depth (which is calculated on host) should be aligned with RGB from camera. Regards!
Hi @Tsjarly and @SamiUddin .
The plan is to release it together with SR PoE (cam that has ToF), so in 2 weeks. We might also write a python script that demos the alignment on the host, but I can't promise that atm.
Thanks, Erik
Also @SamiUddin , have you tried the link I posted above?
@SamiUddin @Tsjarly We have made initial script for on-host alignment which is more accurate than the previous one (that I posted above). Could you give it a try (feedbacks welcome)?