Dotted Data Matrix two-dimensional bar code is widely used in the field of machinery and electronics, automobile manufacturing, pharmaceutical and medical, military firearm management etc. Compared with the standard Data Matrix two-dimensional bar code, Dotted Data Matrix bar code is composed of solid dots, which has no obvious characteristics of “L” shaped seek border region. The gaps between dotted data matrix modules are too large which increase the difficulty of identification. To solve the problem of the low recognition rate of dotted Data Matrix code, this paper gives the specific processing method which has certain degree of adaptability. This method obtains the size of bar code dotted module mainly by the spot detection algorithm that provides the reference of fixed value for the subsequent processing. Experimental results show that the algorithm can overcome the effects of large clearance, uneven illumination and noise interference in the recognition, and increase the recognition rate.