20 #ifndef TESSERACT_CCUTIL_BOXREAD_H_ 21 #define TESSERACT_CCUTIL_BOXREAD_H_ 55 bool ReadMemBoxes(
int target_page,
bool skip_blanks,
const char* box_data,
56 bool continue_on_failure,
78 bool ReadNextBox(
int target_page,
int *line_number, FILE* box_file,
90 #endif // TESSERACT_CCUTIL_BOXREAD_H_ bool ReadMemBoxes(int target_page, bool skip_blanks, const char *box_data, bool continue_on_failure, GenericVector< TBOX > *boxes, GenericVector< STRING > *texts, GenericVector< STRING > *box_texts, GenericVector< int > *pages)
bool ParseBoxFileStr(const char *boxfile_str, int *page_number, STRING *utf8_str, TBOX *bounding_box)
bool ReadAllBoxes(int target_page, bool skip_blanks, const STRING &filename, GenericVector< TBOX > *boxes, GenericVector< STRING > *texts, GenericVector< STRING > *box_texts, GenericVector< int > *pages)
bool ReadNextBox(int *line_number, FILE *box_file, STRING *utf8_str, TBOX *bounding_box)
STRING BoxFileName(const STRING &image_filename)
FILE * OpenBoxFile(const STRING &fname)
void MakeBoxFileStr(const char *unichar_str, const TBOX &box, int page_num, STRING *box_str)
const int kBoxReadBufSize