The invention discloses an automatic modeling and image
data matching method for a printer, and the method comprises the following steps: S1, installation of a sensor: installing a
laser distance measuring sensor at one side of a printing trolley through a
fastener; s2, the rotary body is fixed, and the position of the rotary body is fixed through a clamp; s3, measuring the distance, and driving a
laser distance measuring sensor to move through the printing trolley; and S4, curve generation: automatically drawing the collected data into a curve through drawing
software. According to the method, a
laser distance measuring sensor is utilized, the laser distance measuring sensor is installed on the left side of a printing trolley and matched with printing stepping Y-axis movement and sampling interval value a, the sensor samples the surface of the rotary body once, sampling drawing
software can automatically collect sampling coordinate values, then a curve is automatically drawn, and the curve is the
generatrix of the rotary body; and the printing
software calculates according to the
generatrix to obtain an expanded drawing, so that a printing pattern is automatically adjusted to be matched with the revolving body.