-
Star
(128)
You must be signed in to star a gist -
Fork
(52)
You must be signed in to fork a gist
-
-
Save christianroman/5679049 to your computer and use it in GitHub Desktop.
import cv2.cv as cv | |
import tesseract | |
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE) | |
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY) | |
api = tesseract.TessBaseAPI() | |
api.Init(".","eng",tesseract.OEM_DEFAULT) | |
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz") | |
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD) | |
tesseract.SetCvImage(gray,api) | |
print api.GetUTF8Text() |
@forum2k9 I solved the first one with
convert
and Tesseract:$ convert ofdbmf.jpg -colorspace Gray -blur 0 -level 0,60% ofdbmf-1.jpg $ tesseract -psm 8 ofdbmf-1.jpg - OFDBMF
I posted the details at https://mathieularose.com/decoding-captchas
Olá, alguma sugestão de texto cruzado por várias linhas curvas com o mesmo peso?
Have you made any progress? I have this same captcha.
Hello sir, do you resolve this? can you share with us pls?
@forum2k9 can you help us too?
Thanks!
it is not working for my captcha @jtanori
it is not working for my captcha @jtanori
Any solutions nowadays?
I was joking, I'm actually making a model to solve them, don't worry
It's done, but it work only with the type of captcha I posted here, If you want me to make a model for your type of captcha, I need a dataset with at least 10k captcha.
If you don't have it, send me an image, I'll find how to gen a lot of captcha, make a model then tell you how to use it.
contact info : enderty on discord
Sounds good. Please let me now whener it completed
…
It's done, but it work only with the type of captcha I posted here, If you want me to make a model for your type of captcha, I need a dataset with at least 10k captcha. If you don't have it, send me an image, I'll find how to gen a lot of captcha, make a model then tell you how to use it. contact info : enderty on discord
@NotTrueFalse hey : those kind of captchas are automatically generated by https://captcha.com/java-captcha.html. You could get millions of such annotated captchas.
Thank you, I'll make another branch so you can generate another type or captcha, I'll have to update the pre-processing part though but it should be fine.
@NotTrueFalse my intent wasn t generating the dataset myself.
You want me to do all the step to create the model? At this point I could just create a website and make a cheap api for people
@NotTrueFalse I lack the knowledge to train an ai and I m bad at advanced databases scenarios.
Bro I need a script for captcha solving I will pay you my
Email=[email protected]
My Watsapp = 03431958962
this?