The invention provides a converter
copper smelting sampling
drill rod
image correction and extraction method and
system, and belongs to the technical field of converter
copper smelting. The method comprises the steps that a sampling
drill rod
RGB image is collected and scaled, and a preprocessed image is obtained; extracting a red channel and a blue channel of the preprocessed image, calculating a difference image, and carrying out binarization threshold
processing to generate a preliminary binary
mask; performing morphological
corrosion operation and connected
domain analysis on the preliminary binary
mask, and removing a background connected domain to obtain an accurate binary
mask; on the precise binary mask, selecting a sampling column and calculating a
vertical coordinate centroid to obtain a two-dimensional coordinate
point set; performing
linear fitting on the two-dimensional coordinate
point set to obtain a mathematical equation, and calculating the inclination angle and the center point of the
drill rod; and taking the center point as a rotation center, performing affine transformation on the preprocessed
image based on the inclination angle, and taking the center point of the drill rod after rotation correction as a reference to
cut a standardized drill rod image. According to the invention, automatic correction and extraction of the drill rod image are realized, precision is improved, and safety is enhanced.