Computer Vision Distance Measurement node?


Hi guys.

is there any Computer Vision Distance Measurement nodes or tips?
I need to distance camera to small object.
so kinect and other depth camera is bit rough for me.



i fear there isnt a single node solution. you need to know the intrinsic parameters of your camera. like focal length, size of sensor so on… you may need to calc these params by chessboard calibration if not provided in specs. then you need to know the real height of your object and the height of the object in the captured image (this could be achieved by some kind of segmentaton) followed by some math like:
this approach will only work for straight perspective. if you thinking about moving your camera around an arbitrary 3d object this will not work. you should go for depth sensor then (where you also wll need some kind of segmentaion to identify your object). or use an AR Library which allows to detect 3d features.
best, m.


ah and as opencv3 introduced object tracker you could either use its c# wrapper or check the progress of the awesome contribution.


Thank you very much Milo.

I fear there isn’t a single node solution.

OK i understand. I’m also can’t find a single node on this website.

opencv3 and VL.OpenCV contribution.

Thank you also here. Let me check

Actually My project is not art. Making vegetable harvest machine.
I want to measure distance of the robot arm finger and vegetable. for compensating for position of the arm.
Measure distance and feedback it to the robot-arm control system is my goal.



you may could use something like this which also would be even more precisely.