PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
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