The invention discloses a
machine vision
light source system capable of automatically switching
light source forms and a dimming method, the
light source system comprises an industrial camera, a detection workpiece, a switchable light source and an industrial
personal computer, and the industrial camera is controlled by the industrial
personal computer and transmits image information of the detection workpiece to the industrial
personal computer; the detection workpiece is arranged on the transparent
conveyor belt; the switchable light source can be directly controlled by an industrial personal computer, different light source combinations and brightness can be switched, and the switchable light source comprises four backlight light sources, namely a low-angle strip-shaped light source vertical
irradiation annular light source and a high-angle
diffuse reflection annular light source. The industrial personal computer can make decisions by detecting workpiece images, and then controls the switchable light source to select the light source combination meeting the illumination requirement. The light
source system and the dimming method are suitable for product detection of multiple varieties and small-
batch production modes, light source adjustment can be conducted according to different product types, and automatic switching of different light source forms such as high-angle light sources, low-angle light sources, backlight light sources, common light sources and
diffuse reflection light sources is achieved.