This project aims to read and Solve captchas from the Golestan website. Steps:
- Collect captchas using an API.
- Convert captcha backgrounds to black and white.
- Split the created picture into alphabet and digits by cropping the picture.
- Train the handmade Dataset from Golestan captchas
- Implement KNN to the trained dataset.
- Save the model to the .sav file to decrease the program's running time.
- Generate the captcha's text with 96% accuracy.
Install the dependencies.
pip3 install -r requirements.txt
Run modelTrainer.py for train model using Datasets.
After the model is created and saved in the directory you should run captchaSolver.py to solve the specific captcha.
-
modelTrainer.py: trains the model
-
captchaSolver.py: captcha solver
-
cropLettersFromImage.py: image preproccessing and cropping
-
TrainAndSolver.py: captcha solving proccess in notebook
-
Datasets: training dataset captchas
-
Golestan-Captchas: test captchas