|Mac & Win
|The path to the folder where to find tessdata folder.
|The language to use.
|For tessertact 4 or newer, pass here optional option list.
Returns OK on success.
Pass path to parent folder of tessdata folder and language you need.
The language is (usually) an ISO 639-3 string.
To use multiple languages, please concat them with plus sign: e.g. "eng+deu"
You find our language files archive here:
The tessdata folder may need to contain additional files for some languages. If those are missing, the tesseract engine likes to abort the process.
Starting with version 11.2 of MBS Plugin, the initialization is per thread. Scripts running on FileMaker server may need to check OCR.IsInitialized and do initialization for their execution thread if needed before using OCR functions. But then each script can do OCR in parallel using multiple CPU cores.
To use tesseract 4.x, please use OCR.Load function to load the newer libraries.
Please notice that using data files for version 3 with library of version 4 (or other way around) will crash.
We intent to remove tesseract 3.x library from the plugin in summer 2022, so please move to loading the newer version.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Initialize with tessdata folder in same folder as database for english:
Initialize on Server with tessdata in Server folder:
Initialize on demand:
Initialize with hard coded path:
Initialize for chinese:
This function is free to use.
Created 18th August 2014, last changed 4th March 2023