2.0.0 • Published 2 years ago

recognize v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

Recognize

NPM

Installation

Using NPM utility to install module directly:

npm install recognize

Service

Documentation

Arguments:

  1. File buffer
  2. Optional parameters
  3. Callback function
recognize.solving(data, {numeric:1, min_len:5}, function(err, id, code)
{
	if(err) throw err;
	console.log(id, code);
});

OR

recognize.solving(data, function(err, id, code)
{
	if(err) throw err;
	console.log(id, code);
});

Example

var recognize = new Recognize('antigate', {
    key:'api-key'
});

recognize.balanse(function(price)
{
    console.log('My balance:', price);
});

fs.readFile('./captcha.png', function(err, data){
    recognize.solving(data, function(err, id, code)
    {
        if(err) throw err;
        if(isValide(code))
        	console.log('Captcha:', code);
        else
        {
        	console.log('Captcha not valid');
        	recognize.report(id, function(err, answer)
        	{
        		console.log(answer);
        	});
        }
    });
});
1.0.0

2 years ago

2.0.0

2 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago