Strategy Recommendation

General discussion about topics related to OpenMV.
User avatar
Diverjim
Posts: 12
Joined: Tue Jan 15, 2019 5:57 pm

Strategy Recommendation

Postby Diverjim » Sun Feb 24, 2019 3:40 pm

I'm trying to figure out how to make our robot center up on the white lines in the attached pic. I originally wanted to use the Linear Regression algorithm, however, the white on the rocket makes the output unusable. This is my first real attempt at modern vision processing.
Screen Shot 2019-02-24 at 2.31.21 PM.png
Thanks
Jim
User avatar
kwagyeman
Posts: 3258
Joined: Sun May 24, 2015 2:10 pm

Re: Strategy Recommendation

Postby kwagyeman » Sun Feb 24, 2019 7:07 pm

Hi, if you know where the rocket is you can not target the ROI on that part of the image. Um, what's the camera view point look like?
Nyamekye,
User avatar
Diverjim
Posts: 12
Joined: Tue Jan 15, 2019 5:57 pm

Re: Strategy Recommendation

Postby Diverjim » Sun Feb 24, 2019 8:53 pm

Not target the ROI? Sorry, not sure what this means.


Here is a sample image from our practice field. so the colors aren't accurate due to the lack of paint.
Screen Shot 2019-02-24 at 7.50.24 PM.png
User avatar
kwagyeman
Posts: 3258
Joined: Sun May 24, 2015 2:10 pm

Re: Strategy Recommendation

Postby kwagyeman » Sun Feb 24, 2019 9:33 pm

Okay, um, do this. First hit the image with histeq(). This makes sure the white "pops". Then use linear regression using only the bottom half of the image ROI. I.e. pass an ROI tuple to the method that selects just the bottom half of the image. Your color parameters should be something that bounds white.
Nyamekye,
DannieR
Posts: 1
Joined: Wed Mar 13, 2019 5:33 am

Re: Strategy Recommendation

Postby DannieR » Thu Mar 14, 2019 10:01 am

Are there any room to experiment with the color parameters in a case like this?
User avatar
kwagyeman
Posts: 3258
Joined: Sun May 24, 2015 2:10 pm

Re: Strategy Recommendation

Postby kwagyeman » Thu Mar 14, 2019 11:54 am

Um, yeah, I mean, pick what's best.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests