Thanks @hopkira for the kind words!
So you can configure DepthAI to use 640x400 resolution (instead of 1280x800) with -monor 400 to reduce the resolution and allow closer depths to be seen. Full command below:
python3 depthai_demo.py -monor 400 -s previewout metaout depth -bb
Notice that with standard settings, when I put my hand close to the camera (closer than 70cm) I see the same sort of effect.
So with the reduced resolution (or Extended Disparity, below), the minimum depth is 0.35cm. With reduced resolution and Extended Disparity, the limit becomes the focal distance of the grayscale cameras, which is 19.6cm.
You can enable Extended Disparity, which allows full resolution while also seeing closer objects:
https://github.com/luxonis/depthai-experiments/tree/master/gen2-camera-demo#real-time-depth-from-depthai-stereo-pair
Then set lrcheck
and subpixel
to False
, and set extended to True
in the script.
Note that at this time, Extended Disparity does not run with object detection (at least not stable), it's something we are debugging. So for right now (Jan 2021), I'd recommend simply doing the lower resolution depth to enable closer depth sensing.
And I just updated the FAQ to provide more information on this. It's still propagating to the website, so you can see it here in the meantime: https://github.com/luxonis/depthai-docs-website/blob/master/source/pages/faq.rst#how-to-enable-depthai-to-perceive-closer-distances
Thanks,
Brandon