CN115686394A - Printing correction method, device, equipment and storage medium - Google Patents

Printing correction method, device, equipment and storage medium Download PDF

Info

Publication number
CN115686394A
CN115686394A CN202211351484.5A CN202211351484A CN115686394A CN 115686394 A CN115686394 A CN 115686394A CN 202211351484 A CN202211351484 A CN 202211351484A CN 115686394 A CN115686394 A CN 115686394A
Authority
CN
China
Prior art keywords
design drawing
coordinate
printing
pixel coordinates
printed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211351484.5A
Other languages
Chinese (zh)
Inventor
刘胜波
赵忠义
刘吉刚
徐超
彭瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211351484.5A priority Critical patent/CN115686394A/en
Publication of CN115686394A publication Critical patent/CN115686394A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention relates to the technical field of printing, and discloses a printing correction method, a printing correction device, printing correction equipment and a storage medium. The method comprises the steps of obtaining pixel coordinates of mark points on a to-be-printed object, then obtaining standard pixel coordinates of the mark points on a standard design drawing, determining a projection conversion matrix according to the standard pixel coordinates and the pixel coordinates, then carrying out projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing. The standard design drawing is subjected to projection conversion according to the projection conversion matrix, and the standard design drawing can be subjected to projection conversion according to the projection conversion matrix, so that the standard design drawing can be converted to the real position of a product to be printed to obtain a corrected design drawing, and then the corrected design drawing is printed, errors in the digital printing process can be effectively corrected, high-precision printing is realized, manual intervention is not needed in the printing process, the production efficiency can be improved, and the method has a high practical value.

Description

Printing correction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of printing technologies, and in particular, to a printing correction method, apparatus, device, and storage medium.
Background
With the development of printing technology, digital printing technology has become the mainstream printing method in recent years, and digital printing is to directly print files in numbers in a computer or other controller onto various printed objects. The existing general practice is to fix the printed object on the printing platform by using a positioning column or other mechanical positioning modes, and to ensure the parallel of the printed object and the transmission mechanism, then to teach the printing position manually, to finally ensure the origin of the printed design drawing to be consistent with the coordinate position of the origin of the current printed object through multiple trial and error adjustments, and to finally print the standard design drawing of the printed object on the printed object. The manual alignment method has the following problems: the printed matter and the transmission mechanism are difficult to be parallel, the adjustment mechanism can only be close as much as possible, the adjustment steps are complicated, the requirement on operators is high, and even a tiny angle error can also result in a large printing position error in large-format printing. Therefore, how to effectively correct errors in the digital printing process and realize high-precision printing becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a printing correction method, a printing correction device, printing correction equipment and a storage medium, and aims to solve the technical problems of effectively correcting errors in a digital printing process and realizing high-precision printing.
In order to achieve the above object, the present invention provides a printing correction method including the steps of:
acquiring pixel coordinates of a mark point on a to-be-printed object;
acquiring standard pixel coordinates of mark points on a standard design drawing, and determining a projection transformation matrix according to the standard pixel coordinates and the pixel coordinates;
and performing projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing.
Optionally, the step of obtaining a standard pixel coordinate of a mark point on the standard design drawing, and determining a projection transformation matrix according to the standard pixel coordinate and the pixel coordinate specifically includes:
acquiring standard pixel coordinates of a mark point on a standard design drawing;
performing system error compensation on the pixel coordinates to obtain actual pixel coordinates;
and determining a projection transformation matrix according to the standard pixel coordinates and the actual pixel coordinates.
Optionally, the step of performing systematic error compensation on the pixel coordinate to obtain an actual pixel coordinate specifically includes:
acquiring the mechanism coordinates of a mark point on a to-be-printed object;
performing coordinate conversion on the mechanism coordinate to obtain a pixel coordinate of a mark point on the object to be printed;
acquiring error compensation parameters of the mark points on the object to be printed;
and performing system error compensation on the pixel coordinates according to the error compensation parameters to obtain actual pixel coordinates.
Optionally, the step of obtaining the mechanism coordinates of the mark point on the object to be printed specifically includes:
acquiring initial image coordinates of a mark point on a to-be-printed object through a preset camera;
calibrating the initial camera to obtain calibration information;
and performing coordinate conversion on the initial image coordinate according to the calibration information to obtain the mechanism coordinate of the mark point on the object to be printed.
Optionally, the step of performing coordinate transformation on the mechanism coordinate to obtain a pixel coordinate of a mark point on the to-be-printed object specifically includes:
acquiring a printing origin coordinate and a preset printing density corresponding to preset printing equipment;
and performing coordinate conversion on the mechanism coordinate according to the preset printing density and the printing origin coordinate to obtain the pixel coordinate of the mark point on the object to be printed.
Optionally, the step of performing systematic error compensation on the pixel coordinate to obtain an actual pixel coordinate specifically includes:
measuring an actual error corresponding to a preset printing device through a preset laser device;
and performing system error compensation on the pixel coordinate according to the actual error to obtain an actual pixel coordinate.
Optionally, before the step of obtaining the standard pixel coordinates of the mark point on the standard design drawing, the method further includes:
acquiring the position deviation between a mark point on a to-be-printed object and a mark point on a pre-printed design drawing;
when the position deviation does not meet the preset precision requirement, determining a pixel unit error according to the position deviation;
and determining an error compensation parameter according to the target position deviation and the pixel unit error.
Optionally, the step of obtaining a position deviation between a mark point on the to-be-printed object and a mark point on the pre-printed design drawing specifically includes:
acquiring initial mechanism coordinates of a mark point on a to-be-printed object;
carrying out coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate;
obtaining standard pixel coordinates of mark points on a standard design drawing, and determining an initial conversion matrix according to the standard pixel coordinates and the initial pixel coordinates;
performing projection conversion on the standard design drawing according to the initial conversion matrix to obtain a pre-corrected design drawing, and performing pre-printing on the pre-corrected design drawing to obtain target mechanism coordinates of mark points on the pre-printed design drawing;
and determining the position deviation according to the initial mechanism coordinates and the target mechanism coordinates.
Optionally, the step of determining an error compensation parameter according to the position deviation and the pixel unit error specifically includes:
performing system error compensation on the initial mechanism coordinate according to the position deviation to obtain a compensated mechanism coordinate;
returning to the step of performing coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate, and obtaining a final position deviation until the final position deviation meets the preset precision requirement;
and determining an error compensation parameter according to the final position deviation and the pixel unit error.
Further, to achieve the above object, the present invention also provides a print correction apparatus comprising:
the coordinate acquisition module is used for acquiring the pixel coordinates of the mark points on the object to be printed;
the matrix acquisition module is used for acquiring standard pixel coordinates of mark points on a standard design drawing and determining a projection conversion matrix according to the pixel coordinates and the actual pixel coordinates;
and the printing correction module is used for performing projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing.
Further, to achieve the above object, the present invention also proposes a print correction apparatus comprising: a memory, a processor and a print correction program stored on the memory and executable on the processor, the print correction program being configured to implement the steps of the print correction method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a print correction program which, when executed by a processor, implements the steps of the print correction method as described above.
The method comprises the steps of obtaining pixel coordinates of mark points on a to-be-printed object, then obtaining standard pixel coordinates of the mark points on a standard design drawing, determining a projection conversion matrix according to the standard pixel coordinates and the pixel coordinates, then carrying out projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing. The invention determines the projection conversion matrix according to the standard pixel coordinate and the pixel coordinate, performs projection conversion on the standard design drawing according to the projection conversion matrix, and can perform projection conversion on the standard design drawing according to the projection conversion matrix, so that the standard design drawing can be converted to the real position of a to-be-printed object to obtain the corrected design drawing, and then prints the corrected design drawing, thereby effectively correcting errors in the digital printing process, realizing high-precision printing, avoiding manual intervention in the printing process, improving the production efficiency, and having greater practical value.
Drawings
FIG. 1 is a schematic diagram of a printing correction apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a printing calibration method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a mark point on a to-be-printed object according to an embodiment of the printing correction method of the present invention;
FIG. 4 is a flowchart illustrating a printing calibration method according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of a printing apparatus according to an embodiment of the printing correction method of the present invention;
FIG. 6 is a flow chart illustrating a third embodiment of the printing correction method of the present invention;
fig. 7 is a block diagram showing the configuration of the first embodiment of the printing correction apparatus of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a printing correction apparatus in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the print correction apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the print correction apparatus, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a print correction program.
In the print correction apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the print correction apparatus of the present invention may be provided in a print correction apparatus that calls a print correction program stored in the memory 1005 by the processor 1001 and executes a print correction method provided by an embodiment of the present invention.
Based on the printing correction device, an embodiment of the present invention provides a printing correction method, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of the printing correction method according to the present invention.
In this embodiment, the print correction method includes the steps of:
step S10: acquiring pixel coordinates of a mark point on a to-be-printed object;
it should be noted that the execution subject of the present embodiment may be a computing service device, such as a personal computer, having functions of data processing, network communication, and program execution, or an electronic device or a print correction device capable of implementing the above functions. The present embodiment and each of the embodiments described below will be explained below by taking the print correction apparatus as an example.
It can be understood that the to-be-printed matter refers to an article to be printed, the to-be-printed matter may be a to-be-printed PCB, the wiring design drawing in the PCB standard design drawing, the protective green oil design drawing or the element character mark drawing, and the like may be directly printed on the surface of the substrate of the to-be-printed PCB, and may also be applied to other application scenarios, for example, printed matters in daily various business, publishing and consuming scenarios, which is not specifically limited in this embodiment.
It should be understood that the Mark points on the object to be printed refer to points marked on the object to be printed, the positions and the number of the Mark points can be set according to the actual situation, and preferably four Mark points are distributed in the areas near the four corners of the object to be printed, for example, referring to fig. 3, fig. 3 is a schematic diagram of the Mark points on the object to be printed according to an embodiment of the printing correction method of the present invention, as shown in fig. 3, mark point 1, mark point 2, mark point 3, and Mark point 4 represent four Mark points on the object to be printed. The shape of the mark point can be set according to the actual situation, and a circular mark point is recommended in a general scene because the center of the extracted circle has the highest precision.
Specifically, the pixel coordinates refer to coordinates of mark points on the object to be printed in an image before printing on the PCB, and the image can be acquired by a preset camera.
Step S20: acquiring standard pixel coordinates of mark points on a standard design drawing, and determining a projection transformation matrix according to the standard pixel coordinates and the pixel coordinates;
it should be noted that the standard design drawing refers to a design drawing printed on a to-be-printed object, and may be specifically generated according to-be-printed graphic information in an original design drawing designed by a developer, where the to-be-printed graphic information may be an etched circuit diagram, a green oil diagram, or an ic character labeled diagram, and may be generally extracted directly from a Gerber file, or may be read after being converted into a pdf or tiff format, and when reading, it is noted that the print density is set to be the maximum, and may be generally set to 2400dpi or greater, so as to avoid information loss due to an excessively narrow connecting line, and the extracted information is stored in an image format, and is set as the standard design drawing, so that the information is stored in the image format, and because the image is more convenient to perform affine or projection transformation, it may also be able to directly perform affine or projection transformation on a vector diagram file such as a Gerber file or a pdf file, and it is only to select an image format, which is simpler and more convenient than other technical paths.
It can be understood that, in the present embodiment, the projection transformation matrix may be determined according to the standard pixel coordinate and the pixel coordinate, where the projection transformation matrix is a transformation matrix between the standard pixel coordinate and the pixel coordinate, and specifically, the pixel coordinate may be obtained by multiplying the standard pixel coordinate by the projection transformation matrix.
Step S30: and performing projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing.
It should be understood that projective transformation may implement translation, scaling, beveling, rotation, etc. transformations between the standard and corrected plans.
In a specific implementation, each pixel in the standard design drawing can be subjected to projection conversion according to the projection conversion matrix, so that a corrected design drawing can be obtained, and the corrected design drawing is printed on a to-be-printed object. Specifically, the corrected design drawing can be converted into a digital stream prn file required by digital printing, and the prn data stream drives the preset printing equipment to print, so that the printed drawing can be accurately attached to a to-be-printed object under all normal conditions.
Specifically, in the embodiment, only the mark points of the object to be printed need to be shot, no other motion process exists, the shooting is used for calculating and extracting the position of the object to be printed, other calculations are all conversion relation calculations and conversion calculations of the design drawing, the whole process can be completed quickly under the condition that software and algorithms are well designed, the whole process is very efficient, manual intervention is not needed, all the calculations can be automatically carried out, the production efficiency is improved, and the accuracy of the printing position is well guaranteed.
In the embodiment, the pixel coordinates of the mark points on the object to be printed are obtained, the standard pixel coordinates of the mark points on the standard design drawing are obtained, the projection conversion matrix is determined according to the standard pixel coordinates and the pixel coordinates, the standard design drawing is subjected to projection conversion according to the projection conversion matrix, the corrected design drawing is obtained, and the corrected design drawing is printed. The embodiment determines the projection conversion matrix according to the standard pixel coordinate and the pixel coordinate, performs projection conversion on the standard design drawing according to the projection conversion matrix, and performs projection conversion on the standard design drawing according to the projection conversion matrix, so that the standard design drawing can be converted to the real position of a to-be-printed object to obtain the corrected design drawing, and prints the corrected design drawing.
Referring to fig. 4, fig. 4 is a flowchart illustrating a printing correction method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S20 includes:
step S201: acquiring standard pixel coordinates of a mark point on a standard design drawing;
step S202: performing system error compensation on the pixel coordinates to obtain actual pixel coordinates;
it can be understood that various system errors such as system installation errors, printing origin errors, deformation errors of the to-be-printed object and the like may be generated in the printing process of the to-be-printed object, so that the system errors of the pixel coordinates need to be compensated to obtain actual pixel coordinates, namely coordinates of the mark points on the to-be-printed object in the printed image on the PCB.
Further, in order to accurately determine the mechanism coordinates, in the present embodiment, the step S202 includes: acquiring the mechanism coordinates of a mark point on a to-be-printed object; performing coordinate conversion on the mechanism coordinate to obtain a pixel coordinate of a mark point on the object to be printed; acquiring error compensation parameters of the mark points on the object to be printed; and performing system error compensation on the pixel coordinates according to the error compensation parameters to obtain actual pixel coordinates.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram of a printing apparatus according to an embodiment of the printing correction method of the present invention. As shown in fig. 5, the movement mechanism of the printing apparatus is mainly composed of X and Y axes, the digital printing table is installed on the X axis sliding table and can move left and right along with the X axis, the camera 1 and the camera 2 are fixed positions installed on the X axis and cannot move left and right, and the whole X axis is installed on the Y axis gantry structure and can move back and forth. In addition, a single-camera scheme may be adopted, that is, only the camera 1 is used, and when the single-camera scheme is adopted, the camera 1 is required to be installed on the sliding table of the X axis like the digital printing head and can move left and right along with the X axis.
The mechanism coordinates refer to coordinates of the mark point on the object to be printed on the X axis and the Y axis of the movement mechanism.
Further, in order to accurately determine the mechanism coordinates, in this embodiment, the step of acquiring the mechanism coordinates of the mark point on the to-be-printed object specifically includes: acquiring initial image coordinates of a mark point on a to-be-printed object through a preset camera; calibrating the initial camera to obtain calibration information; and performing coordinate conversion on the initial image coordinate according to the calibration information to obtain the mechanism coordinate of the mark point on the object to be printed.
It should be noted that the preset camera in this embodiment refers to a camera installed in the X axis in advance, the number of cameras is not specifically limited in this embodiment, and may be the camera 1 and the camera 2, or only the camera 1. The initial image coordinates refer to coordinates in an image acquired by collecting the mark points through a preset camera.
It can be understood that when a double-camera scheme is adopted, namely the camera 1 and the camera 2, the two cameras only perform single-axis calibration of a Y axis, a virtual x axis is suggested to be added for completing the single-axis calibration, then the position relationship of the two cameras is also calibrated, and the position relationship is performed by printing a standard module or by means of characteristic points of a PCB (printed circuit board); when the single camera scheme is used, i.e., camera 1, the single camera is calibrated with the XY axes due to the synchronous motion of the camera and the printhead. The calculation process of calibration is generally only performed by nine-point calibration, and the process belongs to an industry common method and is not described in detail.
In the specific implementation, the calibration information is the corresponding relation between the image acquired by the camera and the actual XY axis of the calibration point, so that the coordinate of the initial image coordinate can be converted according to the calibration information to obtain the mechanism coordinate of the calibration point on the object to be printed.
It is understood that the coordinate conversion refers to converting actual coordinates into pixel coordinates, and the pixel coordinates of the mark points on the object to be printed refer to the coordinates of the mark points on the standard design drawing.
Further, in order to accurately determine the pixel coordinates, in this embodiment, the step of performing coordinate transformation on the mechanism coordinates to obtain the pixel coordinates of the mark point on the object to be printed specifically includes: acquiring a printing origin coordinate and a preset printing density corresponding to preset printing equipment; and performing coordinate conversion on the mechanism coordinate according to the preset printing density and the printing origin coordinate to obtain the pixel coordinate of the mark point on the object to be printed.
It should be noted that the preset printing device is a device capable of printing on a to-be-printed object, the printing origin coordinates are origin coordinates of an X axis and a Y axis in fig. 5, the preset printing density is a preset printing density, and the greater the printing density is, the more accurate the printing is, and the setting can be specifically performed according to actual situations.
In a specific implementation, the present embodiment assumes that there are four marking points, and the mechanism coordinates of the marking points are (P) xi ,P yi ) Where i is e [1,4]Printing origin coordinate is P 0 (P x0 ,P y0 ) Pixel coordinate is (M) xi ,M yi ) Where i is e [1,4]Then, there are: m xi =(P xi -P x0 )*Dx/25.4;M yi =(P yi -P y0 ) Dy/25.4, dx represents the print density of the standard design in the X-axis direction, and Dy represents the print density of the standard design in the Y-axis direction. Since the pixel coordinates in this embodiment are in millimeters, a division by 25.4,1 inches =25.4 millimeters is required.
It should be understood that each mark point on the object to be printed corresponds to an error compensation parameter, and the error compensation parameter may include an error compensation parameter of abscissa and an error compensation parameter of ordinate to perform systematic error compensation on each mark point, and the error compensation parameter may be a positive number or a negative number.
It can be understood that the pixel coordinates of each mark point are subjected to system error compensation according to the error compensation parameters, that is, the pixel coordinates of each mark point and the corresponding error compensation parameters are added to obtain the actual pixel coordinates.
Further, in this embodiment, the step of performing systematic error compensation on the pixel coordinate to obtain an actual pixel coordinate specifically includes: measuring an actual error corresponding to a preset printing device through a preset laser device; and performing system error compensation on the pixel coordinate according to the actual error to obtain an actual pixel coordinate.
In this embodiment, in addition to performing the system error compensation in the above manner, an actual error corresponding to a preset printing device may be measured by a preset laser device, where the preset laser device may be a laser interferometer, and the preset printing device is a device for printing a to-be-printed product. And performing system error compensation on the pixel coordinate according to the actual error, and specifically adding the actual error to the pixel coordinate to obtain the actual pixel coordinate.
Step S203: and determining a projection transformation matrix according to the standard pixel coordinates and the actual pixel coordinates.
In this implementation, the standard pixel coordinates are multiplied by the projective transformation matrix to obtain the actual pixel coordinates.
Specifically, assuming that there are four mark points, the projection transformation matrix is T, the standard pixel coordinate is M1, and the actual pixel coordinate is M2, then M2= T × M1, let T be:
Figure BDA0003919023890000101
then:
Figure BDA0003919023890000102
wherein a33=1,M 2x Representing the abscissa, M, in actual pixel coordinates 1x Represents the abscissa, M, of the standard pixel coordinate 2y Representing the ordinate, M, in the actual pixel coordinate 1y And expressing a vertical coordinate in a standard pixel coordinate, wherein the coordinates are an actual pixel coordinate and a standard pixel coordinate corresponding to the same marking point, and because four marking points exist, four equation sets can be obtained, each unknown number in the projection conversion matrix T can be solved, and the projection conversion matrix is determined. For other numbers of mark points, the projection transformation matrix may also be calculated in the above manner, which is not described in detail in this embodiment.
In the embodiment, the standard pixel coordinates of the mark points on the standard design drawing are obtained, the system error compensation is performed on the pixel coordinates, the actual pixel coordinates are obtained, and the projection transformation matrix is determined according to the standard pixel coordinates and the actual pixel coordinates. According to the embodiment, the influence of system installation and target deformation on the pixel coordinates of the camera shooting mark points can be eliminated or reduced by performing system error compensation on the pixel coordinates, more accurate actual pixel coordinates are obtained, and the projection transformation matrix is determined according to the standard pixel coordinates and the actual pixel coordinates, so that the projection transformation matrix can be accurately determined under the influence of system errors.
Referring to fig. 6, fig. 6 is a flow chart illustrating a printing correction method according to a third embodiment of the present invention.
Based on the foregoing embodiments, in this embodiment, before the step S201, the method further includes:
step S01: acquiring the position deviation between a mark point on a to-be-printed object and a mark point on a pre-printed design drawing;
it should be noted that the pre-printed design drawing refers to a design drawing obtained by performing first printing, and the position deviation refers to a deviation between a mark point on a to-be-printed object and a corresponding mark point on the pre-printed design drawing, and may specifically include an abscissa and an ordinate of the position deviation corresponding to each mark point. This process can be performed off-line before the pre-set printing device performs real-time printing in order to obtain positional deviations due to system reasons.
Further, in order to accurately determine the position deviation, in this embodiment, the step S01 includes: acquiring initial mechanism coordinates of a mark point on a to-be-printed object; carrying out coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate; obtaining standard pixel coordinates of mark points on a standard design drawing, and determining an initial conversion matrix according to the standard pixel coordinates and the initial pixel coordinates; performing projection conversion on the standard design drawing according to the initial conversion matrix to obtain a pre-corrected design drawing, and performing pre-printing on the pre-corrected design drawing to obtain target mechanism coordinates of mark points on the pre-printed design drawing; and determining the position deviation according to the initial mechanism coordinates and the target mechanism coordinates.
It can be understood that the initial mechanism coordinates refer to the mechanism coordinates of the mark points on the object to be printed when the printing device prints for the first time, and the specific determination manner may refer to the mechanism coordinates determined by the camera calibration. And then, carrying out coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate. The specific determination method may refer to the above-described method of obtaining the pixel coordinates. The method for obtaining the initial transformation matrix may also refer to the method for obtaining the projection transformation matrix, which is not described in detail in this embodiment.
It should be understood that after the pre-corrected design drawing is obtained, the pre-corrected design drawing may be pre-printed to obtain target mechanism coordinates of the marked points on the pre-printed design drawing, and then position deviations may be determined according to the initial mechanism coordinates and the target mechanism coordinates, the number of the position deviations being the same as the number of the marked points. For example, if the initial mechanism coordinate corresponding to a certain mark point is (1.2,1.5) and the target mechanism coordinate is (1.3,1.6), the positional deviation corresponding to the mark point is (0.1).
Step S02: when the position deviation does not meet the preset precision requirement, determining a pixel unit error according to the position deviation;
it is understood that the preset precision requirement refers to a preset maximum threshold value of the position deviation, for example, the abscissa does not exceed 0.3, and the ordinate does not exceed 0.3, which can be specifically set according to the actual situation, and this embodiment does not specifically limit this.
It should be understood that when the position deviation does not meet the preset precision requirement, the target position deviation may be determined according to the position deviation, and specifically, the position deviation may be subjected to pixel conversion to obtain a pixel unit error.
Step S03: and determining an error compensation parameter according to the target position deviation and the pixel unit error.
Further, in order to accurately determine the error compensation parameter, in this embodiment, the step S03 includes: performing system error compensation on the initial mechanism coordinate according to the position deviation to obtain a compensated mechanism coordinate; returning to the step of converting the coordinates of the initial mechanism to obtain initial pixel coordinates, and obtaining final position deviation until the final position deviation meets the preset precision requirement; and determining an error compensation parameter according to the final position deviation and the pixel unit error.
It can be understood that the position deviation can be added to the initial mechanism coordinate to perform system error compensation, so as to obtain a compensated mechanism coordinate, then coordinate conversion is performed on the compensated mechanism coordinate, and the steps of obtaining a conversion matrix and performing projection conversion are sequentially performed to obtain a final position deviation, and if the final position deviation meets the preset precision requirement, the steps are repeated until the final position deviation meets the preset precision requirement.
In a specific implementation, the error compensation parameter may be determined according to the final position deviation, and specifically, all the final position deviations in the above cycle process may be obtained, and then the pixel unit error may be added to all the final position deviations to obtain the error compensation parameter.
Specifically, the printing correction method of the present invention is not limited to the printing of PCB board, and can be used in high-precision digital printing of various products in general.
In the embodiment, by acquiring the position deviation between the mark point on the object to be printed and the mark point on the pre-printed design drawing, when the position deviation does not meet the preset precision requirement, the pixel unit error is determined according to the position deviation, and then the error compensation parameter is determined according to the position deviation and the pixel unit error. According to the embodiment, when the position deviation does not meet the preset precision requirement, the pixel unit error is determined according to the position deviation, and the error compensation parameter is determined according to the position deviation and the pixel unit error, so that the error compensation parameter caused by the system error can be accurately determined before the actual printing is carried out by the preset printing equipment, the error in the digital printing process can be effectively corrected, and the high-precision printing is realized.
Referring to fig. 7, fig. 7 is a block diagram showing the configuration of the first embodiment of the printing correction apparatus of the present invention.
As shown in fig. 7, the print correction apparatus according to the embodiment of the present invention includes:
the coordinate acquisition module 10 is used for acquiring the pixel coordinates of the mark points on the object to be printed;
the matrix acquisition module 20 is configured to acquire a standard pixel coordinate of a mark point on a standard design drawing, and determine a projection transformation matrix according to the standard pixel coordinate and the pixel coordinate;
and the printing correction module 30 is configured to perform projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and print the corrected design drawing.
In the embodiment, the pixel coordinates of the mark points on the object to be printed are obtained, the standard pixel coordinates of the mark points on the standard design drawing are obtained, the projection conversion matrix is determined according to the standard pixel coordinates and the pixel coordinates, the standard design drawing is subjected to projection conversion according to the projection conversion matrix, the corrected design drawing is obtained, and the corrected design drawing is printed. The embodiment determines the projection conversion matrix according to the standard pixel coordinate and the pixel coordinate, performs projection conversion on the standard design drawing according to the projection conversion matrix, and performs projection conversion on the standard design drawing according to the projection conversion matrix, so that the standard design drawing can be converted to the real position of a to-be-printed object to obtain the corrected design drawing, and prints the corrected design drawing.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the printing correction method provided in any embodiment of the present invention, and are not described herein again.
A second embodiment of the printing correction apparatus of the present invention is proposed based on the above-described first embodiment of the printing correction apparatus of the present invention.
In this embodiment, the matrix obtaining module 20 is further configured to obtain standard pixel coordinates of a mark point on a standard design drawing; performing system error compensation on the pixel coordinates to obtain actual pixel coordinates; and determining a projection transformation matrix according to the standard pixel coordinates and the actual pixel coordinates.
Further, the matrix obtaining module 20 is further configured to obtain mechanism coordinates of a mark point on the object to be printed; performing coordinate conversion on the mechanism coordinate to obtain a pixel coordinate of a mark point on the object to be printed; acquiring error compensation parameters of the mark points on the object to be printed; and performing system error compensation on the pixel coordinates according to the error compensation parameters to obtain actual pixel coordinates.
Further, the matrix obtaining module 20 is further configured to collect initial image coordinates of a mark point on the object to be printed by using a preset camera; calibrating the initial camera to obtain calibration information; and performing coordinate conversion on the initial image coordinate according to the calibration information to obtain the mechanism coordinate of the mark point on the object to be printed.
Further, the matrix obtaining module 20 is further configured to obtain a printing origin coordinate and a preset printing density corresponding to a preset printing device; and performing coordinate conversion on the mechanism coordinate according to the preset printing density and the printing origin coordinate to obtain the pixel coordinate of the mark point on the object to be printed.
Further, the matrix obtaining module 20 is further configured to measure, by using a preset laser device, an actual error corresponding to a preset printing device; and performing system error compensation on the pixel coordinate according to the actual error to obtain an actual pixel coordinate.
Further, the matrix obtaining module 20 is further configured to obtain a position deviation between a mark point on the to-be-printed object and a mark point on the pre-printed design drawing; when the position deviation does not meet the preset precision requirement, determining a pixel unit error according to the position deviation; and determining an error compensation parameter according to the position deviation and the pixel unit error.
Further, the matrix obtaining module 20 is further configured to obtain initial mechanism coordinates of a mark point on a to-be-printed object; carrying out coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate; obtaining standard pixel coordinates of mark points on a standard design drawing, and determining an initial conversion matrix according to the standard pixel coordinates and the initial pixel coordinates; performing projection conversion on the standard design drawing according to the initial conversion matrix to obtain a pre-corrected design drawing, and performing pre-printing on the pre-corrected design drawing to obtain target mechanism coordinates of mark points on the pre-printed design drawing; and determining the position deviation according to the initial mechanism coordinates and the target mechanism coordinates.
Further, the matrix obtaining module 20 is further configured to perform system error compensation on the initial mechanism coordinate according to the target position deviation, so as to obtain a compensated mechanism coordinate; returning to the step of performing coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate, and obtaining a final position deviation until the final position deviation meets the preset precision requirement; and determining an error compensation parameter according to the final position deviation and the pixel unit error.
Other embodiments or specific implementations of the printing correction apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
Furthermore, an embodiment of the present invention also provides a storage medium having a print correction program stored thereon, where the print correction program, when executed by a processor, implements the steps of the print correction method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A print correction method, characterized by comprising the steps of:
acquiring pixel coordinates of a mark point on a to-be-printed object;
acquiring standard pixel coordinates of mark points on a standard design drawing, and determining a projection transformation matrix according to the standard pixel coordinates and the pixel coordinates;
and performing projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing.
2. The print correction method according to claim 1, wherein the step of obtaining the standard pixel coordinates of the mark points on the standard design drawing and determining the projection transformation matrix according to the standard pixel coordinates and the pixel coordinates specifically comprises:
acquiring standard pixel coordinates of a mark point on a standard design drawing;
performing system error compensation on the pixel coordinates to obtain actual pixel coordinates;
and determining a projection transformation matrix according to the standard pixel coordinates and the actual pixel coordinates.
3. The printing correction method of claim 2, wherein the step of performing systematic error compensation on the pixel coordinates to obtain actual pixel coordinates specifically comprises:
acquiring the mechanism coordinates of a mark point on a to-be-printed object;
performing coordinate conversion on the mechanism coordinate to obtain a pixel coordinate of a mark point on the object to be printed;
acquiring error compensation parameters of the mark points on the object to be printed;
and performing system error compensation on the pixel coordinates according to the error compensation parameters to obtain actual pixel coordinates.
4. The printing correction method according to claim 3, wherein the step of acquiring the mechanism coordinates of the mark points on the object to be printed specifically comprises:
acquiring initial image coordinates of a mark point on a to-be-printed object through a preset camera;
calibrating the initial camera to obtain calibration information;
and performing coordinate conversion on the initial image coordinate according to the calibration information to obtain the mechanism coordinate of the mark point on the object to be printed.
5. The printing correction method according to claim 3, wherein the step of performing coordinate transformation on the mechanism coordinates to obtain pixel coordinates of the mark points on the object to be printed includes:
acquiring a printing origin coordinate and a preset printing density corresponding to preset printing equipment;
and performing coordinate conversion on the mechanism coordinate according to the preset printing density and the printing origin coordinate to obtain a pixel coordinate of a mark point on the object to be printed.
6. The printing correction method of claim 2, wherein the step of performing systematic error compensation on the pixel coordinates to obtain actual pixel coordinates specifically comprises:
measuring an actual error corresponding to a preset printing device through a preset laser device;
and performing system error compensation on the pixel coordinate according to the actual error to obtain an actual pixel coordinate.
7. The print correction method according to claim 3, wherein said step of obtaining the standard pixel coordinates of the mark points on the standard design drawing is preceded by the step of:
acquiring the position deviation between a mark point on a to-be-printed object and a mark point on a pre-printed design drawing;
when the position deviation does not meet the preset precision requirement, determining a pixel unit error according to the position deviation;
and determining an error compensation parameter according to the position deviation and the pixel unit error.
8. The printing correction method of claim 7, wherein the step of obtaining the position deviation between the mark point on the to-be-printed matter and the mark point on the pre-printed design drawing specifically comprises:
acquiring initial mechanism coordinates of a mark point on a to-be-printed object;
carrying out coordinate conversion on the initial mechanism coordinate to obtain an initial pixel coordinate;
obtaining standard pixel coordinates of mark points on a standard design drawing, and determining an initial conversion matrix according to the standard pixel coordinates and the initial pixel coordinates;
performing projection conversion on the standard design drawing according to the initial conversion matrix to obtain a pre-corrected design drawing, and performing pre-printing on the pre-corrected design drawing to obtain target mechanism coordinates of mark points on the pre-printed design drawing;
and determining the position deviation according to the initial mechanism coordinates and the target mechanism coordinates.
9. The print correction method of claim 8, wherein the step of determining error compensation parameters based on the positional deviation and the pixel-by-pixel error specifically comprises:
performing system error compensation on the initial mechanism coordinate according to the target position deviation to obtain a compensated mechanism coordinate;
returning to the step of converting the coordinates of the initial mechanism to obtain initial pixel coordinates, and obtaining final position deviation until the final position deviation meets the preset precision requirement;
and determining an error compensation parameter according to the final position deviation and the pixel unit error.
10. A print correction apparatus, characterized by comprising:
the coordinate acquisition module is used for acquiring the pixel coordinates of the mark points on the object to be printed;
the matrix acquisition module is used for acquiring standard pixel coordinates of mark points on a standard design drawing and determining a projection conversion matrix according to the pixel coordinates and the actual pixel coordinates;
and the printing correction module is used for performing projection conversion on the standard design drawing according to the projection conversion matrix to obtain a corrected design drawing, and printing the corrected design drawing.
11. A print correction apparatus, characterized in that the apparatus comprises: a memory, a processor and a print correction program stored on the memory and executable on the processor, the print correction program being configured to implement the steps of the print correction method according to any one of claims 1 to 9.
12. A storage medium, characterized in that the storage medium has stored thereon a print correction program which, when executed by a processor, implements the steps of the print correction method according to any one of claims 1 to 9.
CN202211351484.5A 2022-10-31 2022-10-31 Printing correction method, device, equipment and storage medium Pending CN115686394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211351484.5A CN115686394A (en) 2022-10-31 2022-10-31 Printing correction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211351484.5A CN115686394A (en) 2022-10-31 2022-10-31 Printing correction method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115686394A true CN115686394A (en) 2023-02-03

