Distance calculation

General discussion about topics related to OpenMV.
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 ???
IMG20180529095555.jpg (2.16 MiB) Viewed 456 times
User avatar
Posts: 2727
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.

Return to “General Topics”

Who is online

Users browsing this forum: Google [Bot] and 3 guests