English (English)

Static Text

Parameter Description
Void MinQuality( Real ) Sets the minimum quality of the hypothesis.
Void MaxErrors( Int )

Sets the maximum number of errors in the hypothesis.

See Max number of errors.

Void MaxErrorsPart( Real )

Sets the maximum percentage of errors in the hypothesis.

See Max error percentage.

Void MaxErrors( Int number, Real part )

Sets the maximum number of errors in the hypothesis: number – absolute number, part – percentage.

E.g.

Void MaxGapInLine( Distance )

Sets the maximum distance between neighboring characters.

When generating a hypothesis, the program will add characters to the hypothesis until the distance between two neighboring characters does not exceed MaxGapInLine.

See also Character String, Character String, Max space length.

E.g.

Void MaxRelativeGapInLine( Real ) The maximum distance between neighboring characters expressed as a percentage of the line height.
Void AllowChoppedWords( Logic )

The flag specifies whether text objects which do not fit entirely within the left and right boundaries should be included into the hypothesis. The default value is True.

E.g.

Void MaxXOutsidePart( Real ) Specifies the part of the character that may extend beyond the search area horizontally. The part of the character is specified by a number from 0 to 1. Those characters are included in the hypothesis that have the specified or smaller part outside the search area.
Void MaxYOutsidePart( Real ) Specifies the part of the character that may extend beyond the search area vertically. The part of the character is specified by a number from 0 to 1. Those characters are included in the hypothesis that have the specified or smaller part outside the search area.
Void CaseSensitive( Logic Value=true) Distinguishes between lowercase and uppercase letters if set to True.
Void IgnoreAccents( Logic value = true ) Ignores/does not ignore diacritics when searching for text. If the value is set to True, diacritics will be ignored (for example, the words "café" and "cafe" will be treated as identical).
Void SearchTextFromDB( String connectionString, String selectString, Int maxRecordsCount = 1000 )

Specifies the set of strings to be searched on an image with the help of a database (see Using databases and text files in the FlexiLayout language).

The connectionString argument sets the connection string for connecting to the database.

The selectString argument sets an SQL query, which starts with the SELECT command. The resulting set obtained by this query, which must contain only one field, represents phrase variants. In its simplest form, a query gets the required field from a specified database table. If a query returns more than one field, the data from the first field are used for the search.

To speed up the search, only the first maxRecordsCount variants are used (the default setting is 1000).

E.g.

Void SearchTextFromFile( String fileName, Int maxRecordsCount = 1000 )

Specifies the set of strings to be searched on an image with the help of a fileName text file (see Using databases and text files in the FlexiLayout language).

To speed up the search, only the first maxRecordsCount variants are used (the default setting is 1000).

E.g.

AllowIntersectPercent( Real ) Specifies the maximum allowed percentage of vertical overlap for two lines of text (the default setting is 15). You may want to use this parameter for texts with tight line spacing.
The following methods are only available if the text to find consist of one word
Void SearchText ( String ) Text to find.
The following methods are available if the text to find consists of several words
Void NextLinePenalty( Real ) See Static Text. Break line penalty.
Void OmissionPenalty( Real ) See Static Text. Missed words penalty.
Void WholeWordMode ( Logic )

The flag specifies whether only whole text objects must be considered as valid hypotheses. When set to True, hypotheses consisting of parts of words are ignored. The default setting is False.

Note.This method is different from AllowChoppedWords in that AllowChoppedWords affects only hypotheses generated from words on the boundary of the search area, whereas WholeWordMode affects the generation of all hypotheses.

Void AllowEmbeddedHypotheses( Logic )

E.g.

Void MaxLineBreakDistance( Distance ) The distance between the word in the next line and the previous line.
SuggestOnlySimilarChars( Logic value ) When set to true, only characters (hieroglyphs) with similar tracing are allowed as replacement characters in operations of insertion/deletion/replacement a character.
Void AllowedTextRotations ( TextRotations ) Specifies a set of orientations of the recognized text in which an element search is allowed.

4/12/2024 6:16:02 PM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.