| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
OCR.Load
Loads newer tesseract engine.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| OCR | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "OCR.Load"; Path ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the library. |
Result
Returns OK or error.
Description
Loads newer tesseract engine.You can load here a version of tesseract 4.0 or newer.
You may first need to load leptonica library via this function and then the tesseract library, if it is not in the same library file.
For Linux you can install tesseract like this for library and whatever language file you need:
sudo apt-get install libtesseract5 tesseract-ocr-deu
For macOS you can use homebrew package manager or compile and install your own version.
https://formulae.brew.sh/formula/tesseract
For Windows, you may find a recent builds here:
https://digi.bib.uni-mannheim.de/tesseract/?C=M;O=D
On Windows you may need to call Process.SetDllDirectory function to tell Windows where to find dependencies for the python DLL.
Examples
Load it on Linux:
MBS( "OCR.Load"; "liblept.so.5" ) &
MBS( "OCR.Load"; "libtesseract.so.5" )
// please install tesseract library, so plugin can load it:
// sudo apt-get install libtesseract5
MBS( "OCR.Load"; "libtesseract.so.5" )
// please install tesseract library, so plugin can load it:
// sudo apt-get install libtesseract5
Load it on macOS with our library:
MBS("OCR.Load"; "/Users/cs/Tesseract/tesseract4/tesseract.dylib")
// for macOS, please download from our website
// https://www.monkeybreadsoftware.com/filemaker/files/Libs/
// which includes leptonica library!
// for macOS, please download from our website
// https://www.monkeybreadsoftware.com/filemaker/files/Libs/
// which includes leptonica library!
Load it on macOS with homebrew:
MBS( "OCR.Load"; "/opt/homebrew/lib/liblept.5.dylib" ) &
MBS( "OCR.Load"; "/opt/homebrew/lib/libtesseract.4.dylib" )
// install via homebrew
// brew install tesseract-lang
MBS( "OCR.Load"; "/opt/homebrew/lib/libtesseract.4.dylib" )
// install via homebrew
// brew install tesseract-lang
Load it on Windows:
MBS("Process.SetCurrentDirectory"; "C:\Program Files\Tesseract-OCR") &
MBS( "OCR.Load"; "liblept-5.dll" ) &
MBS( "OCR.Load"; "libtesseract-4.dll" )
// get Windows DLL somewhere
// e.g. https://digi.bib.uni-mannheim.de/tesseract/
MBS( "OCR.Load"; "liblept-5.dll" ) &
MBS( "OCR.Load"; "libtesseract-4.dll" )
// get Windows DLL somewhere
// e.g. https://digi.bib.uni-mannheim.de/tesseract/
Load it on Windows with newer version:
MBS("Process.SetCurrentDirectory"; "C:\Program Files\Tesseract-OCR") &
MBS( "OCR.Load"; "libleptonica-6.dll" ) &
MBS( "OCR.Load"; "libtesseract-5.dll" )
MBS( "OCR.Load"; "libleptonica-6.dll" ) &
MBS( "OCR.Load"; "libtesseract-5.dll" )
See also
Release notes
- Version 11.3
- Added OCR.Load and OCR.IsLoaded functions to use Tesseract 4.x for text recognition.
Example Databases
Blog Entries
- Installing and Loading Tesseract OCR with MBS Plugin
- New in MBS FileMaker Plugin 11.3
- Neues MBS FileMaker Plugin 11.3
- MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin
- Introducing Tesseract 4 to FileMaker
- MBS FileMaker Plugin, version 11.3pr4
This function checks for a license.
Created 20th June 2021, last changed 25th February 2026