Method, apparatus, and device for labeling images
Abstract:
A method, apparatus, and device for labeling images of PCBs includes obtaining an image to be tested; comparing the image to be tested to a reference image to generate an image mask, the image mask includes several connected domains; detecting defects of the image to be tested; when at least one defect is detected in the image to be tested, obtaining a coordinate of the at least one defect; based on a central coordinate of the connected domains and the coordinate of the at least one defect, determining the connected domains to be defect connected domains or normal connected domains; generating a first image mask and a second image mask; and processing the first image mask and the second image mask with the image to be tested to obtain a defect element image corresponding to the defect connected domains and a normal element image corresponding to the normal connected domains.
Public/Granted literature
Information query
Patent Agency Ranking
0/0