A method, apparatus, equipment and medium for continuous printing on round bottles

By acquiring the shape model of the round bottle and determining the total number of rotations and the total number of slices, the printer head is controlled to move at a constant speed along the axis and the round bottle is controlled to rotate at a constant speed. This solves the problem of low printing efficiency of existing round bottles and realizes efficient continuous printing of round bottles.

CN117465155BActive Publication Date: 2025-12-02GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311408224.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-12-02
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

The existing round bottle printing efficiency is low, and there are errors in manual measurement. The rotation and the printing direction of the nozzle cannot move at the same time, resulting in low printing efficiency.

Method used

By acquiring the shape model of the target round bottle, determining the total number of rotations and the total number of slices, controlling the printer head to move at a constant speed along the axis and controlling the round bottle to rotate at a constant speed, and controlling the printer head to spray ink based on the slice position data, continuous printing of the round bottle is achieved.

Benefits of technology

It improves the printing efficiency of round bottles, reduces manual measurement errors, and enables printing while the round bottle is rotating, thus enhancing printing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117465155B_ABST
    Figure CN117465155B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and medium for continuous printing of round bottles, relating to the field of round bottle printing technology. The method includes: acquiring a shape model of a target round bottle; acquiring an image to be printed; determining the total number of rotations and the total number of slices of the target round bottle based on printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle; determining slice positions on the printing area of ​​the target round bottle along its axial direction based on the total number of slices; extracting slice data of the slice positions from the image to be printed; controlling the printer head to move uniformly along the axial direction of the target round bottle; controlling the target round bottle to rotate uniformly; and controlling the printer head to spray ink based on the slice data of the slice positions when the printer head reaches a slice position. This enables printing while maintaining the rotation of the target round bottle, significantly improving printing efficiency. Simultaneously, it can automatically scan and acquire the shape model of the target round bottle, resulting in high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of round bottle printing technology, and in particular to a method, apparatus, equipment and medium for continuous round bottle printing. Background Technology

[0002] Currently, the measurement of round bottle models is done manually using vernier calipers to measure the diameter of each height of the bottle. This method is time-consuming and prone to human error.

[0003] In conventional printing of round bottles, the bottle rotation and the printhead printing direction cannot move simultaneously. The carriage must wait until all the print data for one printhead height has been printed before it can move forward another printhead height until the entire round bottle is covered, resulting in low printing efficiency. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and medium for continuous printing of round bottles, aiming to solve the problem of low efficiency in existing round bottle printing.

[0005] In a first aspect, embodiments of the present invention provide a method for continuous printing of round bottles, comprising:

[0006] Obtain the external shape model of the target round bottle;

[0007] The image to be printed is obtained, and the total number of rotations and the total number of slices of the target round bottle are determined based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle.

[0008] Based on the total number of slices, the slice positions are determined on the printing area of ​​the target round bottle along the axis of the target round bottle. Slice data of the slice positions are extracted from the image to be printed, wherein the number of slice positions is equal to the total number of slices.

[0009] The printer head is controlled to move at a constant speed along the axis of the target bottle, and the target bottle is controlled to rotate at a constant speed. When the printer head moves to the slicing position, the printer head is controlled to spray ink based on the slicing data of the slicing position. The time taken for the target bottle to complete the total number of rotations is the same as the time taken for the printer head to pass through the printing area.

[0010] A further technical solution is that obtaining the external shape model of the target round bottle includes:

[0011] The control vehicle moves the sensor along the axis of the target round bottle from one end to the other, and at preset sampling distances, the control sensor collects the diameter data of the bottle body to obtain sampling data;

[0012] The external shape model of the target round bottle is obtained by fitting the sampled data.

[0013] A further technical solution involves determining the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle, including:

[0014] With the axis of the target cylindrical bottle as the Y direction, and the circumference of the target cylindrical bottle's cross-section around the axis as the X direction; the resolution of the printer head's nozzle in the Y direction is HeadYDPI, the resolution of the printer head's nozzle in the X direction is HeadXDPI, and the coverage area of ​​the printer head's nozzle is HeadHeight; the reference printing diameter of the target cylindrical bottle is BottleDIA, and the circumference of the target cylindrical bottle is BottlePERI = π * BottleDIA; the resolution of the image to be printed in the X direction is PrnXDPI, the resolution of the image to be printed in the Y direction is PrnYDPI, the printing height of the image to be printed is PrnHeight; and the printing width of the image to be printed in the X direction is PrnWidth = BottlePERI.

