Skip to content
forked from DoubleSpout/ccap

node.js generate captcha using c++ library CImg without install any other lib or software

Notifications You must be signed in to change notification settings

saintwinkle/ccap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccap-dev

A fork from ccap.

More simple to set additional parameters.

Install

$ npm install ccap-dev

Additional Parameters

  • textLen

    Length of captcha text.

    Default to 6.

  • noiseType

    Type of additive noise. 0: Gaussian 1: Uniform 2: Salt and Pepper 3: Poisson 4: Rician

    Default to 2.

  • noiseSigma

    Amplitude of the random additive noise.

    Default to 1.

Example

You can define captcha like this:

var ccap = require('ccap-dev')({
  width: 120,
  height: 36,
  offset: 24,
  quality: 100,
  fontSize: 24,
  textLen: 5,
  noiseType: 2,
  noiseSigma: 1
});

More usages: ccap

License

MIT

About

node.js generate captcha using c++ library CImg without install any other lib or software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 77.6%
  • C 22.2%
  • Other 0.2%