kdinisv/Recognize

CAPTCHAFORUM

Administrator
Installation
Using NPM utility to install module directly:
npm install recognize

### [Recognize Object].solving()
Code:
recognize.solving(data, {numeric:1, min_len:5}, function(err, id, code)
{
if(err) throw err;
console.log(id, code);
});
OR
Code:
recognize.solving(data, function(err, id, code)
{
if(err) throw err;
console.log(id, code);
});

Example
Code:
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);
        });
        }
    });
});

Documentation https://githubmemory.com/repo/kdinisv/Recognize