Akshar Setu – Indic OCR
Akshar Setu is an AI-based Optical Character Recognition (OCR) project focused on recognizing printed Gujarati text and converting it into machine-readable Unicode text.
The project aims to support the digitization and preservation of Gujarati books, literature, historical documents, and other printed materials.
This repository contains a fine-tuned Indic OCR model developed as part of the Akshar Setu project.
Model Details
- Model name: Akshar Setu – Indic OCR
- Task: Optical Character Recognition (OCR)
- Primary language: Gujarati
- Script: Gujarati script
- Primary use case: Printed Gujarati text recognition
- Input: Images containing Gujarati text
- Output: Recognized text in Unicode format
- Project type: Fine-tuned OCR model
- Framework: Specify the framework used to train this model
- Architecture: Specify the underlying OCR architecture
Intended Use
This model is intended for:
- Recognizing printed Gujarati text from document images.
- Digitizing Gujarati books and printed literature.
- Extracting text from scanned Gujarati documents.
- Supporting digital archives and searchable document collections.
- Integrating OCR into document-processing applications.
- Research and experimentation involving OCR for Indic languages.
Training Data
The model was developed using Gujarati OCR training data consisting of images paired with their corresponding ground-truth transcriptions.
The project explores Gujarati word-level and line-level text recognition to investigate the effect of training data and input segmentation on OCR performance.
Data Preparation
The training pipeline may include:
- Pairing document images with ground-truth text.
- Normalizing Gujarati Unicode text.
- Preparing training, validation, and test splits.
- Evaluating predictions against reference transcriptions.
Exact dataset sources, dataset sizes, split proportions, and preprocessing methods should be documented according to the final training configuration.
Training Procedure
The model was fine-tuned using custom OCR training data as part of the Akshar Setu project.
Document the following details for reproducibility:
- Base model and pretrained checkpoint.
- Training framework and library versions.
- Dataset size and train/validation/test split.
- Optimizer and learning rate.
- Batch size and number of epochs.
- Image preprocessing and text normalization.
- Hardware used for training.
Evaluation
The model should be evaluated on a held-out test dataset containing ground-truth Gujarati transcriptions.
Recommended evaluation metrics:
| Metric | Description |
|---|---|
| Character Error Rate (CER) | Measures character-level transcription errors |
| Word Error Rate (WER) | Measures word-level transcription errors |
| Exact Match Accuracy | Measures samples recognized completely correctly |
Lower CER and WER indicate fewer recognition errors. Higher exact-match accuracy indicates more samples were recognized without any errors.
Add the final evaluation results for this specific Indic OCR checkpoint after running inference on its held-out test dataset.
Limitations
- Recognition quality depends on image resolution, font, and document quality.
- Blurred, skewed, noisy, or damaged pages may reduce performance.
- Gujarati conjuncts, vowel signs, punctuation, and uncommon characters may be incorrectly recognized.
- Performance on handwritten text is not established.
- Performance on languages other than Gujarati is not established.
- Predictions may require proofreading before publication or archival use.
Usage
The inference code depends on the architecture and file format of the uploaded checkpoint.
Refer to the repository's inference script and model configuration for installation requirements, image preprocessing, and prediction instructions.
Include a runnable Python example here that matches the actual uploaded model architecture.
Ethical Considerations
Akshar Setu is intended to support Gujarati-language digitization and literary preservation.
Users should verify recognized text before using it for legal, historical, academic, or other critical purposes. Training data and source documents should be used in accordance with their applicable licenses and copyright requirements.
Acknowledgements
Developed as part of the Akshar Setu project to improve OCR for Gujarati printed documents and support the preservation of Indic language resources.
Disclaimer
This model is provided for research and development purposes. Recognition performance may vary across document types, fonts, and image quality.