Text this: Image segmentation and object classification for automatic detection of tuberculosis in sputum smears