# analyzeDocumentQuality static method

Future<ResultWrapper<DocumentQualityAnalyzerResult>> analyzeDocumentQuality(

1. String imageFileUri

)

Detects the quality of the document on a still image.

## Implementation

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

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

        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: DocumentQualityAnalyzerResult.fromJson);
      } catch (e) {
        Logger.root.severe(e);
        return ResultWrapper.error(e.toString());
      }
    }