At present, visual imaging is widely applied for surface defects such as bumps and scratches in the manufacture of precise parts with a highly reflective surface. However, the high light reflection and halo disturbance as a result of the illumination in visual imaging exert a direct influence on the accuracy of defect detection. In this regard, the present paper develops an adaptive illumination method based on space–time modulation for a visual imaging system. Furthermore, a digital micro-mirror device (DMD) is employed to realize the pixel-level spatiotemporal modulation of illumination. Then, in combination with the illumination intensity feedback of charge coupled device (CCD), the time-space ratio is adjusted automatically to achieve adaptive uniform illumination and effectively suppress the high light reflection and halo disturbance of highly reflective surfaces. The experimental results show that, in terms of restraining high light disturbance, the visibility and accuracy of visual imaging are improved.