zxing-cpp 2.1.0__tar.gz → 2.3.0__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.
- zxing_cpp-2.3.0/CMakeLists.txt +61 -0
- zxing_cpp-2.3.0/PKG-INFO +60 -0
- zxing_cpp-2.3.0/README.md +43 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/CMakeLists.txt +247 -143
- zxing-cpp-2.1.0/core/ZXVersion.h.in → zxing_cpp-2.3.0/core/Version.h.in +4 -5
- zxing_cpp-2.3.0/core/src/Barcode.cpp +248 -0
- zxing-cpp-2.1.0/core/src/Result.h → zxing_cpp-2.3.0/core/src/Barcode.h +49 -17
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BarcodeFormat.cpp +7 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BarcodeFormat.h +7 -3
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BinaryBitmap.cpp +2 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitArray.h +2 -4
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitHacks.h +17 -23
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitMatrix.cpp +0 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitMatrix.h +4 -6
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitMatrixCursor.h +1 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitMatrixIO.cpp +18 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitMatrixIO.h +2 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ByteMatrix.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/CharacterSet.cpp +4 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ConcentricFinder.cpp +18 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ConcentricFinder.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Content.cpp +20 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Content.h +1 -1
- zxing_cpp-2.3.0/core/src/DecodeHints.cpp +30 -0
- zxing_cpp-2.3.0/core/src/DecodeHints.h +10 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/DecoderResult.h +3 -1
- zxing_cpp-2.3.0/core/src/Error.cpp +29 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Error.h +20 -17
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GTIN.cpp +11 -12
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GTIN.h +4 -8
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Generator.h +6 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GenericGFPoly.cpp +5 -9
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GlobalHistogramBinarizer.cpp +4 -4
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GridSampler.cpp +8 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/HRI.cpp +33 -19
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/HybridBinarizer.cpp +162 -26
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ImageView.h +53 -8
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Matrix.h +9 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/MultiFormatReader.cpp +27 -25
- zxing_cpp-2.3.0/core/src/MultiFormatReader.h +37 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/MultiFormatWriter.cpp +7 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Pattern.h +54 -38
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Point.h +0 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Quadrilateral.h +11 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ReadBarcode.cpp +66 -38
- zxing_cpp-2.3.0/core/src/ReadBarcode.h +33 -0
- zxing_cpp-2.3.0/core/src/Reader.h +38 -0
- zxing-cpp-2.1.0/core/src/DecodeHints.h → zxing_cpp-2.3.0/core/src/ReaderOptions.h +25 -21
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/RegressionLine.h +14 -3
- zxing_cpp-2.3.0/core/src/Result.h +10 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextDecoder.cpp +0 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextUtfEncoding.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Utf.cpp +4 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/WhiteRectDetector.cpp +6 -5
- zxing_cpp-2.3.0/core/src/WriteBarcode.cpp +486 -0
- zxing_cpp-2.3.0/core/src/WriteBarcode.h +144 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ZXAlgorithms.h +13 -3
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ZXConfig.h +1 -1
- zxing_cpp-2.3.0/core/src/ZXVersion.h +10 -0
- zxing_cpp-2.3.0/core/src/ZXingC.cpp +430 -0
- zxing_cpp-2.3.0/core/src/ZXingC.h +323 -0
- zxing_cpp-2.3.0/core/src/ZXingCpp.cpp +48 -0
- zxing_cpp-2.3.0/core/src/ZXingCpp.h +30 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZDecoder.cpp +19 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZDetector.cpp +32 -10
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZDetector.h +0 -5
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZDetectorResult.h +7 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZEncoder.cpp +33 -6
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZEncoder.h +1 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZReader.cpp +14 -16
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZReader.h +2 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDecoder.cpp +13 -7
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDetector.cpp +72 -34
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMECEncoder.h +1 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMHighLevelEncoder.cpp +14 -10
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMHighLevelEncoder.h +3 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMReader.cpp +13 -13
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMReader.h +2 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMWriter.cpp +4 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMWriter.h +7 -0
- zxing_cpp-2.3.0/core/src/libzint/2of5.c +385 -0
- zxing_cpp-2.3.0/core/src/libzint/aztec.c +1352 -0
- zxing_cpp-2.3.0/core/src/libzint/aztec.h +169 -0
- zxing_cpp-2.3.0/core/src/libzint/big5.h +2175 -0
- zxing_cpp-2.3.0/core/src/libzint/channel_precalcs.h +112 -0
- zxing_cpp-2.3.0/core/src/libzint/code.c +914 -0
- zxing_cpp-2.3.0/core/src/libzint/code128.c +939 -0
- zxing_cpp-2.3.0/core/src/libzint/code128.h +52 -0
- zxing_cpp-2.3.0/core/src/libzint/common.c +968 -0
- zxing_cpp-2.3.0/core/src/libzint/common.h +334 -0
- zxing_cpp-2.3.0/core/src/libzint/dmatrix.c +1960 -0
- zxing_cpp-2.3.0/core/src/libzint/dmatrix.h +257 -0
- zxing_cpp-2.3.0/core/src/libzint/dmatrix_trace.h +155 -0
- zxing_cpp-2.3.0/core/src/libzint/dxfilmedge.c +344 -0
- zxing_cpp-2.3.0/core/src/libzint/eci.c +1134 -0
- zxing_cpp-2.3.0/core/src/libzint/eci.h +81 -0
- zxing_cpp-2.3.0/core/src/libzint/eci_sb.h +548 -0
- zxing_cpp-2.3.0/core/src/libzint/filemem.c +464 -0
- zxing_cpp-2.3.0/core/src/libzint/filemem.h +103 -0
- zxing_cpp-2.3.0/core/src/libzint/fonts/normal_woff2.h +786 -0
- zxing_cpp-2.3.0/core/src/libzint/fonts/upcean_woff2.h +137 -0
- zxing_cpp-2.3.0/core/src/libzint/gb18030.h +177 -0
- zxing_cpp-2.3.0/core/src/libzint/gb2312.h +1440 -0
- zxing_cpp-2.3.0/core/src/libzint/gbk.h +2202 -0
- zxing_cpp-2.3.0/core/src/libzint/general_field.c +208 -0
- zxing_cpp-2.3.0/core/src/libzint/general_field.h +51 -0
- zxing_cpp-2.3.0/core/src/libzint/gs1.c +1844 -0
- zxing_cpp-2.3.0/core/src/libzint/gs1.h +50 -0
- zxing_cpp-2.3.0/core/src/libzint/gs1_lint.h +1031 -0
- zxing_cpp-2.3.0/core/src/libzint/iso3166.h +89 -0
- zxing_cpp-2.3.0/core/src/libzint/iso4217.h +66 -0
- zxing_cpp-2.3.0/core/src/libzint/ksx1001.h +1897 -0
- zxing_cpp-2.3.0/core/src/libzint/large.c +321 -0
- zxing_cpp-2.3.0/core/src/libzint/large.h +87 -0
- zxing_cpp-2.3.0/core/src/libzint/library.c +2078 -0
- zxing_cpp-2.3.0/core/src/libzint/maxicode.c +752 -0
- zxing_cpp-2.3.0/core/src/libzint/maxicode.h +119 -0
- zxing_cpp-2.3.0/core/src/libzint/medical.c +377 -0
- zxing_cpp-2.3.0/core/src/libzint/output.c +1006 -0
- zxing_cpp-2.3.0/core/src/libzint/output.h +130 -0
- zxing_cpp-2.3.0/core/src/libzint/pdf417.c +1805 -0
- zxing_cpp-2.3.0/core/src/libzint/pdf417.h +71 -0
- zxing_cpp-2.3.0/core/src/libzint/pdf417_tabs.h +522 -0
- zxing_cpp-2.3.0/core/src/libzint/pdf417_trace.h +136 -0
- zxing_cpp-2.3.0/core/src/libzint/qr.c +2808 -0
- zxing_cpp-2.3.0/core/src/libzint/qr.h +339 -0
- zxing_cpp-2.3.0/core/src/libzint/raster.c +1435 -0
- zxing_cpp-2.3.0/core/src/libzint/raster_font.h +500 -0
- zxing_cpp-2.3.0/core/src/libzint/reedsol.c +376 -0
- zxing_cpp-2.3.0/core/src/libzint/reedsol.h +79 -0
- zxing_cpp-2.3.0/core/src/libzint/reedsol_logs.h +265 -0
- zxing_cpp-2.3.0/core/src/libzint/rss.c +1621 -0
- zxing_cpp-2.3.0/core/src/libzint/rss.h +296 -0
- zxing_cpp-2.3.0/core/src/libzint/sjis.h +1323 -0
- zxing_cpp-2.3.0/core/src/libzint/stubs.c +92 -0
- zxing_cpp-2.3.0/core/src/libzint/svg.c +360 -0
- zxing_cpp-2.3.0/core/src/libzint/upcean.c +986 -0
- zxing_cpp-2.3.0/core/src/libzint/vector.c +1026 -0
- zxing_cpp-2.3.0/core/src/libzint/zfiletypes.h +49 -0
- zxing_cpp-2.3.0/core/src/libzint/zint.h +496 -0
- zxing_cpp-2.3.0/core/src/libzint/zintconfig.h +43 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCReader.cpp +4 -5
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCReader.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCodabarReader.cpp +5 -6
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCodabarReader.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Reader.cpp +6 -8
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Reader.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Writer.cpp +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode39Reader.cpp +27 -23
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode39Reader.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode93Reader.cpp +6 -6
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode93Reader.h +1 -1
- zxing_cpp-2.3.0/core/src/oned/ODDXFilmEdgeReader.cpp +225 -0
- zxing_cpp-2.3.0/core/src/oned/ODDXFilmEdgeReader.h +26 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarCommon.cpp +14 -7
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarCommon.h +74 -8
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarExpandedBitDecoder.cpp +26 -25
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarExpandedReader.cpp +12 -15
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarExpandedReader.h +1 -1
- zxing_cpp-2.3.0/core/src/oned/ODDataBarLimitedReader.cpp +166 -0
- zxing_cpp-2.3.0/core/src/oned/ODDataBarLimitedReader.h +23 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarReader.cpp +30 -31
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarReader.h +1 -1
- zxing_cpp-2.3.0/core/src/oned/ODITFReader.cpp +94 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODITFReader.h +2 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODMultiUPCEANReader.cpp +14 -14
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODMultiUPCEANReader.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODReader.cpp +47 -33
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODReader.h +4 -4
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODRowReader.h +9 -9
- zxing_cpp-2.3.0/core/src/pdf417/PDFCodewordDecoder.cpp +534 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDecoder.cpp +2 -3
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDecoderResultExtra.h +2 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetector.cpp +6 -5
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFEncoder.cpp +1 -3
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFEncoder.h +1 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFHighLevelEncoder.cpp +6 -7
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFModulusPoly.cpp +7 -14
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFReader.cpp +29 -17
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFReader.h +2 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFScanningDecoder.cpp +9 -4
- {zxing-cpp-2.1.0/core/src → zxing_cpp-2.3.0/core/src/pdf417}/ZXNullable.h +1 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRBitMatrixParser.cpp +135 -34
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRBitMatrixParser.h +4 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRCodecMode.cpp +30 -9
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRCodecMode.h +3 -2
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDecoder.cpp +31 -16
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDetector.cpp +168 -12
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDetector.h +2 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QREncoder.cpp +4 -4
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRErrorCorrectionLevel.h +8 -0
- zxing_cpp-2.3.0/core/src/qrcode/QRFormatInformation.cpp +159 -0
- zxing_cpp-2.3.0/core/src/qrcode/QRFormatInformation.h +61 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRReader.cpp +46 -26
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRReader.h +2 -2
- zxing_cpp-2.3.0/core/src/qrcode/QRVersion.cpp +754 -0
- zxing_cpp-2.3.0/core/src/qrcode/QRVersion.h +127 -0
- zxing_cpp-2.3.0/setup.py +82 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing.cmake +6 -4
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing.cpp +258 -80
- zxing_cpp-2.3.0/zxing_cpp.egg-info/PKG-INFO +60 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing_cpp.egg-info/SOURCES.txt +81 -8
- zxing-cpp-2.1.0/CMakeLists.txt +0 -42
- zxing-cpp-2.1.0/PKG-INFO +0 -54
- zxing-cpp-2.1.0/README.md +0 -34
- zxing-cpp-2.1.0/core/src/DecodeHints.cpp +0 -11
- zxing-cpp-2.1.0/core/src/MultiFormatReader.h +0 -46
- zxing-cpp-2.1.0/core/src/ReadBarcode.h +0 -33
- zxing-cpp-2.1.0/core/src/Reader.h +0 -38
- zxing-cpp-2.1.0/core/src/Result.cpp +0 -199
- zxing-cpp-2.1.0/core/src/oned/ODITFReader.cpp +0 -83
- zxing-cpp-2.1.0/core/src/oned/ODRowReader.cpp +0 -17
- zxing-cpp-2.1.0/core/src/pdf417/PDFCodewordDecoder.cpp +0 -530
- zxing-cpp-2.1.0/core/src/qrcode/QRFormatInformation.cpp +0 -155
- zxing-cpp-2.1.0/core/src/qrcode/QRFormatInformation.h +0 -40
- zxing-cpp-2.1.0/core/src/qrcode/QRVersion.cpp +0 -408
- zxing-cpp-2.1.0/core/src/qrcode/QRVersion.h +0 -77
- zxing-cpp-2.1.0/setup.py +0 -83
- zxing-cpp-2.1.0/zxing_cpp.egg-info/PKG-INFO +0 -54
- zxing-cpp-2.1.0/zxing_cpp.egg-info/requires.txt +0 -1
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/MANIFEST.in +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/ZXingConfig.cmake.in +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BinaryBitmap.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitArray.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitSource.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/BitSource.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ByteArray.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/CharacterSet.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/DetectorResult.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ECI.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ECI.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Flags.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GenericGF.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GenericGF.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GenericGFPoly.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GlobalHistogramBinarizer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/GridSampler.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/HRI.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/HybridBinarizer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/LogMatrix.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/MultiFormatWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/PerspectiveTransform.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/PerspectiveTransform.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Range.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ReedSolomonDecoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ReedSolomonDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ReedSolomonEncoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ReedSolomonEncoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ResultPoint.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ResultPoint.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Scope.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/StructuredAppend.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextEncoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextEncoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TextUtfEncoding.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ThresholdBinarizer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/TritMatrix.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/Utf.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/WhiteRectDetector.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/ZXTestSupport.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZEncodingState.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZHighLevelEncoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZHighLevelEncoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZToken.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZToken.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/aztec/AZWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMBitLayout.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMBitLayout.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDataBlock.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDataBlock.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMDetector.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMECEncoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMEncoderContext.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMSymbolInfo.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMSymbolInfo.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMSymbolShape.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMVersion.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/datamatrix/DMVersion.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/README.md +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci.c +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_big5.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_common.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_gb18030.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_gb2312.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_gbk.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_ksx1001.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_sb.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/libzueci/zueci_sjis.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCBitMatrixParser.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCBitMatrixParser.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCDecoder.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/maxicode/MCDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCodabarWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCodabarWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Patterns.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Patterns.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode128Writer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode39Writer.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode39Writer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode93Writer.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODCode93Writer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODDataBarExpandedBitDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODEAN13Writer.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODEAN13Writer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODEAN8Writer.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODEAN8Writer.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODITFWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODITFWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCAWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCAWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCEANCommon.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCEANCommon.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCEWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODUPCEWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODWriterHelper.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/oned/ODWriterHelper.h +0 -0
- {zxing-cpp-2.1.0/core/src → zxing_cpp-2.3.0/core/src/pdf417}/CustomData.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFBarcodeMetadata.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFBarcodeValue.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFBarcodeValue.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFBoundingBox.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFBoundingBox.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFCodeword.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFCodewordDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFCompaction.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetectionResult.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetectionResult.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetectionResultColumn.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetectionResultColumn.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFDetector.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFHighLevelEncoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFModulusGF.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFModulusGF.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFModulusPoly.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFScanningDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/pdf417/PDFWriter.h +0 -0
- {zxing-cpp-2.1.0/core/src → zxing_cpp-2.3.0/core/src/pdf417}/ZXBigInteger.cpp +0 -0
- {zxing-cpp-2.1.0/core/src → zxing_cpp-2.3.0/core/src/pdf417}/ZXBigInteger.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDataBlock.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDataBlock.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDataMask.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRDecoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRECB.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QREncodeResult.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QREncoder.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRErrorCorrectionLevel.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRMaskUtil.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRMaskUtil.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRMatrixUtil.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRMatrixUtil.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRWriter.cpp +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/src/qrcode/QRWriter.h +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/core/zxing.pc.in +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/pyproject.toml +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/setup.cfg +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing_cpp.egg-info/dependency_links.txt +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing_cpp.egg-info/not-zip-safe +0 -0
- {zxing-cpp-2.1.0 → zxing_cpp-2.3.0}/zxing_cpp.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.18)
|
|
2
|
+
project(ZXingPython)
|
|
3
|
+
|
|
4
|
+
# check if we are called from the top-level ZXing project
|
|
5
|
+
get_directory_property(hasParent PARENT_DIRECTORY)
|
|
6
|
+
if (NOT hasParent)
|
|
7
|
+
# Build with C++20 by default (which enables position independent DataMatrix detection).
|
|
8
|
+
set(CMAKE_CXX_STANDARD 20)
|
|
9
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
10
|
+
# Allow the fallback to earlier versions if the compiler does not support it.
|
|
11
|
+
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
|
|
12
|
+
|
|
13
|
+
option (BUILD_SHARED_LIBS "Link python module to shared lib" OFF)
|
|
14
|
+
option (ZXING_READERS "Build with reader support (decoders)" ON)
|
|
15
|
+
set (ZXING_WRITERS "NEW" CACHE STRING "Build with old and/or new writer (encoder) backend (OFF/ON/OLD/NEW)")
|
|
16
|
+
set (ZXING_DEPENDENCIES "AUTO" CACHE STRING "Fetch from github or use locally installed (AUTO/GITHUB/LOCAL)")
|
|
17
|
+
option (ZXING_EXPERIMENTAL_API "Build with experimental API" ON)
|
|
18
|
+
option (ZXING_USE_BUNDLED_ZINT "Use the bundled libzint for barcode creation/generation" ON)
|
|
19
|
+
|
|
20
|
+
set(CORE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/core)
|
|
21
|
+
if(IS_SYMLINK ${CORE_PATH})
|
|
22
|
+
# This is needed because otherwise GCC resolves the symlink which causes paths to randomly
|
|
23
|
+
# be prefixed by /core or by /wrappers/python/core depending on include order.
|
|
24
|
+
set(CORE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../core)
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
if(EXISTS ${CORE_PATH})
|
|
28
|
+
add_subdirectory(${CORE_PATH} ZXing EXCLUDE_FROM_ALL)
|
|
29
|
+
include(${CMAKE_CURRENT_SOURCE_DIR}/zxing.cmake)
|
|
30
|
+
else()
|
|
31
|
+
message(FATAL_ERROR "Unable to locate zxing source code")
|
|
32
|
+
endif()
|
|
33
|
+
endif()
|
|
34
|
+
|
|
35
|
+
find_package(Python3 COMPONENTS Interpreter Development.Module REQUIRED) # see https://github.com/pybind/pybind11/issues/4785
|
|
36
|
+
set(PYBIND11_FINDPYTHON ON) # see https://github.com/pybind/pybind11/issues/4785
|
|
37
|
+
zxing_add_package(pybind11 pybind11 https://github.com/pybind/pybind11.git v2.13.6)
|
|
38
|
+
|
|
39
|
+
# build the python module
|
|
40
|
+
pybind11_add_module(zxingcpp zxing.cpp)
|
|
41
|
+
target_link_libraries(zxingcpp PRIVATE ZXing::ZXing)
|
|
42
|
+
|
|
43
|
+
if (ZXING_READERS AND ZXING_WRITERS)
|
|
44
|
+
add_test(NAME PythonTest COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test.py -v)
|
|
45
|
+
set_property(TEST PythonTest PROPERTY ENVIRONMENT PYTHONPATH=$<TARGET_FILE_DIR:zxingcpp>)
|
|
46
|
+
endif()
|
|
47
|
+
|
|
48
|
+
if (NOT DEFINED ZXING_PYTHON_INSTALL_BINDIR)
|
|
49
|
+
set(ZXING_PYTHON_INSTALL_BINDIR "${CMAKE_INSTALL_BINDIR}")
|
|
50
|
+
endif()
|
|
51
|
+
|
|
52
|
+
if (NOT DEFINED ZXING_PYTHON_INSTALL_LIBDIR)
|
|
53
|
+
set(ZXING_PYTHON_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
|
|
54
|
+
endif()
|
|
55
|
+
|
|
56
|
+
install(TARGETS zxingcpp
|
|
57
|
+
COMPONENT python
|
|
58
|
+
RUNTIME DESTINATION "${ZXING_PYTHON_INSTALL_BINDIR}"
|
|
59
|
+
LIBRARY DESTINATION "${ZXING_PYTHON_INSTALL_LIBDIR}"
|
|
60
|
+
ARCHIVE DESTINATION "${ZXING_PYTHON_INSTALL_LIBDIR}")
|
|
61
|
+
|
zxing_cpp-2.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: zxing-cpp
|
|
3
|
+
Version: 2.3.0
|
|
4
|
+
Summary: Python bindings for the zxing-cpp barcode library
|
|
5
|
+
Home-page: https://github.com/zxing-cpp/zxing-cpp
|
|
6
|
+
Author: ZXing-C++ Community
|
|
7
|
+
Author-email: zxingcpp@gmail.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Keywords: barcode
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
15
|
+
Requires-Python: >=3.6
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# Python bindings for zxing-cpp
|
|
19
|
+
|
|
20
|
+
[](https://pypi.org/project/zxing-cpp/)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install zxing-cpp
|
|
27
|
+
```
|
|
28
|
+
or
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python setup.py install
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Note**: To enable position independent and multi-symbol DataMatrix detection, the library needs to be compiled with a c++20 compiler. Unfortunately some build environments (currently the 32-bit builds for Linux) used by `cibuildwheel` to generate the binary wheels that are published on [pypi.org](https://pypi.org/project/zxing-cpp/) don't include a c++20 compiler. Best chance to enable proper DataMatrix support in that case is by installing from source:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install zxing-cpp --no-binary zxing-cpp
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
In that case or if there is no pre-build wheel available for your platform or python version or if you use `setup.py` directly, a suitable [build environment](https://github.com/zxing-cpp/zxing-cpp#build-instructions) including a c++ compiler is required.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
import cv2, zxingcpp
|
|
47
|
+
|
|
48
|
+
img = cv2.imread('test.png')
|
|
49
|
+
barcodes = zxingcpp.read_barcodes(img)
|
|
50
|
+
for barcode in barcodes:
|
|
51
|
+
print('Found barcode:'
|
|
52
|
+
f'\n Text: "{barcode.text}"'
|
|
53
|
+
f'\n Format: {barcode.format}'
|
|
54
|
+
f'\n Content: {barcode.content_type}'
|
|
55
|
+
f'\n Position: {barcode.position}')
|
|
56
|
+
if len(barcodes) == 0:
|
|
57
|
+
print("Could not find any barcode.")
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
To get a full list of available parameters for `read_barcodes` and `write_barcode` as well as the properties of the Barcode objects, have a look at the `PYBIND11_MODULE` definition in [this c++ source file](https://github.com/zxing-cpp/zxing-cpp/blob/master/wrappers/python/zxing.cpp).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Python bindings for zxing-cpp
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/zxing-cpp/)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pip install zxing-cpp
|
|
10
|
+
```
|
|
11
|
+
or
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
python setup.py install
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Note**: To enable position independent and multi-symbol DataMatrix detection, the library needs to be compiled with a c++20 compiler. Unfortunately some build environments (currently the 32-bit builds for Linux) used by `cibuildwheel` to generate the binary wheels that are published on [pypi.org](https://pypi.org/project/zxing-cpp/) don't include a c++20 compiler. Best chance to enable proper DataMatrix support in that case is by installing from source:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install zxing-cpp --no-binary zxing-cpp
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
In that case or if there is no pre-build wheel available for your platform or python version or if you use `setup.py` directly, a suitable [build environment](https://github.com/zxing-cpp/zxing-cpp#build-instructions) including a c++ compiler is required.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import cv2, zxingcpp
|
|
30
|
+
|
|
31
|
+
img = cv2.imread('test.png')
|
|
32
|
+
barcodes = zxingcpp.read_barcodes(img)
|
|
33
|
+
for barcode in barcodes:
|
|
34
|
+
print('Found barcode:'
|
|
35
|
+
f'\n Text: "{barcode.text}"'
|
|
36
|
+
f'\n Format: {barcode.format}'
|
|
37
|
+
f'\n Content: {barcode.content_type}'
|
|
38
|
+
f'\n Position: {barcode.position}')
|
|
39
|
+
if len(barcodes) == 0:
|
|
40
|
+
print("Could not find any barcode.")
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
To get a full list of available parameters for `read_barcodes` and `write_barcode` as well as the properties of the Barcode objects, have a look at the `PYBIND11_MODULE` definition in [this c++ source file](https://github.com/zxing-cpp/zxing-cpp/blob/master/wrappers/python/zxing.cpp).
|