9#include <opencv2/opencv.hpp>
18namespace ports = core::ports::document_image_processing;
29 static std::vector<ports::Table>
detectTables(
const cv::Mat& img,
const std::string& imagePath, std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger =
nullptr);
36 static std::vector<cv::Rect>
detectTextBlocks(
const cv::Mat& img, std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger =
nullptr);
Shared geometry and table types for document image processing ports.
Port for writing optional diagnostic artifacts.
static std::vector< cv::Rect > detectTextBlocks(const cv::Mat &img, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr)
Detects text blocks in a source image.
static std::vector< ports::Table > detectTables(const cv::Mat &img, const std::string &imagePath, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr)
Detects table structures in a source image.