Downloads · 30 days
0
sukhmani1303/tuberculosis-cnn-model
tuberculosis-cnn-model is a machine learning model from sukhmani1303. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a CNN model for classifying chest X-ray images as Normal or Tuberculosis.
Downloads · 30 days
0
Access
Public
Updated May 25, 2025
Repo size
13.8 MB
Likes
0
Public
Click a slice to open those files.
.zip13.8 MB · 100%
From the Hugging Face model README
This repository contains a CNN model for classifying chest X-ray images as Normal or Tuberculosis.
from handler import TBClassifier
import cv2
classifier = TBClassifier()
image = cv2.imread("path/to/xray.jpg")
result = classifier.predict(image)
print(f"Prediction: {result['prediction']}, Confidence: {result['confidence']:.4f}")
For educational use only. Consult healthcare professionals.
Medical Imaging, Deep Learning, TensorFlow, Tuberculosis