ETEXT_DESC Struct Reference

#include <ocrclass.h>

List of all members.


Detailed Description

Description of the output of the OCR engine/header.

This structure is used as both a progress monitor and the final output header, since it needs to be a valid progress monitor while the OCR engine is storing its output to shared memory. During progress, all the buffer info is -1.

Progress starts at 0 and increases to 100 during OCR. No other constraint. Every progress callback, the OCR engine must set ocr_alive to 1. The HP side will set ocr_alive to 0. Repeated failure to reset to 1 indicates that the OCR engine is dead.

If the cancel function is not null then it is called with the number of user words found. If it returns true then operation is cancelled.

Note:
Changed for v1.03

Definition at line 310 of file ocrclass.h.

Public Attributes


Member Data Documentation

CANCEL_FUNC ETEXT_DESC::cancel

Definition at line 317 of file ocrclass.h.

Referenced by ocr_setup_monitor().

void* ETEXT_DESC::cancel_this

Definition at line 318 of file ocrclass.h.

INT16 ETEXT_DESC::count

Definition at line 312 of file ocrclass.h.

Referenced by ocr_append_char(), ocr_char_space(), ocr_send_text(), and ocr_setup_monitor().

clock_t ETEXT_DESC::end_time

Definition at line 319 of file ocrclass.h.

INT8 ETEXT_DESC::err_code

Definition at line 316 of file ocrclass.h.

Referenced by ocr_setup_monitor().

INT8 ETEXT_DESC::more_to_come

Definition at line 314 of file ocrclass.h.

Referenced by ocr_send_text(), and ocr_setup_monitor().

INT8 ETEXT_DESC::ocr_alive

Definition at line 315 of file ocrclass.h.

Referenced by edges_and_textord(), make_words(), ocr_setup_monitor(), and textord_page().

INT16 ETEXT_DESC::progress

Definition at line 313 of file ocrclass.h.

Referenced by edges_and_textord(), make_words(), ocr_setup_monitor(), and textord_page().

EANYCODE_CHAR ETEXT_DESC::text[1]

Definition at line 320 of file ocrclass.h.

Referenced by ocr_append_char(), and ocr_send_text().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 28 19:49:31 2007 for Tesseract by  doxygen 1.5.1