Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.