DocumentQualityAnalyzerConfiguration class

Document Quality Analyzer configuration.

Constructors

DocumentQualityAnalyzerConfiguration({List<DocumentQualityThreshold>? qualityThresholds, List<DocumentQuality>? qualityIndices, bool detectOrientation = false, bool inspectSmallText = false, int maxImageSize = 2000, int minEstimatedNumberOfSymbolsForDocument = 20, ProcessByTileConfiguration? processByTileConfiguration, double minRequiredOrientationConfidence = 0.0, bool returnQualityHeatmap = false})
DocumentQualityAnalyzerConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

detectOrientation bool
Enable orientation detection. Document orientation will be returned in DocumentQualityAnalyzerResult.orientation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inspectSmallText bool
Inspect small text (typically less than 12 pixels height) when analyzing the document quality. If true, processing will be slower, but when the quality issue with a document is the low resolution of the text, then the issue will be caught.
getter/setter pair
maxImageSize int
Maximum image size in pixels, if image is bigger, it will be resized. Zero or negative value means no limit.
getter/setter pair
minEstimatedNumberOfSymbolsForDocument int
If estimated number of symbols is less than this value, return that document is not found.
getter/setter pair
minRequiredOrientationConfidence double
If detectOrientation is True, minNumberOfRequiredSymbols is found, and orientationConfidence is bigger than this threshold, the processing stops. If the maxProcessedFraction part of the image is processed and orientationConfidence is lower than the threshold, the returned orientation will be 0.
getter/setter pair
processByTileConfiguration ProcessByTileConfiguration
Configuration for processing image by tiles.
getter/setter pair
qualityIndices List<DocumentQuality>
quality levels.
getter/setter pair
qualityThresholds List<DocumentQualityThreshold>
Quality thresholds to separate quality levels.
getter/setter pair
returnQualityHeatmap bool
If true, will return the quality heatmap as a part of the result. In this case, the entire image will be processed and the minProcessedFraction will be ignored. Useful for debugging situations where the returned quality doesn't appear to match the perceived quality.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({ToJsonConfiguration? config}) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited