image_edge_detection 0.0.4 image_edge_detection: ^0.0.4 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/functions.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.applySobelOnFile(image);
//Write result back to the original File
image.writeAsBytes(img.encodePng(result));
}