Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem