#include <ocrclass.h>
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.
Definition at line 310 of file ocrclass.h.
void* ETEXT_DESC::cancel_this |
Definition at line 318 of file ocrclass.h.
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.
Definition at line 315 of file ocrclass.h.
Referenced by edges_and_textord(), make_words(), ocr_setup_monitor(), and textord_page().
Definition at line 313 of file ocrclass.h.
Referenced by edges_and_textord(), make_words(), ocr_setup_monitor(), and textord_page().