# Breaking-Captchas-with-a-CNN **Repository Path**: walkeriii/Breaking-Captchas-with-a-CNN ## Basic Information - **Project Name**: Breaking-Captchas-with-a-CNN - **Description**: Breaking Captchas using LeNet model - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Breaking Captchas with Convolutional Neural Networks * This project is a captcha breaker system that utilizes deep learning to achieve its goal. * The model has been trained using LeNet architecture. * An example of a captcha we aim to break is shown below.
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/captcha_example.jpg) # The steps followed to build the model: 1. Download the captcha dataset. 2. Split dataset into training and testing datasets. 3. Labelling images. The `annotate.py` script annotates all of the extract the digits from each image in `downloads` images and hand-label every digit automatically. 4. Training the model. The `train_model.py` script will train LeNet on the labelled digits. 5. Testing and evaluating our model on example images. The `test_model.py` will apply LeNet to captcha images themselves. # Result This model has achieved 100% accuracy. However, the used dataset might be simple. ## Samples
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/exp1.png)
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/exp2.png)
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/exp3.png)
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/exp4.png)
![](https://github.com/Ahid-Naif/Breaking-Captchas-with-a-CNN/blob/master/assets/exp5.png)