ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / OCR functions
  • Properties specific to ocrTextBlock variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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. You can define and change the characteristics of this text block using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MonOCRBlocTexte is ocrTextBlock
tabBlocsTexte is array of ocrTextBlock 
tabBlocsTexte = OCRExtractTextBlock(MonImage)
Trace("Fin de l'extraction des blocs")
FOR i = 1 _TO_ tabBlocsTexte.Count
	MonOCRBlocTexte = tabBlocsTexte[i]
	let sChaîne = MonOCRBlocTexte.Text
	let nIndice = MonOCRBlocTexte.ConfidenceLevel
	Trace(sChaîne)
	Trace("Indice de confiance : " + nIndice)
	Trace("----------------------------------------")
END
Properties

Properties specific to 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.
Note: 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: 03/27/2025

Send a report | Local help