|
|
|
|
OCRLoadLanguage (Function) In french: OCRChargeLangue Adds a language to the native OCR system. Remarks: - OCRLoadLanguage is used to add a ".traineddata" model.
- For iOS, use OCRAddLanguage to add a language.
MyModelName is string = "eng" OCRLoadLanguage(MyModelName)
Syntax <Model file>: Character string Short name of the model to be added. Remarks - The model containing the language must be located in the directory of the executable.
- English, French and Spanish models are included the product. The short name of these models is: "eng", "spa" and "fra". They are selected according to the current language of the application.
- The model file extension must be ".traineddata". This extension is not needed in the function call: only the short name is required.
- Other models are available on the TESSERACT website: The list of languages is available at: https://github.com/tesseract-ocr/tessdoc/blob/master/Data-Files-in-different-versions.md
- Several languages can be combined:
- they must be added one by one (syntax 1).
- they can be added in one single operation, via an array (syntax 2).
Related Examples:
|
Unit examples (WINDEV): OCR functions
[ + ] This example shows how to use OCR functions in WINDEV.
|
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|