123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include <opencv2/opencv.hpp>
- #include <zxing/common/Counted.h>
- #include <zxing/Binarizer.h>
- #include <zxing/MultiFormatReader.h>
- #include <zxing/Result.h>
- #include <zxing/ReaderException.h>
- #include <zxing/common/GlobalHistogramBinarizer.h>
- #include <zxing/common/HybridBinarizer.h>
- #include <exception>
- #include <zxing/Exception.h>
- #include <zxing/common/IllegalArgumentException.h>
- #include <zxing/BinaryBitmap.h>
- #include <zxing/DecodeHints.h>
- #include <zxing/qrcode/QRCodeReader.h>
- #include <zxing/multi/qrcode/QRCodeMultiReader.h>
- #include <zxing/multi/ByQuadrantReader.h>
- #include <zxing/multi/MultipleBarcodeReader.h>
- #include <zxing/multi/GenericMultipleBarcodeReader.h>
- #include <string>
- using namespace std;
- using namespace zxing;
- using namespace zxing::multi;
- using namespace zxing::qrcode;
- namespace {
- bool more = false;
- bool test_mode = false;
- bool try_harder = false;
- bool search_multi = false;
- bool use_hybrid = false;
- bool use_global = false;
- bool verbose = false;
- }
- class CParseQRInfo
- {
- public:
- CParseQRInfo(void);
- ~CParseQRInfo(void);
- bool parseQRInfo(cv::Mat&greyImg, char*buffer, std::size_t len);
- };
|