zxing-cpp 3.1.0rc1__tar.gz → 3.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/PKG-INFO +1 -1
  2. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/CMakeLists.txt +4 -2
  3. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BarcodeFormat.h +2 -2
  4. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitArray.h +0 -6
  5. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ConcentricFinder.cpp +92 -50
  6. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ConcentricFinder.h +21 -15
  7. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/MultiFormatWriter.cpp +2 -0
  8. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Pattern.h +14 -0
  9. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ReedSolomon.h +1 -0
  10. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/TextDecoder.cpp +5 -0
  11. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/TextEncoder.cpp +4 -0
  12. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXAlgorithms.h +14 -0
  13. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZDetector.cpp +1 -1
  14. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarCommon.cpp +3 -2
  15. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarReader.cpp +14 -6
  16. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODTelepenReader.cpp +2 -2
  17. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/MicroPDFReader.cpp +72 -155
  18. zxing_cpp-3.1.1/core/src/pdf417/PDF417.cpp +85 -0
  19. zxing_cpp-3.1.1/core/src/pdf417/PDF417.h +81 -0
  20. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFCodewordDecoder.cpp +95 -41
  21. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFCodewordDecoder.h +2 -0
  22. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDetector.cpp +26 -20
  23. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRReader.cpp +0 -4
  24. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/pyproject.toml +1 -1
  25. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zxing.cpp +5 -5
  26. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/.gitignore +0 -0
  27. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/CMakeLists.txt +0 -0
  28. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/LICENSE +0 -0
  29. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/README.md +0 -0
  30. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/Version.h.in +0 -0
  31. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/ZXingConfig.cmake.in +0 -0
  32. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Barcode.cpp +0 -0
  33. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Barcode.h +0 -0
  34. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BarcodeData.h +0 -0
  35. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BarcodeFormat.cpp +0 -0
  36. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BinaryBitmap.cpp +0 -0
  37. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BinaryBitmap.h +0 -0
  38. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitArray.cpp +0 -0
  39. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitMatrix.cpp +0 -0
  40. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitMatrix.h +0 -0
  41. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitMatrixCursor.h +0 -0
  42. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitMatrixIO.cpp +0 -0
  43. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitMatrixIO.h +0 -0
  44. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitSource.cpp +0 -0
  45. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/BitSource.h +0 -0
  46. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ByteArray.h +0 -0
  47. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/CharacterSet.cpp +0 -0
  48. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/CharacterSet.h +0 -0
  49. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Content.cpp +0 -0
  50. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Content.h +0 -0
  51. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ContentType.h +0 -0
  52. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/CreateBarcode.cpp +0 -0
  53. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/CreateBarcode.h +0 -0
  54. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/DecoderResult.h +0 -0
  55. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/DetectorResult.h +0 -0
  56. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ECI.cpp +0 -0
  57. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ECI.h +0 -0
  58. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Error.cpp +0 -0
  59. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Error.h +0 -0
  60. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Flags.h +0 -0
  61. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GTIN.cpp +0 -0
  62. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GTIN.h +0 -0
  63. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GlobalHistogramBinarizer.cpp +0 -0
  64. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GlobalHistogramBinarizer.h +0 -0
  65. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GridSampler.cpp +0 -0
  66. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/GridSampler.h +0 -0
  67. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/HRI.cpp +0 -0
  68. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/HRI.h +0 -0
  69. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/HybridBinarizer.cpp +0 -0
  70. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/HybridBinarizer.h +0 -0
  71. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ImageView.h +0 -0
  72. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/JSON.cpp +0 -0
  73. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/JSON.h +0 -0
  74. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/LocalGrid.cpp +0 -0
  75. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/LocalGrid.h +0 -0
  76. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/LogMatrix.h +0 -0
  77. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Matrix.h +0 -0
  78. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/MultiFormatReader.cpp +0 -0
  79. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/MultiFormatReader.h +0 -0
  80. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/MultiFormatWriter.h +0 -0
  81. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/PerspectiveTransform.cpp +0 -0
  82. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/PerspectiveTransform.h +0 -0
  83. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Point.h +0 -0
  84. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Quadrilateral.h +0 -0
  85. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Range.h +0 -0
  86. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ReadBarcode.cpp +0 -0
  87. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ReadBarcode.h +0 -0
  88. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Reader.h +0 -0
  89. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ReaderOptions.h +0 -0
  90. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ReedSolomon.cpp +0 -0
  91. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/RegressionLine.h +0 -0
  92. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ResultPoint.cpp +0 -0
  93. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ResultPoint.h +0 -0
  94. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/StdGenerator.h +0 -0
  95. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/StdPrint.h +0 -0
  96. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/StdScope.h +0 -0
  97. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/StructuredAppend.h +0 -0
  98. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/SymbologyIdentifier.h +0 -0
  99. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/TextDecoder.h +0 -0
  100. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/TextEncoder.h +0 -0
  101. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ThresholdBinarizer.h +0 -0
  102. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/TritMatrix.h +0 -0
  103. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Utf.cpp +0 -0
  104. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/Utf.h +0 -0
  105. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/WhiteRectDetector.cpp +0 -0
  106. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/WhiteRectDetector.h +0 -0
  107. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/WriteBarcode.cpp +0 -0
  108. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/WriteBarcode.h +0 -0
  109. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXConfig.h +0 -0
  110. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXTestSupport.h +0 -0
  111. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXVersion.h +0 -0
  112. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXingC.cpp +0 -0
  113. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXingC.h +0 -0
  114. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXingCpp.cpp +0 -0
  115. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXingCpp.h +0 -0
  116. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/ZXingQt.h +0 -0
  117. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZDecoder.cpp +0 -0
  118. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZDecoder.h +0 -0
  119. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZDetector.h +0 -0
  120. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZDetectorResult.h +0 -0
  121. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZEncoder.cpp +0 -0
  122. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZEncoder.h +0 -0
  123. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZEncodingState.h +0 -0
  124. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZHighLevelEncoder.cpp +0 -0
  125. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZHighLevelEncoder.h +0 -0
  126. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZReader.cpp +0 -0
  127. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZReader.h +0 -0
  128. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZToken.cpp +0 -0
  129. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZToken.h +0 -0
  130. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZWriter.cpp +0 -0
  131. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/aztec/AZWriter.h +0 -0
  132. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMBitLayout.cpp +0 -0
  133. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMBitLayout.h +0 -0
  134. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDataBlock.cpp +0 -0
  135. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDataBlock.h +0 -0
  136. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDecoder.cpp +0 -0
  137. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDecoder.h +0 -0
  138. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDetector.cpp +0 -0
  139. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMDetector.h +0 -0
  140. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMECEncoder.cpp +0 -0
  141. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMECEncoder.h +0 -0
  142. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMEncoderContext.h +0 -0
  143. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMHighLevelEncoder.cpp +0 -0
  144. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMHighLevelEncoder.h +0 -0
  145. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMReader.cpp +0 -0
  146. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMReader.h +0 -0
  147. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMSymbolInfo.cpp +0 -0
  148. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMSymbolInfo.h +0 -0
  149. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMSymbolShape.h +0 -0
  150. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMVersion.cpp +0 -0
  151. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMVersion.h +0 -0
  152. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMWriter.cpp +0 -0
  153. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/datamatrix/DMWriter.h +0 -0
  154. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/librscpp/README.md +0 -0
  155. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/librscpp/decode.h +0 -0
  156. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/librscpp/encode.h +0 -0
  157. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/librscpp/field.h +0 -0
  158. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/librscpp/poly.h +0 -0
  159. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/2of5inter.c +0 -0
  160. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/2of5inter_based.c +0 -0
  161. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/aztec.c +0 -0
  162. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/aztec.h +0 -0
  163. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/big5.h +0 -0
  164. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/codabar.c +0 -0
  165. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/code.c +0 -0
  166. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/code128.c +0 -0
  167. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/code128.h +0 -0
  168. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/common.c +0 -0
  169. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/common.h +0 -0
  170. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/dmatrix.c +0 -0
  171. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/dmatrix.h +0 -0
  172. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/dxfilmedge.c +0 -0
  173. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/eci.c +0 -0
  174. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/eci.h +0 -0
  175. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/eci_sb.h +0 -0
  176. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/filemem.c +0 -0
  177. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/filemem.h +0 -0
  178. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/fonts/normal_woff2.h +0 -0
  179. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/fonts/upcean_woff2.h +0 -0
  180. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gb18030.h +0 -0
  181. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gb2312.h +0 -0
  182. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gbk.h +0 -0
  183. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/general_field.c +0 -0
  184. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/general_field.h +0 -0
  185. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gs1.c +0 -0
  186. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gs1.h +0 -0
  187. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/gs1_lint.h +0 -0
  188. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/iso3166.h +0 -0
  189. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/iso4217.h +0 -0
  190. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/ksx1001.h +0 -0
  191. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/large.c +0 -0
  192. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/large.h +0 -0
  193. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/library.c +0 -0
  194. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/maxicode.c +0 -0
  195. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/maxicode.h +0 -0
  196. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/medical.c +0 -0
  197. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/output.c +0 -0
  198. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/output.h +0 -0
  199. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/pdf417.c +0 -0
  200. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/pdf417.h +0 -0
  201. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/pdf417_tabs.h +0 -0
  202. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/qr.c +0 -0
  203. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/qr.h +0 -0
  204. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/raster.c +0 -0
  205. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/raster_font.h +0 -0
  206. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/reedsol.c +0 -0
  207. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/reedsol.h +0 -0
  208. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/reedsol_logs.h +0 -0
  209. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/rss.c +0 -0
  210. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/rss.h +0 -0
  211. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/sjis.h +0 -0
  212. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/stubs.c +0 -0
  213. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/svg.c +0 -0
  214. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/telepen.c +0 -0
  215. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/upcean.c +0 -0
  216. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/vector.c +0 -0
  217. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/zfiletypes.h +0 -0
  218. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/zint.h +0 -0
  219. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzint/zintconfig.h +0 -0
  220. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/README.md +0 -0
  221. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci.c +0 -0
  222. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci.h +0 -0
  223. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_big5.h +0 -0
  224. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_common.h +0 -0
  225. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_gb18030.h +0 -0
  226. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_gb2312.h +0 -0
  227. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_gbk.h +0 -0
  228. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_ksx1001.h +0 -0
  229. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_sb.h +0 -0
  230. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/libzueci/zueci_sjis.h +0 -0
  231. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCBitMatrixParser.cpp +0 -0
  232. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCBitMatrixParser.h +0 -0
  233. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCDecoder.cpp +0 -0
  234. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCDecoder.h +0 -0
  235. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCReader.cpp +0 -0
  236. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/maxicode/MCReader.h +0 -0
  237. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCodabarReader.cpp +0 -0
  238. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCodabarReader.h +0 -0
  239. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCodabarWriter.cpp +0 -0
  240. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCodabarWriter.h +0 -0
  241. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode128Patterns.h +0 -0
  242. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode128Reader.cpp +0 -0
  243. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode128Reader.h +0 -0
  244. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode128Writer.cpp +0 -0
  245. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode128Writer.h +0 -0
  246. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode39Reader.cpp +0 -0
  247. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode39Reader.h +0 -0
  248. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode39Writer.cpp +0 -0
  249. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode39Writer.h +0 -0
  250. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode93Patterns.h +0 -0
  251. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode93Reader.cpp +0 -0
  252. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode93Reader.h +0 -0
  253. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode93Writer.cpp +0 -0
  254. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODCode93Writer.h +0 -0
  255. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDXFilmEdgeReader.cpp +0 -0
  256. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDXFilmEdgeReader.h +0 -0
  257. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarCommon.h +0 -0
  258. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarExpandedBitDecoder.cpp +0 -0
  259. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarExpandedBitDecoder.h +0 -0
  260. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarExpandedReader.cpp +0 -0
  261. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarExpandedReader.h +0 -0
  262. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarLimitedReader.cpp +0 -0
  263. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarLimitedReader.h +0 -0
  264. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODDataBarReader.h +0 -0
  265. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODEAN13Writer.cpp +0 -0
  266. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODEAN13Writer.h +0 -0
  267. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODEAN8Writer.cpp +0 -0
  268. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODEAN8Writer.h +0 -0
  269. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODITFReader.cpp +0 -0
  270. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODITFReader.h +0 -0
  271. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODITFWriter.cpp +0 -0
  272. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODITFWriter.h +0 -0
  273. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODMultiUPCEANReader.cpp +0 -0
  274. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODMultiUPCEANReader.h +0 -0
  275. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODReader.cpp +0 -0
  276. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODReader.h +0 -0
  277. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODRowReader.h +0 -0
  278. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODTelepenReader.h +0 -0
  279. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCAWriter.cpp +0 -0
  280. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCAWriter.h +0 -0
  281. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCEANCommon.cpp +0 -0
  282. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCEANCommon.h +0 -0
  283. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCEWriter.cpp +0 -0
  284. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODUPCEWriter.h +0 -0
  285. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODWriterHelper.cpp +0 -0
  286. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/oned/ODWriterHelper.h +0 -0
  287. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/MicroPDFReader.h +0 -0
  288. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFBarcodeMetadata.h +0 -0
  289. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFBarcodeValue.cpp +0 -0
  290. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFBarcodeValue.h +0 -0
  291. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFBoundingBox.cpp +0 -0
  292. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFBoundingBox.h +0 -0
  293. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFCodeword.h +0 -0
  294. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFCompaction.h +0 -0
  295. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFCustomData.h +0 -0
  296. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDecoder.cpp +0 -0
  297. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDecoder.h +0 -0
  298. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetectionResult.cpp +0 -0
  299. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetectionResult.h +0 -0
  300. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetectionResultColumn.cpp +0 -0
  301. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetectionResultColumn.h +0 -0
  302. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetector.cpp +0 -0
  303. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFDetector.h +0 -0
  304. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFEncoder.cpp +0 -0
  305. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFEncoder.h +0 -0
  306. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFHighLevelEncoder.cpp +0 -0
  307. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFHighLevelEncoder.h +0 -0
  308. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFReader.cpp +0 -0
  309. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFReader.h +0 -0
  310. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFScanningDecoder.cpp +0 -0
  311. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFScanningDecoder.h +0 -0
  312. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFWriter.cpp +0 -0
  313. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/PDFWriter.h +0 -0
  314. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/ZXBigInteger.cpp +0 -0
  315. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/ZXBigInteger.h +0 -0
  316. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/pdf417/ZXNullable.h +0 -0
  317. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRBitMatrixParser.cpp +0 -0
  318. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRBitMatrixParser.h +0 -0
  319. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRCodecMode.cpp +0 -0
  320. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRCodecMode.h +0 -0
  321. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDataBlock.cpp +0 -0
  322. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDataBlock.h +0 -0
  323. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDataMask.h +0 -0
  324. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDecoder.cpp +0 -0
  325. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDecoder.h +0 -0
  326. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRDetector.h +0 -0
  327. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRECB.h +0 -0
  328. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QREncodeResult.h +0 -0
  329. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QREncoder.cpp +0 -0
  330. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QREncoder.h +0 -0
  331. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRErrorCorrectionLevel.cpp +0 -0
  332. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRErrorCorrectionLevel.h +0 -0
  333. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRFormatInformation.cpp +0 -0
  334. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRFormatInformation.h +0 -0
  335. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRMaskUtil.cpp +0 -0
  336. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRMaskUtil.h +0 -0
  337. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRMatrixUtil.cpp +0 -0
  338. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRMatrixUtil.h +0 -0
  339. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRReader.h +0 -0
  340. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRVersion.cpp +0 -0
  341. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRVersion.h +0 -0
  342. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRWriter.cpp +0 -0
  343. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/src/qrcode/QRWriter.h +0 -0
  344. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/version.rc.in +0 -0
  345. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/core/zxing.pc.in +0 -0
  346. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/demo_reader.py +0 -0
  347. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/demo_writer.py +0 -0
  348. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/init.py +0 -0
  349. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/test.py +0 -0
  350. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/2of5.c +0 -0
  351. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/2of5inter.c +0 -0
  352. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/2of5inter_based.c +0 -0
  353. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/CMakeLists.txt +0 -0
  354. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/DEVELOPER +0 -0
  355. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/Makefile.mingw +0 -0
  356. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/auspost.c +0 -0
  357. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/aztec.c +0 -0
  358. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/aztec.h +0 -0
  359. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/bc412.c +0 -0
  360. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/big5.h +0 -0
  361. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/bmp.c +0 -0
  362. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/bmp.h +0 -0
  363. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/channel.c +0 -0
  364. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/channel_precalcs.h +0 -0
  365. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/codabar.c +0 -0
  366. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/codablock.c +0 -0
  367. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code.c +0 -0
  368. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code1.c +0 -0
  369. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code1.h +0 -0
  370. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code11.c +0 -0
  371. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code128.c +0 -0
  372. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code128.h +0 -0
  373. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code128_based.c +0 -0
  374. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code16k.c +0 -0
  375. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code49.c +0 -0
  376. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/code49.h +0 -0
  377. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/common.c +0 -0
  378. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/common.h +0 -0
  379. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/composite.c +0 -0
  380. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/composite.h +0 -0
  381. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dllversion.c +0 -0
  382. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dmatrix.c +0 -0
  383. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dmatrix.h +0 -0
  384. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dmatrix_trace.h +0 -0
  385. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dotcode.c +0 -0
  386. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/dxfilmedge.c +0 -0
  387. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/eci.c +0 -0
  388. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/eci.h +0 -0
  389. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/eci_sb.h +0 -0
  390. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/emf.c +0 -0
  391. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/emf.h +0 -0
  392. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/filemem.c +0 -0
  393. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/filemem.h +0 -0
  394. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/OCRB-16.bdf +0 -0
  395. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/OCRB-18.bdf +0 -0
  396. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/normal_ttf.h +0 -0
  397. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/normal_woff2.h +0 -0
  398. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/upcean_ttf.h +0 -0
  399. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/fonts/upcean_woff2.h +0 -0
  400. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gb18030.h +0 -0
  401. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gb2312.h +0 -0
  402. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gbk.h +0 -0
  403. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/general_field.c +0 -0
  404. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/general_field.h +0 -0
  405. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gif.c +0 -0
  406. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gridmtx.c +0 -0
  407. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gridmtx.h +0 -0
  408. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gs1.c +0 -0
  409. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gs1.h +0 -0
  410. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/gs1_lint.h +0 -0
  411. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/hanxin.c +0 -0
  412. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/hanxin.h +0 -0
  413. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/imail.c +0 -0
  414. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/iso3166.h +0 -0
  415. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/iso4217.h +0 -0
  416. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/ksx1001.h +0 -0
  417. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/large.c +0 -0
  418. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/large.h +0 -0
  419. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/library.c +0 -0
  420. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/libzint.rc +0 -0
  421. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/mailmark.c +0 -0
  422. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/maxicode.c +0 -0
  423. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/maxicode.h +0 -0
  424. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/medical.c +0 -0
  425. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/output.c +0 -0
  426. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/output.h +0 -0
  427. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pcx.c +0 -0
  428. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pcx.h +0 -0
  429. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pdf417.c +0 -0
  430. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pdf417.h +0 -0
  431. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pdf417_tabs.h +0 -0
  432. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/pdf417_trace.h +0 -0
  433. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/plessey.c +0 -0
  434. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/png.c +0 -0
  435. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/postal.c +0 -0
  436. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/ps.c +0 -0
  437. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/qr.c +0 -0
  438. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/qr.h +0 -0
  439. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/raster.c +0 -0
  440. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/raster_font.h +0 -0
  441. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/reedsol.c +0 -0
  442. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/reedsol.h +0 -0
  443. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/reedsol_logs.h +0 -0
  444. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/rss.c +0 -0
  445. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/rss.h +0 -0
  446. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/sjis.h +0 -0
  447. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/svg.c +0 -0
  448. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/telepen.c +0 -0
  449. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/tif.c +0 -0
  450. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/tif.h +0 -0
  451. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/tif_lzw.h +0 -0
  452. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/ultra.c +0 -0
  453. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/upcean.c +0 -0
  454. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/vector.c +0 -0
  455. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/zfiletypes.h +0 -0
  456. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/zint.h +0 -0
  457. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zint/backend/zintconfig.h +0 -0
  458. {zxing_cpp-3.1.0rc1 → zxing_cpp-3.1.1}/zxing.cmake +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zxing-cpp
