deokgyuhan / flutter_image_processing

MIT License
4 stars 3 forks source link

flutter_image_processing

"flutter_image_processing plugin project."

1. Introduction

2. Screenshots

Home Select Image Gaussian Blur Result Canny Edge Detector Result
Home Select Image Gaussian Blur Result Canny Edge Detector Result

3. Setup

4. Usage

import 'package:flutter_image_processing/flutter_image_processing.dart' as flutter_image_processing;

//get opencv version
var version = flutter_image_processing.opencvVersion();

final ImagePicker _picker = ImagePicker();

//Gaussian Blur
final imageFile = await _picker.pickImage(source: ImageSource.gallery);
final imagePath = imageFile?.path ?? "none";

await flutter_image_processing.gaussianBlur(imagePath);

//Canny Edge Detector
final imageFile = await _picker.pickImage(source: ImageSource.gallery);
final imagePath = imageFile?.path ?? "none";

await flutter_image_processing.cannyDetector(imagePath);

- Reference -