# analyzeDocumentQuality static method

Future<DocumentQualityAnalyzerResult> analyzeDocumentQuality(

1. String imageFileUri,
2. DocumentQualityAnalyzerConfiguration configuration

)

Analyzes a still image located at `imageFileUri` to detect document quality.

`configuration` defines analysis parameters.

## Implementation

    static Future<DocumentQualityAnalyzerResult> analyzeDocumentQuality(
        String imageFileUri,
        DocumentQualityAnalyzerConfiguration configuration) async {
      try {
        var operationParamsMap = <String, dynamic>{
          "imageFileUri": imageFileUri,
          "configuration": configuration.toJson()
        };

        var result = await ScanbotSdk.channel
            .invokeMethod('analyzeDocumentQuality', operationParamsMap);

        return DocumentQualityAnalyzerResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }