A printing method, apparatus, device and medium
By generating printing parameters to control the edge-following printer to print patterns along the glass edge, the problems of long plate-making cycle and high cost in the existing technology are solved, and efficient and low-cost glass pattern printing is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, screen printing of patterns for car windows has a long plate-making cycle and high labor costs, while flatbed inkjet printing requires multiple printheads and different pattern designs, resulting in high printing costs and low efficiency.
A printing method and apparatus are provided, which control the edge-following printer to move along the edge of glass by generating printing parameters, and directly print patterns on the glass, avoiding the pre-pattern generation step. The gradient circle distribution is optimized by combining the glass size and pattern parameters to reduce mechanical motion errors.
It improves the efficiency of printing patterns on car windows, reduces the design cost of patterns for different types of glass, and ensures printing quality.
Smart Images

Figure CN121209808B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of glass printing, and more particularly to a printing method, apparatus, equipment, and medium. Background Technology
[0002] Automotive windows and other glass products typically have a black coating around the edges, which includes gradient black dots. These black areas are usually sintered glaze. This glaze improves the thermal conductivity of the glass, reduces deformation at the window edges, and contributes to enhanced glass safety.
[0003] In existing technologies, screen printing and flatbed inkjet printing are commonly used to produce the glaze for car windows. However, screen printing requires repeated manual comparisons for plate making, resulting in a long plate-making cycle and high labor costs. Flatbed inkjet printing requires the installation of multiple printheads and the creation of different printing patterns for different glass products. After obtaining the printing pattern, it is then input into the flatbed inkjet printer to print the pattern, resulting in high production costs.
[0004] Therefore, how to reduce the printing cost of car window patterns and improve printing efficiency has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] In view of the above-mentioned technological status, the present invention provides a printing method, apparatus, equipment and medium to reduce the printing cost of car window glass patterns and improve printing efficiency.
[0006] To achieve the above objectives, the present invention provides the following technical solution:
[0007] A printing method, a printer control system for edge-following printing on polygonal glass, includes: generating printing parameters based on the size parameters of the pre-printed glass and the pattern to be printed; the printing parameters include: printing path parameters of the edge-following printer and printing pattern parameters corresponding to each printing path; controlling the edge-following printer to sequentially print the printing pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path corresponding to the printing path parameters.
[0008] In one optional embodiment of this application, generating printing parameters based on the size parameters of the pre-printed glass and the pattern to be printed includes: generating printing path parameters and printing pattern parameters corresponding to the number of glass edges based on the glass edge length, the number of glass edges, and the pattern to be printed; wherein, the printing path parameters include the rotation angle and inflection point coordinates of the print head of the edge-following printer during the transition from one printing path to another, as well as the path length and printing width of each printing path; the printing pattern parameters include: graphic parameters corresponding to each printing path.
[0009] In one optional embodiment of this application, the graphic parameters include: the number of gradient circle layers, the diameter of the gradient circle, and the corner rounding radius; wherein, the first printed pattern on any side of the pre-printed glass and the second printed pattern on the adjacent side that shares the same apex corner with that side form a first arc edge and a second arc edge respectively based on the corner rounding radius, the first arc edge and the second arc edge are connected to form the corner rounding corresponding to the apex corner; the diameter of the gradient circle closer to the corner rounding arc edge is larger than the diameter of the gradient circle farther away from the corner rounding arc edge, and the gradient circle is set along the arc edge.
[0010] In one optional embodiment of this application, the printing pattern parameters further include: the pattern shape corresponding to each printing path; the printing method further includes: for any first printing path, determining a second printing path adjacent to the first printing path; determining the overlapping area of the first printing path and the second printing path; based on the gradient circle distribution of the overlapping area, and according to the principle that the gradient circle as a whole falls within a printing path, establishing a segmentation path to segment the pattern to be printed; and determining the pattern shape corresponding to the first printing path based on the segmented pattern to be printed.
[0011] In one optional embodiment of this application, controlling the edge-following printer to sequentially print a print pattern corresponding to the print pattern parameters along each edge of the pre-printed glass according to the print path corresponding to the print path parameters includes: controlling the edge-following printer to perform edge-following printing along the first edge based on the print length and print width corresponding to the first edge of the pre-printed glass to generate a first print pattern corresponding to the print pattern parameters; controlling the print head to rotate to the second edge of the pre-printed glass according to the rotation angle corresponding to the first edge; controlling the edge-following printer to perform edge-following printing along the second edge based on the print length and print width corresponding to the second edge of the pre-printed glass to generate a second print pattern corresponding to the print pattern parameters; wherein the first edge and the second edge are adjacent edges.
[0012] In one optional embodiment of this application, controlling the print head to rotate according to the rotation angle corresponding to the first side includes: controlling the print head to rotate at the inflection point coordinates based on the rotation angle according to the rotation angle corresponding to the first side and the inflection point coordinates.
[0013] In one optional embodiment of this application, the printing pattern parameters further include: printing resolution and color depth parameters; the printing resolution and the printing parameters are obtained by: determining the ink properties of the edge-following printer and the ink volume required for the printing pattern; and determining the printing resolution and color depth parameters of the printing pattern based on the ink properties and the ink volume required for the printing pattern.
[0014] Compared with existing technologies, the printing method provided by this invention generates printing path parameters and printing pattern parameters by combining the size parameters of the pre-printed glass. By controlling the edge-following printer to sequentially follow the edge of the pre-printed glass according to the printing path parameters, the pattern printing of each printing path is completed. There is no need to generate a pattern for the pre-printed glass before printing, which helps to improve printing efficiency and reduce the pattern design cost of different types of glass to be printed.
[0015] The present invention also provides a printing apparatus, comprising: a parameter generation unit, configured to generate printing parameters based on the size parameters of a pre-printed glass and a pattern to be printed; the printing parameters including: printing path parameters of a tracing printer and printing pattern parameters corresponding to each printing path; and a printing control unit, configured to control the tracing printer to sequentially print a pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path corresponding to the printing path parameters.
[0016] Compared with the prior art, the beneficial effects of the printing device provided by the present invention are the same as those of the printing method described in the above technical solutions, and will not be repeated here.
[0017] The present invention also provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; the processor being configured to execute the above-described printing method by running the instructions in the memory.
[0018] Compared with the prior art, the beneficial effects of the electronic device provided by the present invention are the same as those of the printing method described in the above technical solution, and will not be repeated here.
[0019] The present invention also provides a computer storage medium storing instructions that, when executed, implement the above-described printing method.
[0020] Compared with the prior art, the beneficial effects of the computer storage medium provided by the present invention are the same as those of the printing method described in the above technical solution, and will not be repeated here. Attached Figure Description
[0021] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0022] Figure 1 A flowchart illustrating the printing method provided in this application embodiment.
[0023] Figure 2 This is a schematic diagram of a partial printed pattern of the black coating on a glass window provided in an embodiment of this application.
[0024] Figure 3 This is a schematic diagram of the printing path provided for an embodiment of this application.
[0025] Figure 4 This is a schematic diagram of the rotation of the printhead provided in an embodiment of this application.
[0026] Figure 5 Schematic diagram of the pattern shape provided in the embodiments of this application Figure 1 .
[0027] Figure 6 Schematic diagram of the pattern shape provided in the embodiments of this application Figure 2 .
[0028] Figure 7 This is a structural diagram of a printing device provided in an embodiment of this application.
[0029] Figure 8 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation
[0030] To facilitate a clear description of the technical solutions in the embodiments of the present invention, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. For example, the first threshold and the second threshold are merely used to distinguish different thresholds and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" are not necessarily different.
[0031] It should be noted that in this invention, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0032] In this invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0033] This application provides a printing method, apparatus, device, and medium, which will be described in detail in the following embodiments.
[0034] This application first provides a printing method, the implementation of which is a printer control system for edge-following printing on polygonal glass. An edge-following printer is a printing device that moves along the edge of an object or a specific path, and is commonly used for printing patterns on flat materials such as glass and ceramics.
[0035] Please refer to Figure 1 , Figure 1 A flowchart illustrating the printing method provided in this application embodiment.
[0036] like Figure 1 As shown, the printing method includes the following S101 and S102.
[0037] S101, Based on the size parameters of the pre-printed glass and the pattern to be printed, print parameters are generated; the print parameters include: print path parameters of the edge-following printer and print pattern parameters corresponding to each print path.
[0038] In this embodiment, the pre-printed glass is specifically a car window, and the printed pattern is a black coating (also known as a black edge or ceramic coating) on the edge of the car window glass. Since the edge of the glass is usually a stress concentration area due to thermal expansion and contraction, the black coating can absorb heat evenly, reducing the risk of glass damage caused by temperature differences at the glass edge. At the same time, the black coating can also hide the gap between the glass and the body sheet metal, forming a visually smooth transition.
[0039] The dimensional parameters of pre-printed glass refer to the physical or technological parameters of the glass, such as length, width, and edge shape. In the embodiments of this application, the dimensional parameters can be obtained based on CAD design files or actual dimensions measured by sensors.
[0040] Specifically, generating printing parameters based on the size parameters of the pre-printed glass and the pattern to be printed includes: generating printing path parameters and printing pattern parameters corresponding to the number of glass edges based on the glass edge length, the number of glass edges of the pre-printed glass, and the pattern to be printed.
[0041] The printing path parameters include the rotation angle and inflection point coordinates of the print head of the edge-following printer during the transition from one printing path to another, as well as the path length and printing width of each printing path.
[0042] The printing pattern parameters include: graphic parameters corresponding to each printing path.
[0043] The graphic parameters include: the number of gradient circle layers, the diameter of the gradient circle, and the radius of the corner rounding.
[0044] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a partial printed pattern of the black coating on a glass window provided in an embodiment of this application.
[0045] like Figure 2 As shown, Figure 2 The design includes a black area and a gradient circular area. The gradient circular areas of the two printed paths are designed as arcs to soften the sharpness of the corners of the windows. The radius of the corner rounding is the radius of the arc, and the diameter of the gradient circle is the diameter of the first row of gradient circles, i.e., the diameter of the largest gradient circle; the number of gradient circle layers is the number of rows of gradient circles.
[0046] The first printed pattern on the pre-printed glass edge and the second printed pattern on the adjacent edge that shares the same apex are respectively formed as a first arc edge and a second arc edge based on the corner rounding radius. The first arc edge and the second arc edge are connected to form the corner rounding corresponding to the apex. The diameter of the gradient circle near the corner rounding arc edge is larger than the diameter of the gradient circle away from the corner rounding arc edge, and the gradient circle is set along the arc edge.
[0047] In the printing method provided in this application embodiment, the distribution of gradient circles is optimized by the design of rounded corners, so that the gradient circles are arranged along the arc edge of the rounded corners, which helps to avoid sharp corners and makes the distribution of gradient circles more uniform.
[0048] To facilitate understanding of the printing path parameters and the printing pattern parameters, the following will describe each of the printing path parameters and the printing pattern parameters in detail.
[0049] Regarding the printing path parameters, in practical applications, the path length of the printing path corresponds to the side length of the pre-printed glass; the printing width is related to the size of the pre-printed glass, that is, it is proportional to the size of the pre-printed glass, or the printing width can also be customized according to the vehicle model. This application embodiment does not impose any restrictions on this.
[0050] Furthermore, the correspondence between the printing path and the number of glass edges means that each printing path corresponds to one edge of the glass. Please refer to [reference needed]. Figure 3 , Figure 3 This is a schematic diagram of the printing path provided for an embodiment of this application. For example... Figure 3 As shown, there are printing paths 1, 2, 3 and 4 corresponding to the four sides of the pre-printed glass.
[0051] Furthermore, the rotation angle refers to the rotation angle of the printhead of the edge-following printer during the process of moving from one printing path to another. The inflection point coordinates refer to the rotation coordinates of the printhead during rotation.
[0052] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the rotation of the printhead provided in an embodiment of this application.
[0053] like Figure 4 As shown, Figure 4 This includes pre-printed glass and the printhead of the edge-following printer.
[0054] After the edge-following printer completes printing the pattern for printing path 1 along printing path 1, the print head moves to the printing end position of printing path 1, and then rotates from the inflection point coordinates to the starting position of printing path 2 according to the rotation angle.
[0055] In this embodiment of the application, the printing pattern parameters further include: the pattern shape corresponding to each printing path. In an optional embodiment of the application, the pattern shape of each printing path is determined in the following way: for any printing path, the pattern shape of the printing path is determined according to the printing width of the printing path and the apex angle of the edge of the pre-printed glass corresponding to the printing path.
[0056] The apex angle of the edge of the pre-printed glass is determined based on the printing width corresponding to that edge and the printing width corresponding to the edge connected to that edge.
[0057] Please refer to Figure 5 , Figure 5 Schematic diagram of the pattern shape provided in the embodiments of this application Figure 1 .
[0058] like Figure 5 As shown, for adjacent edges of pre-printed glass, the printing widths corresponding to the two glass edges are determined. For example, for glass edge 1, the printing width of glass edge 1 is determined to be d1, and the printing width of the adjacent glass edge 2 is determined to be d2. Then, based on tanθ1=d1 / d2, the apex angle θ1 of glass edge 1 is obtained, and based on tanθ2=d2 / d1, the apex angle θ2 of glass edge 2 is obtained, where θ1+θ2 =90°. Furthermore, by combining the side length, width, and apex angle of each edge, the pattern shape corresponding to the printing path of the glass edge is obtained.
[0059] Considering the above method of determining the printing pattern by combining the apex angle and the printing width, in actual application, there may be situations where the gradient circle in the printing pattern is divided, which will affect the visual perception.
[0060] To avoid this problem, the pattern shape of each printing path can also be determined in the following way: for any first printing path, determine the second printing path adjacent to the first printing path; determine the overlapping area of the first printing path and the second printing path; based on the gradient circle distribution of the overlapping area, and according to the principle that the gradient circle as a whole falls within a printing path, establish a segmentation path to segment the pattern to be printed; and determine the pattern shape corresponding to the first printing path based on the segmented pattern to be printed.
[0061] Please refer to Figure 6 , Figure 6 Schematic diagram of the pattern shape provided in the embodiments of this application Figure 2 .
[0062] like Figure 6 As shown, Figure 6 The system includes an overlapping region 601, in which gradient circles are distributed based on rounded corners. It can be understood that due to the design of the gradient circles, the diameters of gradient circles in the same row are equal, and gradient circles of different diameters are evenly distributed. This rule also applies to the rounded corners. Therefore, dividing lines can also be constructed between gradient circles of equal diameter and adjacent to each other to achieve the division of the pattern to be printed and obtain the pattern shape corresponding to each printing path.
[0063] Based on the gradient circle distribution in the overlapping area, this embodiment of the application establishes a segmentation path to divide the pattern to be printed according to the principle that the gradient circle as a whole falls within a printing path. This can avoid cutting the gradient circle in the pattern to be printed, and is beneficial to reduce the impact of splicing misalignment caused by the mechanical movement of the print head on the overall printed pattern when printing patterns corresponding to different sides.
[0064] S102, control the edge-following printer to print the printing pattern corresponding to the printing pattern parameter along each edge of the pre-printed glass in sequence according to the printing path corresponding to the printing path parameter.
[0065] The purpose of S102 is to control the edge-following printer to print the pattern sequentially on each printing path according to the printing path parameters and printing pattern parameters.
[0066] Specifically, the above S102 is implemented through the following S1 to S3:
[0067] S1, control the edge-following printer to perform edge-following printing along the first edge based on the printing length and printing width corresponding to the first edge of the pre-printed glass, and generate a first printing pattern corresponding to the printing pattern parameters.
[0068] The first edge can be understood as the edge of the glass that needs to be printed during the edge-following printing process of the pre-printed glass. The printing of other edges can be aligned with the first edge as a reference.
[0069] In practical applications, the print head of the edge-following printer moves along the first edge while maintaining a constant speed through a servo motor or linear module to ensure uniform ink droplet distribution. At the same time, if there are slight deviations at the glass edge (such as cutting errors), the edge-following printer can adjust the position of the print head in real time through a camera or infrared sensor to ensure that the pattern is parallel to the first edge, thereby completing the printing of the pattern along the printing path corresponding to the first edge.
[0070] After the first side is printed, continue with step S2.
[0071] S2, based on the rotation angle corresponding to the first side, control the print head to rotate to the second side of the pre-printed glass.
[0072] After the first side is printed, preparations can begin for printing the second side adjacent to the first side. The rotation angle between the first and second sides is the same as the angle formed by the apex angle of the first and second sides.
[0073] and Figure 3 Similarly, after the print head of the edge-tracing printer completes the printing pattern along the printing path of the first side, the printer control system of the edge-tracing printer controls the print head to rotate according to the rotation angle, so that the print head rotates to the printing start position of the printing path corresponding to the second side, so as to execute the following S3 to complete the printing of the pattern of the printing path corresponding to the second side.
[0074] S3, control the edge-following printer to perform edge-following printing along the second edge based on the printing length and printing width corresponding to the second edge of the pre-printed glass, and generate a second printing pattern corresponding to the printing pattern parameters.
[0075] That is, after completing the printing of the first side and rotating the printhead of the edge-following printer to the second side, the pattern of the corresponding printing path of the second side is printed according to the corresponding printing length and printing width.
[0076] Following the steps S1 to S3 described above, traverse each edge of the pre-printed glass until all edges of the pre-printed glass have been printed.
[0077] That is, in the process of traversing the edges of the pre-printed glass through S1 to S3 to realize the pattern to be printed, the following is combined: Figure 6 The pattern shape determination method shown only requires the splicing of the printed patterns corresponding to each side at the apex formed by adjacent sides. Since the pattern shape determination method does not affect the distribution of the gradient circle, even considering the error of mechanical movement, its visual impact is limited to the splicing of adjacent sides and does not affect the overall pattern to be printed, which is conducive to improving the printing quality.
[0078] In practical applications, the printing pattern parameters also include printing resolution and color depth parameters.
[0079] Specifically, the printing resolution and color depth parameters are obtained through the following methods:
[0080] Determine the ink properties of the edge-tracing printer and the required ink volume for the printing pattern; based on the ink properties and the required ink volume, determine the printing resolution and color depth parameters of the printing pattern.
[0081] Ink properties refer to the sum of physical, chemical, and functional characteristics exhibited by ink during the printing process. These characteristics determine the formation, transfer, solidification, and final color rendering of ink droplets, and are the core constraints on printing system parameters. In practical applications, ink properties include, but are not limited to, viscosity, drying properties, composition, and stability.
[0082] The required ink volume in a process is the amount of ink that a specific printing technology must apply and its allowable error range to achieve its quality and functional goals, under the dual constraints of ink properties (such as viscosity and drying properties) and system capabilities (such as printhead precision and control algorithms). Its value is jointly determined by process standards, media characteristics, and end-application scenarios.
[0083] In this embodiment, the ink properties and process requirements for ink volume can be set by relevant personnel in the glass printing scenario of the edge-tracing printer. For the printing scenario of car window glass, ceramic ink and UV-cured ink can be used, and the process requirement for ink volume is 8~10g / m³ for ceramic ink. 2 The ink volume error of ceramic ink is less than or equal to ±1%, and that of UV curing ink is 4±0.5pL / drop, with an ink volume error of less than or equal to ±3%.
[0084] Furthermore, determining the printing resolution and color depth parameters of the printed pattern based on the ink properties and the ink volume required by the process means determining the upper limit of the printing resolution and the minimum color depth requirement of the printed pattern based on the ink properties; and determining the printing resolution and color depth parameters of the printed pattern based on the upper limit of the printing resolution and the minimum color depth requirement of the prime number, in conjunction with the ink volume required by the process.
[0085] In one alternative implementation, the printing processes S1 to S3 described above can be implemented by running a control script program.
[0086] The specific script is shown below:
[0087] #W:width r:radius D:diameter C:columns E:encoder dir B:bitdeepV:no print w:change width
[0088] W: 55 r: 5 D: 2.5 C: 5 xdpi: 400 ydpi: 1200 v: 2 B: 1
[0089] G624 A90 w50
[0090] G693 A90 w50
[0091] G624 A90 w50
[0092] G693 A90 w50
[0093] Among them, "#W:width r:radius D:diameter C:columns E:encoder dir B:bitdeepV:no print w:change width" is used to define the meaning of each character.
[0094] W: width indicates the printing width of the printhead of the edge-following printer itself; W: 55 indicates that the printing width of the printhead of the edge-following printer is 55mm. r: radius indicates the corner rounding radius; r: 5 indicates that the corner rounding radius is 5mm. D: diameter indicates the gradient circle diameter; D: 2.5 indicates the maximum gradient circle diameter is 2.5mm. C: columns indicates the number of gradient circle layers; C: 5 indicates that there are 5 gradient circle layers. E: encoder dir indicates the encoder direction, i.e., the direction of movement of the printhead of the edge-following printer. B: bitdeep indicates the bit depth of the edge-following printer; B: 1 indicates that the edge-following printer is in monochrome (1-bit) printing mode. V: no print indicates that the edge-following printer is in a non-working mode and printing is prohibited. w: change width represents the print width set for the print head of the edge-following printer. In this embodiment, this parameter is the print width in S1; xdpi: 400 and ydpi: 1200 represent the print resolution of the edge-following printer in the x-axis and y-axis directions, respectively; v: 2 indicates that the script version number is v2.0.
[0095] Furthermore, “G624 A90 w50”, “G693 A90 w50”, “G624 A90 w50”, and “G693 A90 w50” represent the print path parameters for the four print paths, respectively.
[0096] For example, "G624 A90 w50" means that in this printing path, after advancing 624mm, it rotates 90 degrees and the printing width is 50mm.
[0097] In summary, the printing method provided in this application, a printer control system for edge-following printing on polygonal glass, includes: generating printing parameters based on the size parameters of the pre-printed glass; the printing parameters include: printing path parameters and printing pattern parameters of the edge-following printer; controlling the edge-following printer to sequentially print the printing pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path parameters. This method combines the size parameters of the pre-printed glass to generate printing path parameters and printing pattern parameters, and by controlling the edge-following printer to sequentially follow the edges of the pre-printed glass according to the printing path parameters, completes the printing of patterns along each printing path. It eliminates the need to generate patterns for the pre-printed glass before printing, which improves printing efficiency and reduces the design cost of patterns for different types of glass to be printed.
[0098] This application also provides a printing device, please refer to... Figure 7 , Figure 7 This is a structural diagram of a printing device provided in an embodiment of this application.
[0099] like Figure 7 As shown, the printing device includes:
[0100] The parameter generation unit 701 is used to generate printing parameters based on the size parameters of the pre-printed glass and the pattern to be printed; the printing parameters include: the printing path parameters of the edge-following printer and the printing pattern parameters corresponding to each printing path.
[0101] The printing control unit 702 is used to control the edge-following printer to print the printing pattern corresponding to the printing pattern parameter along each edge of the pre-printed glass in sequence according to the printing path corresponding to the printing path parameter.
[0102] In one optional embodiment of this application, generating printing parameters based on the size parameters of the pre-printed glass and the pattern to be printed includes: generating printing path parameters and printing pattern parameters corresponding to the number of glass edges based on the glass edge length, the number of glass edges, and the pattern to be printed; wherein, the printing path parameters include the rotation angle and inflection point coordinates of the print head of the edge-following printer during the transition from one printing path to another, as well as the path length and printing width of each printing path; the printing pattern parameters include: graphic parameters corresponding to each printing path.
[0103] In one optional embodiment of this application, the graphic parameters include: the number of gradient circle layers, the diameter of the gradient circle, and the corner rounding radius; wherein, the first printed pattern on any side of the pre-printed glass and the second printed pattern on the adjacent side that shares the same apex corner with that side form a first arc edge and a second arc edge respectively based on the corner rounding radius, the first arc edge and the second arc edge are connected to form the corner rounding corresponding to the apex corner; the diameter of the gradient circle closer to the corner rounding arc edge is larger than the diameter of the gradient circle farther away from the corner rounding arc edge, and the gradient circle is set along the arc edge.
[0104] In one optional embodiment of this application, the printing pattern parameters further include: the pattern shape corresponding to each printing path; the printing device is further configured to: for any first printing path, determine a second printing path adjacent to the first printing path; determine the overlapping area of the first printing path and the second printing path; based on the gradient circle distribution of the overlapping area, and according to the principle that the gradient circle as a whole falls within a printing path, establish a segmentation path to segment the pattern to be printed; and determine the pattern shape corresponding to the first printing path based on the segmented pattern to be printed.
[0105] In one optional embodiment of this application, controlling the edge-following printer to sequentially print a print pattern corresponding to the print pattern parameters along each edge of the pre-printed glass according to the print path corresponding to the print path parameters includes: controlling the edge-following printer to perform edge-following printing along the first edge based on the print length and print width corresponding to the first edge of the pre-printed glass to generate a first print pattern corresponding to the print pattern parameters; controlling the print head to rotate to the second edge of the pre-printed glass according to the rotation angle corresponding to the first edge; controlling the edge-following printer to perform edge-following printing along the second edge based on the print length and print width corresponding to the second edge of the pre-printed glass to generate a second print pattern corresponding to the print pattern parameters; wherein the first edge and the second edge are adjacent edges.
[0106] In one optional embodiment of this application, controlling the print head to rotate according to the rotation angle corresponding to the first side includes: controlling the print head to rotate at the inflection point coordinates based on the rotation angle according to the rotation angle corresponding to the first side and the inflection point coordinates.
[0107] In one optional embodiment of this application, the printing pattern parameters further include: printing resolution and color depth parameters; the printing resolution and the printing parameters are obtained by: determining the ink properties of the edge-following printer and the ink volume required for the printing pattern; and determining the printing resolution and color depth parameters of the printing pattern based on the ink properties and the ink volume required for the printing pattern.
[0108] The apparatus embodiments provided in this example belong to the same application concept as the method embodiments of this application, and can execute the printing method provided in any of the above embodiments of this application, possessing the corresponding functional modules and beneficial effects for executing the printing method. Technical details not described in detail in this example can be found in the specific processing content of the printing method provided in the above embodiments of this application, and will not be repeated here.
[0109] It should be understood that the units in the above device can be implemented by a processor calling software. For example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each unit in the device. The processor can be a general-purpose processor, such as a CPU or microprocessor, and the memory can be internal or external to the device. Alternatively, the units in the device can be implemented as hardware circuits. By designing the hardware circuits, some or all of the unit functions can be implemented. The hardware circuits can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are implemented by designing the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a PLD, such as an FPGA, which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files to implement the functions of some or all of the above units. All units in the above device can be implemented entirely by a processor calling software, entirely by hardware circuits, or partially by a processor calling software with the remaining parts implemented by hardware circuits.
[0110] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, GPU, or DSP. In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the processor loading instructions to implement the functions of some or all of the above units. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, or DPU.
[0111] As can be seen, each unit in the above device can be one or more processors (or processing circuits) configured to implement the above methods, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0112] Furthermore, the units in the above devices can be integrated in whole or in part, or they can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a System-on-Chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the units in the device. The at least one processor may be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.
[0113] This application also provides an electronic device, such as... Figure 8 As shown, Figure 8 This is a schematic diagram of an electronic device structure provided in an embodiment of this application.
[0114] like Figure 8 As shown, the electronic device includes:
[0115] Processor 210.
[0116] Memory 200 for storing executable instructions of the processor 210.
[0117] The processor 210 is configured to execute the printing method disclosed in any of the above embodiments by running instructions in the memory 200.
[0118] The processor 210, memory 200, communication interface 220, input device 230, and output device 240 are interconnected via a bus. Among them:
[0119] A bus can include a pathway for transmitting information between various components of a computer system.
[0120] Processor 210 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present invention. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0121] Processor 210 may include a main processor, as well as a baseband chip, modem, etc.
[0122] The memory 200 stores a program that executes the technical solution of this invention, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 200 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.
[0123] Input device 230 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, touch screen, etc.
[0124] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0125] The communication interface 220 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0126] The processor 210 executes the program stored in the memory 200 and calls other devices, and can be used to implement the various steps of any of the printing methods provided in the above embodiments of this application.
[0127] In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the printing methods of various embodiments of this application.
[0128] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0129] Furthermore, embodiments of this application may also be storage media storing a computer program, which is executed by a processor through steps in the printing methods of various embodiments of this application.
[0130] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0131] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0132] The steps in the methods of the various embodiments of this application can be adjusted, merged, or deleted in order according to actual needs, and the technical features described in each embodiment can be replaced or combined.
[0133] The modules and sub-modules in the apparatus and terminal in the various embodiments of this application can be merged, divided, and deleted according to actual needs.
[0134] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only 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 one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0135] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A printing method characterized by, A printer control system for edge printing of a polygonal glass, comprising: generating printing parameters according to size parameters of a pre-printed glass and a to-be-printed pattern; the printing parameters comprising printing path parameters of an edge printer and printing pattern parameters corresponding to each printing path; controlling the edge printer to print the printing pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path corresponding to the printing path parameters; the generating of the printing parameters according to the size parameters of the pre-printed glass and the to-be-printed pattern comprises: generating the printing path parameters corresponding to the number of glass edges and the printing pattern parameters according to the length of the glass edge, the number of glass edges and the to-be-printed pattern; wherein the printing path parameters comprise the rotation angle and inflection point coordinates of the printing head of the edge printer in the process of transitioning from one printing path to another, and the path length and printing width of each printing path; the printing pattern parameters comprise the graphic parameters corresponding to each printing path; the graphic parameters comprise the number of gradient circles, the diameter of the gradient circle and the corner chamfer radius; wherein a first printing pattern of any edge of the pre-printed glass and a second printing pattern of an adjacent edge with the same vertex as the edge form a first arc edge and a second arc edge based on the corner chamfer radius, respectively, the first arc edge and the second arc edge are connected to form a corner chamfer corresponding to the vertex, the diameter of the gradient circle near the corner chamfer arc edge is greater than the diameter of the gradient circle away from the corner chamfer arc edge, and the gradient circle is arranged along the arc edge.
2. The printing method according to claim 1, characterized by, the printing pattern parameters further comprise the pattern shape corresponding to each printing path; the printing method further comprises: for any first printing path, determining a second printing path adjacent to the first printing path, determining an overlapping area of the first printing path and the second printing path, segmenting the to-be-printed pattern based on the gradient circle distribution of the overlapping area according to the principle that the entire gradient circle falls within one printing path, and determining the pattern shape corresponding to the first printing path according to the segmented to-be-printed pattern.
3. The printing method according to claim 1, characterized by, the controlling of the edge printer to print the printing pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path corresponding to the printing path parameters comprises: controlling the edge printer to perform edge printing along the first edge based on the printing length and printing width corresponding to the first edge of the pre-printed glass to generate the first printing pattern corresponding to the printing pattern parameters; controlling the printing head to rotate to the second edge of the pre-printed glass according to the rotation angle corresponding to the first edge; controlling the edge printer to perform edge printing along the second edge based on the printing length and printing width corresponding to the second edge of the pre-printed glass to generate the second printing pattern corresponding to the printing pattern parameters; wherein the first edge and the second edge are adjacent edges.
4. The printing method according to claim 3, characterized by, the controlling of the printing head to rotate according to the rotation angle corresponding to the first edge comprises: According to the rotation angle corresponding to the first edge and the inflection point coordinates, the printing head is controlled to rotate at the inflection point coordinates based on the rotation angle.
5. The printing method according to claim 1, wherein, The printing pattern parameters further include printing resolution and color depth parameters. The printing resolution and the printing parameters are obtained by the following method: Determine the ink properties of the edge-printing machine and the process required ink amount of the printing pattern. According to the ink properties and the process required ink amount, determine the printing resolution and color depth parameters of the printing pattern.
6. A printing device characterized by comprising: A printer control system for edge-printing of polygonal glass, comprising: A parameter generation unit for generating printing parameters according to the size parameters of pre-printed glass and the to-be-printed pattern; the printing parameters include printing path parameters of the edge-printing machine and printing pattern parameters corresponding to each printing path; A printing control unit for controlling the edge-printing machine to print the printing pattern corresponding to the printing pattern parameters along each edge of the pre-printed glass according to the printing path corresponding to the printing path parameters; The generation of printing parameters according to the size parameters of pre-printed glass and the to-be-printed pattern includes: generating printing path parameters and printing pattern parameters corresponding to the number of glass edges according to the length of glass edges, the number of glass edges and the to-be-printed pattern; The printing path parameters include the rotation angle and inflection point coordinates of the printing head of the edge-printing machine during the transition from one printing path to another, and the path length and printing width of each printing path; the printing pattern parameters include the graphic parameters corresponding to each printing path; The graphic parameters include the number of gradient circles, the diameter of the gradient circle and the corner chamfer radius; The first printing pattern of any edge of the pre-printed glass and the second printing pattern of the adjacent edge with the same vertex angle based on the corner chamfer radius form a first arc edge and a second arc edge, respectively, and the first arc edge and the second arc edge are connected to form a corner chamfer corresponding to the vertex angle; the diameter of the gradient circle near the corner chamfer arc edge is greater than the diameter of the gradient circle away from the corner chamfer arc edge, and the gradient circle is arranged along the arc edge.
7. An electronic device, comprising: Comprise: A processor; A memory for storing instructions executable by the processor; The processor is used to execute the printing method of any one of claims 1 to 5 by running the instructions in the memory.
8. A computer storage medium, characterized in that, The computer storage medium stores instructions, when the instructions are executed, the printing method of any one of claims 1 to 5 is realized.
Citation Information
Patent Citations
Pattern generation method for printing of glass gradient textures and printing and coloring methods
CN110978837A
Method and device for generating printing flower dot pattern of vehicle
CN117828754A