The invention discloses a
numerical control system-oriented defect visual classification detection method and
system, and the method comprises the steps: obtaining an original defect sample covering a
numerical control system part, carrying out the multi-
modal image collection, carrying out the weighted fusion of visible light, near-
infrared light and
ultraviolet light images in an original sample
library through a multispectral fusion
algorithm based on the original defect sample, and carrying out the detection of the defect visual classification. The method comprises the following steps: generating an original defect sample, generating an enhanced sample, acquiring three-dimensional geometric information of the surface of a part by utilizing a 3D
laser scanning device, transmitting and receiving ultrasonic
waves through an
ultrasonic detection module, detecting defects in the part, generating a
virtual sample based on the original defect sample, the enhanced sample and a 3D
model sample, and combining the original defect sample, the enhanced sample, the 3D
model sample and the
virtual sample to obtain a three-dimensional image. And training a defect classification model based on the mixed sample
library. Defect evolution under different working conditions can be simulated, virtual defect samples conforming to real physical laws are generated, the defect state coverage range is wide, and defect data which are difficult to obtain by real samples are supplemented.