An image highlight removal method and
system, a storage medium and a program product relate to the field of general image
data processing or production, the method comprising: receiving an input image, converting the input image to a brightness and
chrominance separated
color space, identifying a highlight pixel region, and generating a highlight
mask; expanding outwards by taking the boundary of the highlight
mask as a reference, and constructing an annular analysis area; calculating a pixel gradient amplitude and a pixel
gradient direction, and generating a linear structure
feature data set; calculating a
pixel color mean value and a
pixel color standard deviation, and generating an abnormal region
feature data set; performing defect distribution reasoning based on
direction information in the linear structure
feature data set and the abnormal region feature
data set to generate a structure prior guidance graph; and carrying out source patch constraint according to the structure prior guidance graph, and
processing the highlight pixel region to obtain an output image. According to the invention, the highlight removal process can be optimized, and the integrity of equipment defect features in the image is ensured.