Distance calculation

Discussion related to "under the hood" OpenMV topics.
SARAVANABAVAN
Posts: 32
Joined: Thu May 10, 2018 12:19 am
Location: Karaikal

Distance calculation

Postby SARAVANABAVAN » Mon May 21, 2018 5:43 am

Is there any possibility to calculate the distance of an object which was placed before the OpenMV CAM M7 in all the three X,Y,Z directions ?
ten123
Posts: 3
Joined: Mon May 21, 2018 2:26 pm

Re: Distance calculation

Postby ten123 » Mon May 21, 2018 2:38 pm

I got it working in 2d , so I think that you probably can do it in 3d. I first calibrated the area(took measurment of the area at known distances x,y,z) and then used the angle between the camera and the object to calculate x,y,z.
User avatar
kwagyeman
Posts: 2120
Joined: Sun May 24, 2015 2:10 pm

Re: Distance calculation

Postby kwagyeman » Mon May 21, 2018 11:30 pm

If you use the AprilTags then you get the full 6 DOF pose of a tag - i.e. x/y/z translation and x/y/z orientation.

Otherwise, you need to measure things by hand and work out the geometry. The camera is not a distance sensor, but, you can calculate the distance an object must be from the camera given it's size.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests