Ground-Truthing GUI 1.0

- Main Page
- Related Pages
- Classes
- Files

- File List

extractinformation.h
1
25 #ifndef EXTRACTINFORMATION
26 #define EXTRACTINFORMATION
27
28 #include <QRegularExpression>
29 #include <QString>
30
31 class ExtractInformation{
32
33 private:
34
35 // Line containing the rectangle's information
36 QString line;
37
38 // The regular expression
39 QRegularExpression regularExpression;
40
41 public:
42
46 ExtractInformation(QString _line):line(_line)
47 {
48 }
49
53 virtual QString extractId();
54
58 virtual QString extractTopLeftX();
59
63 virtual QString extractTopLeftY();
64
68 virtual QString extractLineNumber();
69
73 virtual QString extractWordNumber();
74
78 virtual QString extractWidth();
79
83 virtual QString extractHeight();
84
88 virtual QString extractAnnotation();
89
93 virtual QString extractImagePath();
94 };
95
96 #endif // EXTRACTINFORMATION
97
98
ExtractInformation
Extracts all the rectangles information contained in a text file.
Definition: extractinformation.h:31
ExtractInformation::extractWordNumber
virtual QString extractWordNumber()
Extracts the value of the word number field.
Definition: extractinformation.cpp:50
ExtractInformation::extractLineNumber
virtual QString extractLineNumber()
Extracts the value of the line number field.
Definition: extractinformation.cpp:38
ExtractInformation::extractTopLeftY
virtual QString extractTopLeftY()
Extracts the rectangle Top-Left corner (y coordinate)
Definition: extractinformation.cpp:26
ExtractInformation::extractImagePath
virtual QString extractImagePath()
Extracts the image filepath.
Definition: extractinformation.cpp:97
ExtractInformation::extractTopLeftX
virtual QString extractTopLeftX()
Extracts the rectangle Top-Left corner (x coordinate)
Definition: extractinformation.cpp:14
ExtractInformation::extractWidth
virtual QString extractWidth()
Extracts the width of the rectangle.
Definition: extractinformation.cpp:61
ExtractInformation::ExtractInformation
ExtractInformation(QString _line)
The constructor of the ExtractInformation class.
Definition: extractinformation.h:46
ExtractInformation::extractId
virtual QString extractId()
Extracts the rectangle ID from the line.
Definition: extractinformation.cpp:4
ExtractInformation::extractHeight
virtual QString extractHeight()
Extracts the height of the rectangle.
Definition: extractinformation.cpp:73
ExtractInformation::extractAnnotation
virtual QString extractAnnotation()
Extracts the annotation associated to the rectangle.
Definition: extractinformation.cpp:85