3
- Version: 3.1.0rc1
3
+ Version: 3.1.1
4
4
  Summary: Python bindings for the zxing-cpp barcode library
5
5
  Keywords: barcode
6
6
  Author-Email: zxing-cpp community <zxingcpp@gmail.com>
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.16)
2
2
 
3
- project (ZXing VERSION "3.1.0")
4
- set (ZXING_VERSION_SUFFIX "-rc1")
3
+ project (ZXing VERSION "3.1.1")
4
+ set (ZXING_VERSION_SUFFIX "") # e.g. "-rc1"
5
5
  set (ZXING_SONAME 4) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
6
6
 
7
7
  option (ZXING_USE_BUNDLED_ZINT "Use the bundled libzint for barcode creation/writing" ON)
@@ -390,6 +390,8 @@ if ((ZXING_READERS OR ZXING_WRITERS_OLD) AND ZXING_ENABLE_PDF417)
390
390
  endif()
391
391
  if (ZXING_READERS AND ZXING_ENABLE_PDF417)
392
392
  set (PDF417_FILES ${PDF417_FILES}
393
+ src/pdf417/PDF417.h
394
+ src/pdf417/PDF417.cpp
393
395
  src/pdf417/PDFBarcodeMetadata.h
394
396
  src/pdf417/PDFBarcodeValue.h
395
397
  src/pdf417/PDFBarcodeValue.cpp
@@ -60,12 +60,12 @@
60
60
  X(PDF417, 'L', ' ', "mrw ", 55, ZXING_ENABLE_PDF417, "PDF417") \
61
61
  X(CompactPDF417, 'L', 'c', "mr ", 56, ZXING_ENABLE_PDF417, "Compact PDF417") \
62
62
  X(MicroPDF417, 'L', 'm', "mr ", 84, ZXING_ENABLE_PDF417, "MicroPDF417") \
63
- X(Aztec, 'z', ' ', "mr G ", 92, ZXING_ENABLE_AZTEC, "Aztec") \
63
+ X(Aztec, 'z', ' ', "mrwG ", 92, ZXING_ENABLE_AZTEC, "Aztec") \
64
64
  X(AztecCode, 'z', 'c', "mrwG ", 92, ZXING_ENABLE_AZTEC, "Aztec Code") \
65
65
  X(AztecRune, 'z', 'r', "mr ", 128, ZXING_ENABLE_AZTEC, "Aztec Rune") \
66
66
  X(QRCode, 'Q', ' ', "mrwG ", 58, ZXING_ENABLE_QRCODE, "QR Code") \
67
67
  X(QRCodeModel1, 'Q', '1', "mr ", 0, ZXING_ENABLE_QRCODE, "QR Code Model 1") \
68
- X(QRCodeModel2, 'Q', '2', "mr ", 58, ZXING_ENABLE_QRCODE, "QR Code Model 2") \
68
+ X(QRCodeModel2, 'Q', '2', "mrw ", 58, ZXING_ENABLE_QRCODE, "QR Code Model 2") \
69
69
  X(MicroQRCode, 'Q', 'm', "mr ", 97, ZXING_ENABLE_QRCODE, "Micro QR Code") \
70
70
  X(RMQRCode, 'Q', 'r', "mr G ", 145, ZXING_ENABLE_QRCODE, "rMQR Code") \
71
71
  X(DataMatrix, 'd', ' ', "mrwG ", 71, ZXING_ENABLE_DATAMATRIX, "Data Matrix") \
@@ -108,12 +108,6 @@ public:
108
108
  friend bool operator==(const BitArray& a, const BitArray& b) { return a._bits == b._bits; }
109
109
  };
