Utilized in the process for fabricating semiconductors, defect-review SEM is used for detecting and classifying defects on the surface of wafers. On the basis of information on the location of defects obtained by defect-inspection equipment (i.e., optical microscope), it provides two main functions, i.e., automatically collecting defect images of wafer surfaces and automatically categorizing the collected images according to defect type.