The invention discloses an image
color difference detection method and
system for industrial production, and the method comprises the steps: converting a to-be-detected pure
color image from an
RGB color space to an HSV
color space and a CIELAB
color space, and obtaining a first to-be-detected pure
color image and a second to-be-detected pure
color image; extracting
hue, saturation and brightness information in the first to-be-detected pure-color image, calculating the
chromatic aberration degree of each pixel point, and marking a region of which the
chromatic aberration degree is greater than a first adaptive threshold value as a first region; performing
Gaussian filtering optimization on a first region in the second to-be-detected pure color image, extracting L, a and b components, calculating the
chromatic aberration degree of each pixel point to obtain an optimized mixed
color detection result, comparing the optimized mixed
color detection result with a second adaptive threshold value, and marking a mixed color region; through multi-
color space conversion and adaptive threshold calculation, high-efficiency and accurate
color mixing detection of the pure-color image is realized, and the method has a wide application prospect.