The application relates to the technical field of intelligent detection, and particularly discloses a
traditional Chinese medicine dyeing color uniformity detection method and
system. The original
RGB image of a to-be-detected fabric is collected under a standard
light source, an effective fabric area image is obtained after
color correction and appearance compensation, fabric texture energy
prior information is extracted through
frequency domain transformation combined with a
dye penetration uniformity index, a multi-space level
image sequence is constructed, the texture
prior information is fused, and then input into a pre-trained texture-color decoupling neural network, a
color purity feature image with texture interference inhibited is output, quantitative indexes such as a dye distribution standard deviation and an average gradient amplitude are calculated, a local non-uniformity
heat map is generated to locate defects, a uniformity grade and a visual report containing an original image and a defect contour are output. The application is suitable for
traditional Chinese medicine dyeing, can realize accurate decoupling of texture and color, highlight weak
dyeing differences, and is suitable for different materials and dye types, so that the detection precision of
traditional Chinese medicine dyeing uniformity is improved.