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.

var result = await ScanbotSdk.analyzeQualityOfDocument(page, analyzerImageSizeLimit: Size(width: 2500, height: 2500));
  • 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.
  • result - result object with enum
    • [documentQuality] DocumentQuality enum field
class DocumentQualityResult {
DocumentQuality? documentQuality;
DocumentQualityResult({this.documentQuality});
}
/// 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 a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top