Void MinQuality( Real ) | Sets the minimum quality of the hypothesis. |
Void MaxErrors( Int ) | Sets the maximum number of errors in the hypothesis. |
Void MaxErrorsPart( Real ) | Sets the maximum percentage of errors in the hypothesis. |
Void MaxErrors( Int number, Real part ) | Sets the maximum number of errors in the hypothesis: number – absolute number, part – percentage. Example: The code below specifies that the absolute number of errors may not exceed 3, and the percentage of errors may not exceed 20%. MaxErrors(3, 0.2); Note: Out of the two conditions the activity will use the strictest. |
Void MaxGapInLine( Distance ) | Sets the maximum distance between neighboring characters. When generating a hypothesis, the activity will add characters to the hypothesis until the distance between two neighboring characters does not exceed MaxGapInLine. Example: The code below tells the activity that the maximum distance between neighboring characters may not exceed 5 mm, otherwise a null hypothesis is generated. MaxGapInLine(5mm); |
Void MaxRelativeGapInLine( Real ) | Sets the maximum relative distance between neighboring characters. Relative distance = (gap width)/(character width). |
Void MinLength( Int ) | Sets the minimum length of the text string. Default setting is 1. Example: The code below tells the program that the minimum length of a hypothesis is 4 characters. MinLength(4); |
Void MaxLength( Int ) | Sets the maximum length of the text string. Default setting is 50. |
Void SearchTextFromCatalog( String catalogName, Int columnIndex, SearchTextFromCatalogCriteria ) | Searches for text from the specified catalog. Example: The code below searches for text from the second column of the “CompanyCatalog” catalog using the specified search criteria: SearchCriteria searchCriteria; searchCriteria.MinCatalogColumnValueLength = 3; searchCriteria.MaxRecordsCount = 1000; SearchTextFromCatalog( "CompanyCatalog", 2, searchCriteria ); The code below uses an auxiliary method GetCatalogColumnIndex to get the column index by its name: SearchTextFromCatalog( "CompanyCatalog", GetCatalogColumnIndex( "CompanyCatalog", "ColumnName" )); To speed up the query, only the first maxRecordsCount records are accessed (the default setting is 1000). |
Void 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. |
Void SearchText( String ) | Specifies the text that will be searched on an image. The string may contain several search variants separated with ”|” (the OR operator). For more information, see Type-specific Properties of the Static Text Element. |