ParseQRInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include <opencv2/opencv.hpp>
  3. #include <zxing/common/Counted.h>
  4. #include <zxing/Binarizer.h>
  5. #include <zxing/MultiFormatReader.h>
  6. #include <zxing/Result.h>
  7. #include <zxing/ReaderException.h>
  8. #include <zxing/common/GlobalHistogramBinarizer.h>
  9. #include <zxing/common/HybridBinarizer.h>
  10. #include <exception>
  11. #include <zxing/Exception.h>
  12. #include <zxing/common/IllegalArgumentException.h>
  13. #include <zxing/BinaryBitmap.h>
  14. #include <zxing/DecodeHints.h>
  15. #include <zxing/qrcode/QRCodeReader.h>
  16. #include <zxing/multi/qrcode/QRCodeMultiReader.h>
  17. #include <zxing/multi/ByQuadrantReader.h>
  18. #include <zxing/multi/MultipleBarcodeReader.h>
  19. #include <zxing/multi/GenericMultipleBarcodeReader.h>
  20. #include <string>
  21. using namespace std;
  22. using namespace zxing;
  23. using namespace zxing::multi;
  24. using namespace zxing::qrcode;
  25. namespace {
  26. bool more = false;
  27. bool test_mode = false;
  28. bool try_harder = false;
  29. bool search_multi = false;
  30. bool use_hybrid = false;
  31. bool use_global = false;
  32. bool verbose = false;
  33. }
  34. class CParseQRInfo
  35. {
  36. public:
  37. CParseQRInfo(void);
  38. ~CParseQRInfo(void);
  39. bool parseQRInfo(cv::Mat&greyImg, char*buffer, std::size_t len);
  40. };