Download modules/objdetect/src/graphical_code_detector_impl.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/objdetect/src/graphical_code_detector_impl.hpp
- Command line
-
hf download hf://tgollogly/test/modules/objdetect/src/graphical_code_detector_impl.hpp
-
curl -L -o graphical_code_detector_impl.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/objdetect/src/graphical_code_detector_impl.hpp
1.5 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html | |
| namespace cv { | |
| struct GraphicalCodeDetector::Impl { | |
| virtual ~Impl() {} | |
| virtual bool detect(InputArray img, OutputArray points) const = 0; | |
| virtual std::string decode(InputArray img, InputArray points, OutputArray straight_code) const = 0; | |
| virtual std::string detectAndDecode(InputArray img, OutputArray points, OutputArray straight_code) const = 0; | |
| virtual bool detectMulti(InputArray img, OutputArray points) const = 0; | |
| virtual bool decodeMulti(InputArray img, InputArray points, std::vector<std::string>& decoded_info, | |
| OutputArrayOfArrays straight_code) const = 0; | |
| virtual bool detectAndDecodeMulti(InputArray img, std::vector<std::string>& decoded_info, | |
| OutputArray points, OutputArrayOfArrays straight_code) const = 0; | |
| }; | |
| class QRCodeDecoder { | |
| public: | |
| virtual ~QRCodeDecoder(); | |
| static Ptr<QRCodeDecoder> create(); | |
| virtual bool decode(const Mat& straight, String& decoded_info) = 0; | |
| QRCodeEncoder::EncodeMode mode; | |
| QRCodeEncoder::ECIEncodings eci; | |
| uint8_t parity = 0; | |
| uint8_t sequence_num = 0; | |
| uint8_t total_num = 1; | |
| }; | |
| } | |