I am having trouble increasing the max calculated distance from depth map.
I am using the calculate spatial coords from this GitHub repo: Calculate Spatials on Host. My current setup is an OAK-FFC-4P with two OV9282 modules. The max measurable distance seems to be capped to 7.6m.
When I try the same test with a OAK-D-Pro, the max measurable distance is 15m. Which is kinda my goal. I have tried the following:
if OAK_D_PRO is False:
config = stereo.initialConfig.get()
config.postProcessing.speckleFilter.enable = False
config.postProcessing.speckleFilter.speckleRange = 50
config.postProcessing.temporalFilter.enable = False
config.postProcessing.spatialFilter.enable = False
config.postProcessing.spatialFilter.holeFillingRadius = 1
config.postProcessing.spatialFilter.alpha = 1
config.postProcessing.spatialFilter.numIterations = 1
config.postProcessing.thresholdFilter.minRange = 400
config.postProcessing.thresholdFilter.maxRange = 15000
*config.postProcessing.decimationFilter.decimationFactor = 1*
stereo.initialConfig.set(config)
Would not changing the config.postProcessing.thresholdFilter.maxRange
increase the measurable distance. I have not changed the max threshold in gen2-calc-spatials-on-host/calc.py
that is still set to 30m.
If my thinking is not correct what should I do in order to increase the max measurable distance of my setup?
I forgot to mention, my baseline in 95mm and my depth map looks really good. As in there no holes except for reflections, which is to be expected. I am also using the IR projector from Luxonis. And have ensured it is enabled and correctly working with my modules. I am also using OV9282-PY044N, the ones without the IR filter.
Sorry for the nasty code block 🙂 I could not get the format to look work at all