FOSSredder 0.5.0
Loading...
Searching...
No Matches
StatementParserTypes.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <limits>
9#include <string>
10#include <utility>
11#include <vector>
12
14
18struct RawLine {
19 int cy = 0;
20 int minX = std::numeric_limits<int>::max();
21 int maxX = std::numeric_limits<int>::min();
22 int minY = std::numeric_limits<int>::max();
23 int maxY = std::numeric_limits<int>::min();
24 std::vector<std::pair<int, int>> wordSpans;
25 std::string text;
26};
27
32 int valutaX = -1;
33 int debitX = -1;
34 int creditX = -1;
35 int valutaCol = -1;
36 int debitCol = -1;
37 int creditCol = -1;
38 bool hasValuta() const { return valutaX >= 0; }
39 bool hasDebit() const { return debitX >= 0; }
40 bool hasCredit() const { return creditX >= 0; }
41};
42
48 bool headerFound = false;
49 int headerBottomY = -1;
51 int pageMaxY = -1;
52};
53
54}
Represents the inferred transaction column layout for a page.
Holds the current header-detection state for one statement page.
Represents a merged raw OCR line before it is turned into parser lines.