Gets text from specified image using Optical Character Recognition.
Namespace:
AppRobotic
Assembly:
AppRobotic (in AppRobotic.dll) Version: 15.21.3.21 (15.21.03.21)
Syntax public string OCRGetText(
Object ImageFilePath,
Object Language,
Object FastOrBest
)
Parameters
- ImageFilePath
- Type: SystemObject
File path to the image, in quotes, including the extension (.png/.bmp/.tiff/.tif). - Language
- Type: SystemObject
Language in the image. In quotes: English or eng. Spanish or spa. Multiple languages supported, i.e. eng+spa and over 100 languages can be installed. Download additional languages with AppRobotic OCR Viewer and specify the 639-2/T language code directly. - FastOrBest
- Type: SystemObject
Fast or Best, in quotes. Fast does OCR quicker. Best is usually slower but higher accuracy.
Return Value
Type:
StringReturns text extracted from the image, or the error message.
See Also