Downloads · 30 days
0
cosmicshubham/ancient-manuscript-ocr
ancient-manuscript-ocr is a image-to-text model from cosmicshubham. Use it when you need a caption or text from an image. It is set up for pytorch. The card lists the license as mit.
State-of-the-art OCR system for ancient manuscripts using CRNN architecture.
Downloads · 30 days
0
Access
Public
Updated Jan 16, 2026
Repo size
130 MB
Likes
0
Public
Click a slice to open those files.
.pth130 MB · 100%
From the Hugging Face model README
State-of-the-art OCR system for ancient manuscripts using CRNN architecture.
This model performs Optical Character Recognition (OCR) on ancient manuscript images using a Convolutional Recurrent Neural Network (CRNN) architecture with CTC Loss.
Input Image → CNN (7 layers) → BiLSTM (2 layers) → CTC Decoder → Text Output
Components:
pip install torch torchvision pillow
import torch
from PIL import Image
from inference import ManuscriptOCR
# Load model
model = ManuscriptOCR(model_path='best_model.pth')
# Predict on image
text = model.predict('path/to/manuscript.jpg')
print(f"Recognized Text: {text}")
# Process multiple images
images = ['manuscript1.jpg', 'manuscript2.jpg', 'manuscript3.jpg']
results = [model.predict(img) for img in images]
for img, text in zip(images, results):
print(f"{img}: {text}")
| Metric | Train | Validation | Test |
|---|---|---|---|
| Loss | 0.0234 | 0.0187 | 0.0165 |
| CER (%) | 0.58 | 0.61 | 0.61 |
| WER (%) | 1.42 | 1.51 | 1.49 |
| Accuracy (%) | 98.51 | 98.49 | 98.52 |
Inference Performance:
@misc{manuscript-ocr-2025,
author = {Shubham Patel},
title = {Ancient Manuscript OCR using CRNN},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/cosmicshubham/ancient-manuscript-ocr}
}
MIT License
Model ID: cosmicshubham/ancient-manuscript-ocr
Framework: PyTorch 2.0+
Created: January 2025