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