EstervQrCode 1.1.1
Library for qr code manipulation
barcode.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4 // Copyright (c) 2020-2021 darkliang wangberlinT Certseeds
5 
6 #ifndef OPENCV_OBJDETECT_BARCODE_HPP
7 #define OPENCV_OBJDETECT_BARCODE_HPP
8 
9 #include <opencv2/core.hpp>
10 #include <opencv2/objdetect/graphical_code_detector.hpp>
11 
12 namespace cv {
13 namespace barcode {
14 
17 
19 {
20 public:
32 
44  InputArray points,
45  CV_OUT std::vector<std::string> &decoded_info,
46  CV_OUT std::vector<std::string> &decoded_type) const;
47 
57  CV_OUT std::vector<std::string> &decoded_info,
58  CV_OUT std::vector<std::string> &decoded_type,
59  OutputArray points = noArray()) const;
60 
66 
76 
82 
91 
96  CV_WRAP double getGradientThreshold() const;
97 
106 };
108 
109 }} // cv::barcode::
110 
111 #endif // OPENCV_OBJDETECT_BARCODE_HPP
Definition: graphical_code_detector.hpp:14
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:296
Definition: barcode.hpp:19
CV_WRAP bool detectAndDecodeWithType(InputArray img, CV_OUT std::vector< std::string > &decoded_info, CV_OUT std::vector< std::string > &decoded_type, OutputArray points=noArray()) const
Both detects and decodes barcode.
CV_WRAP BarcodeDetector & setDownsamplingThreshold(double thresh)
Set detector downsampling threshold.
CV_WRAP BarcodeDetector()
Initialize the BarcodeDetector.
CV_WRAP double getDownsamplingThreshold() const
Get detector downsampling threshold.
CV_WRAP double getGradientThreshold() const
Get detector gradient magnitude threshold.
CV_WRAP BarcodeDetector(CV_WRAP_FILE_PATH const std::string &prototxt_path, CV_WRAP_FILE_PATH const std::string &model_path)
Initialize the BarcodeDetector.
CV_WRAP BarcodeDetector & setGradientThreshold(double thresh)
Set detector gradient magnitude threshold.
CV_WRAP void getDetectorScales(CV_OUT std::vector< float > &sizes) const
Returns detector box filter sizes.
CV_WRAP BarcodeDetector & setDetectorScales(const std::vector< float > &sizes)
Set detector box filter sizes.
CV_WRAP bool decodeWithType(InputArray img, InputArray points, CV_OUT std::vector< std::string > &decoded_info, CV_OUT std::vector< std::string > &decoded_type) const
Decodes barcode in image once it's found by the detect() method.
CV_EXPORTS InputOutputArray noArray()
CV__DEBUG_NS_END typedef const _InputArray & InputArray
Definition: mat.hpp:442
const int * sizes
Definition: core_c.h:440
#define CV_EXPORTS_W_SIMPLE
Definition: cvdef.h:473
#define CV_OUT
Definition: cvdef.h:478
#define CV_WRAP_FILE_PATH
Definition: cvdef.h:487
#define CV_WRAP
Definition: cvdef.h:481
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441