View Single Post
  #2   Spotlight this post!  
Unread 20-01-2017, 20:07
RileyC3826 RileyC3826 is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Sequim, Washington
Posts: 9
RileyC3826 is an unknown quantity at this point
Re: Multiple Vision Targets using GRIP

Quote:
Originally Posted by soundfx View Post
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.
Okay, so I've looked at the code you provided and I can modify it so that it is using the same values for detecting the target, but could you provide an example on how I would get that list of contours to use in the rest of our code? I attempted to use
System.out.print({Class}.getContours());
but that ended up printing out nonsense:
https://postimg.org/image/nboabyidr/
Thanks,
Reply With Quote