π README.md
# Devanagari Character Recognition ππ€
A deep learning-based project to recognize handwritten Devanagari characters using Convolutional Neural Networks (CNNs).
---
π Project Structure
devanagari-character-recognition/ β βββ DevanagariHandwrittenCharacterDataset/ # Dataset (excluded from Git) βββ saved_models/ # Trained models and logs (excluded from Git) βββ src/ # Source code β βββ data_loader.py β βββ evaluate.py β βββ model_builder.py β βββ predict.py β βββ train.py β βββ visualize.py βββ run_all.py # Main runner script βββ requirements.txt # Python dependencies βββ structure.txt # Folder/code structure βββ .gitignore # Git ignore rules βββ README.md # You are here
---
π Getting Started
π§ Prerequisites
- Python 3.10 or later
- pip
π οΈ Setup
1. Clone the repo:
```bash
git clone https://github.com/Tejas-Indrale/devanagari-character-recognition.git
cd devanagari-character-recognition
-
Create and activate a virtual environment:
python -m venv env .\env\Scripts\activate # On Windows
-
Install required packages:
pip install -r requirements.txt
-
Download and extract the dataset manually into:
devanagari-character-recognition/DevanagariHandwrittenCharacterDataset/
π§ Training
To train the model, simply run:
python run_all.py
It will:
- Load the dataset
- Build the CNN
- Train the model
- Save results in
saved_models/
π Outputs
- β
Trained model:
saved_models/devnagri_character_model.h5
- π Training metrics:
training_history.png
- π Evaluation reports and TensorBoard logs inside
saved_models/logs/
π Notes
env/
,saved_models/
, and dataset folders are ignored via.gitignore
.- This repo is for educational/research use. Dataset should be downloaded manually due to size.
π License
This project is open-source and available under the MIT License
π¨βπ» Author
Tejas Indrale π GitHub Profile