From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate the distance between two objects for a moving robot?

Hello. I want to know how to get the distance in cm from two objects using NI myRIO and DaNI Starter kit. I have done all things from motion to image acquisition and processing. I have the value in pixels between two objects in real time, also I can use the distance traveled by robot and as far I know there is a formula for getting the distance in cm between the objects in real time, using those information. Does anybody know which it is?

0 Kudos
Message 1 of 2
(3,320 Views)
that is easy , you have to find pixel ratio measure one known distance in real world and then divide it to related pixel distance in image ,after that in that plate that you do measurement you just need to find distance in pixel and multiply to pixel ratio
0 Kudos
Message 2 of 2
(3,293 Views)