Fix target grouping bug

This commit is contained in:
Matt
2020-01-03 15:49:59 -08:00
parent d3b0ddd3fc
commit a700001244

View File

@@ -103,6 +103,9 @@ public class GroupContoursPipe implements Pipe<List<MatOfPoint>, List<StandardCV
Pair.of(minAreaRect1, minAreaRect2);
groupedContours.add(target);
// skip the next contour because it's been grouped already
i += 1;
}
} catch (IndexOutOfBoundsException e) {
finalContourList.clear();