Package io.scanbot.sdk.process
Interface DocumentQualityAnalyzer
-
- All Implemented Interfaces:
public interface DocumentQualityAnalyzer
Analyzes text legibility on the images.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
setAnalyzerImageSizeLimit(Integer sizeLimit)
Set the maximum size of the image to be analyzed. abstract Unit
setMinEstimatedNumberOfSymbolsForNoDocument(Integer numberOfSymbols)
Set the minimum estimated number of symbols for an image to be considered as a document. abstract DocumentQualityResult
analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image. abstract DocumentQualityResult
analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image. abstract DocumentQualityResult
analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image. abstract DocumentQualityResult
analyzeInBitmap(Bitmap bitmap, Integer orientation)
Run text legibility analyses on given Bitmap image. -
-
Method Detail
-
setAnalyzerImageSizeLimit
abstract 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
abstract 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
abstract DocumentQualityResult analyze(ByteArray nv21, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given nv21 image.
-
analyzeInBGR
abstract DocumentQualityResult analyzeInBGR(ByteArray bgr, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given byte-array-encoded image.
-
analyzeInJPEG
abstract DocumentQualityResult analyzeInJPEG(ByteArray jpeg, Integer width, Integer height, Integer orientation)
Run text legibility analyses on given jpeg-encoded byte array image.
-
analyzeInBitmap
abstract DocumentQualityResult analyzeInBitmap(Bitmap bitmap, Integer orientation)
Run text legibility analyses on given Bitmap image.
-
-
-
-