@@ -115,17 +115,20 @@ typedef bool (*PROGRESS_FUNC)(int progress,
115
115
116
116
class ETEXT_DESC { // output header
117
117
public:
118
- inT16 count; // chars in this buffer(0)
119
- inT16 progress; // percent complete increasing (0-100)
120
- inT8 more_to_come; // true if not last
121
- volatile inT8 ocr_alive; // ocr sets to 1, HP 0
122
- inT8 err_code; // for errcode use
123
- CANCEL_FUNC cancel; // returns true to cancel
124
- PROGRESS_FUNC progress_callback; // called whenever progress increases
125
- void * cancel_this; // this or other data for cancel
126
- struct timeval end_time; // time to stop. expected to be set only by call
127
- // to set_deadline_msecs()
128
- EANYCODE_CHAR text[1 ]; // character data
118
+ inT16 count; // / chars in this buffer(0)
119
+ inT16 progress; // / percent complete increasing (0-100)
120
+ /* * Progress monitor covers word recognition and it does not cover layout
121
+ * analysis.
122
+ * See Ray comment in https://github.com/tesseract-ocr/tesseract/pull/27 */
123
+ inT8 more_to_come; // / true if not last
124
+ volatile inT8 ocr_alive; // / ocr sets to 1, HP 0
125
+ inT8 err_code; // / for errcode use
126
+ CANCEL_FUNC cancel; // / returns true to cancel
127
+ PROGRESS_FUNC progress_callback; // / called whenever progress increases
128
+ void * cancel_this; // / this or other data for cancel
129
+ struct timeval end_time; /* * time to stop. expected to be set only by call
130
+ * to set_deadline_msecs() */
131
+ EANYCODE_CHAR text[1 ]; // / character data
129
132
130
133
ETEXT_DESC () : count(0 ), progress(0 ), more_to_come(0 ), ocr_alive(0 ),
131
134
err_code (0 ), cancel(NULL ), cancel_this(NULL ) {
0 commit comments