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. DocumentQuality
analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image. DocumentQuality
analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image. DocumentQuality
analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image. DocumentQuality
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
DocumentQuality analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image.
-
analyzeInBGR
DocumentQuality analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image.
-
analyzeInJPEG
DocumentQuality analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image.
-
analyzeInBitmap
DocumentQuality analyzeInBitmap(Bitmap bitmap, Integer orientation)
Run text legibility analyses on given Bitmap image.
-
-
-
-