Class DocumentQualityAnalyzer
- java.lang.Object
-
- io.scanbot.sdk.documentqualityanalyzer.DocumentQualityAnalyzer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class DocumentQualityAnalyzer extends java.lang.Object implements java.lang.AutoCloseableAPI for analyzing document quality. Required licence feature(s): ImageProcessing.
-
-
Constructor Summary
Constructors Constructor Description DocumentQualityAnalyzer(DocumentQualityAnalyzerConfiguration configuration)Constructs DocumentQualityAnalyzer with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources held by the object.protected voidfinalize()DocumentQualityAnalyzerResultrun(ImageRef image)analyze document quality of the given image.
-
-
-
Constructor Detail
-
DocumentQualityAnalyzer
public DocumentQualityAnalyzer(DocumentQualityAnalyzerConfiguration configuration) throws LicenseException
Constructs DocumentQualityAnalyzer with the given params.- Parameters:
configuration- The configuration to use for the document quality analyzer.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Detail
-
run
public DocumentQualityAnalyzerResult run(ImageRef image) throws InvalidImageRefException, LicenseException
analyze document quality of the given image.- Parameters:
image- The image to analyze.- Returns:
- The analyzed document quality.
- 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 interfacejava.lang.AutoCloseable
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-