Downloads · 30 days
0
ghimireplan/AI
AI is a machine learning model from ghimireplan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model recognizes Devanagari characters (numerals, vowels, and consonants) from images. It uses a Convolutional Neural Network (CNN) architecture trained on the NHCD (Nepali Handwritten Character Dataset).
Downloads · 30 days
0
Access
Public
Updated Jun 2, 2025
Repo size
16.4 MB
Likes
0
Public
Click a slice to open those files.
.h516.4 MB · 100%
From the Hugging Face model README
This model recognizes Devanagari characters (numerals, vowels, and consonants) from images. It uses a Convolutional Neural Network (CNN) architecture trained on the NHCD (Nepali Handwritten Character Dataset).
The model uses a CNN architecture with the following components:
You can use this model in two ways:
Using the Gradio Interface:
python app.pyUsing the Model Directly:
from tensorflow.keras.models import load_model
import cv2
import numpy as np
# Load the model
model = load_model('models/devanagari_model.h5')
# Load and preprocess image
image = cv2.imread('path_to_image.jpg', cv2.IMREAD_GRAYSCALE)
image = cv2.resize(image, (32, 32))
image = image.reshape(1, 32, 32, 1) / 255.0
# Make prediction
prediction = model.predict(image)
The model is trained on the NHCD dataset, which contains:
The model achieves:
Install the required packages:
pip install -r requirements.txt
This project is licensed under the MIT License - see the LICENSE file for details.