Package io.scanbot.sdk.process
Class DefaultDocumentQualityAnalyzer
-
- All Implemented Interfaces:
-
io.scanbot.sdk.process.DocumentQualityAnalyzer
public final class DefaultDocumentQualityAnalyzer implements DocumentQualityAnalyzer
Default implementation for DocumentQualityAnalyzer
-
-
Constructor Summary
Constructors Constructor Description DefaultDocumentQualityAnalyzer()
-
Method Summary
Modifier and Type Method Description Unit
setAnalyzerImageSizeLimit(Integer sizeLimit)
Set the maximum size of the image to be analyzed. Unit
setMinEstimatedNumberOfSymbolsForNoDocument(Integer numberOfSymbols)
Set the minimum estimated number of symbols for an image to be considered as a document. DocumentQualityResult
analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image. DocumentQualityResult
analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image. DocumentQualityResult
analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image. DocumentQualityResult
analyzeInBitmap(Bitmap bitmap, Integer orientation)
Run text legibility analyses on given Bitmap image. -
-
Method Detail
-
setAnalyzerImageSizeLimit
Unit setAnalyzerImageSizeLimit(Integer sizeLimit)
Set the maximum size of the image to be analyzed. Input image will be resized if it is larger.
Default value is 2500.
-
setMinEstimatedNumberOfSymbolsForNoDocument
Unit setMinEstimatedNumberOfSymbolsForNoDocument(Integer numberOfSymbols)
Set the minimum estimated number of symbols for an image to be considered as a document.
Default value is 20.
-
analyze
DocumentQualityResult analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image.
-
analyzeInBGR
DocumentQualityResult analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image.
-
analyzeInJPEG
DocumentQualityResult analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image.
-
analyzeInBitmap
DocumentQualityResult analyzeInBitmap(Bitmap bitmap, Integer orientation)
Run text legibility analyses on given Bitmap image.
-
-
-
-