- Edited
How to save rectifiedLeft,rectifiedRight, rectifiedRGB, depth frames
Hello Subetha !
- Regarding the noisy disparity, it looks like you are too close to the camera. OAK-D by default will have min depth perception of 70cm (at 800P), and 35cm if 400P/extended disparity (more info here).
- I would suggest checking depthai-record-replay demo. These tools allow you to record encoded and synced camera streams and replay them, including reconstructing the stereo depth perception.
Thoughts?
Thanks, Erik
Thanks Erik for your reply.
- Edited
Hi @erik
I saved 16 bit depth image using depthFrame = depthQueue.get().getFrame(). Currently I am working on facial landmark detection and i have to extract the 106 landmarks along with the depth values. But most of the landmark points are 0. Any suggestions that would help me to rectify this? Are there any other ways to save depth images and get the Z values?
Hello Subetha , maybe just average in 3x3/5x5? I assume there are enough depth points so eg. nose landmark will be at least a few pixels away from cheek landmark, so you could do some averaging. You could also try setting depth confidence to 255, which will result in much less invalid depth pixels (but lower accuracy):
stereoDepthNode.initialConfig.setConfidenceThreshold(255)
Thanks, Erik
Hi Subetha ,
I would suggest checking the feature tracker example. Would that work?
Thanks, Erik
- Edited
Hi Erik
Can we save unrectified Mono camera images? Thanks in advance
Hi Subetha ,
Of course you can, DepthAI is very flexible You could use either depthai-record, which also syncs frames so you can later reconstruct the depth perception, or use a simpler example here that will just save mono frames directly (+ RGB frames).
Thanks, Erik
Thanks Erik