Created
May 30, 2013 16:02
-
Star
(128)
You must be signed in to star a gist -
Fork
(51)
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 hidden or 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 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=ullahhammad554@gmail.com
My Watsapp = 03431958962
I will
El El lun, 13 oct 2025 a las 19:29, Sumant Shekhar ***@***.***>
escribió:
… ***@***.**** commented on this gist.
------------------------------
can someone help me build a code in python Selenium
image.png (view on web)
<https://gist.github.com/user-attachments/assets/ea5b8552-2bcd-486c-8172-dae766891152>
https://sdms.udiseplus.gov.in/p0/v1/login?state-id=110
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/christianroman/5679049#gistcomment-5801148> or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGCIMIUKDIO27LQSRH4LZD3XPOQ7BFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLKJRHE2TOMBWGU4DNJDOMFWWLKDBMN2G64S7NFSIFJLWMFWHKZNEORZHKZNENZQW2ZN3ORUHEZLBMRPXAYLSORUWG2LQMFXHIX3BMN2GS5TJOR4YFJLWMFWHKZNEM5UXG5FENZQW2ZNLORUHEZLBMRPXI6LQMWWHG5LCNJSWG5C7OR4XAZNLI5UXG5CDN5WW2ZLOOSTHI33QNFRXHEMCUR2HS4DFURTWS43UUV3GC3DVMWTTKNRXHEYDIONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Use SikuliX
El El lun, 13 oct 2025 a las 19:39, Sumant Shekhar ***@***.***>
escribió:
… ***@***.**** commented on this gist.
------------------------------
I will El El lun, 13 oct 2025 a las 19:29, Sumant Shekhar *@*.***>
escribió:
really thanks man . :)
by the way r we using image rendering or cookies ?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/christianroman/5679049#gistcomment-5801161> or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGCIMKPOLHVL627WPXGDKL3XPPWJBFHORZGSZ3HMVZKMY3SMVQXIZNMON2WE2TFMN2F65DZOBS2WR3JON2EG33NNVSW45FGORXXA2LDOOIYFJDUPFYGLJDHNFZXJJLWMFWHKZNHGU3DOOJQGQ42UYLUORZGSYTVORSXHE4CUV3GC3DVMWUTCOJVG4YDMNJYG2SG4YLNMWUGCY3UN5ZF62LEQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZQKSXMYLMOVS2IZ3JON2KI3TBNVS2W5DIOJSWCZC7OR4XAZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Search about SikuliX IDE, you need it to solve the captha trough OCR, it
uses Jython, don’t use selenium and Python for this.
El El lun, 13 oct 2025 a las 19:46, Sumant Shekhar ***@***.***>
escribió:
… ***@***.**** commented on this gist.
------------------------------
:( can you code Preety Please :)
import sys
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import ElementNotInteractableException
from selenium.webdriver.common.keys import Keys
from webdriver_manager.chrome import ChromeDriverManager
import time
import random
options = Options()
options.add_experimental_option("detach", True)
driver =
webdriver.Chrome(service=Service(ChromeDriverManager().install()),
options=options)
driver.get("https://sdms.udiseplus.gov.in/p0/v1/login?state-id=110")
driver.maximize_window()
input_element = driver.find_element(By.CLASS_NAME, "form-control")
input_element.send_keys("username")
input_element = driver.find_element(By.ID, "password-field")
input_element.send_keys("passowrd")
captchas Bypasernot worikng :(
#write own 15 sec wait
time.sleep(15)
try:
login_button = WebDriverWait(driver, 15).until(
EC.presence_of_element_located((By.ID, "submit-btn"))
)
login_button.click()
except Exception as e:
print(f"Error clicking login button: {e}")
time.sleep(25)
student_count = 1
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/christianroman/5679049#gistcomment-5801174> or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGCIMO4UAVHT7DR56ZDYUL3XPQPNBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLKJRHE2TOMBWGU4DNJDOMFWWLKDBMN2G64S7NFSIFJLWMFWHKZNEORZHKZNENZQW2ZN3ORUHEZLBMRPXAYLSORUWG2LQMFXHIX3BMN2GS5TJOR4YFJLWMFWHKZNEM5UXG5FENZQW2ZNLORUHEZLBMRPXI6LQMWWHG5LCNJSWG5C7OR4XAZNLI5UXG5CDN5WW2ZLOOSTHI33QNFRXHEMCUR2HS4DFURTWS43UUV3GC3DVMWTTKNRXHEYDIONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@NotTrueFalse hey : those kind of captchas are automatically generated by https://captcha.com/java-captcha.html. You could get millions of such annotated captchas.