This invention relates to the field of additive manufacturing, specifically to a method and
system for calibrating the substrate height of a 3D printing device based on
machine vision. The method includes: S1, initializing the
system and parameters; S2, acquiring a substrate image; S3, determining the substrate height; S4, coarsely adjusting the substrate height; S5, acquiring a
powder-spreading image; S6, calculating indicators based on the
powder-spreading image; S7, determining whether to perform substrate height adjustment; S8, determining whether to perform fine-tuning of the substrate height; S9, fine-tuning the substrate height; and S10,
loop control and termination conditions. The
system includes a
metal 3D printing device, an industrial camera, a vision reference calibration block, and a
control system. This invention monitors the substrate height and
powder-spreading state using
machine vision, and achieves precise control of the first layer of powder-spreading state using a two-stage precision adjustment height calibration mechanism.