Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
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()
@christianroman

This comment has been minimized.

Copy link
Owner Author

@christianroman christianroman commented May 30, 2013

Example Captcha

@ivansabik

This comment has been minimized.

Copy link

@ivansabik ivansabik commented Aug 5, 2014

maestro! lo andaré probando en https://github.com/mexicapis/repuve-api

@ivansabik

This comment has been minimized.

Copy link

@ivansabik ivansabik commented Aug 5, 2014

qué wrapper usaste para python? :S me da el error de module tesseract no encontrado

@Silur

This comment has been minimized.

Copy link

@Silur Silur commented Jun 25, 2015

what tesseract library do you use for python?

@f-prime

This comment has been minimized.

Copy link

@f-prime f-prime commented Jul 29, 2015

Tesseract is used to convert images to text

@hussaintamboli

This comment has been minimized.

Copy link

@hussaintamboli hussaintamboli commented Aug 25, 2015

Please paste your requirements.txt.
I have installed

sudo apt-get install libopencv-dev python-opencv
pip install cv2

But I still get an error saying

ImportError: No module named cv2
@tsphack

This comment has been minimized.

Copy link

@tsphack tsphack commented Jan 22, 2016

Hussaintamboli
Use opencv 2.x
Not 3.x

@iamshivam007

This comment has been minimized.

Copy link

@iamshivam007 iamshivam007 commented Mar 29, 2016

what about digit. means if image contain both digit and alphabet

@ytrezq

This comment has been minimized.

Copy link

@ytrezq ytrezq commented Jul 11, 2016

@chroman : Of course, I suppose solving those kind of images is impossible whatever the Openᴄᴠ transformations are :
ackskin




@forum2k9

This comment has been minimized.

Copy link

@forum2k9 forum2k9 commented Dec 2, 2016

Hi,
How do I make it work with this kind of image?
re1
re2
re3
re4
re5
re6
re7
re8

@larose

This comment has been minimized.

Copy link

@larose larose commented Aug 11, 2017

@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

@jtanori

This comment has been minimized.

Copy link

@jtanori jtanori commented Sep 10, 2017

I solved the first one using the following

# import the necessary packages
from PIL import Image
from PIL import ImageEnhance
import PIL.ImageOps
import pytesseract
import argparse
import cv2
import os
import numpy

# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
	help="path to input image to be OCR'd")
args = vars(ap.parse_args())

# load the example image and convert it to RGB, invert it and adjust brightness
image = Image.open(args["image"]).convert('RGB')
image = PIL.ImageOps.invert(image)
image = ImageEnhance.Brightness(image)
image = image.enhance(10)
imageArray = numpy.array(image)
imageArray = imageArray[:, :, ::-1].copy()

filename = "{}.png".format(os.getpid())
image.save(filename)

# load the image as a PIL/Pillow image, apply OCR, and then delete
# the temporary file
text = pytesseract.image_to_string(Image.open(filename))
os.remove(filename)
print(text)

# show the output images
cv2.imshow("Image", imageArray)
cv2.waitKey(0)

Then just run your script with

python ocr.py --image <imagepath> 

This was just a draft so you can ignore cv2, I tried it with a bunch (around 200) of different images from the same generator and it had a 100% rate of success, didn't test that much though.

@marti1125

This comment has been minimized.

Copy link

@marti1125 marti1125 commented Sep 14, 2017

captchaimage
how to I can get the text from this image ?

@alerin00

This comment has been minimized.

Copy link

@alerin00 alerin00 commented Dec 7, 2017

How to i can get the text from this image ?
00diomv8woshdm1kfasbhrqd0prvzw2a
I tried this:
image.Morphology(MorphologyMethod.Erode, Kernel.Octagon, 1)
image.Negate()
image.Threshold(New Percentage(70))
But, appearing dots inside the letters, i think need fill the dots before morphology.
2017-12-07 19_21_26-form1

@alerin00

This comment has been minimized.

Copy link

@alerin00 alerin00 commented Dec 8, 2017

I solved it using ReduceNoise before:

    image.ReduceNoise()
    image.Morphology(MorphologyMethod.Erode, Kernel.Octagon, Channels.Default)
    image.Negate()
    image.Threshold(New Percentage(70))

But the next images not solved correctly with this same solution. How to solve it?

0aemmqezdnfjbt3ekakk4cm1xnosmw9s
0c4trn7houtsgiknmfrm9dkgldlwpvk9
0dkmvdmpntougs3me0ksn1ivdchbzqlx
0dpnatw7goffukd7fyqcsocnu58s4yvn
0e3zagng7thg1ajndc8pc3tmuiebbwiy
0er0qmw5vp1mzyu45eryg0fnzdayyqwj
0fxo96pviglb17ylkjg51phji1ltr35j
0hmf2egld3ordil8fdl0c0xzjsrvsv8r
0hsvndk2uxmgfkvhfzs1leewx7cxh7b4
0ioztnynfyixch5vyrqmmufgsv6labde
0jofqglqars965foft4regfxy98kglod
0jzywlzdyfppbwd90d6hzskkahu6dd6o
0kbx1gyiswzrv4wvljvmoxaik7pce5oh
0kfhkpuu7rgvi7lfculgiknpszwarmie
0m4ewkjpmq5647kndhsisy78buzrrflt
0p4lxrtwqhhqyvnjq0geylnieenmkztf
0r95gszjss1eghqcynnpznpdo2teukxr
0svm0w1nglqit0wzlelvpyig9cm9otws
0xyhvdumov6xd2smphpssnvzfzerualk
1bc6ydstouj6y1n02sdazvugon98biek
1cytslinwcqid56kfmuvprowm6vj8hh1

@omkarshinde254

This comment has been minimized.

Copy link

@omkarshinde254 omkarshinde254 commented Dec 13, 2017

one
How will we solve this?

@gabrielsegalla

This comment has been minimized.

Copy link

@gabrielsegalla gabrielsegalla commented Dec 20, 2017

How will we solve this?
captcha 1

@citotob

This comment has been minimized.

Copy link

@citotob citotob commented Dec 28, 2017

sccimbcaptcha

how to solve this?

@citotob

This comment has been minimized.

Copy link

@citotob citotob commented Dec 28, 2017

and how to solve this? thank u

captcha

@pkostrzewa

This comment has been minimized.

Copy link

@pkostrzewa pkostrzewa commented Dec 29, 2017

Is it possible to solve such CAPTCHAs?
download
download 1

@KyleBoyer

This comment has been minimized.

Copy link

@KyleBoyer KyleBoyer commented Jan 9, 2018

I've got a challenge, cracking these captchas:

bot4
bot2
bot
bot3

bot5

@MegsterDerpington

This comment has been minimized.

Copy link

@MegsterDerpington MegsterDerpington commented Jan 31, 2018

rendercaptcha
what's this one

@MiRHaDi

This comment has been minimized.

Copy link

@MiRHaDi MiRHaDi commented Feb 4, 2018

Hi
how can i do it ?

image
image
image
image

@MabutasGroup

This comment has been minimized.

Copy link

@MabutasGroup MabutasGroup commented Feb 16, 2018

@alerin00 @marti1125 @forum2k9 @MiRHaDi
Hi friends, You should use pytesseract library.
I solved captchas like these before.
Because of old stuff, If you want help, contact me under antoniomabutas84@gmail.com

Best regards,
Antonio

@jor3l

This comment has been minimized.

Copy link

@jor3l jor3l commented Feb 16, 2018

Best way is to use TensorFlow and train a model to solve the captchas (you should be able to genetare enough training data to make it reliable).

@OCR-Fanboy

This comment has been minimized.

Copy link

@OCR-Fanboy OCR-Fanboy commented Mar 2, 2018

How can i crack captchas like this?
1
2
3
4
5
6
7
8
9
10

I usually use download the captcha with PHP, get certain pixels (Based on color), and save it as a jpg, and then run then throught gOCR.
But cant get those to work, and new to tesseract.

Any help is welcome

@WHK102

This comment has been minimized.

Copy link

@WHK102 WHK102 commented Mar 7, 2018

Canot decode this captcha, the line is same weight as words.

captcha

@ppc52776

This comment has been minimized.

Copy link

@ppc52776 ppc52776 commented Mar 12, 2018

@WHK102, I have the same problem.
The line color and weight are same as words.
c01
c03
c12
c20

Commands I tried:

# convert in.jpg -scale 400% -threshold 90% -morphology dilate octagon:4 out.png
# tesseract out.png -psm 8 -c tessedit_char_whitelist=0123456789 -
@nfaycel

This comment has been minimized.

Copy link

@nfaycel nfaycel commented Mar 16, 2018

01
02
03
04
Please i need some help here .

@yoandysse

This comment has been minimized.

Copy link

@yoandysse yoandysse commented Apr 17, 2018

0d4aa746bf647ddb6403f34f457dc1aea4d546b3
Algo para este tipo de captcha?

@lzzy12

This comment has been minimized.

Copy link

@lzzy12 lzzy12 commented Jul 22, 2018

TensorFlow is the best solution probably here

@inventer88

This comment has been minimized.

Copy link

@inventer88 inventer88 commented Aug 19, 2018

thresholdbin
Is it possible to recognize this image?
caption-work

@blanketyblank1

This comment has been minimized.

Copy link

@blanketyblank1 blanketyblank1 commented Sep 8, 2018

Hi, any suggestions for text intersected by multiple curved lines of the same weight?

download-3
download-4
download-6
download-7
download-2
download-5

@Klapkaak078

This comment has been minimized.

Copy link

@Klapkaak078 Klapkaak078 commented Oct 6, 2018

Someone that can Solve this 2 guys.
captcha1
unnamed

@dyohan9

This comment has been minimized.

Copy link

@dyohan9 dyohan9 commented Nov 1, 2018

Hello, how do I decipher these captcha with this parser? or using ImageMagick or even a python script, could you guys help me?
1
2
3
4
5
6
Thank!

@hamidaspnet

This comment has been minimized.

Copy link

@hamidaspnet hamidaspnet commented Sep 28, 2019

Hi MabutasGroup.
How can i solve this Captcha?
Thanks

cc
pr9qb
bwjtk

@hamidaspnet

This comment has been minimized.

Copy link

@hamidaspnet hamidaspnet commented Sep 28, 2019

@blanketyblank1

Hi, any suggestions for text intersected by multiple curved lines of the same weight?

download-3
download-4
download-6
download-7
download-2
download-5

Hi,
I want solve a Captcha similar yours.
Did you solve it?
i will appreciate if you help me .

2323
pr9qb
ymjfh

@hamidaspnet

This comment has been minimized.

Copy link

@hamidaspnet hamidaspnet commented Sep 28, 2019

I've got a challenge, cracking these captchas:

bot4
bot2
bot
bot3

bot5

Hi,
I want solve a Captcha similar yours.
Did you solve it?
i will appreciate if you help me .

2323
pr9qb
ymjfh

@tradigrada1

This comment has been minimized.

Copy link

@tradigrada1 tradigrada1 commented Feb 9, 2020

@THAVASIGTI

This comment has been minimized.

Copy link

@THAVASIGTI THAVASIGTI commented Jun 28, 2020

google captcha bypass, use python script in GUI of requests module any think solve the problam

@tradigrada1

This comment has been minimized.

Copy link

@tradigrada1 tradigrada1 commented Jun 28, 2020

@MastaDan9

This comment has been minimized.

Copy link

@MastaDan9 MastaDan9 commented Jul 8, 2020

Hey, everybody. Help me unravel the capsule. Tried a bunch of settings.
10381
Please help me)

@Alemalakra

This comment has been minimized.

Copy link

@Alemalakra Alemalakra commented Jul 11, 2020

@tradigrada1 add me on telegram @Alemalakra

@ItsRohan0165

This comment has been minimized.

Copy link

@ItsRohan0165 ItsRohan0165 commented Aug 24, 2020

how do i decode such captcha?? can you help!!!
5832

@Jonakss

This comment has been minimized.

Copy link

@Jonakss Jonakss commented Sep 16, 2020

Hi
how can i do it ?

image
image
image
image

Have you progress with this. I doing it right now.

@niraj-lal-rahi

This comment has been minimized.

Copy link

@niraj-lal-rahi niraj-lal-rahi commented Sep 27, 2020

screenshot

Trying to resolve above captcha code, any help?

Tried Code below

captcha_text = image_to_string(Image.open('screenshot.png'))
print( captcha_text)

@rlsblogse

This comment has been minimized.

Copy link

@rlsblogse rlsblogse commented Oct 23, 2020

hello,
how do we solve this to TEXT

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRFmJiY////AAAAaGhowMDA5OTk9PT0NjY26ES/zwAAB69JREFUeNrs3ct22zYARVHQePD//7iS3GQ5qZOKkmySuPsMOmhXBza2QQCWibIouuJbAIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAAAOBbAIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAA/62/7VAHAAAAjlEDAAAAAAAgFUDZA8AAIBuAGQAAAA5SBQAAAIIBrAAAYBcQDODNDBANYACQDaADAAAA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DDABma9snghYAojcB/jYwfAkAQPgSwJ+HT9casgsE4BVPAK+ICd8DnPn2OAA+a+N9ZF4Tl70E9KLI2dr6liivio1eAZz73qizAmjt677rW18S5nXxu+zT1q8isPkNUQWAfTbq65dc2rj9RaEdgN1Oakrff/zPfW/cyQFcHsCvfRI88KLgAsCeAK5Pgv4yA+2BCyP6AGBXAO8Gdln/uzn0IABuV0U+beCxS6PcHXwMALd54JkjuUevjXN7+GEAvK8J+7cO/8kvjp0PwPud0VsRPHF1bAfgaAA23h492jM3iNcBwCEB/FDwVwajt/Lk9fFtAeC4AH48Eq4QWu993Oqj99ZKqU+O/RQTQAKAr+z0EwAAz00ACwDRADoA0QBm+DgVAI+3DgCiAbQFgGQAc3yeFoDoBwAA0TsAANIXAACELwAACD4CBCD6d0AAPLcBACAZwDrP8AOQPv4AJD//AXho/AFIBlDmGn4Atp7/zTb+AGxa/rVlASAXQB0LAMEAJvzxByD8xx+A5Kf/uQH09Vs3f8sCwOHmgNXePxrAU3/UvWX4+7IAcMzGw691uPvZP/nwn/5dwWN85TRQA96kfPovcSy9rH74cwG87wlKffXotzEWAM40E7SXTQTX0V9Smuopd0FQnx/8viQ12TJn3N7789jLX9aa9JM/KYD3ncGldmFwt4Pr0AeO/awAflkd3l4HdbFQ11s/h3xdL//u8l9a66EjnwHg97nh47NiXP8Zn0ujABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAAQCAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAOhV/SPAAJk9UICWCrftAAAAAElFTkSuQmCC