Family

ID=85045390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211351484.5A Pending CN115686394A (en) 2022-10-31 2022-10-31 Printing correction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115686394A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117162489A (en) * 2023-08-16 2023-12-05 郑州潮阔电子科技有限公司 3D printing coordinate compensation method and device, storage medium and 3D printer
CN117268738A (en) * 2023-11-20 2023-12-22 季华实验室 Nozzle detection method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117162489A (en) * 2023-08-16 2023-12-05 郑州潮阔电子科技有限公司 3D printing coordinate compensation method and device, storage medium and 3D printer
CN117268738A (en) * 2023-11-20 2023-12-22 季华实验室 Nozzle detection method, device, equipment and storage medium
CN117268738B (en) * 2023-11-20 2024-03-12 季华实验室 Nozzle detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115686394A (en) Printing correction method, device, equipment and storage medium
CN108921890B (en) Screw locking method and device and computer readable storage medium
CN111872544B (en) Calibration method and device for laser light-emitting indication point and galvanometer coaxial vision system
CN112059413B (en) Laser galvanometer correction method and device, computer equipment and storage medium
CN113379651B (en) Image processing method and system in laser imaging process and related equipment
US8886350B2 (en) Displacement calculation method, drawing data correction method, substrate manufacturing method, and drawing apparatus
CN113888449B (en) Image processing method and system for laser imaging and related equipment
CN113379652A (en) Linear image correction method and system for laser imaging and related equipment
CN109740487B (en) Point cloud labeling method and device, computer equipment and storage medium
US8861019B2 (en) Image evaluating apparatus, image evaluating method, and non-transitory storage medium for reading and quantifying an evaluation chart
KR20120106536A (en) Drawing data correction apparatus and drawing apparatus
JP2010122526A (en) Maskless exposure method
CN113379622A (en) Pixel size calibration method, device and equipment for electron beam defect detection
CN110270770B (en) Calibration method of laser cutting device, and storage medium
CN111391327A (en) Printing error determination method, printing error determination device, electronic equipment and storage medium
CN115555648A (en) Numerical control cutting method, system, equipment and medium
CN110281665A (en) By reference to the Method of printing of line positions print media, device, equipment and medium
KR100909007B1 (en) Image processing methods, image processing apparatuses, drawing systems, and programs
TWI656783B (en) Copying device and copying method capable of correcting copy position
JP4785644B2 (en) Printing system and print data processing apparatus
CN112894154B (en) Laser marking method and device
US20120062862A1 (en) Apparatuses And Methods For Compensation Of Carrier Distortions From Measurement Machines
CN113379692A (en) Method and device for calibrating OM and SEM coordinate relation, equipment and storage medium
US8937751B2 (en) Image evaluating apparatus, image evaluating method, and non-transitory storage medium
CN115816833B (en) Method and device for determining image correction data, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination