Distance calculation

General discussion about topics related to OpenMV.
SARAVANABAVAN
Posts: 32
Joined: Thu May 10, 2018 12:19 am
Location: Karaikal

Distance calculation

Postby SARAVANABAVAN » Tue May 29, 2018 2:14 am

Is that possible to calculate the distance from one cotton to another cotton ???
Attachments
IMG20180529095555.jpg
IMG20180529095555.jpg (2.16 MiB) Viewed 239 times
User avatar
kwagyeman
Posts: 2407
Joined: Sun May 24, 2015 2:10 pm

Re: Distance calculation

Postby kwagyeman » Tue May 29, 2018 11:20 am

Yes, it is, but, the camera cannot tell you distances itself. Instead, you have to determine this through constants multipled by whatever values returned given where the camera sees objects in it's field of view.

When you use find_blobs() you'll get a centroid from each blob. Using that, you can see how far apart that centroid is from all other centroids.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 307 guests