MultiFinderPatternFinder.java (zxing-zxing-3.4.1) | : | MultiFinderPatternFinder.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 132 | skipping to change at line 132 | |||
* - form a triangle with 90° angle (checked by comparing top right/bottom left distance | * - form a triangle with 90° angle (checked by comparing top right/bottom left distance | |||
* with pythagoras) | * with pythagoras) | |||
* | * | |||
* Note: we allow each point to be used for more than one code region: this might seem | * Note: we allow each point to be used for more than one code region: this might seem | |||
* counterintuitive at first, but the performance penalty is not that big. A t this point, | * counterintuitive at first, but the performance penalty is not that big. A t this point, | |||
* we cannot make a good quality decision whether the three finders actually represent | * we cannot make a good quality decision whether the three finders actually represent | |||
* a QR code, or are just by chance laid out so it looks like there might be a QR code there. | * a QR code, or are just by chance laid out so it looks like there might be a QR code there. | |||
* So, if the layout seems right, lets have the decoder try to decode. | * So, if the layout seems right, lets have the decoder try to decode. | |||
*/ | */ | |||
List<FinderPattern[]> results = new ArrayList<>(); // holder for the result s | List<FinderPattern[]> results = new ArrayList<>(); // holder for the results | |||
for (int i1 = 0; i1 < (size - 2); i1++) { | for (int i1 = 0; i1 < (size - 2); i1++) { | |||
FinderPattern p1 = possibleCenters.get(i1); | FinderPattern p1 = possibleCenters.get(i1); | |||
if (p1 == null) { | if (p1 == null) { | |||
continue; | continue; | |||
} | } | |||
for (int i2 = i1 + 1; i2 < (size - 1); i2++) { | for (int i2 = i1 + 1; i2 < (size - 1); i2++) { | |||
FinderPattern p2 = possibleCenters.get(i2); | FinderPattern p2 = possibleCenters.get(i2); | |||
if (p2 == null) { | if (p2 == null) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |