LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Distance measuring

Hello, im new on this community. Could somebody help me with task because i don't know how to do measuring system from camera to object on front of me. I need to do some thing when distance between me na object on front of me will be to low system will inform me. 

0 Kudos
Message 1 of 14
(394 Views)

At least you should know the size of the object; then, the distance computation is a pure analytic geometry. Alternatively, you must have a second camera to compute a disparity depth map from stereo pair, or you can simply shift your camera and take a second shot. This is why we have two eyes, by the way.

0 Kudos
Message 2 of 14
(376 Views)

Maybe somebody is here who can do this thing? 

0 Kudos
Message 3 of 14
(356 Views)

Hi Przemek,

 

which hardware do you have available?

How do you want to measure the distance?

 

You need to provide more information about your (testbench) setup!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 14
(336 Views)

Hi GerdW, I have labview 2023 on win10, I don't know what else is in my Staff. Camera Creative Sync 1080p V2. I need to do this, when the object in front of me is closing (<100 meters), I will see some information

0 Kudos
Message 5 of 14
(319 Views)

Hi Przemek,

 


@Przemek-2405 wrote:

I need to do this, when the object in front of me is closing (<100 meters), I will see some information.


As Andrey said: when you know the size of the object then you can calculate the object distance from its (apparent) size in pixels in the camera image…

 


@Przemek-2405 wrote:

I don't know what else is in my Staff.


You should know that! (For sure we don't know…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 14
(312 Views)

So, maybe you could help me and make something that will measure the distance and size of an object

0 Kudos
Message 7 of 14
(301 Views)

@Przemek-2405 wrote:

So, maybe you could help me and make something that will measure the distance and size of an object


Again, you can't measure the distance and size both with single shot from single camera. If the size of a recognized object is known you can get the distance with some trigonometry, but if the size is unknown, you have no chance.

0 Kudos
Message 8 of 14
(287 Views)

You can post to one of the job boards if you want to hire someone to design this for you.  This forum is to help people learn LabVIEW.  

You can also try posting over at the Vision board:  Machine Vision - NI Community  Maybe someone has done something similar.

 

Do you have any Vision software?  It can help a lot for these tasks, but some components are NOT free.  You should at least have IMAQ/IMAQdx installed.

 

Measuring distance AND size is very hard as we have told you already.  If there is an object (even a sticker) of known size in your image, you can calculate its distance with pixel math.

Trying to recognize a random object moving towards the camera and calculating its distance requires much more advanced techniques.

 

Why are you doing this?  Can't you just use a simple laser distance meter?  Laser rangefinder - Wikipedia

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 9 of 14
(280 Views)

For the beginning i will be enought if we can measure size of the object

0 Kudos
Message 10 of 14
(277 Views)