[0015] The number of printed PASSes is calculated using the formula PASS = (PrnXDPI / HeadXDPI) * (PrnYDPI / HeadYDPI).

[0016] The total number of rotations, Cycles, is calculated using the formula Cycles = (HeadHeight + PrnHeight) / (HeadHeight / PASS).

[0017] A further technical solution involves determining the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle, and further includes:

[0018] The total number of slices, totalSlices, is calculated using the formula: totalSlices = (BottlePERI * HeadXDPI) * Cycles.

[0019] A further technical solution is that extracting the slice data at the slice position from the image to be printed includes:

[0020] The X coordinate XStartPos of the starting pixel is calculated using the formula XStartPos = SlicePos % (BottlePERI * PrnXDPI).

[0021] The Y coordinate YStartPos of the starting pixel is calculated using the formula YStartPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))-HeadHeight*PrnYDPI.

[0022] The X coordinate XStopPos of the end pixel is calculated using the formula XStopPos = SlicePos % (BottlePERI * PrnXDPI).

[0023] The Y coordinate YStopPos of the end pixel is calculated using the formula YStopPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))*PrnYDPI, where SlicePos is the slice position and % represents the remainder.

[0024] Slice data of the slice position is extracted from the image to be printed based on the start pixel and the end pixel.

[0025] A further technical solution is that the method further includes:

[0026] The rotational speed of the target round bottle is obtained, and the moving speed of the printer head is calculated based on the total number of rotations, the rotational speed, and the printing height of the image to be printed.

[0027] A further technical solution is that, when the print head moves to the slice position, controlling the print head to eject ink based on the slice data of the slice position includes:

[0028] When the print head moves to the slice position, an ignition signal is sent to the print head, causing the print head to spray ink according to the slice data at the slice position.

[0029] Secondly, embodiments of the present invention also provide a continuous printing apparatus for round bottles, which includes a unit for performing the above-described method.

[0030] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0031] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0032] This invention provides a method, apparatus, device, and medium for continuous printing on round bottles. The method includes: acquiring a shape model of a target round bottle; acquiring an image to be printed; determining the total number of rotations and the total number of slices of the target round bottle based on printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle; determining slice positions on the printing area of ​​the target round bottle along its axial direction based on the total number of slices; extracting slice data at the slice positions from the image to be printed; controlling the printer head to move at a constant speed along the axial direction of the target round bottle; controlling the target round bottle to rotate at a constant speed; and controlling the printer head to eject ink based on the slice data at the slice positions when the printer head reaches the slice positions. This allows printing while maintaining the rotation of the target round bottle, significantly improving printing efficiency. Simultaneously, it can automatically scan and acquire the shape model of the target round bottle, resulting in high efficiency. Attached Figure Description

[0033] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 A schematic flowchart of a continuous printing method for round bottles provided in an embodiment of the present invention;

[0035] Figure 2 This is a page view of the sampling parameters of the target round bottle in a continuous printing method for round bottles provided in an embodiment of the present invention;

[0036] Figure 3 This is a page view showing the parameters of the outer shape model of the target round bottle in a continuous printing method for round bottles provided in an embodiment of the present invention.

[0037] Figure 4 A schematic block diagram of a circular bottle continuous printing apparatus provided in an embodiment of the present invention;

[0038] Figure 5 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0039] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0040] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0041] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0042] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0043] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0044] Please see Figure 1 , Figure 1 This is a flowchart illustrating a continuous printing method for round bottles provided in an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S1-S4.

[0045] S1, Obtain the external shape model of the target round bottle.

[0046] In practice, the target round bottle refers to the round bottle to be printed. The shape model refers to the geometric model. In this invention, the shape of the target round bottle is scanned by a sensor to obtain the shape model of the target round bottle.

[0047] For example, in one embodiment, the above step "obtaining the external shape model of the target round bottle" includes the following steps: S11-S12.

[0048] S11, control the carrier to move the sensor along the axis of the target round bottle from one end of the target round bottle to the other end, and at each preset sampling distance, control the sensor to collect the diameter data of the target round bottle body to obtain sampling data.

[0049] In specific implementation, the vehicle can be a small cart, and the sensor is mounted on the cart. The sensor can be an infrared rangefinder. The sampling distance can be set by those skilled in the art, and this invention is not specifically limited. The diameter data collected at each sampling point constitutes the sampling data. Specifically, it can be from the bottom to the top of the target cylindrical bottle.

[0050] For example, see Figure 2 ,exist Figure 2 In the embodiment shown, the parameters for sampling the target round bottle are as follows:

