03-03-2025 04:57 AM
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.
03-03-2025 05:30 AM
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.
03-03-2025 05:58 AM - edited 03-03-2025 05:59 AM
Maybe somebody is here who can do this thing?
03-03-2025 06:38 AM
03-03-2025 08:50 AM
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
.
03-03-2025 09:01 AM
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…)
03-03-2025 09:17 AM
So, maybe you could help me and make something that will measure the distance and size of an object
?
03-03-2025 09:31 AM
@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.
03-03-2025 09:37 AM
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
03-03-2025 09:37 AM
For the beginning i will be enought if we can measure size of the object