Downloads · 30 days
0
DanishMahdi/snd-handwritten-character-recognition-cnn
snd-handwritten-character-recognition-cnn is a image classification model from DanishMahdi. Use it when you need a label for an image. It is set up for tensorflow. The card lists the license as mit.
This model is a Convolutional Neural Network (CNN) trained to classify handwritten Sindhi characters. It is designed for Optical Character Recognition (OCR) research and educational use.
Downloads · 30 days
0
Access
Public
Updated Jun 26, 2026
Repo size
7.9 MB
Likes
0
Public
Click a slice to open those files.
.h57.9 MB · 100%
From the Hugging Face model README
This model is a Convolutional Neural Network (CNN) trained to classify handwritten Sindhi characters.
It is designed for Optical Character Recognition (OCR) research and educational use.
The model was trained on a custom dataset containing multiple handwritten samples of Sindhi alphabet characters.
.h5 (Keras SavedModel)| Metric | Score |
|---|---|
| Precision (Macro Avg) | 0.897 |
| Recall (Macro Avg) | 0.888 |
| F1-Score (Macro Avg) | 0.887 |
0.0010.0005 → 0.00025The model expects images in the same format as training:
[0, 1]import cv2
import numpy as np
from tensorflow.keras.models import load_model
model = load_model("sindhi_cnn_best.h5")
img = cv2.imread("test.png", cv2.IMREAD_GRAYSCALE)
img = cv2.resize(img, (64, 64))
img = img.astype("float32") / 255.0
img = img.reshape(1, 64, 64, 1)
pred = model.predict(img)
class_id = np.argmax(pred)
print(class_id)
@misc{sindhi_cnn_2026,
title = {Sindhi Handwritten Character Classification using CNN},
author = {Danish Mahdi},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/DanishMahdi/snd-handwritten-character-recognition-cnn}}
}