Skip to content

A simple image captcha generator for Dart. Originally ported from the npm captchapng module: https://github.com/GeorgeChan/captchapng

License

Notifications You must be signed in to change notification settings

ailabs-software/dart-image-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart-image-captcha (pub: imagecaptcha)

A simple image captcha generator for Dart. Originally ported from the npm captchapng module: https://github.com/GeorgeChan/captchapng

Features

  • Generates a numeric captcha image
  • Built-in fonts
  • Characters up and down, left and right limits, random displacement
  • No dependency on any service

Example

  ImageCaptcha captcha = new ImageCaptcha(80, 30);

  double rand = new Random().nextDouble();

  img.Image image = captcha.render( (rand*9000+1000).round() );

  new File("test2.png").writeAsBytes( img.encodePng(image) );

About

A simple image captcha generator for Dart. Originally ported from the npm captchapng module: https://github.com/GeorgeChan/captchapng

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages