"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/multi/qrcode/detector/MultiFinderPatternFinder.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)