Quote:
Originally Posted by soundfx
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,