This invention relates to the field of detection, and in particular to an
online method and
system for detecting impurities in
calcium carbonate ore. Specifically, it includes: acquiring a continuous
multispectral image sequence of
calcium carbonate ore on a
conveyor belt, and performing
radiometric correction and spectral normalization preprocessing; identifying dominant spectral clusters of pure
calcium carbonate ore by statistically analyzing the pixel spectra of the preprocessed images, and selecting a subset of high-confidence pixel spectra as the initial background
training set; training a background dictionary, applying a set of
sparse regularization constraints during training, and using the correlation between
spectral bands to constrain the atomic energies of the dictionary to continuous or strongly correlated band groups; for each pixel of the detected image, using a
sparse approximation algorithm combined with the background dictionary, calculating a sparse reconstruction coefficient vector and a reconstruction residual vector, and obtaining the reconstruction residual and coefficient activation uncertainty measure, respectively; if the reconstruction residual exceeds a first threshold, or the uncertainty measure exceeds a second threshold, it is determined to be an
impurity point, and the location and quantity are summarized to generate an online
impurity distribution map.