FOSSredder 0.5.0
Loading...
Searching...
No Matches
opencv::DetectAdapter Class Reference

#include <DetectAdapter.h>

Static Public Member Functions

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.
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.

Detailed Description

Definition at line 20 of file DetectAdapter.h.

Member Function Documentation

◆ detectTables()

std::vector< ports::Table > opencv::DetectAdapter::detectTables ( const cv::Mat & img,
const std::string & imagePath,
std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger = nullptr )
static

Detects table structures in a source image.

Parameters
imgThe source image.
imagePathThe source image path used for debug output and tracing.
debuggerOptional debugger used for trace output.
Returns
The detected tables.

Definition at line 384 of file DetectAdapter.cpp.

Here is the caller graph for this function:

◆ detectTextBlocks()

std::vector< cv::Rect > opencv::DetectAdapter::detectTextBlocks ( const cv::Mat & img,
std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger = nullptr )
static

Detects text blocks in a source image.

Parameters
imgThe source image.
debuggerOptional debugger used for trace output.
Returns
The detected text block rectangles.

Definition at line 380 of file DetectAdapter.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: