The on-site labeling and localization tracking of membrane proteins in pathogenic bacteria are tedious work. In order to develop a novel protein labeling technology at super resolution level (nanometer scale) using the photoactivatable localization microscopy (PALM), the chimeric protein of the outer membrane protein A (OmpA) of Mycobacterium tuberculosis and the photoactivatable mEos2m protein were expressed in the non-pathogenic Mycobacterium smegmatis. The recombinant bacteria were fixed on slide, activated by 405 nm laser and subject to PALM imaging to capture photons released by the fusion protein. Meanwhile, colony and cell morphology were visualized under regular fluorescent stereomicroscope and upright fluorescent microscope to characterize fluorescence conversion and protein localization. The fusion proteins formed a "belt"-like structure on cell membrane of M. smegmatis under PALM, providing direct evidence of on-site imaging of membrane proteins. Expression of fusion protein did not compromise the localization properties of OmpA. Thus, mEos2m could be used as a labeling probe to track localizations of non-oligomer oriented membrane proteins. This indicates non-pathogenic M. smegmatis could be served as a model strain to characterize the function and localization of the proteins derived from pathogenic M. tuberculosis. This is the first report using PALM to characterize localization of membrane proteins.