image_edge_detection 0.0.3
image_edge_detection: ^0.0.3 copied to clipboard
Applies mathematic Operators on Images, like the Sobel,-Scharr,-Laplace Operator, to detect edges on an image
import 'dart:io';
import 'package:image/image.dart' as img;
import 'package:image_edge_detection/edge_detection.dart' as det;
void main() async {
// Read an image from file
final image = File("test.png");
//Transfrom the Image and get the Result
final result = await det.applySobelOperator(image);
//Write result back to the original File
image.writeAsBytes(img.encodePng(result));
}