karthikb351 / captchaparser Goto Github PK
View Code? Open in Web Editor NEWA simple Captcha parsing algorithm developed for VITacademics.
A simple Captcha parsing algorithm developed for VITacademics.
I've made a few changes to the python script, and the run time has been reduced to an average of 0.13 seconds, almost half of the earlier. Is it okay if I put up a pull request?
Include the requirements.txt
and dev-requirements.txt
files to make installing the Python dependencies like BeautifulSoup
and mechanize
easier.
The core script shouldn't need any dependencies other than pillow
.
This is taking longer than expected. Unfortunately.
My apologies @aneesh-neelam
Porting the algorithm to be used in GO language.
hi
i think this just work with BMP3
, and not work with BMP55
and JPG
......
how can convert a .JPG
to BMP3
?
i want try with image : http://itadoor.com/captcha.jpg
Hi, i want to know how can i get the CaptchaScript.php work with this kind of images https://consultas.curp.gob.mx/CurpSP/captchac_u_r_pa if u can help me up i will apreciate it, regards.
Im trying to use with http://www.detran.rj.gov.br/captcha/captcha.asp?montaCaptcha=1&x=1540240788840 this captcha. Everything looks good but the:
console.log(captcha.getCaptcha(pixMap));
is blank a blank response. Inside pixMap everything looks right.
There is something there Im doing wrong?
Full code:
`
const unirest = require('unirest');
const captcha = require('./CaptchaParser');
let captchaUri = await page.$eval(CAPTCHA, e => e.getAttribute('src'));
console.log('captcha uri', captchaUri);
var onRequest = function(response) {
if (response.error) {
console.log('VIT Academics connection failed');
} else {
let pixMap = captcha.getPixelMapFromBuffer(response.body); //Working Here
fs.writeFileSync('captcha.bmp', response.body);
console.log("Blank Here", captcha.getCaptcha(pixMap));
}
};
unirest
.get(captchaUri)
.encoding(null)
.set('Content-Type', 'image/bmp')
.end(onRequest);
`
CaptchaUri is the link above
I have to save the image into server and then I'm giving that image. Its saying some error when I directly give https://vtop.vit.ac.in/student/captcha.asp. Even after getting captcha from saved image from server I'm not able to login with curl. Any idea ?
Add a section on the overview of the code layout, how to install the dependencies and a short note on what the keys
are and how one can make their own.
hello,
Fetching Captcha
Traceback (most recent call last):
File "online.py", line 18, in <module>
r=br.open('https://academics.vit.ac.in/parent/parent_login.asp')
File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 254, in open
return self._mech_open(url_or_request, data, timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 284, in _mech_open
response = UserAgentBase.open(self, request, data)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_opener.py", line 195, in open
response = urlopen(self, req, data)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 352, in _open
'_open', req)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 340, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 1212, in https_open
return self.do_open(conn_factory, req)
File "/usr/local/lib/python2.7/dist-packages/mechanize/_urllib2_fork.py", line 1157, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
how fix?
please help me out with this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.