The invention relates to the technical field of
image detection, in particular to a method for acquiring a
color image based on a black-and-
white line-scan camera under a combined
light field, which comprises the following steps: adjusting the white balance
gain of the black-and-
white line-scan camera under three primary colors to enable the black-and-
white line-scan camera to reach white balance; the three groups of three-color light sources construct
image acquisition light fields suitable for different scenes according to a preset opening rule, and when the multi-color
light source is opened every time, the black-and-white
line scanning camera exposes and acquires a row of image data; and synthesizing and restoring the images acquired by the black-and-white
line scanning camera into one or more color images. According to the method,
exposure of the camera and turn-on of the three groups of light sources are accurately and synchronously controlled,
exposure and acquisition are performed for multiple times in a product movement process, and image data are recombined and subjected to
color reproduction after acquisition is completed, so that a
color image can be accurately restored; the
system supports a plurality of
light field modes, is suitable for a detected object with a high height angle difference and a high brightness-
darkness contrast ratio, can meet the requirements of detecting product flaws, defects, colors and the like, and effectively improves the application range of an acquisition
system.