luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
809 stars 362 forks source link

"STEPS" in z axis measure #388

Open yuehshienlin opened 2 years ago

yuehshienlin commented 2 years ago

Hi, I'm trying the code"gen2-calc-spatials-on-host" to measure distance with equal velocity object But I found some 'STEPS' in the data (as attachment. z-distance in y axis & time in x axis). it should be much smooth when the z-distance changing. STEPS The 'STEPS' appear at the same z-distance(ex: 808 mm, 787 mm. 767 mm.....) How can I fix it to get the real time z-distance without 'STEPS'?

python 3.7 depthai---2.16.0.0

Erol444 commented 2 years ago

Hi @yuehshienlin , This is expected behaviour for the Stereo depth cameras (that perform disparity matching). I would suggest using subpixel disparity mode to minimize these "steps". Thoughts? Thanks, Erik

yuehshienlin commented 2 years ago

Hi, Erik @Erol444 Thank you so much ! That is really helpful! STEPS

Erol444 commented 2 years ago

Hi @yuehshienlin , That's perfect! Could we also use these 2 charts in our documentation? I think it would be really useful. Thanks, Erik

yuehshienlin commented 2 years ago

Hi, Erik @Erol444 No problem! But the title of first chart should be modified. You can remove or modify it if need be.