This paper introduces the image by CCD sensor and computer processing, analyzes the number and area of mold on the surface of the optical instrument, and then judges the protection method of the optical instrument. This method is simple and efficient, and provides certain reference value for the selection of optical instrument maintenance scheme.