mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00

Moved barcode from opencv_contrib #23666 Merge with https://github.com/opencv/opencv_contrib/pull/3497 ##### TODO - [x] Documentation (bib) - [x] Tutorial (references) - [x] Sample app (refactored) - [x] Java (test passes) - [x] Python (test passes) - [x] Build without DNN
23 lines
837 B
C++
23 lines
837 B
C++
// 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").
|
|
|
|
#ifndef OPENCV_BARCODE_HYBRID_BINARIZER_HPP
|
|
#define OPENCV_BARCODE_HYBRID_BINARIZER_HPP
|
|
|
|
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);
|
|
}
|
|
}
|
|
#endif // OPENCV_BARCODE_HYBRID_BINARIZER_HPP
|