estimateBlurOnPage static method

Future<double> estimateBlurOnPage(
  1. Page page
)

Estimate blurriness on 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 the value between 0.0 and 1.0. Values closer to 0.0 mean that the image is sharper, values closer to 1.0 - the image is blurred.

Implementation

static Future<double> estimateBlurOnPage(Page page) async {
  try {
    var arguments = {'page': page.toJson()};
    final value =
        await _channel.invokeMethod('estimateBlurOnPage', arguments);
    return value;
  } catch (e) {
    Logger.root.severe(e);
    rethrow;
  }
}