How to measure distance of object (in image) with openCV.js

asked 2019-03-21 06:35:55 -0500

shariq_azim gravatar image

Hello,

Firstly i would like to mention that i am a absolute newbie to openCV. I am planning to detect the distance of the object from an image ,based on that i would decide where my camera should look. This would be implemented in nodejs in raspberry pi.

My question is how can detect/measure the distance of the object for this. As somebody in a fb community pointed to me use optical flow algorithm followed by euclidean distance .But unfortunately there isnt enough resources/ tutorials on it. The below links were available but i am not sure how to use them/or call them from my nodejs /javascript script.

Optical Flow Algorithms

Optical Flow

And thus this post. Please help and guide me. Thanks in advance.

P.S - I have strong understanding of Python and Javascript.

edit retag flag offensive close merge delete

Comments

I have strong understanding of Python and Javascript.

great, now try to grasp a minimal understandig of the maths you're facing

berak gravatar imageberak ( 2019-03-22 05:21:33 -0500 )edit