View Single Post
  #2   Spotlight this post!  
Unread 03-02-2017, 10:45
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 146
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Vision processing loop is intermittent

Quote:
Originally Posted by rudun View Post
Thank you, that is very helpful. We will look for an example on filtering the two best contours.
First, find the 5 biggest particles. Then, make pairs so that no pair is duplicated or left out. Then, get left/top/right/bottom info about each item in a pair.
Use this info to calculate 5 different "scores" for each pair, then average the scores to get an overall score for each pair. Use the center and width/height of the pair with the highest overall score to do the rest of your processing (distance and direction).

Examples of "scores:"
Correctness of overall aspect ratio
particle height similarity
particle width similarity
particle height similarity to group height
particle width to overall width ratio
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote