FOSSredder 0.5.0
Loading...
Searching...
No Matches
TextRecognitionTypes.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <cstdint>
8#include <string>
9#include <vector>
10
12
13struct Text {
14 std::string text;
16};
17
24
32
33struct Rect {
34 int x = 0;
35 int y = 0;
36 int width = 0;
37 int height = 0;
38};
39
40struct Word {
42 std::string text;
43 int confidence = 0;
44};
45
46struct Cell {
48 int row = -1;
49 int col = -1;
50 std::string text;
51 int confidence = 0;
52};
53
54struct Table {
56 int rows = 0;
57 int cols = 0;
58 std::vector<Cell> cells;
59 std::vector<Word> words;
60};
61
62} // namespace core::ports::text_recognition