[0051] Sampling interval: refers to the sampling interval, at which the value of the infrared rangefinder is read at set intervals;

[0052] Starting point diameter: refers to the diameter of the bottle at the starting point of the scan;

[0053] Starting point digital display height: refers to the measured value displayed by the infrared rangefinder at the starting point of the scan;

[0054] Endpoint diameter: refers to the actual diameter of the bottle at the scan endpoint;

[0055] Endpoint digital display height: refers to the measurement value displayed by the infrared rangefinder at the scan endpoint position.

[0056] S12, the outer shape model of the target round bottle is obtained by fitting the sampled data.

[0057] In practice, the sampled data is input into fitting software, which then fits the sampled data to obtain the external shape model of the target round bottle. The fitting software can be specifically a software module within the printing control software.

[0058] For example, see Figure 3 ,exist Figure 3 In the illustrated embodiment, the fitting software includes the following parameters:

[0059] Obtain the shape of the round bottle: retrieve the bottle shape data obtained from automatic shape measurement from the board;

[0060] Reduce the number of sampling points: eliminate some sampling points with similar tangent slopes;

[0061] Height of a round bottle: refers to the distance from the center of the bottom of the bottle to the center of the top of the bottle, in cm;

[0062] Color compensation coefficient: Adjusts the color transition in printing; the greater the slope of the tangent at the sampling point, the greater the impact.

[0063] Number of sampling points: refers to the total number of sampling points on the bottle's exterior;

[0064] Delete sampling points: Select some abnormal sampling points and then delete them;

[0065] Height of this point from the bottom of the bottle: refers to the distance from the current sampling point projected onto the center of the bottom circle on the bottle's rotation axis, in cm;

[0066] Diameter at this point: refers to the diameter of the bottle at the current sampling point, in cm;

[0067] Load bottle shape file: Load a bottle model file;

[0068] Save as file: Save the bottle model to a file.

[0069] S2, acquire the image to be printed, and determine the total number of rotations and the total number of slices of the target bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target bottle.

[0070] In practice, the image to be printed can be input by the user; this invention is not specifically limited. Upon receiving the image to be printed, the total number of rotations and the total number of slices for the target bottle are determined based on the printing parameters of the printer head, the image to be printed, and the shape model of the target bottle. Printing parameters include printing resolution, the coverage area of ​​the printer head, and other parameters.

[0071] For example, in one embodiment, the above step "determining the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle" includes the following steps: S21-S24.

[0072] S21, with the axial direction of the target round bottle as the Y direction, and the circumference of the cross-section of the target round bottle as the X direction.

[0073] First, establish a coordinate system with the axis of the target circular bottle as the Y direction and the circumference of the cross-section of the target circular bottle as the X direction.

[0074] The printing parameters of the printer head include the resolution of the printer head nozzle in the Y direction, the resolution of the printer head nozzle in the X direction, and the coverage area of ​​the printer head nozzle.

[0075] Specifically, the resolution of the nozzles in the Y direction of the printer head is HeadYDPI, for example, 600; the resolution of the nozzles in the X direction of the printer head is HeadXDPI, for example, 360; and the coverage area of ​​the nozzles of the printer head is HeadHeight, for example, 1.0 Inch.

[0076] The reference printing diameter of the target round bottle is determined based on the external model of the target round bottle.

[0077] Specifically, the reference printing diameter of the target round bottle is BottleDIA, for example, 1.0 Inch, then the circumference of the target round bottle BottlePERI=π*BottleDIA≈3.14159Inch.

[0078] The resolution of the image to be printed in the X direction is PrnXDPI, for example, 360; the resolution of the image to be printed in the Y direction is PrnYDPI, for example, 1800; the printing height of the image to be printed is PrnHeight, for example, 10 Inch; the printing width of the image to be printed in the X direction is PrnWidth = BottlePERI ≈ 3.14159 Inch.

[0079] S22, the number of printed PASSes is calculated according to the formula PASS=(PrnXDPI / HeadXDPI)*(PrnYDPI / HeadYDPI).

[0080] S23, the total number of rotations Cycles is calculated according to the formula Cycles=(HeadHeight+PrnHeight) / (HeadHeight / PASS).

[0081] S24. The total number of slices, totalSlices, is calculated using the formula totalSlices=(BottlePERI*HeadXDPI)*Cycles.

[0082] S3, based on the total number of slices, determine the slice positions on the printing area of ​​the target round bottle along the axis of the target round bottle, and extract the slice data of the slice positions from the image to be printed, wherein the number of slice positions is equal to the total number of slices.

