Class LibLeptonica
Inheritance
Namespace: DynamicTesseract
Assembly: IronOcr.dll
Syntax
public static class LibLeptonica : Object
Load the bundled Leptonica image-processing binary before any recognition runs through LibLeptonica, the static bootstrap for the layer that decodes and transforms images for Tesseract. Leptonica is the native dependency that Tesseract reads pixels through, so it must be resolved on disk before the engine starts.
The class exposes one entry point, the static Initialize, which takes an IronSoftware.Deployment.NativeLibrary describing where the platform-specific Leptonica binary lives and makes it available to the engine. IronOCR's high-level IronTesseract API handles this step automatically, so most code never calls it directly. Reach for LibLeptonica.Initialize only in a custom deployment where the native libraries ship outside the usual probing path and need to be pointed at explicitly, such as a trimmed publish, a single-file bundle, or a container image that stages the binaries in a dedicated folder.
The Tesseract 5 example shows the high-level engine in use, and the configure and set up Tesseract example walks through engine setup.
Methods
Initialize(NativeLibrary)
Declaration
public static void Initialize(NativeLibrary libLeptonica)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeLibrary | libLeptonica |