Platforms to show: All Mac Windows Linux Cross-Platform

Back to TessEngineMBS class.

TessEngineMBS.LibraryLoaded as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the tesseract library was loaded.

Should be true after succesful call to LoadLibrary.

TessEngineMBS.LibraryLoadError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error from LoadLibrary as number.

TessEngineMBS.LibraryLoadErrorMessage as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error from LoadLibrary as text.

TessEngineMBS.LoadLibrary(file as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the tesseract library.

Returns true on success and false on failure.
See LibraryLoadErrorMessage for a textual description.

See also:

TessEngineMBS.LoadLibrary(path as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the tesseract library.
Example
// first load image processing library
Call TessEngineMBS.LoadLibrary("libleptonica-6.dll")

// second load tesseract library
Call TessEngineMBS.LoadLibrary("tesseract-5.dll")

Returns true on success and false on failure.
See LibraryLoadErrorMessage for a textual description.

For Windows load the DLL, for Linux the tesseract.so file and for macOS the dylib file.
You may need to first load leptonica library and second the tesseract library.
See example project for sample code.

See also:

TessEngineMBS.SetCurrentWorkingDirectory(path as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets current working directory.

Returns true on success.

See also:

TessEngineMBS.SetCurrentWorkingDirectory(path as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets current working directory.

Returns true on success.

See also:

TessEngineMBS.SetDllDirectory(path as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 25.1 ❌ No ✅ Yes ❌ No ❌ No All
Adds a directory to the search path used to locate DLLs for the application.

The directory to be added to the search path. If this parameter is an empty string (""), the call removes the current directory from the default DLL search order. If this parameter is nil, the function restores the default search order.

If the function succeeds, the return value is true, otherwise false.

The SetDllDirectory function affects all subsequent calls to the LoadLibrary and LoadLibraryEx functions. It also effectively disables safe DLL search mode while the specified directory is in the search path.

After calling SetDllDirectory, the standard DLL search path is:

  • The directory from which the application loaded.
  • The directory specified by the SetDllDirectory function.
  • The system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is System32.
  • The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
  • The directories that are listed in the PATH environment variable.

Each time the SetDllDirectory function is called, it replaces the directory specified in the previous SetDllDirectory call.

To revert to the standard search path used by LoadLibrary and LoadLibraryEx, call SetDllDirectory with nil. This also restores safe DLL search mode based on the SafeDllSearchMode registry value.

See also:

TessEngineMBS.SetDllDirectory(path as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method OCR MBS OCR Plugin 25.1 ❌ No ✅ Yes ❌ No ❌ No All
Adds a directory to the search path used to locate DLLs for the application.

The directory to be added to the search path. If this parameter is an empty string (""), the call removes the current directory from the default DLL search order. If this parameter is nil, the function restores the default search order.

If the function succeeds, the return value is true, otherwise false.

The SetDllDirectory function affects all subsequent calls to the LoadLibrary and LoadLibraryEx functions. It also effectively disables safe DLL search mode while the specified directory is in the search path.

After calling SetDllDirectory, the standard DLL search path is:

  • The directory from which the application loaded.
  • The directory specified by the SetDllDirectory function.
  • The system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is System32.
  • The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
  • The directories that are listed in the PATH environment variable.

Each time the SetDllDirectory function is called, it replaces the directory specified in the previous SetDllDirectory call.

To revert to the standard search path used by LoadLibrary and LoadLibraryEx, call SetDllDirectory with nil. This also restores safe DLL search mode based on the SafeDllSearchMode registry value.

See also:

The items on this page are in the following plugins: MBS OCR Plugin.


The biggest plugin in space...