Detect a zone for catch something with M7

OpenMV related project discussion.
MrAceTrike
Posts: 4
Joined: Fri Feb 08, 2019 2:43 am

Detect a zone for catch something with M7

Postby MrAceTrike » Fri Feb 08, 2019 3:03 am

Hi, I'm french (so sorry for my bad english) I'm student in college and I have to make a project. It consist to make robot follow a line (this parts is finished) now i have a zone where we put a can on the target of our mission is to recognize that for use a gripper and catch the can for put it to another zone, so somebody can help for how i can detect the zone please (and I've try to find rect but it's doesn't really work)
Attachments
Photo.jpg
this look likes that
User avatar
iabdalkader
Posts: 732
Joined: Sun May 24, 2015 3:53 pm

Re: Detect a zone for catch something with M7

Postby iabdalkader » Fri Feb 08, 2019 10:57 am

You want to detect the can ? Can you use colors find_blobs() ?
MrAceTrike
Posts: 4
Joined: Fri Feb 08, 2019 2:43 am

Re: Detect a zone for catch something with M7

Postby MrAceTrike » Sat Feb 23, 2019 8:56 am

hmm I don't know does it work on GrayScale ?
MrAceTrike
Posts: 4
Joined: Fri Feb 08, 2019 2:43 am

Re: Detect a zone for catch something with M7

Postby MrAceTrike » Sat Feb 23, 2019 9:05 am

Maybe I have to explain all my program so I have make one for detect line with linear regression and i want to add in this program a mean to detect can so i'm in Grayscale so if i have to use color its a little bit probelamtics no ?

Maybe if a put here my code that's will be better :
Attachments
code_1.PNG
code_2.PNG
User avatar
kwagyeman
Posts: 2895
Joined: Sun May 24, 2015 2:10 pm

Re: Detect a zone for catch something with M7

Postby kwagyeman » Sat Feb 23, 2019 7:01 pm

Find blobs works in gray_scale too. Same for the linear regression method. Just switch to tracking objects in color and then use the linear regression method with a color range that's -128,127 for A and B and this will remove the effect of color from the line regression. Then you can look for red in the color image using find_blobs().
Nyamekye,
MrAceTrike
Posts: 4
Joined: Fri Feb 08, 2019 2:43 am

Re: Detect a zone for catch something with M7

Postby MrAceTrike » Mon Feb 25, 2019 6:48 am

thanks but i've just a problem if i want an optimal work I didn't see the can but I can see the square on the ground but not really good, i've try to find_rect but find blob can work for that ?
User avatar
kwagyeman
Posts: 2895
Joined: Sun May 24, 2015 2:10 pm

Re: Detect a zone for catch something with M7

Postby kwagyeman » Mon Feb 25, 2019 11:46 am

Find blob can find the square on the ground. Just give it different thresholds to look for.
Nyamekye,

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests