Printing control method, device and system
By dynamically adjusting the inkjet interval to adapt to changes in cross-section diameter when printing special variable-section cylinders, the problem of ink offset during cylinder rotation printing is solved, and high-quality printing of variable-section cylinders is achieved.
Patent Information
- Application Number
- CN202410809479.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-21
AI Technical Summary
When existing cylinder printers print special variable-section cylinders, it is difficult to achieve the overlapping of ink on each cross-section, resulting in a decrease in printing quality. Especially when cylinders with uneven diameters such as cones and truncated cones are rotated and printed, the ink shifts. It's hard to avoid.
By acquiring the printed image, the rotating device is started to rotate the variable-section cylinder, the reference cross-sectional diameter is selected according to the position of the inkjet, and the inkjet interval time of each color nozzle is calculated and adjusted to ensure that each inkjet point is on a different cross-section. Accurate inkjet, monitor the position of the inkjet, adjust the inkjet interval time to adapt to diameter changes, and achieve accurate inkjet for each inkjet dot.
It achieves an overall good printing effect on variable cross-section cylinders, ensuring that the ink ejected from each inkjet point and each color nozzle falls at the predetermined position, improving printing quality and consistency.
Smart Images

Figure CN118377448B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a printing control method, device and system. Background Art
[0002] Cylinder printers are usually used for objects that need to be printed continuously on the cylindrical surface. They have advantages in some specific application scenarios, such as printing pipes, cylindrical containers, columnar parts, etc.
[0003] The cylindrical printer rotates the cylinder around the axis, and then performs spray printing through an inkjet device arranged on the side of the cylinder. The inkjet device includes a plurality of nozzles spaced apart from each other, each nozzle ejecting ink of one color. During the printing process, the color of each printing position on the surface of the cylinder is often a mixture of several colors, that is, the nozzles corresponding to different colors need to spray ink at the same printing position. Considering that there are intervals between the nozzles, the nozzles of different colors need to spray ink at a certain interval. This interval time is determined according to the interval distance between the nozzles and the rotational linear speed of the printing position. Since the diameters of various positions of the cylinder are consistent, their linear speeds are also consistent, and the interval time calculated in this way is suitable for printing the entire cylinder; however, for some special variable-section cylinders (such as cones and frustums), since the diameters of each cross section of the variable-section cylinder are different, when rotating and printing it, the linear speeds of the printing positions on different cross sections are also different. The interval time determined by the above method can only make the ink of the printing position on a certain cross section overlap, while the printing on other cross sections will be offset, making it difficult to achieve the preset printing effect, affecting the printing quality. Summary of the invention
[0004] Based on this, it is necessary to provide a printing control method, device and system to address the above problems.
[0005] The embodiment of the present invention is implemented as follows: a printing control method, the method comprising:
[0006] S1: Acquire a printed image and determine the inkjet point of the printed image on the side surface of a cylinder with a variable cross-section;
[0007] S2: Start the rotating device to make the rotating device drive the variable cross-section cylinder to rotate;
[0008] S3: selecting a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet nozzle, and identifying the diameter of the reference cross section;
[0009] S4: determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0010] S5: controlling each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0011] S6: monitoring whether the inkjet printer moves. If the inkjet printer moves, a cross section of the variable cross section cylinder is selected as a current cross section according to the new position of the inkjet printer, and a diameter of the current cross section is identified;
[0012] S7: adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0013] S8: controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0014] S9: Repeat steps S6 to S8 until inkjet is completed for each inkjet point.
[0015] In one embodiment, the present invention provides a printing control device, wherein a module in the printing control device is used to execute the printing control method, specifically comprising:
[0016] An acquisition module, used for acquiring a printed image and determining inkjet points of the printed image on the side surface of a cylinder with a variable cross-section;
[0017] A starting module is used to start the rotating device so that the rotating device drives the variable-section cylinder to rotate;
[0018] A first processing module is used to select a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet ejector, and identify the diameter of the reference cross section;
[0019] A second processing module, for determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0020] The third processing module is used to control each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0021] a fourth processing module, for monitoring whether the inkjet is moved, and if the inkjet is moved, selecting a cross section of the variable cross-section cylinder as a current cross section according to a new position of the inkjet, and identifying a diameter of the current cross section;
[0022] A fifth processing module, used for adjusting the inkjet interval time of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0023] The sixth processing module is used to control each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0024] The repeating module is used to repeatedly execute step S6 to step S8 until inkjet is completed for each inkjet point.
[0025] In one embodiment, the present invention provides a printing control system, the printing control system comprising:
[0026] A rotating device, wherein the rotating device is provided with a rotating shaft, and the variable-section cylinder is fixed on the rotating shaft. The rotating device drives the rotating shaft to rotate, thereby driving the variable-section cylinder to rotate;
[0027] An inkjet device, on which a plurality of color nozzles are arranged at intervals, for spraying ink on a cylinder with a variable cross-section;
[0028] A camera, arranged on the inkjet device, for identifying inkjet points;
[0029] The computer device is connected with the rotating device and the inkjet device and is used to execute the printing control method.
[0030] The present invention provides a printing control method, device and system, the method comprising acquiring a printing image, determining an inkjet point of the printing image on the side surface of a variable-section cylinder; starting a rotating device so that the rotating device drives the variable-section cylinder to rotate; selecting a cross section of the variable-section cylinder as a reference cross section according to the position of an inkjet, and identifying the diameter of the reference cross section; determining the inkjet interval of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet; controlling each color nozzle to spray ink on the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink on each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; monitoring whether the inkjet moves, if the inkjet moves, selecting a cross section of the variable-section cylinder as the current cross section according to the new position of the inkjet, and identifying the diameter of the current cross section; adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference ... The adjusted inkjet interval controls each color nozzle to spray ink on the inkjet point passing through the current cross section, so that when spraying ink on each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; repeat the above steps until the inkjet point is sprayed; in the present application, when spraying ink on the inkjet point on the first cross section of the variable cross-section cylinder, the inkjet interval of each color nozzle can be accurately calculated, so that when spraying ink on each inkjet point of the cross section, the ink sprayed by each color nozzle falls on the inkjet point; furthermore, based on the inkjet interval corresponding to the cross section, when the inkjet device is adjusted to spray ink on the inkjet points of other cross sections, the inkjet interval is adjusted according to the change in the diameter of the cross section, so that accurate inkjet of the inkjet points on other cross sections can be achieved, and the ink sprayed by each color nozzle can fall on each inkjet point on the surface of the cylinder when spraying ink, thereby ensuring a good printing effect for the overall variable cross-section cylinder. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A first flow chart of a printing control method provided in one embodiment;
[0032] Figure 2 is a second flow chart of a printing control method provided in one embodiment;
[0033] Figure 3 A module flow chart of a printing control device provided in one embodiment;
[0034] Figure 4 A schematic diagram of the composition of a printing control system provided in one embodiment;
[0035] Figure 5 A schematic diagram of an inkjet printer of a printing control system provided in one embodiment;
[0036] Figure 6A schematic diagram of the relationship between a rotating device and a proximity sensor of a printing control system provided in one embodiment;
[0037] Figure 7 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0039] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.
[0040] like Figure 1-Figure 2 As shown, in one embodiment, a printing control method is proposed, the method comprising:
[0041] S1: Acquire a printed image and determine the inkjet point of the printed image on the side surface of a cylinder with a variable cross-section;
[0042] S2: Start the rotating device, so that the rotating device drives the variable-section cylinder to rotate;
[0043] S3: selecting a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet nozzle, and identifying the diameter of the reference cross section;
[0044] S4: determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0045] S5: controlling each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0046] S6: monitoring whether the inkjet printer moves. If the inkjet printer moves, a cross section of the variable cross section cylinder is selected as a current cross section according to the new position of the inkjet printer, and a diameter of the current cross section is identified;
[0047] S7: adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0048] S8: controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0049] S9: Repeat steps S6 to S8 until inkjet is completed for each inkjet point.
[0050] In this embodiment, the method is executed in a computer device, which may be an independent physical server or terminal, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN. The computer device identifies the shape, size, and other parameters of the variable-section column to be printed through a camera, and can use this to perform three-dimensional modeling of the variable-section column. After receiving the print image data (the style and size of the image, and the position to be printed), the positional relationship between the print image and the three-dimensional model can be determined based on the print image data, and the position relationship can be determined based on the print image data. The printing image is applied to the surface of the three-dimensional model to form a preview image, and then each colored point on the surface of the three-dimensional model can be determined, and the color point on the three-dimensional image is correspondingly matched with the position point on the actual variable-section cylinder in the camera field of view. This position point is the inkjet point, and the position of the inkjet point and the inkjet color parameters of each inkjet point (the required amount of ink of various colors) are marked on the surface of the variable-section cylinder in the field of view by visual marking, thereby realizing the determination of the inkjet point of the printing image on the side surface of the variable-section cylinder, so that the computer device can spray ink on each inkjet point through the determined inkjet point and related color parameters;
[0051] In this embodiment, the main body of the inkjet is a panel, and a number of color nozzles are arranged at intervals on the panel for spraying inks of different colors on the surface of a variable-section cylinder; the inkjet is arranged on the side of the variable-section cylinder, and the inkjet is connected to a moving mechanism, and the moving mechanism is connected to a computer device. The computer device can move the inkjet through the moving mechanism to print on the surface of the variable-section cylinder at different positions; the camera is arranged on the inkjet, and in addition to realizing the above-mentioned function of determining the inkjet point, the camera is also used to monitor the printing process in real time, including the currently printed section, the inkjet point to be sprayed, and the inkjet effect of the inkjet, etc., so that the computer device can make corresponding printing adjustments.
[0052] In this embodiment, the rotating device includes a motor and a clamping mechanism (such as a movable clamp). After the two ends of the variable-section cylinder are clamped by the clamping mechanism, the variable-section cylinder can be driven by the motor to rotate around the axis; the motor and the clamping mechanism are both connected to a computer device, so that the computer device can control the rotation speed of the variable-section cylinder, and can also adjust the relative distance between the variable-section cylinder and the inkjet by adjusting the clamping mechanism, so as to always keep the distance between the color nozzle of the inkjet and the surface of the variable-section cylinder consistent, thereby reducing the ink dripping time deviation;
[0053] In this embodiment, the nozzles of each color of the inkjet are arranged in a straight line, and the line projected on the surface of the variable-section cylinder coincides with the edge line of a cross section of the variable-section cylinder, so that when the inkjet is printing at one position, the ink ejected is on the same cross section; a cross section of the variable-section cylinder is selected according to the position of the inkjet, that is, the cross section to which each color nozzle faces is identified, and after the printing of the inkjet point of the cross section is completed, the inkjet is moved (moved along the axial direction of the variable-section cylinder) to switch to another cross section for printing; in addition, the diameter of the cross section can be determined by identifying the projection length of the edge line of the cross section;
[0054] In the present application, when inkjet points on the first cross section of a variable cross-section cylinder are inkjetted, the inkjet time interval of each color nozzle is determined according to the diameter of the cross section, and each color nozzle is mobilized to spray ink according to this interval, so that when each inkjet point on the cross section is inkjetted, the ink ejected by each color nozzle falls on the inkjet point, thereby ensuring the inkjet effect of each inkjet point on the cross section; furthermore, based on the inkjet interval time corresponding to the cross section, when the inkjet device is adjusted to inkjet points on other cross sections, the inkjet interval time is adjusted according to the change in the diameter of the cross section, so that accurate inkjet of the inkjet points on other cross sections can be achieved, that is, when each inkjet point on the surface of the cylinder is inkjetted, the ink ejected by each color nozzle falls on the inkjet point, thereby ensuring a good printing effect for the overall variable cross-section cylinder.
[0055] As a preferred embodiment, after step S2, the following steps are further included:
[0056] S211: recording the time taken for the variable cross-section cylinder to rotate one circle;
[0057] S212: Calculate the time difference between the consumed time and the preset standard time;
[0058] S213: Execute steps S211 to S212 a set number of times, thereby obtaining a number of time differences;
[0059] S214: Determine whether each time difference is smaller than a preset standard time difference. If so, it is considered that the variable-section cylinder rotates at a uniform speed and the inkjet is started; if not, repeat steps S211 to S214 until the inkjet is started.
[0060] In this embodiment, the standard time length is the preset time length for the variable cross-section cylinder to rotate one circle at the standard speed. When a time length difference is less than the standard time length difference, it means that the variable cross-section cylinder is approaching the standard speed in this circle of rotation. When several time length differences (which can be 10 or 20, which is the number set by the user according to the accuracy requirements and is not limited here) are all less than the preset standard time length difference, it indicates that the variable cross-section cylinder is continuously rotating at a speed close to the standard speed, and it can be regarded as having entered a uniform rotation state.
[0061] As a preferred embodiment, the step of determining the inkjet interval of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device comprises:
[0062] S41: Determine the ink jetting order of each color nozzle according to the rotation direction of the variable cross-section cylinder;
[0063] S42: taking the color nozzle that has the first ink jetting order as the reference nozzle;
[0064] S43: For any color nozzle, calculate the interval length between the color nozzle and the reference nozzle;
[0065] S44: Calculate the corresponding arc length on the reference cross section according to the interval length and the diameter of the reference cross section;
[0066] S45: Determine the inkjet interval between the color nozzle and the reference nozzle according to the average consumed time and the ratio of the arc length to the perimeter of the reference cross section; wherein the average consumed time is the average of the individual consumed time.
[0067] The arc length corresponding to the interval length on the reference cross section is calculated using the following formula:
[0068]
[0069] in, is the arc length corresponding to the interval length on the reference cross section, is the diameter of the reference cross section, The length of a chord of the circle corresponding to the reference cross section, and the length of the chord is equal to the interval length;
[0070] The inkjet interval between the color nozzle and the reference nozzle is calculated by the following formula:
[0071]
[0072] in, is the inkjet interval between the color nozzle and the reference nozzle, is the average time consumed, is the perimeter of the base cross section.
[0073] In the present embodiment, before the inkjet sprays ink on any inkjet point, the inkjet is in a position so that each color nozzle is facing the edge line of the cross section where the inkjet point is located. At this time, with the rotation of the variable-section cylinder, the inkjet point enters the inkjet range of the inkjet device (the range facing the panel of the inkjet device) and faces each color nozzle one by one. The first color nozzle facing the inkjet point is ranked first in inkjet order, and the subsequent color nozzles facing the inkjet point are ranked second, third, fourth, etc. in order. In the present embodiment, since the distance between the color nozzles is a straight-line distance and the distance on the arc surface is a curve length, the chord length is used to represent the distance between the color nozzles during calculation, and the corresponding arc length is calculated based on this, which can eliminate the above-mentioned error and thereby improve the accuracy of the interval time calculation.
[0074] As a preferred embodiment, adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section includes:
[0075] According to the ratio of the diameter of the current cross section to the diameter of the reference cross section, the arc length corresponding to the interval length on the reference cross section is adjusted;
[0076] The adjusted inkjet interval time is determined according to the adjusted arc length.
[0077] The adjusted arc length is calculated using the following formula:
[0078]
[0079] in, is the adjusted arc length, is the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0080] The adjusted inkjet interval time is calculated by the following formula:
[0081]
[0082] in, It is the adjusted inkjet interval time.
[0083] In this embodiment, it is only necessary to introduce an adjustment coefficient p into the original calculation formula of the inkjet interval time, and there is no need to perform the full process calculation for the inkjet interval time of each section, thereby improving the calculation speed and ensuring the continuity and efficiency of printing.
[0084] like Figure 3 As shown, in one embodiment, a printing control device is provided, and a module in the printing control device is used to execute the printing control method, specifically including:
[0085] An acquisition module, used for acquiring a printed image and determining inkjet points of the printed image on the side surface of a cylinder with a variable cross-section;
[0086] A starting module is used to start the rotating device so that the rotating device drives the variable-section cylinder to rotate;
[0087] A first processing module is used to select a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet ejector, and identify the diameter of the reference cross section;
[0088] A second processing module, for determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0089] The third processing module is used to control each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0090] a fourth processing module, for monitoring whether the inkjet is moved, and if the inkjet is moved, selecting a cross section of the variable cross-section cylinder as a current cross section according to a new position of the inkjet, and identifying a diameter of the current cross section;
[0091] A fifth processing module, used for adjusting the inkjet interval time of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0092] A sixth processing module, for controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0093] The repeating module is used to repeatedly execute step S6 to step S8 until inkjet is completed for each inkjet point.
[0094] The process of each module in the printing control device provided in the embodiment of the present application realizing its own function can be specifically referred to the aforementioned Figure 1 The description of the illustrated embodiment will not be repeated here.
[0095] like Figure 4 As shown, in one embodiment, a printing control system is provided, the printing control system comprising:
[0096] A rotating device, wherein the rotating device is provided with a rotating shaft, and the variable-section cylinder is fixed on the rotating shaft. The rotating device drives the rotating shaft to rotate, thereby driving the variable-section cylinder to rotate;
[0097] An inkjet device, on which a plurality of color nozzles are arranged at intervals, for spraying ink on a cylinder with a variable cross-section;
[0098] A camera, arranged on the inkjet device, for identifying inkjet points;
[0099] The computer device is connected with the rotating device, the inkjet device and the camera, and is used to execute the printing control method.
[0100] In this embodiment, the rotating device may include a motor to drive the rotating shaft to rotate, and a clamp may be provided on the rotating shaft to fix the variable cross-section cylinder; the computer device cooperates with the rotating device, the inkjet device, the camera and other structures to execute the printing control method, when the inkjet point on the first cross section of the variable cross-section cylinder is inkjetted, the inkjet time interval of each color nozzle is determined according to the diameter of the cross section, and each color nozzle is mobilized to spray ink according to this interval, so that when each inkjet point on the cross section is inkjetted, the ink ejected by each color nozzle falls on the inkjet point, thereby ensuring the inkjet effect of each inkjet point on the cross section; furthermore, based on the inkjet interval time corresponding to the cross section, when the inkjet device is adjusted to inkjet the inkjet points of other cross sections, the inkjet interval time is adjusted according to the change in the diameter of the cross section, so that accurate inkjet of the inkjet points on other cross sections can be achieved, that is, when each inkjet point on the surface of the cylinder is inkjetted, the ink ejected by each color nozzle falls on the inkjet point, thereby ensuring the overall good printing effect of the variable cross-section cylinder.
[0101] like Figure 5 As shown, as a preferred embodiment, the inkjet printer includes a plurality of color nozzle groups arranged at intervals, each color nozzle group includes a set number of color nozzles, and the colors of ink ejected by each color nozzle belonging to the same color nozzle group are different, and each color nozzle group is independently controlled by the computer device.
[0102] In this embodiment, the computer can realize inkjet printing on inkjet points on multiple cross sections at the same time by controlling multiple color nozzle groups at the same time, which greatly improves the printing efficiency.
[0103] like Figure 6 As shown, as a preferred embodiment, the printing control system further includes a proximity sensor, and the proximity sensor is connected to the computer device;
[0104] A baffle is also provided on the rotating shaft of the rotating device, and the baffle cooperates with the proximity sensor. The baffle triggers the proximity sensor once every rotation driven by the rotating shaft; when the inkjet printer moves to a position facing a new cross section, the computer device monitors whether the proximity sensor is triggered. When the proximity sensor is triggered, the proximity sensor generates a trigger signal and sends the trigger signal to the computer device. After receiving the trigger signal, the computer device starts to control the inkjet printer to spray ink on the cross section.
[0105] In this embodiment, the proximity sensor is a device for detecting an object approaching or moving away from the sensor; the proximity sensor can be an infrared sensor, an inductive sensor, a capacitive sensor, or other types of proximity sensors, which are not limited here; in this embodiment, through the cooperation of the contact sensor and the baffle, when the contact sensor is triggered, the computer device uses the point currently facing the inkjet as the inkjet starting point (that is, the inkjet point corresponding to the trigger signal), and controls the inkjet to spray ink thereon. For other inkjet points of the same cross-section, since the variable-section cylinder rotates at a uniform speed, the time point for spraying ink thereon can be calculated based on the distance between the other inkjet points and the inkjet starting point, and then the other inkjet points are sprayed at each calculated corresponding time point, and there is no need to control the camera to lock the inkjet points one by one, thereby reducing the computing load of the computer device.
[0106] Figure 7 FIG. 2 shows an internal structure diagram of a computer device in one embodiment. Figure 7 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the printing control method provided in the embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the printing control method provided in the embodiment of the present invention. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0107] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In one embodiment, the printing control device provided by the embodiment of the present invention can be implemented in the form of a computer program. The computer program can be Figure 7 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the printing control device, such as: Figure 3 The acquisition module, the start module, the first processing module, the second processing module, the third processing module, the fourth processing module, the fifth processing module, and the sixth processing module shown in the figure are computer programs composed of various program modules, which enable the processor to execute the steps of the printing control method of each embodiment of the present invention described in this specification.
[0109] For example, Figure 7 The computer device shown can be Figure 3 The acquisition module in the printing control device shown executes step S1; the computer device may execute step S2 through the startup module; the computer device may execute step S3 through the first processing module; the computer device may execute step S4 through the second processing module; the computer device may execute step S5 through the third processing module; the computer device may execute step S6 through the fourth processing module; the computer device may execute step S7 through the fifth processing module; the computer device may execute step S8 through the sixth processing module; the computer device may execute step S9 through the repetition module.
[0110] In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0111] S1: Acquire a printed image and determine the inkjet point of the printed image on the side surface of a cylinder with a variable cross-section;
[0112] S2: Start the rotating device to make the rotating device drive the variable cross-section cylinder to rotate;
[0113] S3: selecting a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet nozzle, and identifying the diameter of the reference cross section;
[0114] S4: determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0115] S5: controlling each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0116] S6: monitoring whether the inkjet printer moves. If the inkjet printer moves, a cross section of the variable cross section cylinder is selected as a current cross section according to the new position of the inkjet printer, and a diameter of the current cross section is identified;
[0117] S7: adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0118] S8: controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0119] S9: Repeat steps S6 to S8 until inkjet is completed for each inkjet point.
[0120] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0121] S1: Acquire a printed image and determine the inkjet point of the printed image on the side surface of a cylinder with a variable cross-section;
[0122] S2: Start the rotating device to make the rotating device drive the variable cross-section cylinder to rotate;
[0123] S3: selecting a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet nozzle, and identifying the diameter of the reference cross section;
[0124] S4: determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device;
[0125] S5: controlling each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0126] S6: monitoring whether the inkjet printer moves. If the inkjet printer moves, a cross section of the variable cross section cylinder is selected as a current cross section according to the new position of the inkjet printer, and a diameter of the current cross section is identified;
[0127] S7: adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section;
[0128] S8: controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point;
[0129] S9: Repeat steps S6 to S8 until inkjet is completed for each inkjet point.
[0130] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0131] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0132] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0133] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A printing control method, It is characterized in that The method comprises: S1: Acquire a printed image and determine the inkjet point of the printed image on the side surface of a cylinder with a variable cross-section; S2: Start the rotating device, so that the rotating device drives the variable-section cylinder to rotate; S3: selecting a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet nozzle, and identifying the diameter of the reference cross section; S4: determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device; S5: controlling each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; S6: monitoring whether the inkjet printer moves. If the inkjet printer moves, a cross section of the variable cross section cylinder is selected as a current cross section according to the new position of the inkjet printer, and a diameter of the current cross section is identified; S7: adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section; S8: controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; S9: Repeat steps S6 to S8 until inkjet is completed for each inkjet point; After step S2, the method further includes: S211: recording the time taken for the variable cross-section cylinder to rotate one circle; S212: Calculate the time difference between the consumed time and the preset standard time; S213: Execute steps S211 to S212 a set number of times, thereby obtaining a number of time differences; S214: Determine whether each time difference is less than a preset standard time difference. If so, it is considered that the variable-section cylinder rotates at a uniform speed and the inkjet is started; if not, repeat steps S211 to S214 until the inkjet is started; Determining the inkjet interval of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device comprises: S41: Determine the ink jetting order of each color nozzle according to the rotation direction of the variable cross-section cylinder; S42: taking the color nozzle that has the first ink jetting order as the reference nozzle; S43: For any color nozzle, calculate the interval length between the color nozzle and the reference nozzle; S44: Calculate the corresponding arc length on the reference cross section according to the interval length and the diameter of the reference cross section; S45: determining the inkjet interval between the color nozzle and the reference nozzle according to the average consumed time and the ratio of the arc length to the perimeter of the reference cross section; wherein the average consumed time is the average of the individual consumed time; The arc length corresponding to the interval length on the reference cross section is calculated using the following formula: in, is the arc length corresponding to the interval length on the reference cross section, is the diameter of the reference cross section, The length of a chord of the circle corresponding to the reference cross section, and the length of the chord is equal to the interval length; The inkjet interval between the color nozzle and the reference nozzle is calculated by the following formula: in, is the inkjet interval between the color nozzle and the reference nozzle, is the average time consumed, is the perimeter of the base cross section.
2. The method according to claim 1, It is characterized in that Adjusting the inkjet interval of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section includes: According to the ratio of the diameter of the current cross section to the diameter of the reference cross section, the arc length corresponding to the interval length on the reference cross section is adjusted; The adjusted inkjet interval time is determined according to the adjusted arc length.
3. The method according to claim 2, It is characterized in that The adjusted arc length is calculated using the following formula: in, is the adjusted arc length, is the ratio of the diameter of the current cross section to the diameter of the reference cross section; The adjusted inkjet interval time is calculated by the following formula: in, It is the adjusted inkjet interval time.
4. A printing control device, It is characterized in that The module in the printing control device is used to execute the printing control method according to claim 1, specifically comprising: An acquisition module, used for acquiring a printed image and determining inkjet points of the printed image on the side surface of a cylinder with a variable cross-section; A starting module is used to start the rotating device so that the rotating device drives the variable-section cylinder to rotate; A first processing module is used to select a cross section of the variable cross-section cylinder as a reference cross section according to the position of the inkjet ejector, and identify the diameter of the reference cross section; A second processing module, for determining the inkjet interval time of each color nozzle according to the diameter of the reference cross section and the spacing between each color nozzle in the inkjet device; The third processing module is used to control each color nozzle to spray ink at the inkjet point passing through the reference cross section according to the inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; a fourth processing module, for monitoring whether the inkjet is moved, and if the inkjet is moved, selecting a cross section of the variable cross-section cylinder as a current cross section according to a new position of the inkjet, and identifying a diameter of the current cross section; A fifth processing module, used for adjusting the inkjet interval time of each color nozzle according to the ratio of the diameter of the current cross section to the diameter of the reference cross section; A sixth processing module, for controlling each color nozzle to spray ink at the inkjet point passing through the current cross section according to the adjusted inkjet interval time, so that when spraying ink at each inkjet point, the ink sprayed by each color nozzle falls on the inkjet point; The repeating module is used to repeatedly execute step S6 to step S8 until inkjet is completed for each inkjet point.
5. A printing control system, It is characterized in that The printing control system comprises: A rotating device, wherein the rotating device is provided with a rotating shaft, and the variable-section cylinder is fixed on the rotating shaft. The rotating device drives the rotating shaft to rotate, thereby driving the variable-section cylinder to rotate; An inkjet device, on which a plurality of color nozzles are arranged at intervals, for spraying ink on a cylinder with a variable cross-section; A camera, arranged on the inkjet device, for identifying inkjet points; A computer device is connected to the rotating device, the inkjet printer and the camera, and is used to execute the printing control method as described in any one of claims 1 to 3.
6. The system according to claim 5, It is characterized in that The inkjet device includes a plurality of color nozzle groups arranged at intervals, each color nozzle group includes a set number of color nozzles, each color nozzle belonging to the same color nozzle group ejects ink of different colors, and each color nozzle group is independently controlled by the computer device.
7. The system according to claim 6, It is characterized in that The printing control system further includes a proximity sensor connected to the computer device; A baffle is also provided on the rotating shaft of the rotating device, and the baffle cooperates with the proximity sensor. The baffle triggers the proximity sensor once every rotation driven by the rotating shaft; when the inkjet printer moves to a position facing a new cross section, the computer device monitors whether the proximity sensor is triggered. When the proximity sensor is triggered, the proximity sensor generates a trigger signal and sends the trigger signal to the computer device. After receiving the trigger signal, the computer device starts to control the inkjet printer to spray ink on the cross section.
