Package io.scanbot.sdk.textpattern
Class TextPatternScanner
java.lang.Object
io.scanbot.sdk.textpattern.TextPatternScanner
- All Implemented Interfaces:
AutoCloseable
API for text pattern scanning.
Required licence feature(s): TextPatternScanner.
-
Constructor Summary
ConstructorsConstructorDescriptionTextPatternScanner(TextPatternScannerConfiguration configuration) Constructs TextPatternScanner with the given params. -
Method Summary
-
Constructor Details
-
TextPatternScanner
Constructs TextPatternScanner with the given params.- Parameters:
configuration- The configuration to use for the generic text line scanner.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Details
-
run
public TextPatternScannerResult run(ImageRef image) throws InvalidImageRefException, LicenseException Recognize text line in the given image.- Parameters:
image- The image to recognize text line in.- Returns:
- The recognized text line.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
cleanRecognitionQueue
public void cleanRecognitionQueue()Clean the queue of recognize text lines. -
close
public void close()Closes native resources held by the object.- Specified by:
closein interfaceAutoCloseable
-
finalize
-