#include "blread.h"
#include <cstdio>
#include "ocrblock.h"
#include "scanutils.h"
Go to the source code of this file.
◆ UNLV_EXT
◆ FullPageBlock()
void FullPageBlock |
( |
int |
width, |
|
|
int |
height, |
|
|
BLOCK_LIST * |
blocks |
|
) |
| |
Definition at line 63 of file blread.cpp.
65 BLOCK_IT block_it(blocks);
66 auto* block =
new BLOCK(
"",
true, 0, 0, 0, 0, width, height);
67 block_it.add_to_end(block);
◆ read_unlv_file()
bool read_unlv_file |
( |
STRING |
name, |
|
|
int32_t |
xsize, |
|
|
int32_t |
ysize, |
|
|
BLOCK_LIST * |
blocks |
|
) |
| |
Definition at line 31 of file blread.cpp.
44 BLOCK_IT block_it = blocks;
47 if ((pdfp = fopen (name.
c_str (),
"rb")) ==
nullptr) {
50 while (
tfscanf(pdfp,
"%d %d %d %d %*s", &x, &y, &width, &height) >= 4) {
53 static_cast<int16_t>(x), static_cast<int16_t>(ysize - y - height),
54 static_cast<int16_t>(x + width), static_cast<int16_t>(ysize - y));
56 block_it.add_to_end (block);