Determine square wire sizes

OpenMV related project discussion.
ali
Posts: 4
Joined: Wed Jan 08, 2020 5:00 am

Determine square wire sizes

Postby ali » Wed Jan 08, 2020 5:15 am

Hello


Our project is about capturing different squares and measuring the size or just one side.
Unfortunately I am not familiar with openmv and would need some help.
I would be very happy about ideas and help.

BR,
Ali
User avatar
kwagyeman
Posts: 3715
Joined: Sun May 24, 2015 2:10 pm

Re: Determine square wire sizes

Postby kwagyeman » Wed Jan 08, 2020 11:55 am

Have you seen the find rectangle command under examples -> feature detection? Also, try out find line segments under that sample example folder.
Nyamekye,
ali
Posts: 4
Joined: Wed Jan 08, 2020 5:00 am

Re: Determine square wire sizes

Postby ali » Sat Jan 11, 2020 5:11 am

Hi there,
yes I tried it, but the problem is that it finds a lot of rectangles and not just our rectangle
User avatar
kwagyeman
Posts: 3715
Joined: Sun May 24, 2015 2:10 pm

Re: Determine square wire sizes

Postby kwagyeman » Sat Jan 11, 2020 12:07 pm

Yes, you have to filter the output. That's entirely up to you in regular python code and by tuning the threshold argument of find_rect.

Our computer vision code just gives you the image->objects extraction. You then have to write a lot of code to throw away what you don't want. No way around this part.

Each rect is an object with methods to get access to it's x/y/w/h, etc. So, then you have to do something with that
Nyamekye,

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests