CPC H04N 17/002 (2013.01) [B29C 64/386 (2017.08); B33Y 50/00 (2014.12); G06T 7/73 (2017.01); G06T 7/80 (2017.01)] | 15 Claims |
1. A method for optical calibration of a 3D printer, comprising:
at step 100, projecting, by an optical apparatus of the 3D printer, a projection image to a projection platform, placing a calibration plate on the projection platform, and capturing, by a camera apparatus, the projection platform;
at step 200, identifying, by a calibration apparatus, coordinates of calibration points of the calibration plate and coordinates of actual projection points of the projection image projected by the optical apparatus, according to the captured image, to obtain a matrix of calibration points P1 of the calibration plate and a matrix of actual projection points P2 of the projection image projected by the optical apparatus;
at step 300, rotating and translating, by the calibration apparatus, the matrix of the calibration points of the calibration plate and/or the matrix of the actual projection points of the projection image to convert the calibration points and the actual projection points into a same coordinate system, and then calculating a distance value matrix T0 based on the matrix of the calibration points of the calibration plate and the matrix of the actual projection points of the projection image projected by the optical apparatus in an image coordinate system;
at step 400, converting, by the calibration apparatus, the distance value matrix T0 in the image coordinate system into an offset matrix C1 in a pixel coordinate system, and inversely distorting an initial ideal projection image according to the offset matrix C1 to obtain a new actual projection image, wherein when an error between the new actual projection image and the initial ideal projection image meets a requirement, the optical apparatus of the 3D printer is calibrated;
wherein, both T0 and C1 are matrices composed of vectors;
wherein at step 300, the rotated matrix of calibration points and the rotated matrix of actual projection points are as follows: P1′=R1 P1, P2′=R2 P2;
where P1′ is the rotated matrix of calibration points, P2′ is the rotated matrix of actual projection points, and R1 and R2 are rotation matrix parameters.
|