20 #ifndef TESSERACT_CCUTIL_BOXREAD_H__ 21 #define TESSERACT_CCUTIL_BOXREAD_H__ 51 bool ReadMemBoxes(
int target_page,
bool skip_blanks,
const char* box_data,
73 bool ReadNextBox(
int target_page,
int *line_number, FILE* box_file,
85 #endif // TESSERACT_CCUTIL_BOXREAD_H__ const int kBoxReadBufSize
FILE * OpenBoxFile(const STRING &fname)
void MakeBoxFileStr(const char *unichar_str, const TBOX &box, int page_num, STRING *box_str)
bool ReadNextBox(int *line_number, FILE *box_file, STRING *utf8_str, TBOX *bounding_box)
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)
STRING BoxFileName(const STRING &image_filename)
bool ReadMemBoxes(int target_page, bool skip_blanks, const char *box_data, GenericVector< TBOX > *boxes, GenericVector< STRING > *texts, GenericVector< STRING > *box_texts, GenericVector< int > *pages)