tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
ETEXT_DESC Class Reference

#include <ocrclass.h>

Collaboration diagram for ETEXT_DESC:

Public Member Functions

 ETEXT_DESC ()
 character data More...
 
void set_deadline_msecs (int32_t deadline_msecs)
 
bool deadline_exceeded () const
 

Public Attributes

int16_t count
 
int16_t progress
 chars in this buffer(0) More...
 
int8_t more_to_come
 percent complete increasing (0-100) More...
 
volatile int8_t ocr_alive
 true if not last More...
 
int8_t err_code
 ocr sets to 1, HP 0 More...
 
CANCEL_FUNC cancel
 for errcode use More...
 
PROGRESS_FUNC progress_callback
 returns true to cancel More...
 
PROGRESS_FUNC2 progress_callback2
 called whenever progress increases More...
 
void * cancel_this
 monitor-aware progress callback More...
 
struct timeval end_time
 this or other data for cancel More...
 
EANYCODE_CHAR text [1]
 

Static Private Member Functions

static bool default_progress_func (ETEXT_DESC *ths, int left, int right, int top, int bottom)
 

Constructor & Destructor Documentation

◆ ETEXT_DESC()

ETEXT_DESC::ETEXT_DESC ( )
inline

character data

Member Function Documentation

◆ deadline_exceeded()

bool ETEXT_DESC::deadline_exceeded ( ) const
inline

◆ default_progress_func()

static bool ETEXT_DESC::default_progress_func ( ETEXT_DESC ths,
int  left,
int  right,
int  top,
int  bottom 
)
inlinestaticprivate

◆ set_deadline_msecs()

void ETEXT_DESC::set_deadline_msecs ( int32_t  deadline_msecs)
inline

Member Data Documentation

◆ cancel

CANCEL_FUNC ETEXT_DESC::cancel

for errcode use

◆ cancel_this

void* ETEXT_DESC::cancel_this

monitor-aware progress callback

◆ count

int16_t ETEXT_DESC::count

◆ end_time

struct timeval ETEXT_DESC::end_time

this or other data for cancel

◆ err_code

int8_t ETEXT_DESC::err_code

ocr sets to 1, HP 0

◆ more_to_come

int8_t ETEXT_DESC::more_to_come

percent complete increasing (0-100)

Progress monitor covers word recognition and it does not cover layout analysis. See Ray comment in https://github.com/tesseract-ocr/tesseract/pull/27

◆ ocr_alive

volatile int8_t ETEXT_DESC::ocr_alive

true if not last

◆ progress

int16_t ETEXT_DESC::progress

chars in this buffer(0)

◆ progress_callback

PROGRESS_FUNC ETEXT_DESC::progress_callback

returns true to cancel

◆ progress_callback2

PROGRESS_FUNC2 ETEXT_DESC::progress_callback2

called whenever progress increases

◆ text

EANYCODE_CHAR ETEXT_DESC::text[1]

Time to stop. Expected to be set only by call to set_deadline_msecs().


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