tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
26 #ifndef CCUTIL_OCRCLASS_H_
27 #define CCUTIL_OCRCLASS_H_
114 std::chrono::steady_clock::time_point
end_time;
120 end_time = std::chrono::time_point<std::chrono::steady_clock,
121 std::chrono::milliseconds>();
126 if (deadline_msecs > 0) {
127 end_time = std::chrono::steady_clock::now() +
128 std::chrono::milliseconds(deadline_msecs);
135 std::chrono::steady_clock::duration::zero()) {
138 auto now = std::chrono::steady_clock::now();
143 static bool default_progress_func(
ETEXT_DESC* ths,
int left,
int right,
144 int top,
int bottom) {
153 #endif // CCUTIL_OCRCLASS_H_
void set_deadline_msecs(int32_t deadline_msecs)
PROGRESS_FUNC2 progress_callback2
called whenever progress increases
bool(*)(int, int, int, int, int) PROGRESS_FUNC
int8_t more_to_come
percent complete increasing (0-100)
volatile int8_t ocr_alive
true if not last
void * cancel_this
monitor-aware progress callback
int16_t progress
chars in this buffer(0)
int8_t err_code
ocr sets to 1, HP 0
bool deadline_exceeded() const
ETEXT_DESC()
character data
PROGRESS_FUNC progress_callback
returns true to cancel
bool(*)(void *, int) CANCEL_FUNC
std::chrono::steady_clock::time_point end_time
this or other data for cancel
CANCEL_FUNC cancel
for errcode use
bool(*)(ETEXT_DESC *, int, int, int, int) PROGRESS_FUNC2