Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

OCR.SetImageFile

Loads a picture from file directly.

Component Version macOS Windows Linux Server iOS SDK
OCR 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "OCR.SetImageFile"; Path )   More

Parameters

Parameter Description Example
Path The native file path to the image file. "/Users/cs/Desktop/test.jpg"

Result

Returns OK or error.

Description

Loads a picture from file directly.
Optionally you can define area of interest with OCR.SetRectangle function.

Examples

Load image from file and define area:

Set Variable [ $r ; Value: MBS( "OCR.SetImageFile"; "/Users/cs/Desktop/phototest.tif") ]
Set Variable [ $r ; Value: MBS( "OCR.SetRectangle"; 0; 0; 1000; 400) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 20th June 2021, last changed 15th July 2021


OCR.SetImageContainer - OCR.SetPageSegMode