rhodes 5.5.15 → 5.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +48 -13
- data/doc/oss/WM_CE_Installation_And_Build_Guidelines.md +1 -1
- data/lib/commonAPI/barcode/ext.yml +6 -2
- data/lib/commonAPI/barcode/ext/barcode.xml +1 -1
- data/lib/commonAPI/barcode/ext/build.bat +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +90 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Rakefile +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/barcode.qrc +10 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonRetry.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonSave.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/scanner_sound.wav +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogBuilder.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/Barcode_impl.cpp +109 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.h +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.cpp +131 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +277 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing_global.h +13 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/qzxing.cpp +303 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.cc +405 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.hh +215 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.cc +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.hh +25 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerLibrary.hh +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.cc +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.hh +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.cc +697 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.hh +418 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.cc +125 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.hh +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/ChangeLog +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/NumberlikeArray.hh +177 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/README +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/iconv.h +14 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/msvc/stdint.h +247 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/win_iconv.c +2035 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.h +60 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.h +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.cpp +148 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.h +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.cpp +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.cpp +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/IllegalStateException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.cpp +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.cpp +124 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/NotFoundException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.h +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ReaderException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.cpp +66 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultIO.cpp +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.cpp +108 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.cpp +26 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/WriterException.h +17 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ZXing.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/AztecDecoder.cpp +495 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/Decoder.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/AztecDetector.cpp +548 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/Detector.h +92 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Array.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.cpp +237 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.h +97 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArrayIO.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.cpp +143 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.h +91 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.cpp +76 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.h +74 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.cpp +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Counted.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.cpp +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.cpp +212 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.cpp +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.cpp +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.cpp +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.cpp +226 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.h +67 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.cpp +27 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Point.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.cpp +61 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.cpp +198 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/JavaMath.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MathUtils.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.cpp +330 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.cpp +150 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.h +73 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.cpp +218 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +174 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixVersion.cpp +199 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/Version.h +87 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataBlock.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixBitMatrixParser.cpp +361 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDataBlock.cpp +113 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp +416 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecoder.cpp +93 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DecodedBitStreamParser.h +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/Decoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/CornerPoint.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixCornerPoint.cpp +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetector.cpp +447 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetectorException.cpp +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/Detector.h +94 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DetectorException.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.cpp +75 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.h +42 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.cpp +137 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.cpp +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.cpp +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp +236 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.cpp +340 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.cpp +497 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.cpp +329 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.h +63 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.cpp +293 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.h +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.cpp +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.cpp +65 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.cpp +337 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.cpp +96 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.h +38 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.cpp +110 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.cpp +228 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.h +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.cpp +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.cpp +309 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.h +88 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.cpp +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.cpp +170 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/BitMatrixParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/DecodedBitStreamParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/Decoder.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417BitMatrixParser.cpp +997 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417DecodedBitStreamParser.cpp +563 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417Decoder.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.cpp +214 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.h +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.cpp +120 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.cpp +284 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/Detector.h +106 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.cpp +719 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.h +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/PDF417Detector.cpp +664 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/ErrorCorrectionLevel.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/FormatInformation.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.cpp +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRErrorCorrectionLevel.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRFormatInformation.cpp +117 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRVersion.cpp +566 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/Version.h +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataBlock.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataMask.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DecodedBitStreamParser.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Decoder.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Mode.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRBitMatrixParser.cpp +183 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataBlock.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataMask.cpp +159 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecodedBitStreamParser.cpp +433 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecoder.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRMode.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPattern.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/Detector.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPattern.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternFinder.h +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPattern.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPatternFinder.cpp +208 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRDetector.cpp +315 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPattern.cpp +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternFinder.cpp +638 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternInfo.cpp +41 -0
- data/lib/commonAPI/coreapi/ext.yml +1 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/network/Network.java +21 -7
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +10 -0
- data/lib/commonAPI/coreapi/ext/platform/wm/src/Registry.cpp +57 -7
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +11 -0
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
- data/lib/commonAPI/coreapi/ext/shared/qt/NavbarImpl.cpp +1 -1
- data/lib/commonAPI/coreapi/ext/system.xml +3 -0
- data/lib/commonAPI/coreapi/ext/webview.xml +0 -2
- data/lib/commonAPI/coreapi/public/api/rhonodejsapi.js +921 -0
- data/lib/commonAPI/mediacapture/ext.yml +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +3 -2
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +260 -230
- data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro +17 -5
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/mediacapture.qrc +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.cpp +11 -4
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.h +4 -7
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogView.h +1 -6
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraRefresher.h +54 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/Camera_impl.cpp +15 -21
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/ImageFilenameGetterResult.h +7 -2
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/cameradialogview.cpp +34 -32
- data/lib/extensions/zlib/ext/zlib.pro +11 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +36 -22
- data/platform/iphone/Classes/SimpleMainView.m +1 -1
- data/platform/shared/api_generator/MethodResult.cpp +22 -7
- data/platform/shared/api_generator/MethodResult.h +3 -1
- data/platform/shared/api_generator/iphone/CMethodResult.m +6 -2
- data/platform/shared/api_generator/js_helpers.cpp +19 -0
- data/platform/shared/api_generator/js_helpers.h +23 -0
- data/platform/shared/common/RhoConf.cpp +0 -1
- data/platform/shared/common/RhoPort.h +3 -0
- data/platform/shared/common/RhodesApp.cpp +46 -11
- data/platform/shared/common/RhodesApp.h +7 -0
- data/platform/shared/common/RhodesAppBase.cpp +5 -1
- data/platform/shared/common/RhodesAppBase.h +8 -1
- data/platform/shared/common/ThreadQueue.h +1 -1
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -0
- data/platform/shared/net/HttpServer.cpp +0 -1
- data/platform/shared/qt/RhoSimulator.pro +11 -0
- data/platform/shared/qt/RhoSimulator_dev.pro +12 -2
- data/platform/shared/qt/curl/curl.pro +10 -0
- data/platform/shared/qt/rhodes/guithreadfunchelper.h +29 -0
- data/platform/shared/qt/rhodes/iexecutable.h +9 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +10 -21
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +1 -1
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +15 -1
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +7 -7
- data/platform/shared/qt/rhodes/mainwindowinterface.h +12 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.cpp +96 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.h +54 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.cpp +45 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.h +47 -0
- data/platform/shared/qt/rhodes/newVersion/QWebEngineViewSelectionSuppressor.h +103 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +1181 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +194 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.cpp +107 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.h +40 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.cpp +51 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.h +52 -0
- data/platform/shared/qt/rhodes/newVersion/main.cpp +280 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.cpp +19 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.h +21 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.cpp +6 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.h +18 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.cpp → oldVersion/DateTimeDialog.cpp} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.h → oldVersion/DateTimeDialog.h} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.ui → oldVersion/DateTimeDialog.ui} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.cpp → oldVersion/ExternalWebView.cpp} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.h → oldVersion/ExternalWebView.h} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.ui → oldVersion/ExternalWebView.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtMainWindow.cpp → oldVersion/QtMainWindow.cpp} +4 -1
- data/platform/shared/qt/rhodes/{QtMainWindow.h → oldVersion/QtMainWindow.h} +8 -5
- data/platform/shared/qt/rhodes/{QtMainWindow.ui → oldVersion/QtMainWindow.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.cpp → oldVersion/QtNativeTabBar.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.h → oldVersion/QtNativeTabBar.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.cpp → oldVersion/QtWebInspector.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.h → oldVersion/QtWebInspector.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.ui → oldVersion/QtWebInspector.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.cpp → oldVersion/QtWebPage.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.h → oldVersion/QtWebPage.h} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.cpp → oldVersion/RhoNativeApiCall.cpp} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.h → oldVersion/RhoNativeApiCall.h} +0 -0
- data/platform/shared/qt/rhodes/{main.cpp → oldVersion/main.cpp} +2 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.cpp → oldVersion/qkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.h → oldVersion/qkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller_p.h → oldVersion/qkineticscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture.cpp → oldVersion/qtflickgesture.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture_p.h → oldVersion/qtflickgesture_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.cpp → oldVersion/qtscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.h → oldVersion/qtscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller_p.h → oldVersion/qtscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter.cpp → oldVersion/qtscrollerfilter.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter_p.h → oldVersion/qtscrollerfilter_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.cpp → oldVersion/qtscrollerproperties.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.h → oldVersion/qtscrollerproperties.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties_p.h → oldVersion/qtscrollerproperties_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.cpp → oldVersion/qtscrollevent.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.h → oldVersion/qtscrollevent.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent_p.h → oldVersion/qtscrollevent_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.cpp → oldVersion/qwebviewkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.h → oldVersion/qwebviewkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewselectionsuppressor.h → oldVersion/qwebviewselectionsuppressor.h} +0 -0
- data/platform/shared/qt/rhodes/rhodes.pro +92 -47
- data/platform/shared/qt/rholib/rholib.pro +32 -19
- data/platform/shared/qt/rubylib/rubylib.pro +12 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +11 -1
- data/platform/shared/qt/syncengine/syncengine.pro +10 -0
- data/platform/shared/ruby/eval.c +2 -4
- data/platform/shared/ruby/eval_intern.h +12 -0
- data/platform/shared/ruby/ext/rho/extensions.c +6 -2
- data/platform/shared/ruby/include/ruby/missing.h +6 -4
- data/platform/shared/ruby/io.c +27 -0
- data/platform/shared/ruby/numeric.c +5 -2
- data/platform/shared/ruby/time.c +4 -0
- data/platform/shared/ruby/win32/win32 backup.c +5808 -0
- data/platform/shared/ruby/win32/win32.c +2254 -2131
- data/platform/shared/unzip/deflate.cpp +6 -1
- data/platform/shared/unzip/gunzip.cpp +1 -1
- data/platform/shared/unzip/unzip.cpp +3 -6
- data/platform/shared/unzip/zip.cpp +1 -25
- data/platform/shared/unzip/zutil.cpp +1 -1
- data/platform/shared/unzip/zutil.h +1 -1
- data/platform/win32/RhoSimulator/rho/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rho/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rho/rholog.txt_pos +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/rholog.txt_pos +0 -0
- data/platform/wm/build/build_inf.js +7 -3
- data/platform/wm/build/wm.rake +96 -30
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -1
- data/rakefile.rb +48 -13
- data/res/generators/rhogen.rb +87 -8
- data/res/generators/templates/api/cpp/montana_js_wrap.cpp +1 -1
- data/res/generators/templates/application/nodejs/main.js +501 -0
- data/res/generators/templates/application/nodejs/rhoapp.js +71 -0
- data/res/generators/templates/application/nodejs/server/app.js +19 -0
- data/res/generators/templates/application/nodejs/server/package.json +16 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css +587 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css +6757 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.eot +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.svg +288 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.js +2377 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.min.js +7 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/npm.js +13 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.js +4 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.map +1 -0
- data/res/generators/templates/application/nodejs_build.yml +76 -0
- data/res/generators/templates/application/nodejs_rhoconfig.txt +137 -0
- data/version +1 -1
- metadata +345 -77
- data/platform/win32/RhoSimulator/D3Dcompiler_46.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5MultimediaWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5OpenGL.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sensors.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sql.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5V8.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKit.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKitWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/icudt52.dll +0 -0
- data/platform/win32/RhoSimulator/icuin52.dll +0 -0
- data/platform/win32/RhoSimulator/icuuc52.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qmng.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESv2.dll +0 -0
- data/platform/win32/RhoSimulator/libeay32.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp110.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr110.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vccorlib110.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp110.dll +0 -0
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.h
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
#ifndef __LINESSAMPLER_H__
|
2
|
+
#define __LINESSAMPLER_H__
|
3
|
+
|
4
|
+
/*
|
5
|
+
* Copyright 2010 ZXing authors All rights reserved.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/
|
19
|
+
|
20
|
+
#include <map>
|
21
|
+
#include <zxing/common/BitMatrix.h>
|
22
|
+
#include <zxing/ResultPoint.h>
|
23
|
+
#include <zxing/common/Point.h>
|
24
|
+
|
25
|
+
namespace zxing {
|
26
|
+
namespace pdf417 {
|
27
|
+
namespace detector {
|
28
|
+
|
29
|
+
class LinesSampler {
|
30
|
+
private:
|
31
|
+
static const int MODULES_IN_SYMBOL = 17;
|
32
|
+
static const int BARS_IN_SYMBOL = 8;
|
33
|
+
static const int POSSIBLE_SYMBOLS = 2787;
|
34
|
+
static const std::vector<float> RATIOS_TABLE;
|
35
|
+
static std::vector<float> init_ratios_table();
|
36
|
+
static const int BARCODE_START_OFFSET = 2;
|
37
|
+
|
38
|
+
Ref<BitMatrix> linesMatrix_;
|
39
|
+
int symbolsPerLine_;
|
40
|
+
int dimension_;
|
41
|
+
|
42
|
+
static std::vector<Ref<ResultPoint> > findVertices(Ref<BitMatrix> matrix, int rowStep);
|
43
|
+
static std::vector<Ref<ResultPoint> > findVertices180(Ref<BitMatrix> matrix, int rowStep);
|
44
|
+
|
45
|
+
static ArrayRef<int> findGuardPattern(Ref<BitMatrix> matrix,
|
46
|
+
int column,
|
47
|
+
int row,
|
48
|
+
int width,
|
49
|
+
bool whiteFirst,
|
50
|
+
const int pattern[],
|
51
|
+
int patternSize,
|
52
|
+
ArrayRef<int> counters);
|
53
|
+
static int patternMatchVariance(ArrayRef<int> counters, const int pattern[],
|
54
|
+
int maxIndividualVariance);
|
55
|
+
|
56
|
+
static void correctVertices(Ref<BitMatrix> matrix,
|
57
|
+
std::vector<Ref<ResultPoint> > &vertices,
|
58
|
+
bool upsideDown);
|
59
|
+
static void findWideBarTopBottom(Ref<BitMatrix> matrix,
|
60
|
+
std::vector<Ref<ResultPoint> > &vertices,
|
61
|
+
int offsetVertice,
|
62
|
+
int startWideBar,
|
63
|
+
int lenWideBar,
|
64
|
+
int lenPattern,
|
65
|
+
int nIncrement);
|
66
|
+
static void findCrossingPoint(std::vector<Ref<ResultPoint> > &vertices,
|
67
|
+
int idxResult,
|
68
|
+
int idxLineA1,int idxLineA2,
|
69
|
+
int idxLineB1,int idxLineB2,
|
70
|
+
Ref<BitMatrix> matrix);
|
71
|
+
static float computeModuleWidth(std::vector<Ref<ResultPoint> > &vertices);
|
72
|
+
static int computeDimension(Ref<ResultPoint> topLeft,
|
73
|
+
Ref<ResultPoint> topRight,
|
74
|
+
Ref<ResultPoint> bottomLeft,
|
75
|
+
Ref<ResultPoint> bottomRight,
|
76
|
+
float moduleWidth);
|
77
|
+
int computeYDimension(Ref<ResultPoint> topLeft,
|
78
|
+
Ref<ResultPoint> topRight,
|
79
|
+
Ref<ResultPoint> bottomLeft,
|
80
|
+
Ref<ResultPoint> bottomRight,
|
81
|
+
float moduleWidth);
|
82
|
+
|
83
|
+
Ref<BitMatrix> sampleLines(std::vector<Ref<ResultPoint> > const &vertices,
|
84
|
+
int dimensionY,
|
85
|
+
int dimension);
|
86
|
+
|
87
|
+
static void codewordsToBitMatrix(std::vector<std::vector<int> > &codewords,
|
88
|
+
Ref<BitMatrix> &matrix);
|
89
|
+
static int calculateClusterNumber(int codeword);
|
90
|
+
static Ref<BitMatrix> sampleGrid(Ref<BitMatrix> image,
|
91
|
+
int dimension);
|
92
|
+
static void computeSymbolWidths(std::vector<float>& symbolWidths,
|
93
|
+
const int symbolsPerLine, Ref<BitMatrix> linesMatrix);
|
94
|
+
static void linesMatrixToCodewords(std::vector<std::vector<int> > &clusterNumbers,
|
95
|
+
const int symbolsPerLine,
|
96
|
+
const std::vector<float> &symbolWidths,
|
97
|
+
Ref<BitMatrix> linesMatrix,
|
98
|
+
std::vector<std::vector<int> > &codewords);
|
99
|
+
static std::vector<std::vector<std::map<int, int> > >
|
100
|
+
distributeVotes(const int symbolsPerLine,
|
101
|
+
const std::vector<std::vector<int> >& codewords,
|
102
|
+
const std::vector<std::vector<int> >& clusterNumbers);
|
103
|
+
static std::vector<int>
|
104
|
+
findMissingLines(const int symbolsPerLine,
|
105
|
+
std::vector<std::vector<int> > &detectedCodeWords);
|
106
|
+
static int decodeRowCount(const int symbolsPerLine,
|
107
|
+
std::vector<std::vector<int> > &detectedCodeWords,
|
108
|
+
std::vector<int> &insertLinesAt);
|
109
|
+
|
110
|
+
static int round(float d);
|
111
|
+
static Point intersection(Line a, Line b);
|
112
|
+
|
113
|
+
public:
|
114
|
+
LinesSampler(Ref<BitMatrix> linesMatrix, int dimension);
|
115
|
+
Ref<BitMatrix> sample();
|
116
|
+
};
|
117
|
+
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
#endif // __LINESSAMPLER_H__
|
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/PDF417Detector.cpp
ADDED
@@ -0,0 +1,664 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* Copyright 2010 ZXing authors All rights reserved.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
#include <algorithm>
|
18
|
+
#include <limits>
|
19
|
+
#include <zxing/pdf417/detector/Detector.h>
|
20
|
+
#include <zxing/pdf417/detector/LinesSampler.h>
|
21
|
+
#include <zxing/common/GridSampler.h>
|
22
|
+
#include <zxing/common/detector/JavaMath.h>
|
23
|
+
#include <zxing/common/detector/MathUtils.h>
|
24
|
+
|
25
|
+
using std::max;
|
26
|
+
using std::abs;
|
27
|
+
using std::numeric_limits;
|
28
|
+
using zxing::pdf417::detector::Detector;
|
29
|
+
using zxing::common::detector::Math;
|
30
|
+
using zxing::common::detector::MathUtils;
|
31
|
+
using zxing::Ref;
|
32
|
+
using zxing::ArrayRef;
|
33
|
+
using zxing::DetectorResult;
|
34
|
+
using zxing::ResultPoint;
|
35
|
+
using zxing::Point;
|
36
|
+
using zxing::BitMatrix;
|
37
|
+
using zxing::GridSampler;
|
38
|
+
|
39
|
+
// VC++
|
40
|
+
|
41
|
+
using zxing::BinaryBitmap;
|
42
|
+
using zxing::DecodeHints;
|
43
|
+
using zxing::Line;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* <p>Encapsulates logic that can detect a PDF417 Code in an image, even if the
|
47
|
+
* PDF417 Code is rotated or skewed, or partially obscured.</p>
|
48
|
+
*
|
49
|
+
* @author SITA Lab (kevin.osullivan@sita.aero)
|
50
|
+
* @author Daniel Switkin (dswitkin@google.com)
|
51
|
+
* @author Schweers Informationstechnologie GmbH (hartmut.neubauer@schweers.de)
|
52
|
+
* @author creatale GmbH (christoph.schulz@creatale.de)
|
53
|
+
*/
|
54
|
+
|
55
|
+
const int Detector::MAX_AVG_VARIANCE= (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.42f);
|
56
|
+
const int Detector::MAX_INDIVIDUAL_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.8f);
|
57
|
+
|
58
|
+
// B S B S B S B S Bar/Space pattern
|
59
|
+
// 11111111 0 1 0 1 0 1 000
|
60
|
+
const int Detector::START_PATTERN[] = {8, 1, 1, 1, 1, 1, 1, 3};
|
61
|
+
const int Detector::START_PATTERN_LENGTH = sizeof(START_PATTERN) / sizeof(int);
|
62
|
+
|
63
|
+
// 11111111 0 1 0 1 0 1 000
|
64
|
+
const int Detector::START_PATTERN_REVERSE[] = {3, 1, 1, 1, 1, 1, 1, 8};
|
65
|
+
const int Detector::START_PATTERN_REVERSE_LENGTH = sizeof(START_PATTERN_REVERSE) / sizeof(int);
|
66
|
+
|
67
|
+
// 1111111 0 1 000 1 0 1 00 1
|
68
|
+
const int Detector::STOP_PATTERN[] = {7, 1, 1, 3, 1, 1, 1, 2, 1};
|
69
|
+
const int Detector::STOP_PATTERN_LENGTH = sizeof(STOP_PATTERN) / sizeof(int);
|
70
|
+
|
71
|
+
// B S B S B S B S B Bar/Space pattern
|
72
|
+
// 1111111 0 1 000 1 0 1 00 1
|
73
|
+
const int Detector::STOP_PATTERN_REVERSE[] = {1, 2, 1, 1, 1, 3, 1, 1, 7};
|
74
|
+
const int Detector::STOP_PATTERN_REVERSE_LENGTH = sizeof(STOP_PATTERN_REVERSE) / sizeof(int);
|
75
|
+
|
76
|
+
Detector::Detector(Ref<BinaryBitmap> image) : image_(image) {}
|
77
|
+
|
78
|
+
Ref<DetectorResult> Detector::detect() {
|
79
|
+
return detect(DecodeHints());
|
80
|
+
}
|
81
|
+
|
82
|
+
Ref<DetectorResult> Detector::detect(DecodeHints const& hints) {
|
83
|
+
(void)hints;
|
84
|
+
// Fetch the 1 bit matrix once up front.
|
85
|
+
Ref<BitMatrix> matrix = image_->getBlackMatrix();
|
86
|
+
|
87
|
+
// Try to find the vertices assuming the image is upright.
|
88
|
+
const int rowStep = 8;
|
89
|
+
ArrayRef< Ref<ResultPoint> > vertices (findVertices(matrix, rowStep));
|
90
|
+
if (!vertices) {
|
91
|
+
// Maybe the image is rotated 180 degrees?
|
92
|
+
vertices = findVertices180(matrix, rowStep);
|
93
|
+
if (vertices) {
|
94
|
+
correctVertices(matrix, vertices, true);
|
95
|
+
}
|
96
|
+
} else {
|
97
|
+
correctVertices(matrix, vertices, false);
|
98
|
+
}
|
99
|
+
|
100
|
+
if (!vertices) {
|
101
|
+
throw NotFoundException("No vertices found.");
|
102
|
+
}
|
103
|
+
|
104
|
+
float moduleWidth = computeModuleWidth(vertices);
|
105
|
+
if (moduleWidth < 1.0f) {
|
106
|
+
throw NotFoundException("Bad module width.");
|
107
|
+
}
|
108
|
+
|
109
|
+
int dimension = computeDimension(vertices[12], vertices[14],
|
110
|
+
vertices[13], vertices[15], moduleWidth);
|
111
|
+
if (dimension < 1) {
|
112
|
+
throw NotFoundException("Bad dimension.");
|
113
|
+
}
|
114
|
+
|
115
|
+
int yDimension = max(computeYDimension(vertices[12], vertices[14],
|
116
|
+
vertices[13], vertices[15], moduleWidth), dimension);
|
117
|
+
|
118
|
+
// Deskew and sample lines from image.
|
119
|
+
Ref<BitMatrix> linesMatrix = sampleLines(vertices, dimension, yDimension);
|
120
|
+
Ref<BitMatrix> linesGrid(LinesSampler(linesMatrix, dimension).sample());
|
121
|
+
|
122
|
+
ArrayRef< Ref<ResultPoint> > points(4);
|
123
|
+
points[0] = vertices[5];
|
124
|
+
points[1] = vertices[4];
|
125
|
+
points[2] = vertices[6];
|
126
|
+
points[3] = vertices[7];
|
127
|
+
return Ref<DetectorResult>(new DetectorResult(linesGrid, points));
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Locate the vertices and the codewords area of a black blob using the Start
|
132
|
+
* and Stop patterns as locators.
|
133
|
+
*
|
134
|
+
* @param matrix the scanned barcode image.
|
135
|
+
* @param rowStep the step size for iterating rows (every n-th row).
|
136
|
+
* @return an array containing the vertices:
|
137
|
+
* vertices[0] x, y top left barcode
|
138
|
+
* vertices[1] x, y bottom left barcode
|
139
|
+
* vertices[2] x, y top right barcode
|
140
|
+
* vertices[3] x, y bottom right barcode
|
141
|
+
* vertices[4] x, y top left codeword area
|
142
|
+
* vertices[5] x, y bottom left codeword area
|
143
|
+
* vertices[6] x, y top right codeword area
|
144
|
+
* vertices[7] x, y bottom right codeword area
|
145
|
+
*/
|
146
|
+
ArrayRef< Ref<ResultPoint> > Detector::findVertices(Ref<BitMatrix> matrix, int rowStep)
|
147
|
+
{
|
148
|
+
const int height = matrix->getHeight();
|
149
|
+
const int width = matrix->getWidth();
|
150
|
+
|
151
|
+
ArrayRef< Ref<ResultPoint> > result(16);
|
152
|
+
bool found = false;
|
153
|
+
|
154
|
+
ArrayRef<int> counters(new Array<int>(START_PATTERN_LENGTH));
|
155
|
+
|
156
|
+
// Top Left
|
157
|
+
for (int i = 0; i < height; i += rowStep) {
|
158
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, width, false, START_PATTERN,
|
159
|
+
START_PATTERN_LENGTH, counters);
|
160
|
+
if (loc) {
|
161
|
+
result[0] = new ResultPoint((float)loc[0], (float)i);
|
162
|
+
result[4] = new ResultPoint((float)loc[1], (float)i);
|
163
|
+
found = true;
|
164
|
+
break;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
// Bottom left
|
168
|
+
if (found) { // Found the Top Left vertex
|
169
|
+
found = false;
|
170
|
+
for (int i = height - 1; i > 0; i -= rowStep) {
|
171
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, width, false, START_PATTERN,
|
172
|
+
START_PATTERN_LENGTH, counters);
|
173
|
+
if (loc) {
|
174
|
+
result[1] = new ResultPoint((float)loc[0], (float)i);
|
175
|
+
result[5] = new ResultPoint((float)loc[1], (float)i);
|
176
|
+
found = true;
|
177
|
+
break;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
counters = new Array<int>(STOP_PATTERN_LENGTH);
|
183
|
+
|
184
|
+
// Top right
|
185
|
+
if (found) { // Found the Bottom Left vertex
|
186
|
+
found = false;
|
187
|
+
for (int i = 0; i < height; i += rowStep) {
|
188
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, width, false, STOP_PATTERN,
|
189
|
+
STOP_PATTERN_LENGTH, counters);
|
190
|
+
if (loc) {
|
191
|
+
result[2] = new ResultPoint((float)loc[1], (float)i);
|
192
|
+
result[6] = new ResultPoint((float)loc[0], (float)i);
|
193
|
+
found = true;
|
194
|
+
break;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
// Bottom right
|
199
|
+
if (found) { // Found the Top right vertex
|
200
|
+
found = false;
|
201
|
+
for (int i = height - 1; i > 0; i -= rowStep) {
|
202
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, width, false, STOP_PATTERN,
|
203
|
+
STOP_PATTERN_LENGTH, counters);
|
204
|
+
if (loc) {
|
205
|
+
result[3] = new ResultPoint((float)loc[1], (float)i);
|
206
|
+
result[7] = new ResultPoint((float)loc[0], (float)i);
|
207
|
+
found = true;
|
208
|
+
break;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
return found ? result : ArrayRef< Ref<ResultPoint> >();
|
214
|
+
}
|
215
|
+
|
216
|
+
ArrayRef< Ref<ResultPoint> > Detector::findVertices180(Ref<BitMatrix> matrix, int rowStep) {
|
217
|
+
const int height = matrix->getHeight();
|
218
|
+
const int width = matrix->getWidth();
|
219
|
+
const int halfWidth = width >> 1;
|
220
|
+
|
221
|
+
ArrayRef< Ref<ResultPoint> > result(16);
|
222
|
+
bool found = false;
|
223
|
+
|
224
|
+
ArrayRef<int> counters = new Array<int>(START_PATTERN_REVERSE_LENGTH);
|
225
|
+
|
226
|
+
// Top Left
|
227
|
+
for (int i = height - 1; i > 0; i -= rowStep) {
|
228
|
+
ArrayRef<int> loc =
|
229
|
+
findGuardPattern(matrix, halfWidth, i, halfWidth, true, START_PATTERN_REVERSE,
|
230
|
+
START_PATTERN_REVERSE_LENGTH, counters);
|
231
|
+
if (loc) {
|
232
|
+
result[0] = new ResultPoint((float)loc[1], (float)i);
|
233
|
+
result[4] = new ResultPoint((float)loc[0], (float)i);
|
234
|
+
found = true;
|
235
|
+
break;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
// Bottom Left
|
239
|
+
if (found) { // Found the Top Left vertex
|
240
|
+
found = false;
|
241
|
+
for (int i = 0; i < height; i += rowStep) {
|
242
|
+
ArrayRef<int> loc =
|
243
|
+
findGuardPattern(matrix, halfWidth, i, halfWidth, true, START_PATTERN_REVERSE,
|
244
|
+
START_PATTERN_REVERSE_LENGTH, counters);
|
245
|
+
if (loc) {
|
246
|
+
result[1] = new ResultPoint((float)loc[1], (float)i);
|
247
|
+
result[5] = new ResultPoint((float)loc[0], (float)i);
|
248
|
+
found = true;
|
249
|
+
break;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
counters = new Array<int>(STOP_PATTERN_REVERSE_LENGTH);
|
255
|
+
|
256
|
+
// Top Right
|
257
|
+
if (found) { // Found the Bottom Left vertex
|
258
|
+
found = false;
|
259
|
+
for (int i = height - 1; i > 0; i -= rowStep) {
|
260
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, halfWidth, false, STOP_PATTERN_REVERSE,
|
261
|
+
STOP_PATTERN_REVERSE_LENGTH, counters);
|
262
|
+
if (loc) {
|
263
|
+
result[2] = new ResultPoint((float)loc[0], (float)i);
|
264
|
+
result[6] = new ResultPoint((float)loc[1], (float)i);
|
265
|
+
found = true;
|
266
|
+
break;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
// Bottom Right
|
271
|
+
if (found) { // Found the Top Right vertex
|
272
|
+
found = false;
|
273
|
+
for (int i = 0; i < height; i += rowStep) {
|
274
|
+
ArrayRef<int> loc = findGuardPattern(matrix, 0, i, halfWidth, false, STOP_PATTERN_REVERSE,
|
275
|
+
STOP_PATTERN_REVERSE_LENGTH, counters);
|
276
|
+
if (loc) {
|
277
|
+
result[3] = new ResultPoint((float)loc[0], (float)i);
|
278
|
+
result[7] = new ResultPoint((float)loc[1], (float)i);
|
279
|
+
found = true;
|
280
|
+
break;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
return found ? result : ArrayRef< Ref<ResultPoint> >();
|
286
|
+
}
|
287
|
+
|
288
|
+
/**
|
289
|
+
* @param matrix row of black/white values to search
|
290
|
+
* @param column x position to start search
|
291
|
+
* @param row y position to start search
|
292
|
+
* @param width the number of pixels to search on this row
|
293
|
+
* @param pattern pattern of counts of number of black and white pixels that are
|
294
|
+
* being searched for as a pattern
|
295
|
+
* @param counters array of counters, as long as pattern, to re-use
|
296
|
+
* @return start/end horizontal offset of guard pattern, as an array of two ints.
|
297
|
+
*/
|
298
|
+
ArrayRef<int> Detector::findGuardPattern(Ref<BitMatrix> matrix,
|
299
|
+
int column,
|
300
|
+
int row,
|
301
|
+
int width,
|
302
|
+
bool whiteFirst,
|
303
|
+
const int pattern[],
|
304
|
+
int patternSize,
|
305
|
+
ArrayRef<int>& counters) {
|
306
|
+
counters->values().assign(counters->size(), 0);
|
307
|
+
int patternLength = patternSize;
|
308
|
+
bool isWhite = whiteFirst;
|
309
|
+
|
310
|
+
int counterPosition = 0;
|
311
|
+
int patternStart = column;
|
312
|
+
for (int x = column; x < column + width; x++) {
|
313
|
+
bool pixel = matrix->get(x, row);
|
314
|
+
if (pixel ^ isWhite) {
|
315
|
+
counters[counterPosition]++;
|
316
|
+
} else {
|
317
|
+
if (counterPosition == patternLength - 1) {
|
318
|
+
if (patternMatchVariance(counters, pattern,
|
319
|
+
MAX_INDIVIDUAL_VARIANCE) < MAX_AVG_VARIANCE) {
|
320
|
+
ArrayRef<int> result = new Array<int>(2);
|
321
|
+
result[0] = patternStart;
|
322
|
+
result[1] = x;
|
323
|
+
return result;
|
324
|
+
}
|
325
|
+
patternStart += counters[0] + counters[1];
|
326
|
+
for(int i = 0; i < patternLength - 2; ++i)
|
327
|
+
counters[i] = counters[ i + 2];
|
328
|
+
counters[patternLength - 2] = 0;
|
329
|
+
counters[patternLength - 1] = 0;
|
330
|
+
counterPosition--;
|
331
|
+
} else {
|
332
|
+
counterPosition++;
|
333
|
+
}
|
334
|
+
counters[counterPosition] = 1;
|
335
|
+
isWhite = !isWhite;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
return ArrayRef<int>();
|
339
|
+
}
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Determines how closely a set of observed counts of runs of black/white
|
343
|
+
* values matches a given target pattern. This is reported as the ratio of
|
344
|
+
* the total variance from the expected pattern proportions across all
|
345
|
+
* pattern elements, to the length of the pattern.
|
346
|
+
*
|
347
|
+
* @param counters observed counters
|
348
|
+
* @param pattern expected pattern
|
349
|
+
* @param maxIndividualVariance The most any counter can differ before we give up
|
350
|
+
* @return ratio of total variance between counters and pattern compared to
|
351
|
+
* total pattern size, where the ratio has been multiplied by 256.
|
352
|
+
* So, 0 means no variance (perfect match); 256 means the total
|
353
|
+
* variance between counters and patterns equals the pattern length,
|
354
|
+
* higher values mean even more variance
|
355
|
+
*/
|
356
|
+
int Detector::patternMatchVariance(ArrayRef<int>& counters,
|
357
|
+
const int pattern[],
|
358
|
+
int maxIndividualVariance)
|
359
|
+
{
|
360
|
+
int numCounters = counters->size();
|
361
|
+
int total = 0;
|
362
|
+
int patternLength = 0;
|
363
|
+
for (int i = 0; i < numCounters; i++) {
|
364
|
+
total += counters[i];
|
365
|
+
patternLength += pattern[i];
|
366
|
+
}
|
367
|
+
if (total < patternLength) {
|
368
|
+
// If we don't even have one pixel per unit of bar width, assume this
|
369
|
+
// is too small to reliably match, so fail:
|
370
|
+
return numeric_limits<int>::max();
|
371
|
+
}
|
372
|
+
// We're going to fake floating-point math in integers. We just need to use more bits.
|
373
|
+
// Scale up patternLength so that intermediate values below like scaledCounter will have
|
374
|
+
// more "significant digits".
|
375
|
+
int unitBarWidth = (total << 8) / patternLength;
|
376
|
+
maxIndividualVariance = (maxIndividualVariance * unitBarWidth) >> 8;
|
377
|
+
|
378
|
+
int totalVariance = 0;
|
379
|
+
for (int x = 0; x < numCounters; x++) {
|
380
|
+
int counter = counters[x] << 8;
|
381
|
+
int scaledPattern = pattern[x] * unitBarWidth;
|
382
|
+
int variance = counter > scaledPattern ? counter - scaledPattern : scaledPattern - counter;
|
383
|
+
if (variance > maxIndividualVariance) {
|
384
|
+
return numeric_limits<int>::max();
|
385
|
+
}
|
386
|
+
totalVariance += variance;
|
387
|
+
}
|
388
|
+
return totalVariance / total;
|
389
|
+
}
|
390
|
+
|
391
|
+
/**
|
392
|
+
* <p>Correct the vertices by searching for top and bottom vertices of wide
|
393
|
+
* bars, then locate the intersections between the upper and lower horizontal
|
394
|
+
* line and the inner vertices vertical lines.</p>
|
395
|
+
*
|
396
|
+
* @param matrix the scanned barcode image.
|
397
|
+
* @param vertices the vertices vector is extended and the new members are:
|
398
|
+
* vertices[ 8] x,y point on upper border of left wide bar
|
399
|
+
* vertices[ 9] x,y point on lower border of left wide bar
|
400
|
+
* vertices[10] x,y point on upper border of right wide bar
|
401
|
+
* vertices[11] x,y point on lower border of right wide bar
|
402
|
+
* vertices[12] x,y final top left codeword area
|
403
|
+
* vertices[13] x,y final bottom left codeword area
|
404
|
+
* vertices[14] x,y final top right codeword area
|
405
|
+
* vertices[15] x,y final bottom right codeword area
|
406
|
+
* @param upsideDown true if rotated by 180 degree.
|
407
|
+
*/
|
408
|
+
void Detector::correctVertices(Ref<BitMatrix> matrix,
|
409
|
+
ArrayRef< Ref<ResultPoint> >& vertices,
|
410
|
+
bool upsideDown)
|
411
|
+
{
|
412
|
+
bool isLowLeft = abs(vertices[4]->getY() - vertices[5]->getY()) < 20.0;
|
413
|
+
bool isLowRight = abs(vertices[6]->getY() - vertices[7]->getY()) < 20.0;
|
414
|
+
if (isLowLeft || isLowRight) {
|
415
|
+
throw NotFoundException("Cannot find enough PDF417 guard patterns!");
|
416
|
+
} else {
|
417
|
+
findWideBarTopBottom(matrix, vertices, 0, 0, 8, 17, upsideDown ? 1 : -1);
|
418
|
+
findWideBarTopBottom(matrix, vertices, 1, 0, 8, 17, upsideDown ? -1 : 1);
|
419
|
+
findWideBarTopBottom(matrix, vertices, 2, 11, 7, 18, upsideDown ? 1 : -1);
|
420
|
+
findWideBarTopBottom(matrix, vertices, 3, 11, 7, 18, upsideDown ? -1 : 1);
|
421
|
+
findCrossingPoint(vertices, 12, 4, 5, 8, 10, matrix);
|
422
|
+
findCrossingPoint(vertices, 13, 4, 5, 9, 11, matrix);
|
423
|
+
findCrossingPoint(vertices, 14, 6, 7, 8, 10, matrix);
|
424
|
+
findCrossingPoint(vertices, 15, 6, 7, 9, 11, matrix);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
|
428
|
+
/**
|
429
|
+
* <p>Locate the top or bottom of one of the two wide black bars of a guard pattern.</p>
|
430
|
+
*
|
431
|
+
* <p>Warning: it only searches along the y axis, so the return points would not be
|
432
|
+
* right if the barcode is too curved.</p>
|
433
|
+
*
|
434
|
+
* @param matrix The bit matrix.
|
435
|
+
* @param vertices The 16 vertices located by findVertices(); the result
|
436
|
+
* points are stored into vertices[8], ... , vertices[11].
|
437
|
+
* @param offsetVertice The offset of the outer vertice and the inner
|
438
|
+
* vertice (+ 4) to be corrected and (+ 8) where the result is stored.
|
439
|
+
* @param startWideBar start of a wide bar.
|
440
|
+
* @param lenWideBar length of wide bar.
|
441
|
+
* @param lenPattern length of the pattern.
|
442
|
+
* @param rowStep +1 if corner should be exceeded towards the bottom, -1 towards the top.
|
443
|
+
*/
|
444
|
+
void Detector::findWideBarTopBottom(Ref<BitMatrix> matrix,
|
445
|
+
ArrayRef< Ref<ResultPoint> > &vertices,
|
446
|
+
int offsetVertice,
|
447
|
+
int startWideBar,
|
448
|
+
int lenWideBar,
|
449
|
+
int lenPattern,
|
450
|
+
int rowStep)
|
451
|
+
{
|
452
|
+
Ref<ResultPoint> verticeStart(vertices[offsetVertice]);
|
453
|
+
Ref<ResultPoint> verticeEnd(vertices[offsetVertice + 4]);
|
454
|
+
|
455
|
+
// Start horizontally at the middle of the bar.
|
456
|
+
int endWideBar = startWideBar + lenWideBar;
|
457
|
+
float barDiff = verticeEnd->getX() - verticeStart->getX();
|
458
|
+
float barStart = verticeStart->getX() + barDiff * (float)startWideBar / (float)lenPattern;
|
459
|
+
float barEnd = verticeStart->getX() + barDiff * (float)endWideBar / (float)lenPattern;
|
460
|
+
int x = Math::round((barStart + barEnd) / 2.0f);
|
461
|
+
|
462
|
+
// Start vertically between the preliminary vertices.
|
463
|
+
int yStart = Math::round(verticeStart->getY());
|
464
|
+
int y = yStart;
|
465
|
+
|
466
|
+
// Find offset of thin bar to the right as additional safeguard.
|
467
|
+
int nextBarX = int(max(barStart, barEnd) + 1);
|
468
|
+
for (; nextBarX < matrix->getWidth(); nextBarX++)
|
469
|
+
if (!matrix->get(nextBarX - 1, y) && matrix->get(nextBarX, y)) break;
|
470
|
+
nextBarX -= x;
|
471
|
+
|
472
|
+
bool isEnd = false;
|
473
|
+
while (!isEnd) {
|
474
|
+
if (matrix->get(x, y)) {
|
475
|
+
// If the thin bar to the right ended, stop as well
|
476
|
+
isEnd = !matrix->get(x + nextBarX, y) && !matrix->get(x + nextBarX + 1, y);
|
477
|
+
y += rowStep;
|
478
|
+
if (y <= 0 || y >= (int)matrix->getHeight() - 1) {
|
479
|
+
// End of barcode image reached.
|
480
|
+
isEnd = true;
|
481
|
+
}
|
482
|
+
} else {
|
483
|
+
// Look sidewise whether black bar continues? (in the case the image is skewed)
|
484
|
+
if (x > 0 && matrix->get(x - 1, y)) {
|
485
|
+
x--;
|
486
|
+
} else if (x < (int)matrix->getWidth() - 1 && matrix->get(x + 1, y)) {
|
487
|
+
x++;
|
488
|
+
} else {
|
489
|
+
// End of pattern regarding big bar and big gap reached.
|
490
|
+
isEnd = true;
|
491
|
+
if (y != yStart) {
|
492
|
+
// Turn back one step, because target has been exceeded.
|
493
|
+
y -= rowStep;
|
494
|
+
}
|
495
|
+
}
|
496
|
+
}
|
497
|
+
}
|
498
|
+
|
499
|
+
vertices[offsetVertice + 8] = new ResultPoint((float)x, (float)y);
|
500
|
+
}
|
501
|
+
|
502
|
+
/**
|
503
|
+
* <p>Finds the intersection of two lines.</p>
|
504
|
+
*
|
505
|
+
* @param vertices The reference of the vertices vector
|
506
|
+
* @param idxResult Index of result point inside the vertices vector.
|
507
|
+
* @param idxLineA1
|
508
|
+
* @param idxLineA2 Indices two points inside the vertices vector that define the first line.
|
509
|
+
* @param idxLineB1
|
510
|
+
* @param idxLineB2 Indices two points inside the vertices vector that define the second line.
|
511
|
+
* @param matrix: bit matrix, here only for testing whether the result is inside the matrix.
|
512
|
+
* @return Returns true when the result is valid and lies inside the matrix. Otherwise throws an
|
513
|
+
* exception.
|
514
|
+
**/
|
515
|
+
void Detector::findCrossingPoint(ArrayRef< Ref<ResultPoint> >& vertices,
|
516
|
+
int idxResult,
|
517
|
+
int idxLineA1, int idxLineA2,
|
518
|
+
int idxLineB1, int idxLineB2,
|
519
|
+
Ref<BitMatrix>& matrix)
|
520
|
+
{
|
521
|
+
Point p1(vertices[idxLineA1]->getX(), vertices[idxLineA1]->getY());
|
522
|
+
Point p2(vertices[idxLineA2]->getX(), vertices[idxLineA2]->getY());
|
523
|
+
Point p3(vertices[idxLineB1]->getX(), vertices[idxLineB1]->getY());
|
524
|
+
Point p4(vertices[idxLineB2]->getX(), vertices[idxLineB2]->getY());
|
525
|
+
|
526
|
+
Point result(intersection(Line(p1, p2), Line(p3, p4)));
|
527
|
+
if (result.x == numeric_limits<float>::infinity() ||
|
528
|
+
result.y == numeric_limits<float>::infinity()) {
|
529
|
+
throw NotFoundException("PDF:Detector: cannot find the crossing of parallel lines!");
|
530
|
+
}
|
531
|
+
|
532
|
+
int x = Math::round(result.x);
|
533
|
+
int y = Math::round(result.y);
|
534
|
+
if (x < 0 || x >= (int)matrix->getWidth() || y < 0 || y >= (int)matrix->getHeight()) {
|
535
|
+
throw NotFoundException("PDF:Detector: crossing points out of region!");
|
536
|
+
}
|
537
|
+
|
538
|
+
vertices[idxResult] = Ref<ResultPoint>(new ResultPoint(result.x, result.y));
|
539
|
+
}
|
540
|
+
|
541
|
+
/**
|
542
|
+
* Computes the intersection between two lines.
|
543
|
+
*/
|
544
|
+
Point Detector::intersection(Line a, Line b) {
|
545
|
+
float dxa = a.start.x - a.end.x;
|
546
|
+
float dxb = b.start.x - b.end.x;
|
547
|
+
float dya = a.start.y - a.end.y;
|
548
|
+
float dyb = b.start.y - b.end.y;
|
549
|
+
|
550
|
+
float p = a.start.x * a.end.y - a.start.y * a.end.x;
|
551
|
+
float q = b.start.x * b.end.y - b.start.y * b.end.x;
|
552
|
+
float denom = dxa * dyb - dya * dxb;
|
553
|
+
if(abs(denom) < 1e-12) // Lines don't intersect (replaces "denom == 0")
|
554
|
+
return Point(numeric_limits<float>::infinity(),
|
555
|
+
numeric_limits<float>::infinity());
|
556
|
+
|
557
|
+
float x = (p * dxb - dxa * q) / denom;
|
558
|
+
float y = (p * dyb - dya * q) / denom;
|
559
|
+
|
560
|
+
return Point(x, y);
|
561
|
+
}
|
562
|
+
|
563
|
+
/**
|
564
|
+
* <p>Estimates module size (pixels in a module) based on the Start and End
|
565
|
+
* finder patterns.</p>
|
566
|
+
*
|
567
|
+
* @param vertices an array of vertices:
|
568
|
+
* vertices[0] x, y top left barcode
|
569
|
+
* vertices[1] x, y bottom left barcode
|
570
|
+
* vertices[2] x, y top right barcode
|
571
|
+
* vertices[3] x, y bottom right barcode
|
572
|
+
* vertices[4] x, y top left codeword area
|
573
|
+
* vertices[5] x, y bottom left codeword area
|
574
|
+
* vertices[6] x, y top right codeword area
|
575
|
+
* vertices[7] x, y bottom right codeword area
|
576
|
+
* @return the module size.
|
577
|
+
*/
|
578
|
+
float Detector::computeModuleWidth(ArrayRef< Ref<ResultPoint> >& vertices) {
|
579
|
+
float pixels1 = ResultPoint::distance(vertices[0], vertices[4]);
|
580
|
+
float pixels2 = ResultPoint::distance(vertices[1], vertices[5]);
|
581
|
+
float moduleWidth1 = (pixels1 + pixels2) / (17 * 2.0f);
|
582
|
+
float pixels3 = ResultPoint::distance(vertices[6], vertices[2]);
|
583
|
+
float pixels4 = ResultPoint::distance(vertices[7], vertices[3]);
|
584
|
+
float moduleWidth2 = (pixels3 + pixels4) / (18 * 2.0f);
|
585
|
+
return (moduleWidth1 + moduleWidth2) / 2.0f;
|
586
|
+
}
|
587
|
+
|
588
|
+
/**
|
589
|
+
* Computes the dimension (number of modules in a row) of the PDF417 Code
|
590
|
+
* based on vertices of the codeword area and estimated module size.
|
591
|
+
*
|
592
|
+
* @param topLeft of codeword area
|
593
|
+
* @param topRight of codeword area
|
594
|
+
* @param bottomLeft of codeword area
|
595
|
+
* @param bottomRight of codeword are
|
596
|
+
* @param moduleWidth estimated module size
|
597
|
+
* @return the number of modules in a row.
|
598
|
+
*/
|
599
|
+
int Detector::computeDimension(Ref<ResultPoint> const& topLeft,
|
600
|
+
Ref<ResultPoint> const& topRight,
|
601
|
+
Ref<ResultPoint> const& bottomLeft,
|
602
|
+
Ref<ResultPoint> const& bottomRight,
|
603
|
+
float moduleWidth)
|
604
|
+
{
|
605
|
+
int topRowDimension = MathUtils::round(ResultPoint::distance(topLeft, topRight) / moduleWidth);
|
606
|
+
int bottomRowDimension =
|
607
|
+
MathUtils::round(ResultPoint::distance(bottomLeft, bottomRight) / moduleWidth);
|
608
|
+
return ((((topRowDimension + bottomRowDimension) >> 1) + 8) / 17) * 17;
|
609
|
+
}
|
610
|
+
|
611
|
+
/**
|
612
|
+
* Computes the y dimension (number of modules in a column) of the PDF417 Code
|
613
|
+
* based on vertices of the codeword area and estimated module size.
|
614
|
+
*
|
615
|
+
* @param topLeft of codeword area
|
616
|
+
* @param topRight of codeword area
|
617
|
+
* @param bottomLeft of codeword area
|
618
|
+
* @param bottomRight of codeword are
|
619
|
+
* @param moduleWidth estimated module size
|
620
|
+
* @return the number of modules in a row.
|
621
|
+
*/
|
622
|
+
int Detector::computeYDimension(Ref<ResultPoint> const& topLeft,
|
623
|
+
Ref<ResultPoint> const& topRight,
|
624
|
+
Ref<ResultPoint> const& bottomLeft,
|
625
|
+
Ref<ResultPoint> const& bottomRight,
|
626
|
+
float moduleWidth)
|
627
|
+
{
|
628
|
+
int leftColumnDimension =
|
629
|
+
MathUtils::round(ResultPoint::distance(topLeft, bottomLeft) / moduleWidth);
|
630
|
+
int rightColumnDimension =
|
631
|
+
MathUtils::round(ResultPoint::distance(topRight, bottomRight) / moduleWidth);
|
632
|
+
return (leftColumnDimension + rightColumnDimension) >> 1;
|
633
|
+
}
|
634
|
+
|
635
|
+
/**
|
636
|
+
* Deskew and over-sample image.
|
637
|
+
*
|
638
|
+
* @param vertices vertices from findVertices()
|
639
|
+
* @param dimension x dimension
|
640
|
+
* @param yDimension y dimension
|
641
|
+
* @return an over-sampled BitMatrix.
|
642
|
+
*/
|
643
|
+
Ref<BitMatrix> Detector::sampleLines(ArrayRef< Ref<ResultPoint> > const& vertices,
|
644
|
+
int dimensionY,
|
645
|
+
int dimension) {
|
646
|
+
const int sampleDimensionX = dimension * 8;
|
647
|
+
const int sampleDimensionY = dimensionY * 4;
|
648
|
+
Ref<PerspectiveTransform> transform(
|
649
|
+
PerspectiveTransform::quadrilateralToQuadrilateral(
|
650
|
+
0.0f, 0.0f,
|
651
|
+
(float)sampleDimensionX, 0.0f,
|
652
|
+
0.0f, (float)sampleDimensionY,
|
653
|
+
(float)sampleDimensionX, (float)sampleDimensionY,
|
654
|
+
vertices[12]->getX(), vertices[12]->getY(),
|
655
|
+
vertices[14]->getX(), vertices[14]->getY(),
|
656
|
+
vertices[13]->getX(), vertices[13]->getY(),
|
657
|
+
vertices[15]->getX(), vertices[15]->getY()));
|
658
|
+
|
659
|
+
Ref<BitMatrix> linesMatrix = GridSampler::getInstance().sampleGrid(
|
660
|
+
image_->getBlackMatrix(), sampleDimensionX, sampleDimensionY, transform);
|
661
|
+
|
662
|
+
|
663
|
+
return linesMatrix;
|
664
|
+
}
|