The document describes a system for detecting pulmonary tuberculosis (PTB) using image processing techniques and an artificial neural network (ANN). X-ray images are segmented and enhanced to extract shape and texture features. These features along with clinical sputum examination results are used to train an ANN. The trained ANN is then used to classify unknown X-ray images as TB or non-TB and indicate severity. The system was tested on 110 images and achieved 94.5% accuracy in detection. Image processing techniques like enhancement, segmentation, and ANN provide an automated method for PTB diagnosis using visual features from chest X-rays.