# extractDocumentDataFromImage method

Future<DocumentDataExtractionResult> extractDocumentDataFromImage(

1. String imageUri,
2. DocumentDataExtractorConfiguration configuration

)

Performs a generic document data extraction from the image at `imageUri`.

## Implementation

    Future<DocumentDataExtractionResult> extractDocumentDataFromImage(
        String imageUri, DocumentDataExtractorConfiguration configuration) async {
      return _recognizeOnImage<DocumentDataExtractionResult>(
          'extractDocumentDataFromImage',
          {'imageFileUri': imageUri, 'configuration': configuration.toJson()},
          (json) => DocumentDataExtractionResult.fromJson(json));
    }