← All projects

Pulmonary TB X-Ray Classifier

November 28, 2025 PythonStreamlitscikit-learnSVMPillow

Overview

A Streamlit web application that classifies chest X-ray images to indicate whether a lung shows signs of tuberculosis (TBC) or not. Users upload a JPG/PNG X-ray and the app runs a trained SVM model (svm.joblib) over the preprocessed image and returns the prediction.

How it works

  1. The image is loaded and converted to RGB with Pillow.
  2. A preprocessing step normalises and prepares the image for the model.
  3. An SVM classifier produces the TB / non-TB prediction, shown in the browser.

Context

Built as a group project for the Digital Image Processing (PACD) course.

AI/MLComputer VisionHealthcare