FOSSredder 0.5.0
Loading...
Searching...
No Matches
TesseractCore Class Reference

#include <TesseractCore.h>

Static Public Member Functions

static std::pair< core::ports::text_recognition::Text, std::vector< core::ports::text_recognition::Word > > extractFromBytes (const std::vector< uint8_t > &data, const std::string &tessdataPath, const core::ports::text_recognition::Settings &recognition, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr)
 Extracts recognized text and word-level OCR data from image bytes.

Detailed Description

Definition at line 16 of file TesseractCore.h.

Member Function Documentation

◆ extractFromBytes()

std::pair< ports::Text, std::vector< ports::Word > > TesseractCore::extractFromBytes ( const std::vector< uint8_t > & data,
const std::string & tessdataPath,
const core::ports::text_recognition::Settings & recognition,
std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger = nullptr )
static

Extracts recognized text and word-level OCR data from image bytes.

Parameters
dataThe encoded image bytes.
tessdataPathThe tessdata directory path or a fallback location hint.
recognitionThe OCR recognition settings.
debuggerOptional debugger used for trace output.
Returns
A pair containing recognized text and the extracted word list.

Definition at line 234 of file TesseractCore.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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