[0083] In practice, slice positions are uniformly set along the axial direction of the target bottle in the printing area of ​​the target bottle, with the number of slices equal to the total number of slices. The printing area is the area where the image to be printed is printed.

[0084] Next, slice data is extracted from the image to be printed, specifying the slice positions. Each slice data position corresponds one-to-one with the slice position.

[0085] S31, in one embodiment, the above step "extracting slice data of the slice position from the image to be printed" includes:

[0086] S32, calculate the X coordinate XStartPos of the starting pixel using the formula XStartPos=SlicePos%(BottlePERI*PrnXDPI).

[0087] S33, calculate the Y coordinate YStartPos of the starting pixel using the formula YStartPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))-HeadHeight*PrnYDPI.

[0088] S34, calculate the X coordinate XStopPos of the end pixel using the formula XStopPos=SlicePos%(BottlePERI*PrnXDPI).

[0089] S34, calculate the Y coordinate YStopPos of the end pixel using the formula YStopPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))*PrnYDPI.

[0090] In practice, in the above formula, SlicePos represents the slice position, and % represents the remainder. The starting pixel refers to the first pixel to be extracted from the image to be printed. The ending pixel refers to the last pixel to be extracted from the image to be printed.

[0091] For example, in one embodiment, with slice position SlicePos = 10000, the coordinates of the starting pixel can be calculated as (952, 3505) and the coordinates of the ending pixel as (952, 5305).

[0092] S36, based on the start pixel and the end pixel, extract the slice data of the slice position from the image to be printed.

[0093] In practice, the set of pixels from the start pixel to the end pixel extracted from the image to be printed is the slice data for the slice position.

[0094] For example, in one embodiment, the coordinates of the starting pixel are (952, 3505) and the coordinates of the ending pixel are (952, 5305). Then, the pixel column (pixel set) consisting of the starting pixel (952, 3505) to the ending pixel (952, 5305) is extracted to obtain the slice data.

[0095] S4, control the printer head to move at a constant speed along the axis of the target bottle, control the target bottle to rotate at a constant speed, and when the printer head moves to the slicing position, control the printer head to spray ink based on the slicing data of the slicing position, wherein the time for the target bottle to complete the total number of rotations is the same as the time for the printer head to pass through the printing area.

[0096] In practice, the printer head is controlled to move at a constant speed along the axis of the target bottle, and the target bottle is controlled to rotate at a constant speed. The time it takes for the target bottle to complete the total number of rotations is the same as the time it takes for the printer head to pass through the printing area. The position of the printer head is detected in real time, and when the printer head reaches the slicing position, ink is ejected from the printer head based on the slicing data at that position.

[0097] In one embodiment, the rotational speed of the target round bottle is obtained, and the moving speed of the printer head is calculated based on the total number of rotations, the rotational speed, and the printing height of the image to be printed.

[0098] In practice, the target round bottle can be driven to rotate by a motor, and the rotation speed of the target round bottle can be obtained. The rotation speed can be set by the user. The printing height is the span of the printing area along the axial direction of the target round bottle.

[0099] The total rotation time is determined based on the total number of rotations and the rotation speed. The quotient of the printing height and the total rotation time is the moving speed of the print head.

[0100] In one embodiment, the above step "controlling the printer head to spray ink based on the slice data of the slice position when the printer head moves to the slice position" includes: when the printer head moves to the slice position, sending an ignition signal to the printer head so that the printer head sprays ink according to the slice data of the slice position.

[0101] In practice, after receiving the ignition signal, the print head performs inkjet printing based on the slice data at the slice position.

[0102] The technical solution of this invention involves: acquiring a shape model of a target round bottle; acquiring an image to be printed; determining the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle; determining the slice position on the printing area of ​​the target round bottle along the axis of the target round bottle based on the total number of slices; extracting slice data of the slice position from the image to be printed; controlling the printer head to move at a constant speed along the axis of the target round bottle; controlling the target round bottle to rotate at a constant speed; and controlling the printer head to spray ink based on the slice data of the slice position when the printer head moves to the slice position. This allows printing while maintaining the rotation of the target round bottle, greatly improving printing efficiency. Simultaneously, it can automatically scan and acquire the shape model of the target round bottle, resulting in high efficiency.

