tesseract
4.0.0-1-g2a2b
|
#include "boxread.h"
#include <cstring>
#include "errcode.h"
#include "fileerr.h"
#include "genericvector.h"
#include "helpers.h"
#include "rect.h"
#include "strngs.h"
#include "tprintf.h"
#include "unichar.h"
Go to the source code of this file.
Functions | |
FILE * | OpenBoxFile (const STRING &fname) |
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 | 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) |
STRING | BoxFileName (const STRING &image_filename) |
bool | ReadNextBox (int *line_number, FILE *box_file, STRING *utf8_str, TBOX *bounding_box) |
bool | ReadNextBox (int target_page, 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) |
void | MakeBoxFileStr (const char *unichar_str, const TBOX &box, int page_num, STRING *box_str) |
Definition at line 105 of file boxread.cpp.
Definition at line 233 of file boxread.cpp.
FILE* OpenBoxFile | ( | const STRING & | fname | ) |
Definition at line 35 of file boxread.cpp.
bool ParseBoxFileStr | ( | const char * | boxfile_str, |
int * | page_number, | ||
STRING * | utf8_str, | ||
TBOX * | bounding_box | ||
) |
Definition at line 173 of file boxread.cpp.
bool ReadAllBoxes | ( | int | target_page, |
bool | skip_blanks, | ||
const STRING & | filename, | ||
GenericVector< TBOX > * | boxes, | ||
GenericVector< STRING > * | texts, | ||
GenericVector< STRING > * | box_texts, | ||
GenericVector< int > * | pages | ||
) |
Definition at line 52 of file boxread.cpp.
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 | ||
) |
Definition at line 68 of file boxread.cpp.
Definition at line 126 of file boxread.cpp.
bool ReadNextBox | ( | int | target_page, |
int * | line_number, | ||
FILE * | box_file, | ||
STRING * | utf8_str, | ||
TBOX * | bounding_box | ||
) |
Definition at line 134 of file boxread.cpp.