|
tesseract
5.0.0-alpha-619-ge9db
|
#include "boxread.h"#include <cstring>#include <locale>#include <sstream>#include <string>#include "errcode.h"#include "fileerr.h"#include <tesseract/genericvector.h>#include <tesseract/helpers.h>#include "rect.h"#include <tesseract/strngs.h>#include "tprintf.h"#include <tesseract/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) |
| 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 249 of file boxread.cpp.
| FILE* OpenBoxFile | ( | const STRING & | fname | ) |
Definition at line 54 of file boxread.cpp.
| bool ParseBoxFileStr | ( | const char * | boxfile_str, |
| int * | page_number, | ||
| STRING * | utf8_str, | ||
| TBOX * | bounding_box | ||
| ) |
Definition at line 181 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 71 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 87 of file boxread.cpp.
Definition at line 134 of file boxread.cpp.
| bool ReadNextBox | ( | int | target_page, |
| int * | line_number, | ||
| FILE * | box_file, | ||
| STRING * | utf8_str, | ||
| TBOX * | bounding_box | ||
| ) |
Definition at line 142 of file boxread.cpp.