Download modules/objdetect/src/barcode_decoder/common/hybrid_binarizer.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/objdetect/src/barcode_decoder/common/hybrid_binarizer.hpp
- Command line
-
hf download hf://tgollogly/test/modules/objdetect/src/barcode_decoder/common/hybrid_binarizer.hpp
-
curl -L -o hybrid_binarizer.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/objdetect/src/barcode_decoder/common/hybrid_binarizer.hpp
837 Bytes
| // 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. | |
| // Modified from ZXing. Copyright ZXing authors. | |
| // Licensed under the Apache License, Version 2.0 (the "License"). | |
| namespace cv { | |
| namespace barcode { | |
| void hybridBinarization(const Mat &src, Mat &dst); | |
| void | |
| calculateThresholdForBlock(const std::vector<uchar> &luminances, int sub_width, int sub_height, int width, int height, | |
| const Mat &black_points, Mat &dst); | |
| Mat calculateBlackPoints(std::vector<uchar> luminances, int sub_width, int sub_height, int width, int height); | |
| } | |
| } | |