This project hosts the python code which it trains the captcha resolver and provides the output .dat and .hdf5 files
Steps to train the captcha model
-
Clone the project to your local folder.
-
Unzip the generated_captcha_images.zip in the same folder.
-
Create a new folder by name extracted_letter_images in the folder where train_model.py is present.
-
Before running the requirements.txt have pyhton 3 installed in your system.
-
From the command prompt navigate to folder where extract_single_letters_from_captchas.py is present and then run "python extract_single_letters_from_captchas.py".
-
Once the execution of the above command is done then run "python train_model.py" .
-
After the execution of "python train_model.py" command this will create "captcha_model.hdf5" and "model_labels.dat" files in the same folder and later this file will be used for predicting the letters in the ecourt captcha image(python train_model.py execution will take 5 to 10 minutes for completion) .
-
To test model run "python solve_captchas_with_model.py".