[0103] See Figure 4 , Figure 4 This is a schematic block diagram of a continuous round bottle printing apparatus 20 provided in an embodiment of the present invention. Corresponding to the above-described continuous round bottle printing method, the present invention also provides a continuous round bottle printing apparatus 20. The continuous round bottle printing apparatus 20 includes units for performing the above-described continuous round bottle printing method, and the continuous round bottle printing apparatus 20 can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, the continuous round bottle printing apparatus 20 includes:

[0104] Acquisition unit 21 is used to acquire the external shape model of the target round bottle;

[0105] The determining unit 22 is used to acquire the image to be printed and determine the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle.

[0106] Slicing unit 23 is used to determine the slicing position on the printing area of ​​the target round bottle along the axis of the target round bottle based on the total number of slices, and extract the slice data of the slice position from the image to be printed, wherein the number of slice positions is equal to the total number of slices;

[0107] The printing unit 24 is used to control the printer head to move at a constant speed along the axis of the target bottle and to control the target bottle to rotate at a constant speed. When the printer head moves to the slicing position, the printer head is controlled to spray ink based on the slicing data of the slicing position. The time for the target bottle to complete the total number of rotations is the same as the time for the printer head to pass through the printing area.

[0108] In one embodiment, obtaining the external shape model of the target round bottle includes:

[0109] The control vehicle moves the sensor along the axis of the target round bottle from one end to the other, and at preset sampling distances, the control sensor collects the diameter data of the bottle body to obtain sampling data;

[0110] The external shape model of the target round bottle is obtained by fitting the sampled data.

[0111] In one embodiment, determining the total number of rotations and the total number of slices of the target bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target bottle includes:

[0112] With the axis of the target cylindrical bottle as the Y direction, and the circumference of the target cylindrical bottle's cross-section around the axis as the X direction; the resolution of the printer head's nozzle in the Y direction is HeadYDPI, the resolution of the printer head's nozzle in the X direction is HeadXDPI, and the coverage area of ​​the printer head's nozzle is HeadHeight; the reference printing diameter of the target cylindrical bottle is BottleDIA, and the circumference of the target cylindrical bottle is BottlePERI = π * BottleDIA; the resolution of the image to be printed in the X direction is PrnXDPI, the resolution of the image to be printed in the Y direction is PrnYDPI, the printing height of the image to be printed is PrnHeight; and the printing width of the image to be printed in the X direction is PrnWidth = BottlePERI.

[0113] The number of printed PASSes is calculated using the formula PASS = (PrnXDPI / HeadXDPI) * (PrnYDPI / HeadYDPI).

[0114] The total number of rotations, Cycles, is calculated using the formula Cycles = (HeadHeight + PrnHeight) / (HeadHeight / PASS).

[0115] In one embodiment, determining the total number of rotations and the total number of slices of the target bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target bottle further includes:

[0116] The total number of slices, totalSlices, is calculated using the formula: totalSlices = (BottlePERI * HeadXDPI) * Cycles.

[0117] In one embodiment, extracting slice data at the slice location from the image to be printed includes:

[0118] The X coordinate XStartPos of the starting pixel is calculated using the formula XStartPos = SlicePos % (BottlePERI * PrnXDPI).

[0119] The Y coordinate YStartPos of the starting pixel is calculated using the formula YStartPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))-HeadHeight*PrnYDPI.

[0120] The X coordinate XStopPos of the end pixel is calculated using the formula XStopPos = SlicePos % (BottlePERI * PrnXDPI).

[0121] The Y coordinate YStopPos of the end pixel is calculated using the formula YStopPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))*PrnYDPI, where SlicePos is the slice position and % represents the remainder.

[0122] Slice data of the slice position is extracted from the image to be printed based on the start pixel and the end pixel.

[0123] In one embodiment, the round bottle continuous printing device 20 further includes:

[0124] The calculation unit is used to obtain the rotational speed of the target round bottle, and calculate the moving speed of the printer head based on the total number of rotations, the rotational speed, and the printing height of the image to be printed.

[0125] In one embodiment, controlling the ink ejection of the printer head based on slice data at the slice position when the printer head moves to the slice position includes:

[0126] When the print head moves to the slice position, an ignition signal is sent to the print head, causing the print head to spray ink according to the slice data at the slice position.

[0127] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned continuous printing device for round bottles and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.

[0128] The aforementioned continuous printing device for round bottles can be implemented as a computer program, which can, for example... Figure 5 It runs on the computer device shown.

[0129] Please see Figure 5 , Figure 5 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.

[0130] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0131] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to perform a continuous printing method for round bottles.

[0132] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0133] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a continuous printing method for round bottles.

