OCR.Load
--------

Loads newer tesseract engine.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [OCR](component_OCR.md) | [11.3](newinversion113.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "OCR.Load"; Path ) 

**MBS**( **"OCR.Load";** /\* Loads newer tesseract engine. \*/  
**$Path**) /\* The native path to the library. \*/ 

### 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](ProcessSetDllDirectory.md) function to tell Windows where to find dependencies for the python DLL.  
### Examples

Load it on Linux:

 MBS ( "OCR.Load"; "liblept.so.5 " ) &amp;   
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!  
Load it on macOS with homebrew:

 MBS ( "OCR.Load"; "/opt/homebrew/lib/liblept.5 .dylib" ) &amp;   
MBS ( "OCR.Load"; "/opt/homebrew/lib/libtesseract.4 .dylib" )  
  
// install via homebrew  
// brew install tesseract-lang  
Load it on Windows:

 MBS ("[Process.SetCurrentDirectory](ProcessSetCurrentDirectory.md)"; "C:\\Program Files\\Tesseract-OCR") &amp;   
MBS ( "OCR.Load"; "liblept-5.dll" ) &amp;   
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](ProcessSetCurrentDirectory.md)"; "C:\\Program Files\\Tesseract-OCR") &amp;   
MBS ( "OCR.Load"; "libleptonica-6.dll" ) &amp;   
MBS ( "OCR.Load"; "libtesseract-5.dll" )  
### See also

- [OCR.GetText](OCRGetText.md)
- [OCR.Initialize](OCRInitialize.md)
- [OCR.IsLoaded](OCRIsLoaded.md)
- [Process.SetCurrentDirectory](ProcessSetCurrentDirectory.md)
- [Process.SetDllDirectory](ProcessSetDllDirectory.md)

### Release notes

- **Version 11.3**
    - Added [OCR.Load](https://www.mbsplugins.eu/OCRLoad.shtml) and [OCR.IsLoaded](https://www.mbsplugins.eu/OCRIsLoaded.shtml) functions to use Tesseract 4.x for text recognition.

### Example Databases

- [OCR/OCR with DynaPDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/OCR/OCR%20with%20DynaPDF.shtml#5ScriptAnchor_)
- [OCR/OCR](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/OCR/OCR.shtml#3ScriptAnchor_)

### Blog Entries

- [Installing and Loading Tesseract OCR with MBS Plugin](https://www.mbsplugins.de/archive/2025-10-29/Installing_and_Loading_Tessera/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-27/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-12/Neues_MBS_FileMaker_Plugin_113/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-07-12/MBS_FileMaker_Plugin_113_-_Mor/monkeybreadsoftware_blog_filemaker)
- [Introducing Tesseract 4 to FileMaker](https://www.mbsplugins.de/archive/2021-06-29/Introducing_Tesseract_4_to_Fil/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr4](https://www.mbsplugins.de/archive/2021-06-22/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th June 2021 , last changed 25th February 2026

  
[OCR.Language](OCRLanguage.md) - [OCR.MeanTextConf](OCRMeanTextConf.md)

[HTML Version](OCRLoad.shtml)