Patent attributes
A method for labeling image comprises: obtaining a target image of a target object; generating a reconstruction image according to the target image and a reconstruction model, wherein the reconstruction model is trained with a plurality of reference images and a machine learning algorithm, each of the reference images is an image of a reference object whose defect level is in a tolerable range with an upper limit, and each of the reference objects is associated with the target object; generating a first difference image and a second difference image respectively by performing a first difference algorithm and a second difference algorithm respectively according to the target image and the reconstruction image; and generating an output image by performing a pixel-scale operation according to the first difference image and the second difference image, wherein the output image includes a label indicating a defect of the target object.