11#include <opencv2/opencv.hpp>
17namespace ports = core::ports::document_image_processing;
27 static ports::MaskResult
mask(
const ports::MaskRequest& req, std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger =
nullptr);
34 static cv::Mat
makeLineMask(
const cv::Mat& gray,
bool horizontal);
Request types for document image processing operations.
Result types for document image processing operations.
Port for writing optional diagnostic artifacts.
static ports::MaskResult mask(const ports::MaskRequest &req, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr)
Builds a whiteout mask for the requested image region.
static cv::Mat makeLineMask(const cv::Mat &gray, bool horizontal)
Creates a binary line mask for text or table detection.