Statistics for Hardware and software integration and testing for the automation of bright-field microscopy for tuberculosis detection