The traditional galvanometer calibration method is mostly based on manual measurement, and the accuracy is difficult to be guaranteed, thus affecting the processing quality. The two-dimensional galvanometer equipped with the CCD coaxial vision module can greatly improve the calibration accuracy of the galvanometer, and can detect the surface of the workpiece after the completion of the machining in the first time, and screen the workpiece that does not meet the requirements.