Package io.scanbot.sdk.ocr
Class OcrEngine
java.lang.Object
io.scanbot.sdk.ocr.OcrEngine
- All Implemented Interfaces:
AutoCloseable
API for optical character recognition.
Required licence feature(s): Ocr.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OcrEngine
Constructs OcrEngine with the given params.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Details
-
run
Recognize text in the given image.- Parameters:
image- The image to recognize text in.- Returns:
- Page recognized in the image.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
close
public void close()Closes native resources held by the object.- Specified by:
closein interfaceAutoCloseable
-
finalize
-