This repository provides you with a deployable model to solve captchas which contains characters with random alphanumeric character which has been strikethrough vertically and/or horizontally.
The tool to scrap these images from the website is also available on google colab
Check out my LinkedIn post for the description, use case, and other relevant information.
- Type of solvable captchas:
- How to use
- Accuracy
- CONTRIBUTING
Make sure you have a Google account and are signed in to access and run the notebook.
-
Go to Colab Notebook
-
Add your folder path to captchasolve function and get a list of strings with predicted texts.
-
Follow the instructions provided in the notebook to run and interact with the project.
- Download the zip file of the repo and extract it
- Add your captcha in userset directory present in data Directory
- Run the model_using.py present in the scripts directory in your python compiler
- Wait until the file has finished running, then the alphanumaric string after "For user provided captcha: " will be your output
Example
In output:For user provided captcha:
1/1 [==============================] - 0s 30ms/step
['2DG53S']
Your ans is 2DG53S
Here the captcha was:
(If you want to see/change the training data, u can do so by change the contents of trainset directory present in data Directory)
- Run the model_training.py present in the scripts directory in your python compiler
- Then do the steps provieded for Use the model provide directly
You can test the accuracy by either using the repos test dataset or by Notebooks
Use the steps provieded for Use the model provide directly but this time see the output after "For testdataset"
You can see/change the test data in the testset directory present in data Directory
- Test the accuracy of model using the notebooks given above on testdataset.
add it in the first line
Contributions are always welcome! Whether it's a feature request, bug fix, or a new idea, feel free to submit a pull request or open an issue. Let's enhance this tool together! Be sure to read CONTRIBUTING file to know about more contributions details.