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

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

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 -0600 )edit

Hi, shariq_azim I also looking for the same answer, if you get it please let me know if I get I will let you know.

Adam108 gravatar imageAdam108 ( 2019-05-06 03:25:40 -0600 )edit

@Adam108 -- please do not post answers here, if you have a question or a comment, thank you.

berak gravatar imageberak ( 2019-05-06 03:29:07 -0600 )edit