# detectBarcodesFromImage static method

Future<BarcodeScannerResult> detectBarcodesFromImage(

1. MethodChannel channel,
2. Uri imageFileUri,
3. BarcodeScannerConfiguration configuration

)

## Implementation

    static Future<BarcodeScannerResult> detectBarcodesFromImage(
      MethodChannel channel,
      Uri imageFileUri,
      BarcodeScannerConfiguration configuration,
    ) async {
      try {
        final params = {
          "imageFileUri": imageFileUri.path,
          "configuration": configuration.toJson(),
        };

        final result =
            await channel.invokeMethod('detectBarcodesOnImages', params);
        return BarcodeScannerResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }