In order to contribute to the development of automatic methods for the detection of bacilli, TBimages is an image dataset composed of two subsets: TbImages_SS1 contains 10 images per field, of different focal depths, and aims to support the definition of autofocus metrics and also the development of extended focus imaging methods to facilitate the detection of bacilli in smear microscopy imaging.   TbImages_SS2  aims to support the development of automatic bacilli detection.