Spire.OCR for Java 1.9.19 supports scanning image stream

2024-10-25 03:04:03

We are excited to announce the release of the Spire.OCR for Java 1.9.19. The latest version supports scanning image streams and adds a new module for OCR usage. Besides, some known bugs are successfully fixed in this update, such as the issue that image recognition threw an exception on Ubuntu system. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature - Supports a new module for OCR usage.
OcrScanner scanner = new OcrScanner();
//ConfigureOptions configureOptions = new ConfigureOptions("D:\\Models\\java\\Java\\win-x64\\","English");
ConfigureOptions configureOptions = new ConfigureOptions();
configureOptions.setLanguage("English");
configureOptions.setModelPath("D:\\Models\\java\\Java\\win-x64\\");
scanner.ConfigureDependencies(configureOptions);
scanner.scan(imageFile);
String scannedText=scanner.getText().toString();
System.out.println(scannedText);
New feature SPIREOCR-57
SPIREOCR-63
Supports scanning image streams.
InputStream stream = new FileInputStream(sourceFolder);
scanner.Scan(stream, OCRImageFormat.Gif);
Bug SPIREOCR-59 Fixes the issue that image recognition threw an exception on Ubuntu system.
Bug SPIREOCR-76 Fixes the issue that image data recognition was incorrect.
Click the link to download Spire.OCR for Java 1.9.19: