saurabhsjoshi / CaptchaParser

A simple Captcha parsing algorithm developed for VITacademics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CaptchaParser

A simple Captcha parsing algorithm developed for VITacademics.

Quickstart

Clone the repo: git clone https://github.com/karthikb351/CaptchaParser.git.

Python Usage

Include the CaptchaParser.py file in the directory you are working in, else install it globally so you can import it from anywhere.

from CaptchaParser import CaptchaParser

img=Image.open("captcha.bmp")
parser=CaptchaParser()
captcha=parser.getCaptcha(img)
print captcha

Nodejs Usage

You'll need the CaptchaParser.js file within the scope of the node environment so you can require it.

var captcha = require("../CaptchaParser");
var fs = require("fs");
var buf = fs.readFileSync("captcha.bmp");

var pixMap = captcha.getPixelMapFromBuffer(buf);

console.log(captcha.getCaptcha(pixMap));

Bugs and feature requests

Have a bug or a feature request? If your problem or idea is not addressed yet, please open a new issue.

Contributing and License

Contribute away. Let's see them PRs.

Code released under the MIT license.

About

A simple Captcha parsing algorithm developed for VITacademics.


Languages

Language:JavaScript 53.2%Language:Python 46.8%