Skip to main content

Document Quality Analyzer | Flutter Document Scanner

Document Quality Analyzer

Analyze image text quality of a given page. The document image will be analyzed, if possible. If there is no document image - then the original image will be used. Returns an enum with the document text quality description.

ScanbotSdk.analyzeQualityOfDocument(Page: page, { Size? analyzerImageSizeLimit })

  • page - The page on which to analyze the text quality.
  • analyzerImageSizeLimit - the maximum size of the document image to run detection on. If the image is larger than the specified size it will be downscaled.
var result = await ScanbotSdk.analyzeQualityOfDocument(page, analyzerImageSizeLimit: Size(width: 2500, height: 2500));
class DocumentQualityResult {
DocumentQuality? documentQuality;
DocumentQualityResult({this.documentQuality});
}
Arguments:
  • result - result object with enum
    • [documentQuality] DocumentQuality enum field
/// The document quality status that comes from DocumentQualityAnalyzer
enum DocumentQuality {
/// Can't recognize a document. */
NO_DOCUMENT,

/// Very poor document quality. */
VERY_POOR,

/// Poor document quality. */
POOR,

/// Reasonable document quality. */
REASONABLE,

/// Good document quality. */
GOOD,

/// Excellent document quality. */
EXCELLENT,
}

Want to scan longer than one minute?

Generate your free "no-strings-attached" Trial License and properly test the Scanbot SDK.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top