Skip to content

AnasIshfaque/Braille-CNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrailleNet: Convolutional Neural Network for Braille Character Classification

Introduction

BrailleNet is a convolutional neural network (CNN) designed for the classification of Braille characters. This repository includes the code for training the model using the Braille Dataset and provides an overview of the network architecture.

Dataset Preparation

  1. The Braille Dataset is organized in the following structure:
  2. dataset/
    └── Braille Dataset/
     └── Braille Dataset/
      ├── a1.JPG
      ├── a2.JPG
      ├── ...
      └── z9.JPG
  3. Create a directory to store images for training and validation:
  4. $ mkdir ./images/
  5. Run the script prepare_dataset.py to organize the images into directories corresponding to their respective characters:
  6. $ python prepare_dataset.py

Training the Model

  1. Install the required dependencies:
  2. $ pip install -r requirements.txt
  3. Run the training script:
  4. $ python train_model.py
  5. The trained model will be saved as BrailleNet.h5, and training progress will be stored in the history object.

Model Architecture

The CNN architecture includes separable convolutional layers, batch normalization, and dropout for robust feature extraction. The model is trained on Braille characters with data augmentation.

Evaluation

  1. After training, the model is evaluated on a validation set, and the accuracy is printed.
  2. To load the trained model and evaluate it:
  3. $ python evaluate_model.py

Requirements

  • Python 3.x
  • TensorFlow
  • Keras
  • Matplotlib (for visualization)

Feel free to customize the model architecture or experiment with hyperparameters based on specific requirements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published