2.0.0 • Published 4 years ago

recognize v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 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

4 years ago

2.0.0

4 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago