Created
May 30, 2013 16:02
-
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.
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
@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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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