Lens edge painting is to control stray light, improve signal-to-noise ratio and improve contrast. Stray light exists at the edge of optical elements in imaging system and photoelectric system, which increases the noise in the signal and affects the contrast of the system. Coating black matt paint or ink on the edge of optical elements can reduce stray light and improve signal-to-noise ratio.