ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / OCR functions
  • Properties specific to the description of ocrTextBlock variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The ocrTextBlock type is used to define and identify all the advanced characteristics of a text block read by the native OCR system. The characteristics of this text block can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MyOCRTextBlock is ocrTextBlock
arrTextBlocks is array of ocrTextBlock
arrTextBlocks = OCRExtractTextBlock(MyImage)
Trace("Blocks extracted successfully")
FOR i = 1 _TO_ arrTextBlocks.Count
MyOCRTextBlock = arrTextBlocks[i]
let sString = MyOCRTextBlock.Text
let nLevel = MyOCRTextBlock.ConfidenceLevel
Trace(sString)
Trace("Confidence level: " + nLevel)
Trace("----------------------------------------")
END
Remarks

Properties specific to the description of ocrTextBlock variables

The following properties can be used to handle a text block read by the native OCR system:
Property nameType usedEffect
ConfidenceLevelIntegerConfidence level.
PolygonPolygon variableText outline polygon.
Remark: For OCR, the polygon must be a 4-point polygon.
TextCharacter stringText contained in the polygon.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help