Optional
source: DeepPartial<DocumentQualityAnalyzerConfiguration>Enable orientation detection. Document orientation will be returned in DocumentQualityAnalyzerResult.orientation
.
false;
If this number of symbols is found and minProcessedFraction of the image is processed, the processing stops.
100;
Maximum image size in pixels, if image is bigger, it will be resized.
2000;
at most this fraction of the image will be processed, range is from 0 to 1.
0.5;
if estimated number of symbols is less than this value, return that document is not found.
20;
at least this fraction of the image will be processed, range is from 0 to 1.
0.0;
quality levels.
["VERY_POOR", "POOR", "REASONABLE", "GOOD", "EXCELLENT"];
Quality thresholds to separate quality levels.
[new DocumentQualityThreshold({
"symbolQuality": 0.5,
"symbolRatio": 0.5
}), new DocumentQualityThreshold({
"symbolQuality": 0.7,
"symbolRatio": 0.3
}), new DocumentQualityThreshold({
"symbolQuality": 0.85,
"symbolRatio": 0.3
}), new DocumentQualityThreshold({
"symbolQuality": 0.9,
"symbolRatio": 0.1
})];
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.
false;
Image will be processed in tiles of this size; will be ignored if image is small.
300;
Generated using TypeDoc
Document Quality Analyzer configuration.