blob region

Discussion related to "under the hood" OpenMV topics.
oramafanis
Posts: 13
Joined: Sat Jul 04, 2020 3:34 am

blob region

Postby oramafanis » Mon Aug 03, 2020 7:49 am

Hi there,

i was wondering if it is possible to use an area of a blob as region of another blob.
I don't mean the rectangle that outputs but the exact area of a blob so to find blobs of other color inside it.
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: blob region

Postby kwagyeman » Mon Aug 03, 2020 11:33 am

Hi, do you have an example image where just calling find_blobs() again on the roi of the previously found blob doesn't give you what you need followed by some filtering?
Nyamekye,
oramafanis
Posts: 13
Joined: Sat Jul 04, 2020 3:34 am

Re: blob region

Postby oramafanis » Fri Aug 07, 2020 3:25 am

hi friend!

i will manage to do some filtering to get my result for sure.

in this picture i want to count only the white blobs inside the big black circle blob for example.
Image

can i use other regions except the rectangle?
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: blob region

Postby kwagyeman » Fri Aug 07, 2020 1:37 pm

Just check if the little blobs rect intersects with the big blobs circle.

https://stackoverflow.com/questions/401 ... tersection

If you want a more general answer for any object... then I don't think we can do that as find_blobs() doesn't keep the contour of the blob for memory reasons.
Nyamekye,
oramafanis
Posts: 13
Joined: Sat Jul 04, 2020 3:34 am

Re: blob region

Postby oramafanis » Sat Aug 08, 2020 3:02 pm

Thank you ....

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests