canny_edge_detection 1.0.2 copy "canny_edge_detection: ^1.0.2" to clipboard
canny_edge_detection: ^1.0.2 copied to clipboard

An edge detection library.

Small, simple and possibly faulty library which brings canny's edge detection to dart! The input images are objects of the class "image" of the image package. This library can therefore be used on mobile, web and server! Because this library cannot utilize the GPU and because it's just a very naive implementation of canny's edge detection algorithm, it's not very efficient and defenitly not ready for any real time computer vision applications! Just have some fun with it :)

Demo #

Usage #

import 'package:canny_edge_detection/canny_edge_detection.dart';
import 'dart:io';
import 'package:image/image.dart';

void main() {
  Image image = decodeImage(File("input.png").readAsBytesSync());
  canny(image);
  File("output.png").writeAsBytesSync(encodePng(image));
}
4
likes
30
pub points
21%
popularity

Publisher

unverified uploader

An edge detection library.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

image

More

Packages that depend on canny_edge_detection