Skip to content

andrelp/canny_edge_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));
}

About

An edge detection library based on the canny algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages