A three-dimensional high-precision fixed-point printing method and device
Through the cooperation of computer vision system and 3D camera, the problem of low positioning accuracy of traditional printers in the world coordinate system is solved, three-dimensional high-precision fixed-point printing is realized, ensuring high-precision printing requirements in scenes such as manicure, and improving speed and accuracy. , and prevent damage caused by positioning failure.
Patent Information
- Application Number
- CN202211726062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-29
AI Technical Summary
It is difficult for traditional printers to achieve high-precision positioning within the world coordinate system, resulting in printing positioning errors, which is unacceptable especially in nail art scenarios.
Using a computer vision system and a 3D camera with special mark points, the transformation matrix between the printer's working range coordinate system, the 3D camera coordinate system and the printing target coordinate system is obtained through the calibration process to achieve three-dimensional high-precision fixed-point printing.
It achieves high-precision printing within the world coordinate system, avoids positioning errors, improves printing speed and accuracy, and prevents damage caused by failures through automatic detection.
Smart Images

Figure CN116080290B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional printing, and in particular to a three-dimensional high-precision fixed-point printing method and device. Background Art
[0002] Traditional printers can achieve high positioning accuracy in their own printing coordinate system, but cannot achieve accurate printing in the world coordinate system. The reason lies in the positioning principle of printing.
[0003] There are two coordinate systems that determine the actual printing position: the printer working range coordinate system and the printing target coordinate system.
[0004] The printer's working range coordinate system refers to the printer's mechanical starting position (x0, y0, z0) to (xMax, yMax, zMax). Under the same working conditions, the printer can achieve high-precision repeated positioning in its own coordinate system. However, after working for a long time, the XYZ three axes will have positioning errors. This error may be caused by mechanical wear, aging and contamination of the positioning device. For example, the grating often used for X-axis positioning in the industry is prone to contamination due to flying ink, dust and other reasons, resulting in positioning errors. In this case, the printer's working range coordinate system has changed, which will cause printing positioning errors and cannot work normally.
[0005] The coordinate system of the print target refers to the coordinate system of the object to be printed. Take an A4 paper as an example, from the upper left corner (x0, y0) (z axis is fixed, not discussed for now) to the lower right corner (xMax, yMax). The coordinate system of the print target is obviously not the same as the coordinate system of the printer's working range. In the traditional printing system, the coordinate system of the print target does not exist or is completely consistent with the coordinate system of the printer's working range by default. The positioning and layout of the traditional print data are completely determined by the coordinate system of the printer's working range. Therefore, in actual work, we always place the paper with some auxiliary positioning marks to ensure the relative correctness of the printing position. The accuracy of this printing position is very low, which depends on the overlap of the coordinate systems of the two when placing the print target (paper). The higher the overlap, the more accurate the position.
[0006] From the above content, we can draw the following conclusions about the positioning problems of traditional printing systems:
[0007] 1. It is difficult for the printer to print the same pattern at the same position on different printing targets.
[0008] 2. When the printer has hardware problems that lead to positioning failures, it will directly lead to printing errors.
[0009] The above problems are acceptable to a certain extent in traditional printing scenarios, but they become fatal problems in nail art scenarios. Users cannot accept the nail art effect being printed outside the nails at any time. This requires extremely high positioning accuracy of the printing system in the world coordinate system. Summary of the invention
[0010] In order to solve the above technical problems, the present invention provides a three-dimensional high-precision fixed-point printing method. First, a computer vision system is installed above the printing system, and a group of special mark points are set on the top of the printing carriage to assist the 3D camera in positioning the printing carriage. In order to unify the coordinate system of the entire system, we introduced a 3D camera coordinate system. The relationship between the three coordinate systems is: the 3D camera coordinate system contains the printer working range coordinate system; the printer working range coordinate system contains the print target coordinate system. The method is executed by the printer and includes the following steps:
[0011] S1. The printer prints the designated calibration pattern onto the printing platform;
[0012] S2, take pictures with a 3D camera to obtain two-dimensional pictures and 3D point clouds;
[0013] S3, calibrate the camera and the printer to obtain the transformation matrix of the printer coordinate system and the camera coordinate system;
[0014] S4. The point cloud in the camera coordinate system can be converted to the printer coordinate system according to the external parameters.
[0015] Preferably, the printer calibration method comprises the following specific steps:
[0016] 1) Manually place calibration paper in the printer;
[0017] 2) The printer moves to the mechanical starting position and stops;
[0018] 3) The 3D camera takes a photo and identifies the position T1 of the car in the 3D coordinate system by printing the mark point on the top of the car. T1 is the starting position of printing.
[0019] 4) The printer starts printing a specific pattern;
[0020] 5) The 3D camera takes pictures, identifies the printed pattern, and identifies the complete pattern through the pattern data, and calculates the coordinate transformation matrix A in combination with the camera external parameters;
[0021] 6) Calibration completed.
[0022] Preferably, the printer calibration self-test method has the following specific steps:
[0023] 1) The printing carriage moves to the printing starting position and stops;
[0024] 2) The 3D camera takes a photo and identifies the position nT1 of the car in the 3D coordinate system by printing the mark point on the top of the car;
[0025] 3) Compare nT1 with T1 recorded in factory calibration. If the difference between the two exceeds a certain threshold, maintenance action is performed;
[0026] 4) After the maintenance action is completed, perform the calibration self-test again. If it still fails, set the machine to a fault state and have it handled by maintenance personnel.
[0027] Preferably, the printer has 3 degrees of freedom, can move in the X-axis, Y-axis and Z-axis, and the plane of the printing platform is parallel to the plane of the inkjet printer nozzle.
[0028] Preferably, the calibration pattern in S1 includes a checkerboard or a dot matrix.
[0029] Preferably: the S2 printer prints when the Z-axis coordinate is 0, and the printer initial position coordinate (x=0, y=0, z=0) is used as the origin of the printer coordinate system.
[0030] A three-dimensional high-precision fixed-point printing device, in which a printing mechanism performs printing by using coordinate parameters provided by a computer vision mechanism, comprises a frame, the frame is equipped with a computer vision mechanism, a hand slot mechanism and a printing mechanism, and the computer vision mechanism is arranged just above the hand slot mechanism.
[0031] Preferably, the computer vision mechanism is composed of a camera, a structured light component, a vision control module, a fill light component and a moving module.
[0032] Preferably, the printing mechanism is connected to the X-axis moving module, the Y-axis moving module and the Z-axis moving module, and the printing mechanism moves in the X-axis, Y-axis and Z-axis directions.
[0033] Preferably, the X-axis moving module comprises a driving motor, the driving motor is connected to a driving wheel, the driving wheel is connected to a driven wheel via a transmission belt, and the driven wheel is mounted on the other end of the frame.
[0034] Preferably, an ink absorbing assembly is installed on the frame below the printing mechanism, and the ink absorbing assembly includes an ink absorbing sponge and a sponge bracket, and the sponge bracket is fixed on the bracket.
[0035] Preferably, an ink receiving box is installed on one side of the ink absorbing assembly, an opening is provided on the upper part of the ink receiving box, and a through hole is provided on the bottom of the ink receiving box.
[0036] Technical effects and advantages of the present invention:
[0037] According to the user's printing needs, the 3D coordinates can be converted to the printer coordinate system, so as to accurately print to the target position. The pattern can be flexibly printed on the object to be printed according to the actual position of the object to be printed. There is no need for manual measurement and adjustment, which greatly improves the speed and accuracy. Through calibration self-inspection, it can effectively prevent positioning errors caused by various reasons during manicure from causing damage to the user. When the printer has a positioning failure, the machine can discover it through automatic detection to prevent the machine from working in a faulty state and causing losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the structure of calibration in the three-dimensional high-precision fixed-point printing method provided in an embodiment of the present application;
[0039] Figure 2 It is a structural schematic diagram of a three-dimensional high-precision fixed-point printing device provided in an embodiment of the present application;
[0040] Figure 3 The three-dimensional high-precision fixed-point printing device provided in the embodiment of the present application Figure 2 A schematic diagram of the enlarged structure at point A in the middle.
[0041] In the figure: 1. frame; 2. computer vision mechanism; 3. hand slot mechanism; 4. printing mechanism; 401. print head module; 402. flexible sensor; 403. drive motor; 404. driving wheel; 405. Y-axis moving module; 406. Z-axis moving module; 5. driven wheel; 6. ink cartridge; 7. ink absorption component. DETAILED DESCRIPTION
[0042] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are provided for the purpose of illustration and description, and are not intended to be exhaustive or to limit the present invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention, and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.
[0043] See also Figure 1 In this embodiment, a three-dimensional high-precision fixed-point printing method is provided, and the method is executed by a printer.
[0044] The printer has 3 degrees of freedom and can move in the X, Y and Z axes. The plane of the printing platform is parallel to the plane of the inkjet printer nozzle.
[0045] The following steps are involved:
[0046] S1. The printer prints the designated calibration pattern onto the printing platform;
[0047] The calibration patterns include checkerboard or dot pattern.
[0048] The printer prints when the Z-axis coordinate is 0, and the printer's initial position coordinate (x=0, y=0, z=0) is the origin of the printer's coordinate system;
[0049] The calibration pattern is as follows Figure 1 , the size is A6, there are 44 circles in total, and the relative coordinates of the circle centers are known. Let the coordinates of the points in the printer coordinate system be (xp1, yp1, zp1) to (xp44, yp44, zp44);
[0050] The coordinates of the center of each circle after printing are known in the printer coordinate system.
[0051] S2, take pictures with a 3D camera to obtain a two-dimensional picture (grayscale or color) and a 3D point cloud;
[0052] S3, calibrate the camera and printer to obtain the transformation matrix (external parameters, rotation and translation relationship) of the printer coordinate system and the camera coordinate system;
[0053] To find the center of each circle on the 2D image, you can use the findCi rc l esGrid or SimpleB l obDetector of the opencv vision library to detect it. At the same time, there may be a point cloud of the pixel at the corresponding pixel. The coordinates in the camera coordinate system are (xc1, yc2, zc2) to (xc1, yc2, zc2); since the point cloud of this point may not exist. Therefore, a threshold T = 40 is set, and the number of detected centers is 0-44. For the accuracy of calibration, when the number of detected point cloud coordinates > T, the next step of calculation is performed to obtain the external parameters by solving the pnp method;
[0054] S4. The point cloud in the camera coordinate system can be converted to the printer coordinate system according to the external parameters.
[0055] The projection equation of the three-dimensional high-precision fixed-point printing method of the present invention can be expressed as:
[0056]
[0057] Where K is the camera intrinsic parameter matrix, which is known.
[0058] The point cloud in the camera coordinate system can be converted to the printer coordinate system based on external parameters.
[0059] After the 3D point cloud is converted to the printer coordinate system, each point cloud can be converted to the printing plane.
[0060] The actual size of a printed image is determined by the pixels and resolution of the image. Pixels refer to the small color dots that make up the image, and resolution (unit: DPI) refers to the number of pixels per inch (inch), which can be regarded as the distribution density of these small color dots. When the pixels are the same, the higher the resolution, the greater the pixel density, the smaller the actual printed size, and the finer the image.
[0061] Actual size (inches) = pixels / resolution; 1 inch = 2.54 centimeters; if a picture is 600 pixels wide and the resolution is 300, then the actual print width is: 600 / 300 = 2 inches, about 5 centimeters.
[0062] According to the above formula, without considering the z-axis, the point cloud in the printer coordinate system can be converted to the pixel coordinate system of the image (u for horizontal direction and v for vertical direction). Assume that the coordinates of a point cloud are (25.4mm, 250.4mm, Z), then u = (25.4 / 25.4)*300 = 300, v = (250.4 / 25.4) = 3000. In the image coordinate system, the pixel coordinates of the point cloud are (300, 3000).
[0063] Among them, factory calibration is to determine the conversion relationship between the 3D camera coordinate system and the printing coordinate system. The specific steps of the printer calibration method are as follows:
[0064] 1) Manually place calibration paper in the printer;
[0065] 2) The printer moves to the mechanical starting position and stops;
[0066] 3) The 3D camera takes a photo and identifies the position T1 of the car in the 3D coordinate system by printing the mark point on the top of the car. T1 is the starting position of printing.
[0067] 4) The printer starts printing a specific pattern;
[0068] 5) The 3D camera takes pictures, identifies the printed pattern, and identifies the complete pattern through the pattern data, and calculates the coordinate transformation matrix A in combination with the camera external parameters;
[0069] 6) Calibration completed. Through factory calibration, we obtained the transformation matrix A between the printer working range coordinate system and the 3D camera coordinate system.
[0070] During the manicure
[0071] 1. Use a 3D camera to shoot and obtain the coordinate B of the nail in the 3D camera coordinate system through a series of algorithms;
[0072] 2. Then, transform the coordinate B into the coordinate C in the printer's working range coordinate system through the transformation matrix A;
[0073] 3. Send coordinate C to the printer to execute the print job.
[0074] Calibration self-test
[0075] In order to ensure accurate positioning of each manicure operation, the system can perform calibration self-checks as needed to detect positioning failures caused by various reasons.
[0076] 1) The printing carriage moves to the printing starting position and stops;
[0077] 2) The 3D camera takes a photo and identifies the position nT1 of the car in the 3D coordinate system by printing the mark point on the top of the car;
[0078] 3) Compare nT1 with T1 recorded in factory calibration. If the difference between the two exceeds a certain threshold, maintenance action is performed;
[0079] 4) After the maintenance action is completed, perform the calibration self-test again. If it still fails, set the machine to a fault state and have it handled by maintenance personnel.
[0080] Through calibration self-inspection, it is possible to effectively prevent positioning errors caused by various reasons during manicure from causing harm to users.
[0081] like Figure 2 As shown, in this embodiment, a three-dimensional high-precision fixed-point printing device is provided. The printing mechanism in the printing device performs printing through the coordinate parameters provided by the computer vision mechanism 2, including a frame 1, on which the computer vision mechanism 2 is installed. The computer vision mechanism 2 is arranged directly above the hand groove mechanism 3, and the computer vision mechanism 2 is composed of a camera, a structured light component, a vision control module, a fill light component and a moving module. Among them, there are two cameras on the left and right, and the left and right cameras take pictures. The structured light and fill light components are used to assist the camera to improve the shooting accuracy. The computer vision mechanism 2 calculates the point cloud information of the palm in the three-dimensional space through an algorithm from the taken photos, and further calculates the height and tilt angle of each finger through the point cloud so that the hand groove mechanism 3 can perform adjustments.
[0082] The frame 1 is located on the side of the computer vision mechanism 2 and is equipped with a printing mechanism 4. The printing mechanism 4 is connected to the X-axis moving module, the Y-axis moving module and the Z-axis moving module, and can move in the X-axis, Y-axis and Z-axis directions. The printing mechanism 4 includes a print head module 401. The print head module 401 includes a print head and a shell. The print head is connected to the raw material warehouse through an ink path. The raw material warehouse is used to store ink. A soft sensor 402 is installed on the side wall of the shell. The X-axis moving module includes a driving motor 403. The driving motor 403 is connected to a driving wheel 404. The driving wheel 404 is connected to a driven wheel 5 through a transmission belt. The driven wheel 5 is installed at the other end of the frame 1. Start the driving motor 4 03 drives the active wheel 404 to rotate, and drives the driven wheel 5 to rotate through the transmission belt, so that the print head module 401 moves along the X-axis direction. The rear end of the print head module 401 is connected to the Y-axis moving module. The Y-axis moving module is a lifting module. The Y-axis moving module is used to drive the print head module 401 to move up and down and adjust the height of the print head module 401. The combined structure of the X-axis moving module, the Y-axis moving module and the print head module 401 is connected to the Z-axis moving module 406. The Z-axis moving module 406 is a screw module. Under the drive of the servo motor, the screw module drives the X-axis moving module, the Y-axis moving module and the print head module 401 to move forward and backward.
[0083] Furthermore, the frame 1 is provided with an ink absorbing assembly 7 below the printing mechanism 4. The ink absorbing assembly 7 includes an ink absorbing sponge and a sponge holder. The sponge holder is fixed on the frame 1. The ink absorbing sponge is kept moist. When the print head module 401 is not in use, the bottom of the print head is attached to the ink absorbing sponge, so that the print head is kept moist to prevent the print head from being exposed to the environment and causing the print head to dry. An ink receiving box 6 is provided on one side of the ink absorbing assembly 7. An opening is provided on the upper part of the ink receiving box 6. A through hole is provided on the bottom of the ink receiving box 6. Before the print head module 401 is started, the print head module 401 is moved under the drive of the Z-axis moving module 406. When it reaches the top of the ink receiving cartridge 6, the Y-axis moving module 405 drives the print head module 401 to move downward, and the nozzle enters the ink receiving cartridge 6. The print head module 401 is started to spray ink from the nozzle, and then the Y-axis moving module 405 is started to drive the print head module 401 to rise, and the drive motor 403 is started to drive the active wheel 404 and the driven wheel 5 to rotate, so that the print head module 401 moves to the top of the hand slot mechanism 3, and prints the nails placed on the hand slot mechanism 3. After completing the printing job, the X-axis moving module, the Y-axis moving module 405 and the Z-axis moving module 406 drive the print head module 401 to return to the origin.
[0084] The present invention can convert 3D coordinates into the printer coordinate system according to the user's printing needs, so as to accurately print to the target position, and can flexibly print the pattern on the object to be printed according to the actual position of the object to be printed, without manual measurement and adjustment, which greatly improves the speed and accuracy.
[0085] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field and related fields without creative work should fall within the scope of protection of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention are implemented according to the conventional means in the field unless otherwise specified and limited.
Claims
1. A three-dimensional high-precision fixed-point printing method, comprising the following steps: S1. The printer prints the designated calibration pattern onto the printing platform; S2, take pictures with a 3D camera to obtain two-dimensional pictures and 3D point clouds; S3, calibrate the camera and the printer to obtain the transformation matrix of the printer coordinate system and the camera coordinate system; S4. The point cloud in the camera coordinate system can be converted to the printer coordinate system according to the external parameters; The specific steps of the printer calibration method are as follows: 1) Manually place calibration paper in the printer; 2) The printer moves to the mechanical starting position and stops; 3) The 3D camera takes a photo and identifies the position T1 of the car in the 3D coordinate system by printing the mark point on the top of the car. T1 is the starting position of printing. 4) The printer starts printing a specific pattern; 5) The 3D camera takes pictures, identifies the printed pattern, and identifies the complete pattern through the pattern data, and calculates the coordinate transformation matrix A in combination with the camera external parameters; 6) Calibration completed; The specific steps of the printer calibration self-test method are as follows: 1) The printing carriage moves to the printing starting position and stops; 2) The 3D camera takes a photo and identifies the position nT1 of the car in the 3D coordinate system by printing the mark point on the top of the car; 3) Compare nT1 with T1 recorded in factory calibration. If the difference between the two exceeds a certain threshold, maintenance action is performed; 4) After the maintenance action is completed, perform the calibration self-test again. If it still fails, set the machine to a fault state and have it handled by maintenance personnel.
2. A three-dimensional high-precision fixed-point printing method according to claim 1, characterized in that: The printer has 3 degrees of freedom, and moves along the X-axis, Y-axis and Z-axis, and the plane of the printing platform is parallel to the plane of the inkjet printer nozzle.
3. A three-dimensional high-precision fixed-point printing method according to claim 1, characterized in that: The calibration pattern in S1 includes a checkerboard or a dot matrix.
4. A three-dimensional high-precision fixed-point printing method according to claim 1, characterized in that: The S1 printer prints when the Z-axis coordinate is 0, and the printer's initial position coordinate (x=0, y=0, z=0) is used as the origin of the printer's coordinate system.
5. A three-dimensional high-precision fixed-point printing device using the printing method of any one of claims 1 to 4, characterized in that: The printing mechanism in the printing device performs printing by using coordinate parameters provided by a computer vision mechanism (2), and comprises a frame (1), wherein the frame (1) is equipped with a computer vision mechanism (2), a hand slot mechanism (3) and a printing mechanism (4), and the computer vision mechanism (2) is arranged directly above the hand slot mechanism (3).
6. A three-dimensional high-precision fixed-point printing device according to claim 5, characterized in that: The computer vision mechanism (2) is composed of a camera, a structured light component, a vision control module, a fill light component and a moving module.
7. A three-dimensional high-precision fixed-point printing device according to claim 6, characterized in that: The printing mechanism (4) is connected to the X-axis moving module, the Y-axis moving module and the Z-axis moving module, and the printing mechanism (4) moves in the X-axis, Y-axis and Z-axis directions.
8. A three-dimensional high-precision fixed-point printing device according to claim 7, characterized in that: The X-axis moving module comprises a driving motor (403), the driving motor (403) is connected to a driving wheel (404), the driving wheel (404) is connected to a driven wheel (5) via a transmission belt, and the driven wheel (5) is mounted on the other end of the frame (1).
9. A three-dimensional high-precision fixed-point printing device according to claim 8, characterized in that: An ink absorbing assembly (7) is installed on the frame (1) below the printing mechanism (4); the ink absorbing assembly (7) comprises an ink absorbing sponge and a sponge bracket, and the sponge bracket is fixed on the frame (1).
10. A three-dimensional high-precision fixed-point printing device according to claim 9, characterized in that: An ink receiving box (6) is installed on one side of the ink absorbing component (7); an opening is provided on the top of the ink receiving box (6); and a through hole is provided on the bottom of the ink receiving box (6).
