MCPcopy Create free account
hub / github.com/creatale/node-dv / OpenBoxFile

Function OpenBoxFile

deps/tesseract/ccstruct/boxread.cpp:33–41  ·  view source on GitHub ↗

Open the boxfile based on the given image filename.

Source from the content-addressed store, hash-verified

31
32// Open the boxfile based on the given image filename.
33FILE* OpenBoxFile(const STRING& fname) {
34 STRING filename = BoxFileName(fname);
35 FILE* box_file = NULL;
36 if (!(box_file = fopen(filename.string(), "rb"))) {
37 CANTOPENFILE.error("read_next_box", TESSEXIT, "Can't open box file %s",
38 filename.string());
39 }
40 return box_file;
41}
42
43// Reads all boxes from the given filename.
44// Reads a specific target_page number if >= 0, or all pages otherwise.

Callers

nothing calls this directly

Calls 3

BoxFileNameFunction · 0.85
stringMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected