|
Re: Vision Processing - Target Recognition
Our team used OpenCV (through JavaCV, as this was a SmartDashboard extension) to find the targets. We used contour analysis to find possible targets, then performed a convex hull and polygon approximation. If the contour approximated to have 4 edges, oriented properly (ie. alternating nearly-horizontal and nearly-vertical), it was selected as a target, and if the aspect ratio was in the proper (configurable) range, it would be separately identified as either a 2- or 3-point target.
__________________
I code stuff.
|