margin in for loop of color tracking

General discussion about topics related to OpenMV.
krishnakumar77777
Posts: 29
Joined: Mon Oct 15, 2018 6:34 am

margin in for loop of color tracking

Postby krishnakumar77777 » Sun Jan 13, 2019 10:37 pm

What is the use of margin in the for loop of find_blobs in color tracking?
Kindly Give an example for explaining that.
Thank yoiu
User avatar
kwagyeman
Posts: 2606
Joined: Sun May 24, 2015 2:10 pm

Re: margin in for loop of color tracking

Postby kwagyeman » Sun Jan 13, 2019 11:15 pm

Hi, it just controls how how much distance blobs need to be away before they are merged. By default it is 0 meaning that unless blobs have overlapping rects they will not be merged. With a value of 10 it means that blobs that overlap within 10 pixels of each other will be merged. With -10 it means that blobs need to overlap by 10 pixels to be merged.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests