View Single Post
  #8   Spotlight this post!  
Unread 10-01-2016, 20:16
JCharlton's Avatar
JCharlton JCharlton is online now
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 121
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Low Goal Tracking

While I can't say I've tried it with the actual field, this is a solution you might try. For my example I used a screen capture from the field tour video.

After you acquire the image the algorithm works like this:
- Crop the image You probably will capture more than you want. Get rid of as much of the background as you can.
- Search for dark parts of the image with colour threshold Use HSL and filter with luminance. You don't need the full colour threshold function, but it works for other things too.
- Filter out small bits with Particle Filter 3 This should clean up a lot of junk.
- Dilate the image to merge particles into one The intention of this step is to blur all the particle blobs into one big particle.
- Use particle analysis You'll want to a) check there's only one particle, and b) get the x position.

Not saying it'll be easy, but it might give you something to experiment with, though the suggestions to look for the upper vision target are valid too.
Attached Thumbnails
Click image for larger version

Name:	Vision Block Diagram.png
Views:	42
Size:	38.5 KB
ID:	19693  Click image for larger version

Name:	Vision Front Panel.png
Views:	37
Size:	218.8 KB
ID:	19694  
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield