View Single Post
  #1   Spotlight this post!  
Unread 20-01-2017, 02:10
soundfx's Avatar
soundfx soundfx is offline
Registered User
AKA: Aaron J
FRC #3238 (Cyborg Ferrets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Anacortes, WA
Posts: 21
soundfx is an unknown quantity at this point
Re: Multiple Vision Targets using GRIP

The findContours method used by GRIP should generate a list of contours (MatOfPoint), and it shouldn't be limited to just one contour. I'm not too familiar with grip generated code, but you should be able to modify it if needed to either get the full list of contours or get the first and second contours.
Our team has an example based off of grip's generated code that allows getting the full list of contours here. You can tune that to accept both contours.
__________________


"I got 99 problems but 0.999 ain't 1."
~Orteil
Reply With Quote