110
110
 
111
- template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
112
- constexpr T& AppendBit(T& val, bool bit)
113
- {
114
- return (val <<= 1) |= static_cast<T>(bit);
115
- }
116
-
117
111
  template <typename T = int, typename = std::enable_if_t<std::is_integral_v<T>>>
118
112
  T ToInt(const BitArray& bits, int pos = 0, int count = 8 * sizeof(T))
119
113
  {
@@ -11,72 +11,89 @@
11
11
 
12
12
  namespace ZXing {
13
13
 
14
- std::optional<PointF> AverageEdgePixels(BitMatrixCursorI cur, int range, int numOfEdges)
14
+ static std::optional<ConcentricPattern> AverageEdgePixels(BitMatrixCursorI cur, int range, int numOfEdges)
15
15
  {
16
16
  PointF sum = {};
17
+ PointF::value_t totalSteps = 0;
17
18
  for (int i = 0; i < numOfEdges; ++i) {
18
- if (!cur.isIn())
19
+ int steps = cur.stepToEdge(1, range - totalSteps);
20
+ if (!steps)
19
21
  return {};
20
- cur.stepToEdge(1, range);
22
+ totalSteps += steps;
21
23
  sum += centered(cur.p) + centered(cur.p + cur.back());
22
24
  log(cur.p + cur.back(), 2);
23
25
  }
24
- return sum / (2 * numOfEdges);
26
+ return ConcentricPattern{sum / (2 * numOfEdges), totalSteps};
25
27
  }
26
28
 
27
- std::optional<PointF> CenterOfDoubleCross(const BitMatrix& image, PointI center, int range, int numOfEdges)
29
+ static std::optional<ConcentricPattern> CenterOfDoubleCross(const BitMatrix& image, PointI center, int width, int numOfEdges)
28
30
  {
29
- PointF sum = {};
31
+ PointF sumP = {};
32
+ PointF::value_t sumS = 0;
30
33
  for (auto d : {PointI{0, 1}, {1, 0}, {1, 1}, {1, -1}}) {
31
- auto avr1 = AverageEdgePixels({image, center, d}, range, numOfEdges);
32
- auto avr2 = AverageEdgePixels({image, center, -d}, range, numOfEdges);
34
+ auto avr1 = AverageEdgePixels({image, center, d}, width * 3 / 5, numOfEdges);
35
+ auto avr2 = AverageEdgePixels({image, center, -d}, width * 3 / 5, numOfEdges);
33
36
  if (!avr1 || !avr2)
34
37
  return {};
35
- sum += *avr1 + *avr2;
38
+ auto [m, M] = std::minmax(avr1->size, avr2->size);
39
+ if (M > 1.2 * m + 1) // only accept if the two legs are very similar in size
40
+ return {};
41
+ sumP += *avr1 + *avr2;
42
+ sumS += avr1->size + avr2->size;
36
43
  }
37
- return sum / 8;
44
+ return ConcentricPattern{sumP / 8, 2 * sumS / 8};
38
45
  }
39
46
 
40
- std::optional<PointF> CenterOfRing(const BitMatrix& image, PointI center, int range, int nth, bool requireCircle)
47
+ static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF center, int width, int edgeIndex, bool backup);
48
+
49
+ std::optional<ConcentricPattern> CenterOfRing(const BitMatrix& image, PointI center, int width, int nth, bool requireCircle)
41
50
  {
51
+ auto meanRToSquareWidth = [](double r) { return 1.74 * r; }; // a square with mean radius r has a width of approx. 1.74*r
52
+
42
53
  #if 0
43
54
  if (requireCircle) {
44
55
  // alternative implementation with the aim of discarding closed loops that are not all circle like (M > 5*m)
45
- auto points = CollectRingPoints(image, center, range, std::abs(nth), nth < 0);
56
+ auto points = CollectRingPoints(image, PointF(center), width, std::abs(nth), nth < 0);
46
57
  if (points.empty())
47
58
  return {};
48
59
  auto res = Reduce(points, PointF{}, std::plus{}) / Size(points);
49
60
 
50
- double m = range, M = 0;
51
- for (auto p : points)
52
- UpdateMinMax(m, M, maxAbsComponent(p - res));
61
+ double m = width, M = 0, sumR = 0;
62
+ for (auto p : points) {
63
+ auto r = distance(p, res);
64
+ UpdateMinMax(m, M, r);
65
+ sumR += r;
66
+ }
53
67
 
54
68
  if (M > 5 * m)
55
69
  return {};
56
70
 
57
- return res;
71
+ return ConcentricPattern{res, meanRToSquareWidth(sumR / Size(points))};
58
72
  }
59
73
  #endif
60
- // range is the approximate width/height of the nth ring, if nth>1 then it would be plausible to limit the search radius
61
- // to approximately range / 2 * sqrt(2) == range * 0.75 but it turned out to be too limiting with realworld/noisy data.
62
- int radius = range;
74
+ const int maxN = 4 * (width + 1) * 3 / 2; // upper limit for circumference of the ring
75
+ const int maxR = requireCircle ? width + 1 : 2 * width;
63
76
  bool inner = nth < 0;
64
77
  nth = std::abs(nth);
65
78
  log(center, 3);
66
79
  BitMatrixCursorI cur(image, center, {1, 0});
67
- if (!cur.stepToEdge(nth, radius, inner))
80
+ if (!cur.stepToEdge(nth, maxR, inner))
68
81
  return {};
69
82
  cur.turnRight(); // move clock wise and keep edge on the right/left depending on backup
70
83
  const auto edgeDir = inner ? Direction::LEFT : Direction::RIGHT;
71
84
 
72
85
  uint32_t neighbourMask = 0;
73
86
  auto start = cur.p;
74
- PointF sum = {};
75
- int n = 0;
87
+ PointF sumP = {};
88
+ double sumR = 0;
89
+ int nP = 0;
90
+ #ifdef PRINT_DEBUG
91
+ double sumR2 = 0, mR = maxR, MR = 0;
92
+ #endif
76
93
  do {
77
94
  log(cur.p, 4);
78
- sum += centered(cur.p);
79
- ++n;
95
+ sumP += centered(cur.p);
96
+ ++nP;
80
97
 
81
98
  // find out if we come full circle around the center. 8 bits have to be set in the end.
82
99
  neighbourMask |= (1 << (4 + dot(bresenhamDirection(cur.p - center), PointI(1, 3))));
@@ -84,20 +101,40 @@ std::optional<PointF> CenterOfRing(const BitMatrix& image, PointI center, int ra
84
101
  if (!cur.stepAlongEdge(edgeDir))
85
102
  return {};
86
103
 
87
- // use L-inf norm, simply because it is a lot faster than L2-norm and sufficiently accurate
88
- if (maxAbsComponent(cur.p - center) > radius || center == cur.p || n > 4 * 2 * range)
104
+ double r = distance(cur.p, center) + (inner ? 0.5 : -0.5); // add/subtract 0.5 to go from pixel center to pixel edge
105
+ sumR += r;
106
+ #ifdef PRINT_DEBUG
107
+ sumR2 += r * r;
108
+ UpdateMinMax(mR, MR, r);
109
+ #endif
110
+ if (r > maxR || center == cur.p || nP > maxN)
89
111
  return {};
90
112
  } while (cur.p != start);
91
113
 
92
114
  if (requireCircle && neighbourMask != 0b111101111)
93
115
  return {};
94
116
 
95
- return sum / n;
117
+ auto meanP = sumP / nP;
118
+ auto meanR = sumR / nP;
119
+ double C = nP / meanR; // C is the number of edge pixels per unit length, for a perfect circle C = 2*pi ~ 6.28, for a square C = 8
120
+ double centerMove = distance(meanP, PointF(center)) / width; // normalized distance between estimated and calculated center
121
+ #ifdef PRINT_DEBUG
122
+ auto variation = std::sqrt(sumR2 / nP - meanR * meanR) / meanR;
123
+ printf("CenterOfRing: center=(%4d,%4d), width=%3d, nth=%d, reqCircle=%d, n=%3d, meanR=%5.2f, var=%5.2f, C=%5.2f, mR=%4.1f, MR=%4.1f, "
124
+ "neighbourMask=%x -> res=(%5.1f,%5.1f), delta=%3.1f\n",
125
+ center.x*5, center.y*5, width, nth, requireCircle, nP, meanR, variation, C, mR, MR, neighbourMask, meanP.x*5, meanP.y*5, centerMove);
126
+ #endif
127
+ // C > 12 means that the edge is very irregular, centerMove > 0.5 means the center moved more than half the estimated width of the ring
128
+ if (requireCircle && (C > 12 || centerMove > 0.5))
129
+ return {};
130
+
131
+ return ConcentricPattern{meanP, meanRToSquareWidth(meanR)};
96
132
  }
97
133
 
98
- std::optional<PointF> CenterOfRings(const BitMatrix& image, PointF center, int range, int numOfRings)
134
+ std::optional<ConcentricPattern> CenterOfRings(const BitMatrix& image, PointF center, int range, int numOfRings)
99
135
  {
100
136
  int n = 1;
137
+ PointF::value_t size = 0;
101
138
  PointF sum = center;
102
139
  for (int i = 2; i < numOfRings + 1; ++i) {
103
140
  auto c = CenterOfRing(image, PointI(center), range, i);
@@ -105,23 +142,25 @@ std::optional<PointF> CenterOfRings(const BitMatrix& image, PointF center, int r
105
142
  if (n == 1)
106
143
  return {};
107
144
  else
108
- return sum / n;
145
+ break;
109
146
  } else if (distance(*c, center) > range / numOfRings / 2) {
110
147
  return {};
111
148
  }
112
149
 
113
150
  sum += *c;
151
+ size = c->size;
114
152
  n++;
115
153
  }
116
- return sum / n;
154
+ return ConcentricPattern{sum / n, n == numOfRings ? size : 0};
117
155
  }
118
156
 
119
- static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF center, int range, int edgeIndex, bool backup)
157
+ static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF center, int width, int edgeIndex, bool backup)
120
158
  {
121
159
  PointI centerI(center);
122
- int radius = range;
160
+ const int maxN = 4 * (width + 1) * 3 / 2; // upper limit for circumference of the ring
161
+ const int maxR = width * 2; // TODO fix discrepancy between this and FindRind()
123
162
  BitMatrixCursorI cur(image, centerI, {1, 0});
124
- if (!cur.stepToEdge(edgeIndex, radius, backup))
163
+ if (!cur.stepToEdge(edgeIndex, maxR, backup))
125
164
  return {};
126
165
  cur.turnRight(); // move clock wise and keep edge on the right/left depending on backup
127
166
  const auto edgeDir = backup ? Direction::LEFT : Direction::RIGHT;
@@ -129,7 +168,7 @@ static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF cent
129
168
  uint32_t neighbourMask = 0;
130
169
  auto start = cur.p;
131
170
  std::vector<PointF> points;
132
- points.reserve(4 * range);
171
+ points.reserve(maxN / 2);
133
172
 
134
173
  do {
135
174
  log(cur.p, 4);
@@ -141,8 +180,7 @@ static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF cent
141
180
  if (!cur.stepAlongEdge(edgeDir))
142
181
  return {};
143
182
 
144
- // use L-inf norm, simply because it is a lot faster than L2-norm and sufficiently accurate
145
- if (maxAbsComponent(cur.p - centerI) > radius || centerI == cur.p || Size(points) > 4 * 2 * range)
183
+ if (distance(cur.p, centerI) > maxR || centerI == cur.p || Size(points) > maxN)
146
184
  return {};
147
185
 
148
186
  } while (cur.p != start);
@@ -153,7 +191,7 @@ static std::vector<PointF> CollectRingPoints(const BitMatrix& image, PointF cent
153
191
  return points;
154
192
  }
155
193
 
156
- static std::optional<QuadrilateralF> FitQadrilateralToPoints(PointF center, std::vector<PointF>& points)
194
+ static std::optional<QuadrilateralF> FitQuadrilateralToPoints(PointF center, std::vector<PointF>& points)
157
195
  {
158
196
  auto dist2Center = [c = center](auto a, auto b) { return distance(a, c) < distance(b, c); };
159
197
  auto [minDistElem, maxDistElem] = std::minmax_element(points.begin(), points.end(), dist2Center);
@@ -190,7 +228,8 @@ static std::optional<QuadrilateralF> FitQadrilateralToPoints(PointF center, std:
190
228
  auto len = std::distance(beg[i], end[i]);
191
229
  if (len > 3 && lines[i].distance(*p) > std::max(1., std::min(8., len / 8.))) {
192
230
  #ifdef PRINT_DEBUG
193
- printf("%d: %.2f > %.2f @ %.fx%.f\n", i, lines[i].distance(*p), std::distance(beg[i], end[i]) / 1., p->x, p->y);
231
+ printf("FitQuadrilateral failed: center=(%3.f,%3.f), i=%d, dist=%.2f > %.2f @ (%3.f,%3.f)\n", center.x, center.y, i,
232
+ lines[i].distance(*p), std::distance(beg[i], end[i]) / 8., p->x, p->y);
194
233
  #endif
195
234
  return {};
196
235
  }
@@ -213,26 +252,26 @@ static bool QuadrilateralIsPlausibleSquare(const QuadrilateralF q, int lineIndex
213
252
  return m >= lineIndex * 2 && m > M / 3;
214
253
  }
215
254
 
216
- std::optional<QuadrilateralF> FitSquareToPoints(const BitMatrix& image, PointF center, int range, int lineIndex, bool backup)
255
+ std::optional<QuadrilateralF> FitSquareToPoints(const BitMatrix& image, PointF center, int width, int lineIndex, bool backup)
217
256
  {
218
- auto points = CollectRingPoints(image, center, range, lineIndex, backup);
257
+ auto points = CollectRingPoints(image, center, width, lineIndex, backup);
219
258
  if (points.empty())
220
259
  return {};
221
260
 
222
- auto res = FitQadrilateralToPoints(center, points);
261
+ auto res = FitQuadrilateralToPoints(center, points);
223
262
  if (!res || !QuadrilateralIsPlausibleSquare(*res, lineIndex - backup))
224
263
  return {};
225
264
 
226
265
  return res;
227
266
  }
228
267
 
229
- std::optional<QuadrilateralF> FindConcentricPatternCorners(const BitMatrix& image, PointF center, int range, int ringIndex)
268
+ std::optional<QuadrilateralF> FindConcentricPatternCorners(const BitMatrix& image, PointF center, int width, int ringIndex)
230
269
  {
231
- auto innerCorners = FitSquareToPoints(image, center, range, ringIndex, false);
270
+ auto innerCorners = FitSquareToPoints(image, center, width, ringIndex, false);
232
271
  if (!innerCorners)
233
272
  return {};
234
273
 
235
- auto outerCorners = FitSquareToPoints(image, center, range, ringIndex + 1, true);
274
+ auto outerCorners = FitSquareToPoints(image, center, width, ringIndex + 1, true);
236
275
  if (!outerCorners)
237
276
  return {};
238
277
 
@@ -250,18 +289,21 @@ std::optional<QuadrilateralF> FindConcentricPatternCorners(const BitMatrix& imag
250
289
  return res;
251
290
  }
252
291
 
253
- std::optional<PointF> FinetuneConcentricPatternCenter(const BitMatrix& image, PointF center, int range, int finderPatternSize)
292
+ std::optional<ConcentricPattern> FinetuneConcentricPatternCenter(const BitMatrix& image, PointF center, int width, int finderPatternSize)
254
293
  {
255
294
  // make sure we have at least one path of white around the center
256
- if (auto res1 = CenterOfRing(image, PointI(center), range, 1); res1 && image.get(*res1)) {
295
+ if (auto res1 = CenterOfRing(image, PointI(center), width * 2 / 3, 1); res1 && image.get(*res1)) {
257
296
  // and then either at least one more ring around that
258
- if (auto res2 = CenterOfRings(image, *res1, range, finderPatternSize / 2); res2 && image.get(*res2))
297
+ if (auto res2 = CenterOfRings(image, *res1, width, finderPatternSize / 2); res2 && image.get(*res2)) {
298
+ res2->size = res2->size * 7 / 5; // CenterOfRings only estimates the radius of the white ring
259
299
  return res2;
300
+ }
260
301
  // or the center can be approximated by a square
261
- if (FitSquareToPoints(image, *res1, range, 1, false))
262
- return res1;
302
+ // TODO: With the following CenterOfDoubleCross() check, this currently saves no additional test cases
303
+ // if (FitSquareToPoints(image, *res1, width, 1, false))
304
+ // return res1;
263
305
  // TODO: this is currently only keeping #258 alive, evaluate if still worth it
264
- if (auto res2 = CenterOfDoubleCross(image, PointI(*res1), range, finderPatternSize / 2 + 1); res2 && image.get(*res2))
306
+ if (auto res2 = CenterOfDoubleCross(image, PointI(*res1), width, finderPatternSize / 2 + 1); res2 && image.get(*res2))
265
307
  return res2;
266
308
  }
267
309
  return {};
@@ -97,26 +97,27 @@ int CheckSymmetricPattern(BitMatrixCursorI& cur, PATTERN pattern, int range, boo
97
97
  return Reduce(res);
98
98
  }
99
99
 
100
- std::optional<PointF> CenterOfRing(const BitMatrix& image, PointI center, int range, int nth, bool requireCircle = true);
100
+ struct ConcentricPattern : public PointF
101
+ {
102
+ PointF::value_t size = 0;
103
+ };
101
104
 
102
- std::optional<PointF> FinetuneConcentricPatternCenter(const BitMatrix& image, PointF center, int range, int finderPatternSize);
105
+ std::optional<ConcentricPattern> CenterOfRing(const BitMatrix& image, PointI center, int range, int nth, bool requireCircle = true);
106
+
107
+ std::optional<ConcentricPattern> FinetuneConcentricPatternCenter(const BitMatrix& image, PointF center, int range, int finderPatternSize);
103
108
 
104
109
  std::optional<QuadrilateralF> FitSquareToPoints(const BitMatrix& image, PointF center, int range, int lineIndex, bool backup);
105
110
 
106
111
  std::optional<QuadrilateralF> FindConcentricPatternCorners(const BitMatrix& image, PointF center, int range, int ringIndex);
107
112
 
108
- struct ConcentricPattern : public PointF
109
- {
110
- int size = 0;
111
- };
112
-
113
113
  template <bool E2E = false, typename PATTERN>
114
- std::optional<ConcentricPattern> LocateConcentricPattern(const BitMatrix& image, PATTERN pattern, PointF center, int range)
114
+ std::optional<ConcentricPattern> LocateConcentricPattern(const BitMatrix& image, PATTERN pattern, PointF center, int width)
115
115
  {
116
116
  auto cur = BitMatrixCursor(image, PointI(center), {});
117
+ int range = width * 2;
117
118
  int minSpread = image.width(), maxSpread = 0;
118
- // TODO: setting maxError to 1 can subtantially help with detecting symbols with low print quality resulting in damaged
119
- // finder patterns, but it sutantially increases the runtime (approx. 20% slower for the falsepositive images).
119
+ // TODO: setting maxError to 1 can substantially help with detecting symbols with low print quality resulting in damaged
120
+ // finder patterns, but it substantially increases the runtime (approx. 20% slower for the falsepositive images).
120
121
  int maxError = 0;
121
122
  for (auto d : {PointI{0, 1}, {1, 0}}) {
122
123
  int spread = CheckSymmetricPattern<E2E>(cur.setDirection(d), pattern, range, true);
@@ -128,7 +129,7 @@ std::optional<ConcentricPattern> LocateConcentricPattern(const BitMatrix& image,
128
129
 
129
130
  #if 1
130
131
  for (auto d : {PointI{1, 1}, {1, -1}}) {
131
- int spread = CheckSymmetricPattern<true>(cur.setDirection(d), pattern, range * 2, false);
132
+ int spread = CheckSymmetricPattern<true>(cur.setDirection(d), pattern, range, false);
132
133
  if (spread)
133
134
  UpdateMinMax(minSpread, maxSpread, spread);
134
135
  else if (--maxError < 0)
@@ -139,11 +140,16 @@ std::optional<ConcentricPattern> LocateConcentricPattern(const BitMatrix& image,
139
140
  if (maxSpread > 5 * minSpread)
140
141
  return {};
141
142
 
142
- auto newCenter = FinetuneConcentricPatternCenter(image, PointF(cur.p), range, pattern.size());
143
- if (!newCenter)
144
- return {};
143
+ static_assert(pattern.sum() == 7, "see FinetuneConcentricPatternCenter()");
144
+ auto newCenter = FinetuneConcentricPatternCenter(image, PointF(cur.p), width, pattern.size());
145
+ if (newCenter) {
146
+ // printf("LocateConcentricPattern: center=(%5.2f,%5.2f), width=%3d, spread=%d, size=%d, newCenter=(%5.2f,%5.2f)\n",
147
+ // center.x*5, center.y*5, width, (maxSpread + minSpread) / 2, newCenter->size, newCenter->x*5, newCenter->y*5);
148
+ if (!newCenter->size)
149
+ newCenter->size = (maxSpread + minSpread) / 2;
150
+ }
145
151
 
146
- return ConcentricPattern{*newCenter, (maxSpread + minSpread) / 2};
152
+ return newCenter;
147
153
  }
148
154
 
149
155
  } // ZXing
@@ -75,6 +75,7 @@ MultiFormatWriter::encode(const std::wstring& contents, int width, int height) c
75
75
 
76
76
  switch (_format) {
77
77
  #if ZXING_ENABLE_AZTEC
78
+ case BarcodeFormat::Aztec:
78
79
  case BarcodeFormat::AztecCode: return exec1(Aztec::Writer(), AztecEccLevel);
79
80
  #endif
80
81
  #if ZXING_ENABLE_DATAMATRIX
@@ -84,6 +85,7 @@ MultiFormatWriter::encode(const std::wstring& contents, int width, int height) c
84
85
  case BarcodeFormat::PDF417: return exec1(Pdf417::Writer(), Pdf417EccLevel);
85
86
  #endif
86
87
  #if ZXING_ENABLE_QRCODE
88
+ case BarcodeFormat::QRCodeModel2:
87
89
  case BarcodeFormat::QRCode: return exec1(QRCode::Writer(), QRCodeEccLevel);
88
90
  #endif
89
91
  #if ZXING_ENABLE_1D
@@ -170,6 +170,7 @@ struct FixedPattern : public Pattern<N>
170
170
  using Pattern<N>::data;
171
171
 
172
172
  constexpr int size() const noexcept { return N; }
173
+ constexpr int sum() const noexcept { return SUM; }
173
174
  constexpr BarAndSpace<value_type> sums() const noexcept { return BarAndSpaceSum<N, value_type>(data()); }
174
175
  };
175
176
 
@@ -303,6 +304,19 @@ constexpr int ToInt(const ARRAY& a)
303
304
  return pattern;
304
305
  }
305
306
 
307
+ template <size_t BITS, typename T, size_t N, typename = std::enable_if_t<std::is_integral_v<T>>>
308
+ constexpr uint32_t PackedPattern(const std::array<T, N>& np, T min = 0)
309
+ {
310
+ static_assert(BITS * N <= 32, "PackedArray: BITS * N must be <= 32");
311
+ uint32_t res = 0;
312
+ for (size_t i = 0; i < N; ++i) {
313
+ if (np[i] < min || np[i] - min >= (1 << BITS))
314
+ return -1;
315
+ AppendBits(res, uint32_t(np[i] - min), BITS);
316
+ }
317
+ return res;
318
+ }
319
+
306
320
  template <int LEN, int RET_LEN>
307
321
  constexpr std::array<int, RET_LEN> NormalizedE2EPattern(const PatternView& view, int mods, bool reverse = false)
308
322
  {
@@ -3,6 +3,7 @@
3
3
 
4
4
  #pragma once
5
5
 
6
+ #include <cstdint>
6
7
  #include <optional>
7
8
  #include <span>
8
9
  #include <stdexcept>
@@ -18,6 +18,10 @@ namespace ZXing {
18
18
 
19
19
  std::string BytesToUtf8(ByteView bytes, ECI eci)
20
20
  {
21
+ #if 0
22
+ (void)eci;
23
+ return std::string(bytes.begin(), bytes.end());
24
+ #else
21
25
  constexpr unsigned int replacement = 0xFFFD;
22
26
  constexpr unsigned int flags = ZUECI_FLAG_SB_STRAIGHT_THRU | ZUECI_FLAG_SJIS_STRAIGHT_THRU;
23
27
  int utf8_len;
@@ -49,6 +53,7 @@ std::string BytesToUtf8(ByteView bytes, ECI eci)
49
53
  assert(Size(utf8) == utf8_len);
50
54
 
51
55
  return utf8;
56
+ #endif
52
57
  }
53
58
 
54
59
  } // ZXing
@@ -23,6 +23,9 @@ namespace ZXing {
23
23
 
24
24
  void TextEncoder::GetBytes(const std::string& str, CharacterSet charset, std::string& bytes)
25
25
  {
26
+ #if 0
27
+ bytes = str;
28
+ #else
26
29
  int eci = ToInt(ToECI(charset));
27
30
  const int str_len = narrow_cast<int>(str.length());
28
31
  int eci_len;
@@ -61,6 +64,7 @@ void TextEncoder::GetBytes(const std::string& str, CharacterSet charset, std::st
61
64
  #endif // ZXING_USE_ZINT
62
65
 
63
66
  bytes.resize(eci_len); // Actual length
67
+ #endif
64
68
  }
65
69
 
66
70
  void TextEncoder::GetBytes(const std::wstring& str, CharacterSet charset, std::string& bytes)
@@ -8,6 +8,7 @@
8
8
  #include "Error.h"
9
9
 
10
10
  #include <algorithm>
11
+ #include <cassert>
11
12
  #include <charconv>
12
13
  #include <concepts>
13
14
  #include <cstring>
@@ -313,6 +314,19 @@ inline uint32_t ReverseBits32(uint32_t v)
313
314
  return v;
314
315
  }
315
316
 
317
+ template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
318
+ constexpr T& AppendBits(T& val, T bits, int count)
319
+ {
320
+ assert(count >= 0 && count <= int(sizeof(T) * 8) && (bits & ~((T(1) << count) - 1)) == 0);
321
+ return (val <<= count) |= bits;
322
+ }
323
+
324
+ template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
325
+ constexpr T& AppendBit(T& val, bool bit)
326
+ {
327
+ return AppendBits(val, static_cast<T>(bit), 1);
328
+ }
329
+
316
330
  // use to avoid "load of misaligned address" when using a simple type cast
317
331
  template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
318
332
  T LoadU(const void* ptr)
@@ -109,7 +109,7 @@ static std::optional<ConcentricPattern> LocateAztecCenter(const BitMatrix& image
109
109
  UpdateMinMax(minSpread, maxSpread, spread);
110
110
  }
111
111
 
112
- return ConcentricPattern{centered(cur.p), (maxSpread + minSpread) / 2};
112
+ return ConcentricPattern{centered(cur.p), (maxSpread + minSpread) / 2.0};
113
113
  }
114
114
 
115
115
  static std::vector<ConcentricPattern> FindPureFinderPattern(const BitMatrix& image)
@@ -164,8 +164,9 @@ Position EstimatePosition(const Pair& first, const Pair& last)
164
164
 
165
165
  int EstimateLineCount(const Pair& first, const Pair& last)
166
166
  {
167
- // see incrementLineCount() in ODReader.cpp for the -1 here
168
- return std::min(first.count, last.count) - 1 + IsStacked(first, last);
167
+ // see ODReader.cpp 'lineCount++' and Barcode::operator==() for the -2 here
168
+ // TODO: this is a bit of a hack... implement a proper Pair clustering
169
+ return std::max(0, std::min(first.count, last.count) - 2) + IsStacked(first, last);
169
170
  }
170
171
 
171
172
  } // namespace ZXing::OneD::DataBar
@@ -138,18 +138,21 @@ static bool ChecksumIsValid(Pair leftPair, Pair rightPair)
138
138
  return a == b && Value(leftPair, rightPair) <= 9999999999999LL; // 13 digits
139
139
  }
140
140
 
141
- static bool PositionIsPlausible(Pair l, Pair r)
141
+ static bool PositionIsPlausible(const Pair& l, const Pair& r)
142
142
  {
143
143
  int wl = l.xStop - l.xStart;
144
144
  int wr = r.xStop - r.xStart;
145
145
  int h = std::abs(l.y - r.y);
146
+ int dxl = std::abs(l.xStart - r.xStart);
147
+ int dxr = std::abs(l.xStop - r.xStart);
146
148
 
147
149
  // - the pairs must be wider than the stack is high
148
150
  // - the pairs must be roughly of the same width
149
- return h < wl && h < wr && wl > wr / 2 && wr > wl / 2;
151
+ // - the pairs x positions must be sufficiently aligned (i.e. the stack is not too slanted)
152
+ return h < wl && h < wr && wl > wr / 2 && wr > wl / 2 && (dxl < wl / 2 || dxr < wr / 2);
150
153
  }
151
154
 
152
- static std::string ConstructText(Pair leftPair, Pair rightPair)
155
+ static std::string ConstructText(const Pair& leftPair, const Pair& rightPair)
153
156
  {
154
157
  auto txt = ToString(Value(leftPair, rightPair), 13);
155
158
  // see ISO/IEC 24724:2011 Section 9
@@ -193,7 +196,9 @@ BarcodeData DataBarReader::decodePattern(int rowNumber, PatternView& next, std::
193
196
  if (IsLeftPair(next)) {
194
197
  if (auto leftPair = ReadPair(next, false)) {
195
198
  leftPair.y = rowNumber;
196
- prevState->leftPairs.insert(leftPair);
199
+ auto [it, inserted] = prevState->leftPairs.insert(leftPair);
200
+ if (!inserted)
201
+ const_cast<Pair&>(*it).count++;
197
202
  next.shift(FULL_PAIR_SIZE - 1);
198
203
  }
199
204
  }
@@ -201,7 +206,9 @@ BarcodeData DataBarReader::decodePattern(int rowNumber, PatternView& next, std::
201
206
  if (next.shift(1) && IsRightPair(next)) {
202
207
  if (auto rightPair = ReadPair(next, true)) {
203
208
  rightPair.y = rowNumber;
204
- prevState->rightPairs.insert(rightPair);
209
+ auto [it, inserted] = prevState->rightPairs.insert(rightPair);
210
+ if (!inserted)
211
+ const_cast<Pair&>(*it).count++;
205
212
  next.shift(FULL_PAIR_SIZE + 2);
206
213
  }
207
214
  }
@@ -209,7 +216,8 @@ BarcodeData DataBarReader::decodePattern(int rowNumber, PatternView& next, std::
209
216
 
210
217
  for (const auto& leftPair : prevState->leftPairs)
211
218
  for (const auto& rightPair : prevState->rightPairs)
212
- if (ChecksumIsValid(leftPair, rightPair) && PositionIsPlausible(leftPair, rightPair)) {
219
+ if (ChecksumIsValid(leftPair, rightPair) && PositionIsPlausible(leftPair, rightPair) && leftPair.count > 1
220
+ && rightPair.count > 1) {
213
221
  // Symbology identifier ISO/IEC 24724:2011 Section 9 and GS1 General Specifications 5.1.3 Figure 5.1.3-2
214
222
  auto res = BarcodeData{.content = Content(ByteArray{ConstructText(leftPair, rightPair)}, {'e', '0', 0, AIFlag::GS1}),
215
223
  .position = EstimatePosition(leftPair, rightPair),
@@ -137,8 +137,8 @@ BarcodeData TelepenReader::decodePattern(int rowNumber, PatternView& next, std::
137
137
  raw.back(), next.pixelsInFront());
138
138
 
139
139
  for (int i = 0; i < 2; ++i)
140
- threshold[i] = wNum[i] && nNum[i] ? (wSum[i] / wNum[i] + nSum[i] / nNum[i]) / 2
141
- : nNum[i] ? 2 * nSum[i] / nNum[i]
140
+ threshold[i] = wNum[i] && nNum[i] ? ((wSum[i] + wNum[i] / 2) / wNum[i] + (nSum[i] + nNum[i] / 2) / nNum[i]) / 2
141
+ : nNum[i] ? (2 * nSum[i] + nNum[i] / 2) / nNum[i]
142
142
  : threshold[i];
143
143
  }
144
144