FOSSredder 0.5.0
Loading...
Searching...
No Matches
DetectAdapter.h
Go to the documentation of this file.
1
5
6#pragma once
7
9#include <opencv2/opencv.hpp>
10#include <string>
11#include <vector>
12#include <memory>
13
14namespace core::ports::diagnostics { class IDiagnostics; }
15
16namespace opencv {
17
18namespace ports = core::ports::document_image_processing;
19
21public:
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);
37};
38
39} // namespace opencv
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.