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

outdated

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 :)

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
0
pub points
21%
popularity

Publisher

unverified uploader

An edge detection library.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

image

More

Packages that depend on canny_edge_detection