[0134] The network interface 505 is used for network communication with other devices. Those skilled in the art will understand that the above structure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.

[0135] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of a continuous printing method for round bottles provided in any of the above embodiments.

[0136] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0137] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0138] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform the steps of the continuous printing method for round bottles provided in any of the above embodiments.

[0139] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0140] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0141] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0142] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0143] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0144] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0145] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.

[0146] The above description is merely a specific embodiment of the present invention, but the scope of protection 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 scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for continuous printing on round bottles, characterized in that, include: Obtain the external shape model of the target round bottle; The image to be printed is obtained, and the total number of rotations and the total number of slices of the target round bottle are determined based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle. Based on the total number of slices, the slice positions are determined on the printing area of ​​the target round bottle along the axis of the target round bottle. Slice data of the slice positions are extracted from the image to be printed, wherein the number of slice positions is equal to the total number of slices. The printer head is controlled to move at a constant speed along the axis of the target bottle, and the target bottle is controlled to rotate at a constant speed. When the printer head moves to the slicing position, the printer head is controlled to spray ink based on the slicing data of the slicing position. The time for the target bottle to complete the total number of rotations is the same as the time for the printer head to pass through the printing area. The determination of the total number of rotations and the total number of slices of the target round bottle based on the printing parameters of the printer head, the image to be printed, and the shape model of the target round bottle includes: With the axis of the target cylindrical bottle as the Y direction, and the circumference of the target cylindrical bottle's cross-section around the axis as the X direction; the resolution of the printer head's nozzle in the Y direction is HeadYDPI, the resolution of the printer head's nozzle in the X direction is HeadXDPI, and the coverage area of ​​the printer head's nozzle is HeadHeight; the reference printing diameter of the target cylindrical bottle is BottleDIA, and the circumference of the target cylindrical bottle is BottlePERI = π * BottleDIA; the resolution of the image to be printed in the X direction is PrnXDPI, the resolution of the image to be printed in the Y direction is PrnYDPI, the printing height of the image to be printed is PrnHeight; and the printing width of the image to be printed in the X direction is PrnWidth = BottlePERI. The number of printed PASSes is calculated using the formula PASS = (PrnXDPI / HeadXDPI) * (PrnYDPI / HeadYDPI). The total number of rotations Cycles is calculated using the formula Cycles = (HeadHeight + PrnHeight) / (HeadHeight / PASS). The total number of slices, totalSlices, is calculated using the formula: totalSlices = (BottlePERI * HeadXDPI) * Cycles.

2. The continuous printing method for round bottles according to claim 1, characterized in that, The process of obtaining the external shape model of the target round bottle includes: The control vehicle moves the sensor along the axis of the target round bottle from one end to the other, and at preset sampling distances, the control sensor collects the diameter data of the bottle body to obtain sampling data; The external shape model of the target round bottle is obtained by fitting the sampled data.

3. The continuous printing method for round bottles according to claim 1, characterized in that, The step of extracting the slice data at the slice position from the image to be printed includes: The X coordinate XStartPos of the starting pixel is calculated using the formula XStartPos = SlicePos % (BottlePERI * PrnXDPI). The Y coordinate YStartPos of the starting pixel is calculated using the formula YStartPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))-HeadHeight*PrnYDPI. The X coordinate XStopPos of the end pixel is calculated using the formula XStopPos = SlicePos % (BottlePERI * PrnXDPI). The Y coordinate YStopPos of the end pixel is calculated using the formula YStopPos=((SlicePos / totalSlices)*(HeadHeight+PrnHeight))*PrnYDPI, where SlicePos is the slice position and % represents the remainder. Slice data of the slice position is extracted from the image to be printed based on the start pixel and the end pixel.

4. The continuous printing method for round bottles according to claim 1, characterized in that, The method further includes: The rotational speed of the target round bottle is obtained, and the moving speed of the printer head is calculated based on the total number of rotations, the rotational speed, and the printing height of the image to be printed.

5. The continuous printing method for round bottles according to claim 1, characterized in that, When the print head moves to the slice position, controlling the print head to eject ink based on the slice data of the slice position includes: When the print head moves to the slice position, an ignition signal is sent to the print head, causing the print head to spray ink according to the slice data at the slice position.

6. A continuous printing device for round bottles, characterized in that, Includes a unit for performing the method as described in any one of claims 1-5.

7. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Inkjet printing device and printing method for inkjet printing device

    CN110450550A

  • Cylindrical medium surface printing method, device and equipment and storage medium

    CN112721447A