Printing method and device based on curved surface detection, equipment and storage medium
By establishing a three-dimensional coordinate system and using surface detection technology, a three-dimensional surface map of the curved medium is obtained. The region is divided and the printing data is adjusted, which solves the problem of uneven ink droplet distribution on the curved surface and achieves a uniform inkjet printing effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HOSONSOFT CO LTD
- Filing Date
- 2023-02-20
- Publication Date
- 2026-07-10
AI Technical Summary
Existing inkjet printing technology suffers from uneven ink droplet distribution on irregular curved surfaces, resulting in poor print quality.
By establishing a three-dimensional coordinate system, a three-dimensional surface diagram of the curved medium is obtained, different regions are divided, actual printing data is obtained based on the curvature, and inkjet printing is performed. The printhead drive voltage and printing accuracy are adjusted to achieve uniform ink droplet distribution.
It achieves uniform distribution of ink dots on irregular curved surfaces, improving print quality and ensuring the printing effect on curved surfaces.
Smart Images

Figure CN118544687B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to a printing method, apparatus, device, and storage medium based on surface detection. Background Technology
[0002] Inkjet printing technology refers to the technology of spraying ink droplets onto a printing medium through a printhead to obtain images or text. This technology is non-contact printing and has advantages such as high printing speed, low pollution, vibrant image colors, long image preservation time, and adaptability to various printing media. It has been widely used in advertising production, office supplies, decoration, printing and other fields.
[0003] However, with societal progress and the development of the inkjet printing industry, more and more products require inkjet printing. Now, the products requiring inkjet printing are no longer limited to regularly shaped items. When inkjet printing irregularly shaped products, traditional inkjet printing methods result in uneven ink droplet spacing and distribution on the printing medium, leading to poor print quality. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a printing method, apparatus, device and storage medium based on surface detection to solve the problem of uneven ink dot distribution in surface printing in the prior art, which leads to poor printing quality of the printed image.
[0005] In a first aspect, embodiments of the present invention provide a printing method based on surface detection, the method comprising:
[0006] A printing method based on surface detection, characterized in that the method includes:
[0007] Establish a three-dimensional coordinate system and obtain a three-dimensional surface diagram of the curved medium;
[0008] The three-dimensional surface diagram is divided into several different first regions;
[0009] The curvature of the first region is obtained, and the curvature corresponding to different first regions is not necessarily the same;
[0010] The actual printed data of the second region located on the curved medium corresponding to the first region is obtained based on the curvature of the first region.
[0011] Inkjet printing is performed on the surface of the second region based on the actual printing data.
[0012] Preferably, the step of establishing a three-dimensional coordinate system and obtaining a three-dimensional surface map of the curved medium includes: taking the scanning direction of the inkjet device as the x-direction, the stepping direction of the inkjet device relative to the curved medium as the y-direction, and the direction perpendicular to the xy plane as the z-direction.
[0013] Preferably, obtaining the curvature of the first region includes:
[0014] Obtain the curve equation of the first region, and obtain the curvature based on the curve equation. The curvature is denoted as ρ.
[0015] Preferably, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0016] Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed;
[0017] The original printing data to be printed by the inkjet device is obtained based on the printing accuracy of the inkjet device and the accuracy of the original image to be printed.
[0018] The original print data is adjusted according to the curvature, that is, the original print data corresponding to the second region corresponding to the curvature is adjusted according to the curvature.
[0019] Obtain the actual printed data corresponding to the second region of the curved medium.
[0020] Preferably, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0021] Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed;
[0022] The precision of the original image to be printed is adjusted according to the curvature, that is, the precision of the original image to be printed is adjusted to obtain the actual precision of the image to be printed in the second region.
[0023] The actual printing data is determined based on the actual image precision to be printed and the printing precision of the inkjet device.
[0024] Preferably, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0025] Obtain the printing accuracy of the inkjet device and the accuracy of the image to be printed;
[0026] The original printhead driving voltage corresponding to the second region is obtained based on the printing accuracy of the inkjet device and the accuracy of the image to be printed.
[0027] Adjust the original drive voltage of the nozzle corresponding to the second region according to the curvature of the second region;
[0028] Obtain the actual driving voltage of the nozzle in the second region;
[0029] The actual printing data of the second region is obtained based on the actual driving voltage of the printhead in the second region.
[0030] Preferably, the step of inkjet printing on the surface of the second region based on the actual printing data includes:
[0031] The second region is grouped according to the sign of its curvature;
[0032] The second area surface is inkjet printed based on the actual printing data.
[0033] Preferably, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0034] According to the fault tolerance principle, when the curvature satisfies |ρ2-ρ1|≤ε, the curvature of the second region corresponding to curvature ρ2 is consistent with that of the second region corresponding to curvature ρ1.
[0035] Secondly, embodiments of the present invention provide a printing apparatus based on surface detection, the apparatus comprising:
[0036] The 3D surface module is used to establish a 3D coordinate system and obtain a 3D surface plot of the curved medium.
[0037] The partitioning module is used to divide the three-dimensional surface map into several different first regions.
[0038] The curvature acquisition module is used to acquire the curvature of the first region. The curvature of different first regions may not be the same.
[0039] The actual print data acquisition module is used to acquire the actual print data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region.
[0040] The printing module is used to perform inkjet printing on the surface of the second area according to the actual printing data.
[0041] Thirdly, embodiments of the present invention provide a printing device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method as described in any one of claims 1-7 is implemented.
[0042] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.
[0043] In summary, the beneficial effects of the present invention are as follows:
[0044] This invention provides a printing method, apparatus, device, and storage medium based on surface detection. By establishing a three-dimensional coordinate system, a three-dimensional surface map of the curved medium is obtained. The three-dimensional surface map is divided into several different first regions, and the curvature of the first regions is obtained. Based on the curvature of the first regions, actual printing data of the second regions located on the curved medium corresponding to the first regions are obtained. Inkjet printing is performed using the obtained actual printing data. The ink dots on the printing medium with different degrees of curvature on the curved surface are controlled to achieve uniform printing of ink dots on the curved medium and ensure the printing effect of the curved medium. Attached Figure Description
[0045] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.
[0046] Figure 1 This is a schematic flowchart of the printing method based on surface detection according to Embodiment 1 of the present invention.
[0047] Figure 2 This is a schematic diagram of the cross-section of the curved medium in the x-direction of the printing method based on curved surface detection according to Embodiment 1 of the present invention.
[0048] Figure 3 This is a schematic diagram of the apparatus structure for the method of detecting the flatness of the printing platform or printing medium according to Embodiment 2 of the present invention.
[0049] Figure 4 This is a schematic diagram of the motion trajectory of the method for detecting the flatness of the printing platform or printing medium in Embodiment 2 of the present invention.
[0050] Figure 5 This is a schematic diagram of the printing device based on surface detection according to Embodiment 3 of the present invention.
[0051] Figure 6 This is a schematic diagram of the structure of the printing device based on surface detection according to Embodiment 4 of the present invention. Detailed Implementation
[0052] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.
[0053] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0054] Example 1
[0055] Please see Figure 1 This invention provides a printing method based on surface detection, the method comprising:
[0056] S1: Establish a three-dimensional coordinate system and obtain a three-dimensional surface diagram of the curved medium;
[0057] S2: Divide the three-dimensional surface diagram into several different first regions.
[0058] S3: Obtain the curvature of the first region. The curvature corresponding to different first regions is not necessarily the same.
[0059] S4: Obtain the actual printing data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region;
[0060] S5: Perform inkjet printing on the surface of the second area according to the actual printing data.
[0061] By acquiring a 3D surface map of the curved medium, the 3D surface map is divided into several first regions with different curved surfaces. The curvature of the curves corresponding to the different surfaces of these first regions is obtained. Then, based on the curvatures corresponding to the first regions, the actual printing data of the second region on the curved medium corresponding to each first region is obtained. Finally, inkjet printing is performed on the surface of the second region on the curved medium based on the actual printing data. This enables printing on irregular curved media, ensuring uniform ink droplets on the printing medium and guaranteeing print quality.
[0062] In one embodiment, establishing a three-dimensional coordinate system and obtaining a three-dimensional surface map of the curved medium includes: taking the scanning direction of the inkjet device as the x-direction, the stepping direction of the inkjet device relative to the curved medium as the y-direction, and the direction perpendicular to the xy plane as the z-direction.
[0063] Specifically, establishing a three-dimensional coordinate system and obtaining a three-dimensional surface plot of the curved medium includes: obtaining a three-dimensional surface plot of the curved medium within the coordinate system, including:
[0064] Obtain the three-dimensional coordinate points of the curved medium; obtain the x and y coordinate points of the curved medium and their corresponding z-direction values to obtain the three-dimensional coordinate points of the curved medium.
[0065] The method for obtaining the three-dimensional surface map of the curved medium can be achieved by using a detector, employing grating triggering or time triggering, to obtain the height value of the curved medium in the z-direction and obtain the three-dimensional coordinate points. Alternatively, the surface map of the curved medium can be directly obtained using laser scanning or camera scanning tools.
[0066] In one embodiment, dividing the three-dimensional surface map into several different first regions includes:
[0067] Specifically, the process of dividing the three-dimensional surface map into several different first regions involves dividing the first regions based on the approximate direction of the curves on the obtained three-dimensional surface map, thereby obtaining several different first regions.
[0068] Specifically, the curved medium refers to a surface that is irregular in the x-direction and regular in the y-direction, meaning that the curved medium is irregular in one direction (horizontal or vertical) and regular in the other.
[0069] For example, in one embodiment, such as Figure 2 As shown, Figure 2 Based on the general orientation of the surface medium corresponding to the three-dimensional surface diagram, the cross-section in the x-direction can be divided into several first regions: A, B, C, D, E, F, and G.
[0070] In one embodiment, obtaining the curvature of the first region includes:
[0071] Obtain the curve equations for different first regions, and obtain the curvature based on the curve equations, the curvature being denoted as ρ.
[0072] Specifically, when there are several first regions, a curvature equal to the number of first regions is obtained; each first region corresponds to one curvature, and the curvatures corresponding to different first regions may be the same or different.
[0073] In one embodiment, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0074] According to the fault tolerance principle, when the curvature satisfies |ρ2-ρ1|≤ε, it is consistent with the curvature of the second region corresponding to curvature ρ2 and the curvature of the second region corresponding to curvature ρ1.
[0075] Specifically, the 3D surface plot is divided into several first regions based on the curve's direction. However, the curvature of the surfaces within the same first region is not necessarily the same, and the curvature of the corresponding second regions on the surface medium is also not necessarily the same. According to the fault tolerance principle, when the curvature of the curve in a certain first region satisfies |ρ2-ρ1|≤ε, then the first regions corresponding to the curves with curvatures ρ2 and ρ1 are considered to have the same curvature. That is, the second region corresponding to the first region with curvature ρ2 is considered to have the same curvature as the second region corresponding to the first region with curvature ρ1. In other words, according to the fault tolerance principle, when the curvature satisfies |ρ2-ρ1|≤ε, then the second region corresponding to curvature ρ2 has the same curvature as the second region corresponding to curvature ρ1.
[0076] The ε value can be an empirical value obtained from testing, or it can be assigned a value based on printing requirements.
[0077] For example, in one embodiment, such as Figure 2 In the second region of segment B, the curvature of curve M1M2 is ρ1, and the curvature of curve M2M3 is ρ2. When ρ1 and ρ2 satisfy |ρ2-ρ1|≤ε, it can be considered that the curvature of curve M1M2 is the same as that of curve M2M3. The curvature of the two curves can be obtained according to the printing requirements. That is, the curvature of the second region of segment B can be ρ2 or ρ1, or the average of ρ2 and ρ1 can be taken.
[0078] When |ρ2-ρ1|≥ε exists, the first region corresponding to curves with different curvatures can be further divided into different sub-first regions, and the curvature of the curve corresponding to the sub-first region can be obtained.
[0079] Obtaining curvature based on the fault tolerance principle can unify the curvature of a first region when there is an acceptable difference in curvature, making the process of obtaining actual printing data for the second region based on curvature adjustment simpler and more convenient.
[0080] In one embodiment, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0081] Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed;
[0082] The original printing data to be printed by the inkjet device is obtained based on the printing accuracy of the inkjet device and the accuracy of the original image to be printed.
[0083] The original print data is adjusted according to the curvature, that is, the original print data corresponding to the second region corresponding to the curvature is adjusted according to the curvature.
[0084] Obtain the actual printed data corresponding to the second region of the curved medium.
[0085] Specifically, the inkjet printing accuracy and the image to be printed are used to obtain the original printing data of the inkjet printing device. Then, the original printing data of the second region corresponding to the different curvatures is adjusted to obtain the actual printing data corresponding to the second region.
[0086] Specifically, obtaining the actual printed data corresponding to the second region includes:
[0087] PRD = PRD0 + kρ;
[0088] The PRD is the original print data, the PRD0 is the actual print data, k is the curvature coefficient, and ρ is the curve curvature corresponding to the second region.
[0089] Adjusting the original printing data of several second regions corresponding to several curvatures based on several curvatures yields the actual printing data of several second regions. This enables control over the number of ink dots ejected per unit area on irregular curved media, achieving uniform printing and improving printing quality.
[0090] In one embodiment, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0091] Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed;
[0092] The precision of the original image to be printed is adjusted according to the curvature, that is, the precision of the original image to be printed is adjusted to obtain the actual precision of the image to be printed in the second region.
[0093] The actual printing data is determined based on the actual image precision to be printed and the printing precision of the inkjet device.
[0094] Specifically, the precision of the image to be printed is processed based on the obtained curvature to obtain the actual printed image precision of the second region corresponding to the curvature curve. The actual printed image precision is:
[0095] DPI = DPI0 + kρ;
[0096] The DPI is the actual printed image precision obtained after processing, the DPI0 is the precision of the image to be printed, k is the curvature coefficient, and ρ is the curve curvature corresponding to the second region.
[0097] The actual printing data is obtained based on the actual printed image resolution (DPI) and the printing resolution of the inkjet device.
[0098] Different curvatures are used to adjust the original printable image precision of the second region, resulting in different actual printable image precisions for the second region, and thus obtaining different actual print data for the second region.
[0099] In one embodiment, such as Figure 2 As shown, the curvature of the second region corresponding to curves A, D, and G is 0. Therefore, the original printing data of regions A, D, and G is obtained based on the printing accuracy of the inkjet device and the accuracy of the original image to be printed. The original printing data is the actual printing data of the second region A, D, and G. The curvature of curves B, C, E, and F is not 0. The actual printing data of the second region corresponding to B, C, E, and F is obtained based on the printing accuracy of the inkjet device and the accuracy of the actual printed image.
[0100] The printing precision of the image to be printed is adjusted according to the curvature to obtain the actual printing precision. Based on the adjusted actual printing precision and the precision of the inkjet equipment, the actual printing data is obtained, thereby controlling the number of ink dots ejected per unit area on the irregular curved surface medium, achieving uniform printing and improving printing quality.
[0101] In one embodiment, obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes:
[0102] Obtain the printing accuracy of the inkjet device and the accuracy of the image to be printed;
[0103] The original printhead driving voltage corresponding to the second region is obtained based on the printing accuracy of the inkjet device and the accuracy of the image to be printed.
[0104] Adjust the original drive voltage of the nozzle corresponding to the second region according to the curvature of the second region;
[0105] Obtain the actual driving voltage of the nozzle in the second region;
[0106] The actual printing data of the second region is obtained based on the actual driving voltage of the printhead in the second region.
[0107] The original drive voltage of the printhead is obtained based on the printing accuracy of the inkjet device and the accuracy of the image to be printed. Then, the original drive voltage of the corresponding second region is adjusted according to the curvature of different second regions to obtain the actual drive voltage.
[0108] Specifically, adjusting the original driving voltage according to the curvature of the different second regions to obtain the actual driving voltage of the different second regions includes:
[0109] V = V0 + nρ;
[0110] V is the actual driving voltage, V0 is the original driving voltage, n is the curvature coefficient, and ρ is the curvature of the curve corresponding to the second region.
[0111] In one embodiment, the step of inkjet printing on the surface of the second region based on the actual printing data includes:
[0112] The second region is grouped according to the sign of its curvature;
[0113] The second area surface is inkjet printed based on the actual printing data.
[0114] Specifically, grouping the second region according to the sign of its curvature includes classifying the second region according to the sign of the curvature of all the obtained curvatures of the second printing region.
[0115] For example, in one embodiment, the curved medium is as follows: Figure 2 The curvature of the curves in the second regions corresponding to A, B, C, D, E, F, and G is such that the curvature of the second regions corresponding to C and E is ρ<0, while the curvature of the curves in the second regions corresponding to A, B, D, F, and G is ρ≥0. Therefore, the second regions corresponding to C and E can be divided into one group, denoted as the first group, while the second regions corresponding to A, B, D, F, and G can be divided into two groups, denoted as the second group.
[0116] Specifically, the step of printing the second area of each group according to the actual printing data includes: during printing, the printhead acquires the actual printing data of each second area and performs inkjet printing; during printing, the first group and the second group of second areas are printed separately.
[0117] For example, in one embodiment, the first group and the second group of areas to be printed separately include: when the printhead is performing inkjet printing, when the printhead is reciprocating, the printhead performs inkjet printing on the second area of the second group when it is reciprocating, and performs inkjet printing on the second area of the first group when it is reciprocating.
[0118] This invention obtains new actual printing data by acquiring the curvature of different printing areas, and uses the acquired actual printing data for inkjet printing. It controls the ink droplets on the printing medium with different degrees of curvature on the curved surface, so as to achieve uniform printing of ink droplets on the curved medium and ensure the printing effect of the curved medium.
[0119] Example 2
[0120] This invention provides a method for detecting the flatness of a printing platform or printing medium, the method comprising:
[0121] Establish a three-dimensional coordinate system, wherein the z-direction of the three-dimensional coordinate system is the height direction of the printing platform or printing medium;
[0122] Obtain the height data value in the z-direction;
[0123] The three-dimensional coordinates are obtained based on the height data value, and a three-dimensional surface plot and a drop report are generated.
[0124] Specifically, by installing a distance detector on a trolley and controlling the trolley to move in the xy directions, the distance detector acquires height data in the z-direction as the trolley moves. This height data value in the z-direction is recorded as z1, and a three-dimensional coordinate point is obtained by combining it with the xy coordinates of the distance detector at that time. A three-dimensional surface diagram and a drop report are then generated based on these three-dimensional coordinate points.
[0125] The elevation difference report is generated as follows: a data value is selected in the z-direction as a reference value, the reference value is z2, the elevation difference value is obtained based on z1 and z2, the elevation difference value is Δz = z1 - z2, and the elevation difference report is generated based on the x and y coordinate values corresponding to Δz and z1.
[0126] For example, in one embodiment, the drop report for a certain corresponding medium or printing platform is shown in Table 1:
[0127]
[0128] In one embodiment, the distance detector may be a grating-triggered or time-triggered distance detector.
[0129] In the next embodiment, the generation of the three-dimensional surface map can also be achieved by directly generating the three-dimensional surface map based on laser scanning imaging or a camera.
[0130] By measuring the height data in the z-direction using a distance detector, a 3D surface map of the printing platform or printing media is obtained, and a drop report is generated. For the printing platform, this allows for the detection of whether the platform surface is smooth and flat, or whether the installed platform is tilted. Based on the generated 3D surface map and the drop report, the installed printing platform is adjusted, or the flatness of the printing platform is corrected. This solves the problem of uneven surface of the printing platform caused by imperfect or immature manufacturing processes, and adjusts tilted printing platforms to ensure printing quality. For the printing media, this allows for the detection of the printing media; for planar printing media, the printing media can be adjusted based on the acquired 3D surface map and drop report.
[0131] In one embodiment, a printing platform or printing media flatness detection device is provided based on the above method, such as... Figure 3 As shown, the detection device includes a printing carriage H, a detector J, and a detection platform T. The detector J is mounted on the printing carriage H. Figure 3 He Ru Figure 4 As shown, the printing carriage H moves back and forth in the X direction and steps in the Y direction, acquiring the height data value of the printing medium or printing platform relative to the printing carriage in the Z direction.
[0132] Example 3
[0133] Please see Figure 5 This invention provides a printing device based on surface detection, the printing device comprising:
[0134] 3D Surface Module 1 is used to establish a 3D coordinate system and obtain a 3D surface plot of the surface medium;
[0135] The partitioning module 2 is used to divide the three-dimensional surface map into several different first regions.
[0136] Curvature acquisition module 3 is used to acquire the curvature of the first region. The curvature of different first regions may not be the same.
[0137] The actual print data acquisition module 4 is used to acquire the actual print data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region.
[0138] The printing module 5 is used to perform inkjet printing on the surface of the second area according to the actual printing data.
[0139] Example 4
[0140] In addition, combined Figure 1 The surface detection-based printing method described in this embodiment of the invention can be implemented by a printing device. Figure 6 A schematic diagram of the hardware structure of the printing device provided in an embodiment of the present invention is shown.
[0141] Printing equipment may include a processor and a memory storing computer program instructions.
[0142] Specifically, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.
[0143] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0144] The processor reads and executes computer program instructions stored in memory to implement any of the surface detection-based printing methods described in the above embodiments.
[0145] In one example, the printing device may also include a communication interface and a bus. For example, Figure 6 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0146] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0147] A bus, including hardware, software, or both, couples components of a printing device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0148] Furthermore, in conjunction with the surface detection-based printing method in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when executed by a processor, these computer program instructions implement any of the surface detection-based printing methods described in the above embodiments.
[0149] In summary, the printing method, apparatus, device, and storage medium based on surface detection provided by the embodiments of the present invention obtain the curve curvature corresponding to different second regions, obtain new actual printing data, use the obtained actual printing data for inkjet printing, control the ink dots on the printing medium with different degrees of curvature on the curved surface, achieve uniform printing of ink dots on the curved surface medium, and ensure the printing effect of the curved surface medium.
[0150] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0151] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0152] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0153] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A printing method based on surface detection, characterized in that, The method includes: Establish a three-dimensional coordinate system and obtain a three-dimensional surface diagram of the curved medium; The three-dimensional surface diagram is divided into several different first regions; The curvature of the first region is obtained, and the curvature corresponding to different first regions is not necessarily the same; The actual printed data of the second region located on the curved medium corresponding to the first region is obtained based on the curvature of the first region. Inkjet printing is performed on the surface of the second region based on the actual printing data; The step of obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes any of the following methods: Method 1 includes: Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed; The original printing data to be printed by the inkjet device is obtained based on the printing accuracy of the inkjet device and the accuracy of the original image to be printed. The original print data is adjusted according to the curvature, that is, the original print data corresponding to the second region corresponding to the curvature is adjusted according to the curvature. Obtain the actual printing data corresponding to the second region of the curved medium; The actual printed data corresponding to the second region is obtained, including: PRD = PRD0 + kρ; Wherein, PRD is the original print data, PRD0 is the actual print data, k is the curvature coefficient, and ρ is the curve curvature corresponding to the second region; Method 2 includes: Obtain the printing accuracy of the inkjet equipment and the accuracy of the original image to be printed; The precision of the original image to be printed is adjusted according to the curvature, that is, the precision of the original image to be printed is adjusted to obtain the actual precision of the image to be printed in the second region. The actual printing data is determined based on the actual image to be printed and the printing accuracy of the inkjet device. Method three includes: Obtain the printing accuracy of the inkjet device and the accuracy of the image to be printed; The original printhead driving voltage corresponding to the second region is obtained based on the printing accuracy of the inkjet device and the accuracy of the image to be printed. Adjust the original drive voltage of the nozzle corresponding to the second region according to the curvature of the second region; Obtain the actual driving voltage of the nozzle in the second region; The actual printing data of the second region is obtained based on the actual driving voltage of the printhead in the second region. Inkjet printing is performed on the surface of the second region based on the actual printing data.
2. The printing method according to claim 1, characterized in that, The step of establishing a three-dimensional coordinate system and obtaining a three-dimensional surface map of the curved medium includes: taking the scanning direction of the inkjet device as the x-direction, the stepping direction of the inkjet device relative to the curved medium as the y-direction, and the direction perpendicular to the xy plane as the z-direction.
3. The printing method according to claim 1, characterized in that, Obtaining the curvature of the first region includes: Obtain the curve equation of the first region, and obtain the curvature based on the curve equation. The curvature is denoted as ρ.
4. The printing method according to any one of claims 1-3, characterized in that, The step of inkjet printing on the surface of the second area based on the actual printing data includes: The second region is grouped according to the sign of its curvature; The second area surface is inkjet printed based on the actual printing data.
5. The printing method according to any one of claims 1-3, characterized in that, The step of obtaining the actual printed data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region includes: According to the fault tolerance principle, when the curvature satisfies |ρ2-ρ1|≤ε, then the curvature of the second region corresponding to curvature ρ2 is consistent with the curvature of the second region corresponding to curvature ρ1.
6. A printing device based on surface detection, characterized in that, The apparatus for implementing the method as described in any one of claims 1 to 5, comprising: The 3D surface module is used to establish a 3D coordinate system and obtain a 3D surface plot of the curved medium. The partitioning module is used to divide the three-dimensional surface map into several different first regions. The curvature acquisition module is used to acquire the curvature of the different first regions, and the curvatures corresponding to the different first regions are not necessarily the same. The actual print data acquisition module is used to acquire the actual print data of the second region located on the curved medium corresponding to the first region based on the curvature of the first region. The printing module is used to perform inkjet printing on the surface of the second area according to the actual printing data.
7. A printing device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-5.
8. A storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by a processor, the method as described in any one of claims 1-5 is implemented.