A Simple Framework to Crack Captcha Based on Tensorflow
The Easiest Way:
- Put all your labeled images into a folder
- Instantiate the CrackCaptcha class:
CrackCaptcha = CrackCaptcha(your_images_folder)
- Call auto_crack to train a model:
CrackCaptcha.auto_crack()
If the number of your labeled images is more than 2500, you can use:CrackCaptcha.auto_crack(fine_tuning=False)
- Then you can use
CrackCaptcha.crack_one_image(image_file)
to return the predict text.
Good Luck!