@raylison100

This comment has been minimized.

Copy link

@raylison100 raylison100 commented Nov 3, 2020

Olá, alguma sugestão de texto cruzado por várias linhas curvas com o mesmo peso?

download-3
download-4
download-6
download-7
download-2
download-5

Have you made any progress? I have this same captcha.

@omar1024

This comment has been minimized.

Copy link

@omar1024 omar1024 commented Jan 21, 2021

Please paste your requirements.txt.
I have installed

sudo apt-get install libopencv-dev python-opencv
pip install cv2

But I still get an error saying

ImportError: No module named cv2

use
pip install opencv-python
to install cv2

@tradigrada1

This comment has been minimized.

Copy link

@tradigrada1 tradigrada1 commented Jan 22, 2021

@haltcompiler

This comment has been minimized.

Copy link

@haltcompiler haltcompiler commented Feb 9, 2021

hello,
how do we solve this to TEXT

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRFmJiY////AAAAaGhowMDA5OTk9PT0NjY26ES/zwAAB69JREFUeNrs3ct22zYARVHQePD//7iS3GQ5qZOKkmySuPsMOmhXBza2QQCWibIouuJbAIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAAAOBbAIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAA/62/7VAHAAAAjlEDAAAAAAAgFUDZA8AAIBuAGQAAAA5SBQAAAIIBrAAAYBcQDODNDBANYACQDaADAAAAwQAaAADYBeQCGGaA8BmgAAAAAMEAKgAAAACAXUDqLmA1A2TPAG8AAABA8CMAgGwAHYBsAPucBNsFpAMwAwAAwDG+AgAAACAXwAAgfAaodgEAmAGCAawAAHBfdbywBYCDdP8PrXciTrk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gN1Oakrff/zPfW/cyQFcHsCvfRI88KLgAsCeAK5Pgv4yA+2BCyP6AGBXAO8Gdln/uzn0IABuV0U+beCxS6PcHXwMALd54JkjuUevjXN7+GEAvK8J+7cO/8kvjp0PwPud0VsRPHF1bAfgaAA23h492jM3iNcBwCEB/FDwVwajt/Lk9fFtAeC4AH48Eq4QWu993Oqj99ZKqU+O/RQTQAKAr+z0EwAAz00ACwDRADoA0QBm+DgVAI+3DgCiAbQFgGQAc3yeFoDoBwAA0TsAANIXAACELwAACD4CBCD6d0AAPLcBACAZwDrP8AOQPv4AJD//AXho/AFIBlDmGn4Atp7/zTb+AGxa/rVlASAXQB0LAMEAJvzxByD8xx+A5Kf/uQH09Vs3f8sCwOHmgNXePxrAU3/UvWX4+7IAcMzGw691uPvZP/nwn/5dwWN85TRQA96kfPovcSy9rH74cwG87wlKffXotzEWAM40E7SXTQTX0V9Smuopd0FQnx/8viQ12TJn3N7789jLX9aa9JM/KYD3ncGldmFwt4Pr0AeO/awAflkd3l4HdbFQ11s/h3xdL//u8l9a66EjnwHg97nh47NiXP8Zn0ujABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAAQCAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAOhV/SPAAJk9UICWCrftAAAAAElFTkSuQmCC

try this in python3

import base64
data = "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRFmJiY////AAAAaGhowMDA5OTk9PT0NjY26ES/zwAAB69JREF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M/KYD3ncGldmFwt4Pr0AeO/awAflkd3l4HdbFQ11s/h3xdL//u8l9a66EjnwHg97nh47NiXP8Zn0ujABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAAQCAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAOhV/SPAAJk9UICWCrftAAAAAElFTkSuQmCC"
imgdata = base64.b64decode(data)
filename = 'some_image.jpg'
with open(filename, 'wb') as f:
f.write(imgdata)

@lol-1-afk

This comment has been minimized.

Copy link

@lol-1-afk lol-1-afk commented Apr 27, 2021

image
this?

@anhtuan0030

This comment has been minimized.

Copy link

@anhtuan0030 anhtuan0030 commented Aug 14, 2021

@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?
download-3
download-4
download-6
download-7
download-2
download-5

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment