The invention discloses a GPU (
Graphics Processing Unit) acceleration-based
mask defect detection method and related equipment, and the method comprises the following steps: establishing a hardware link between a camera and a GPU through a PCIE (
Peripheral Component Interface Express)
bus architecture, and constructing a target memory environment of the camera matched with the GPU; image transmission is carried out on multi-channel image data, collected by the camera, of the to-be-detected
mask plate based on the hardware link and the target memory environment, the multi-channel image data is transmitted to the GPU, and image transmission follows an asynchronous transmission mechanism; gPU
data processing is carried out on the multi-channel image data through a GPU based on a
CUDA flow technology, and a defect
binary image is obtained; gPU
data processing and image transmission are executed in parallel; carrying out data downloading on the defect
binary image based on an asynchronous memory
copying mechanism of a
CUDA (Compute Unified Device Architecture), and downloading the defect
binary image to a CPU (
Central Processing Unit) connected with the GPU; data downloading and GPU
data processing are executed in parallel; and performing defect
feature extraction on the defect binary image through the CPU based on
Blob analysis to obtain a defect identification result. Therefore, rapid and efficient
mask defect detection can be realized.