AOI uses telecentric lens without distortion effect, adopts multi-reference point calibration method, and automatic positioning of detection window, including double positioning of pad and body, which solves the problem of offset caused by board deformation and greatly reduces false alarms.