Spire.OCR 1.9.8 supports configuring OCR models, languages, and dependency libraries

2024-07-12 06:58:40

We are pleased to announce the release of Spire.OCR 1.9.8. This version adds the ConfigureOptions class and ConfigureDependencies(ConfigureOptions configureOptions) method, which supports configuring OCR models, languages, and dependency libraries. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature - Adds the ConfigureOptions class and new method ConfigureDependencies(ConfigureOptions configureOptions), which supports configuring OCR models, languages, and dependency libraries.
OcrScanner scanner = new OcrScanner();

// Create a new instance of the ConfigureOptions class to set up the scanner configuration
ConfigureOptions configureOptions = new ConfigureOptions();

// Set the path to the model
configureOptions.ModelPath = @"D:\Model&Lib\Model\V4.Server";

// Set the path to the dependency libraries
configureOptions.LibPath = @"D:\Model&Lib\Lib\V2.7\Net\X64";

// Specify the language
configureOptions.Language = "Chinese";

// Apply the configuration options to the scanner using the ConfigureDependencies method
scanner.ConfigureDependencies(configureOptions);

scanner.Scan("test.tif");
Click the link to download Spire.OCR 1.9.8:
More information of Spire.OCR new release or hotfix: