Skip to main content
The Static Text hypothesis supports the following methods in the FlexiLayout language.

Static Text hypothesis methods

ParameterDescription
Distance LineHeight( Int n )The height of the rectangle of the text line with the index n.
Distance LineWidth( Int n )The width of the rectangle of the text line with the index n.
Int KeywordCount()Returns the number of keywords in the string specified in SearchText which corresponds to a found string.
Int LineCount()The number of lines in the text of the hypothesis.
Rect LineRect( Int n )The rectangle of the text line with the index n. Note. The rectangles obtained through this function are sorted in accordance with their positions on the page, top down. The rectangles with smaller indexes are located higher up on the page (the index changes from 0 to LineCount() - 1).
String Keyword( Int index )Retrieves a keyword by its index in the string specified in SearchText which corresponds to a found string. Indexing starts from zero.
String Value()The value of the recognized text on the image within the region of the hypothesis.
XCoordinate LineLeft( Int n )The X-coordinate of the left-most point of the rectangle of the text line with the index n.
XCoordinate LineRight( Int n )The X-coordinate of the right-most point of the rectangle of the text line with the index n.
XCoordinate LineXCenter( Int n )The X-coordinate of the center of the rectangle of the text line with the index n.
YCoordinate LineBottom( Int n )The Y-coordinate of the bottom point of the rectangle of the text line with the index n.
YCoordinate LineTop( Int n )The Y-coordinate of the top-most point of the rectangle of the text line with the index n.
YCoordinate LineYCenter( Int n )The Y-coordinate of the center of the rectangle of the text line with the index n.