tesseract v5.3.3.20231005
boxread.cpp File Reference
#include "boxread.h"
#include "errcode.h"
#include "fileerr.h"
#include "rect.h"
#include "tprintf.h"
#include <tesseract/unichar.h>
#include "helpers.h"
#include <climits>
#include <cstring>
#include <fstream>
#include <locale>
#include <sstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  tesseract
 

Functions

FILE * tesseract::OpenBoxFile (const char *fname)
 
bool tesseract::ReadAllBoxes (int target_page, bool skip_blanks, const char *filename, std::vector< TBOX > *boxes, std::vector< std::string > *texts, std::vector< std::string > *box_texts, std::vector< int > *pages)
 
bool tesseract::ReadMemBoxes (int target_page, bool skip_blanks, const char *box_data, bool continue_on_failure, std::vector< TBOX > *boxes, std::vector< std::string > *texts, std::vector< std::string > *box_texts, std::vector< int > *pages)
 
bool tesseract::ReadNextBox (int *line_number, FILE *box_file, std::string &utf8_str, TBOX *bounding_box)
 
bool tesseract::ReadNextBox (int target_page, int *line_number, FILE *box_file, std::string &utf8_str, TBOX *bounding_box)
 
bool tesseract::ParseBoxFileStr (const char *boxfile_str, int *page_number, std::string &utf8_str, TBOX *bounding_box)
 
void tesseract::MakeBoxFileStr (const char *unichar_str, const TBOX &box, int page_num, std::string &box_str)