Class DocumentParser
java.lang.Object
dev.botcity.botcity_document_processing.parser.DocumentParser
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
combinedEntries
(int start, int end) combinedEntries
(Entry[] entries) getFirstEntry
(int startIndex, String... textPossibilities) getFirstEntry
(Entry startEntry, String... textPossibilities) getFirstEntry
(String text) getFirstEntry
(String... textPossibilities) getFirstEntry
(String text, int startPosition) getFirstEntry
(String text, Entry entry) getFirstEntryContains
(int startPosition, String text) getFirstEntryContains
(String text) getFirstEntryContains
(String text, Entry entry) getFirstEntryContainsSubstring
(int startPosition, String text) getFirstEntryContainsSubstring
(int startIndex, String... textPossibilities) getFirstEntryContainsSubstring
(String... textPossibilities) getFirstSeparatedEntry
(String text) getFirstSeparatedEntry
(String... textPossibilities) getFirstSuitableEntry
(String... textPossibilities) getSecondEntry
(String text) getSecondEntry
(String... textPossibilities) getSeparatedEntryAtIndex
(int matchingIndex, String... textPossibilities) getSeparatedEntryAtIndex
(String text, int matchingIndex) void
loadEntries
(Object entries) static void
read
(Entry entry, double p1DiffX, double p1DiffY, double p3DiffX, double p3DiffY, DocumentParser.DataType dataType) read
(Entry entry, double p1DiffX, double p1DiffY, double p3DiffX, double p3DiffY, Integer lineHeight, DocumentParser.DataType dataType) readArea
(Point p1, Point p2, Point p3, Point p4, boolean debug, DocumentParser.DataType dataType, boolean handwriten) readArea
(Point p1, Point p2, Point p3, Point p4, int lineHeight, boolean debug, DocumentParser.DataType dataType) readArea
(Point p1, Point p2, Point p3, Point p4, DocumentParser.DataType dataType, boolean handwriten) readAreaLineOriented
(Point p1, Point p2, Point p3, Point p4) readAreaLineOriented
(Point p1, Point p2, Point p3, Point p4, int lineHeight) readAreaLineOriented
(Point p1, Point p2, Point p3, Point p4, int lineHeight, DocumentParser.DataType dataType) readAround
(Entry entry, double marginLeft, double marginRight, double marginTop, double marginBottom) readBelow
(Entry entry, double marginLeft, double marginRight, double marginBottom, int lineHeight, DocumentParser.DataType dataType) readBelow
(Entry entry, double marginLeft, double marginRight, double marginBottom, DocumentParser.DataType datatype) readBelow
(Entry entry, double marginLeft, double marginRight, Entry bottomReference, int lineHeight, DocumentParser.DataType dataType) readBelow
(Entry entry, double marginLeft, Entry rightReference, Entry bottomReference, int lineHeight, DocumentParser.DataType dataType) readBelowWithOffset
(Entry entry, double marginLeft, double marginRight, double marginBottom, double offset) readNext
(Entry entry, double marginRight, double marginTop, double marginBottom, DocumentParser.DataType dataType) readNext
(Entry entry, double marginRight, double marginTop, double marginBottom, DocumentParser.DataType dataType, boolean handwritten) readNextWithSlope
(Entry entry, double marginLeft, double marginRight, double marginTop, double marginBottom, double rateOfChangeY) void
setEntries
(List<Entry> entries)
-
Constructor Details
-
DocumentParser
public DocumentParser()
-
-
Method Details
-
main
-
clear
public void clear() -
loadEntries
-
addEntry
-
getEntries
-
getFirstEntry
-
getLastEntry
-
setEntries
-
getFirstEntryContains
-
getFirstEntryContains
-
getFirstEntryContains
-
getFullText
-
getFirstEntry
-
getFirstEntry
-
getFirstEntry
-
getFirstEntryContainsSubstring
-
getFirstEntryContainsSubstring
-
getFirstEntryContainsSubstring
-
getFirstEntryContainsSubstring
-
getFirstSeparatedEntry
-
getSeparatedEntryAtIndex
-
getSeparatedEntryAtIndex
-
getFirstEntry
-
getFirstEntry
-
getFirstEntry
-
getFirstSuitableEntry
-
getSecondEntry
-
getSecondEntry
-
getFirstSeparatedEntry
-
combinedEntries
-
combinedEntries
-
readBelow
-
readBelow
public String readBelow(Entry entry, double marginLeft, double marginRight, double marginBottom, int lineHeight, DocumentParser.DataType dataType) -
readBelow
-
readBelow
public String readBelow(Entry entry, double marginLeft, double marginRight, double marginBottom, DocumentParser.DataType datatype) -
readBelow
public String readBelow(Entry entry, double marginLeft, double marginRight, Entry bottomReference, int lineHeight, DocumentParser.DataType dataType) -
readBelow
public String readBelow(Entry entry, double marginLeft, Entry rightReference, Entry bottomReference, int lineHeight, DocumentParser.DataType dataType) -
readBelowWithOffset
-
readNext
-
readNext
public String readNext(Entry entry, double marginRight, double marginTop, double marginBottom, DocumentParser.DataType dataType) -
readNext
public String readNext(Entry entry, double marginRight, double marginTop, double marginBottom, DocumentParser.DataType dataType, boolean handwritten) -
readAbove
-
readAround
-
readNextWithSlope
-
readArea
-
readArea
-
readArea
-
readArea
-
readArea
-
readArea
-
readArea
-
readAreaLineOriented
-
readAreaLineOriented
-
readAreaLineOriented
-
read
public String read(Entry entry, double p1DiffX, double p1DiffY, double p3DiffX, double p3DiffY, Integer lineHeight, DocumentParser.DataType dataType) -
read
-
read
-
read
public String read(Entry entry, double p1DiffX, double p1DiffY, double p3DiffX, double p3DiffY, DocumentParser.DataType dataType)
-