Nonlinear code spraying correction method and system, storage medium and electronic equipment
By acquiring the target position information of the area to be printed on the toothpaste box and the actual instantaneous deceleration of the printhead, combined with the jitter influence coefficient and inkjet rate, the problem of poor printing quality during the printing process on the toothpaste box was solved, and the accuracy and clarity of the printing were improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHONGQING YUANDA ZHICHENG PACKAGING TECHNOLOGY CO LTD
- Filing Date
- 2026-03-19
- Publication Date
- 2026-05-12
AI Technical Summary
Existing technologies for marking toothpaste boxes only consider the location information of the marking area, resulting in poor marking quality and problems such as marking offset and missed marking.
By acquiring the target position information of the area to be printed on the toothpaste box, and combining the actual instantaneous deceleration of the printhead and the jitter influence coefficient, the appropriate waiting time and inkjet rate are determined, so as to achieve precise movement of the printing mechanism and adaptive adjustment of the inkjet rate, and to perform comprehensive verification of the printing information.
It effectively avoids inkjet offset and missed inkjet printing, improves the accuracy and clarity of inkjet printing, reduces quality defects such as inkjet blur and broken strokes, and ensures the consistency and clarity of inkjet printing.
Smart Images

Figure CN122008704A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of inkjet printing technology, specifically to a nonlinear inkjet printing correction method, system, storage medium, and electronic device. Background Technology
[0002] Inkjet printing refers to the process of printing production dates, batch numbers, barcodes, QR codes, or text and patterns on product packaging or object surfaces. It utilizes specialized inkjet printing equipment (printing mechanism) to spray ink droplets onto the object surface in a non-contact manner, forming identification information. The most common application of inkjet printing is printing on areas on the surface of toothpaste boxes. Inkjet correction refers to the process where, during the printing process, due to mechanical vibration, conveyor belt shaking, or toothpaste box misalignment, the relative position of the printhead and the area to be printed deviates. The system automatically detects and corrects these deviations to ensure that the printed content accurately falls in the predetermined position.
[0003] Currently, the common method for marking correction on toothpaste boxes is to obtain the location information of the area to be marked on the toothpaste box in real time, and then control the marking mechanism to move to the corresponding position based on the location information, and adjust the print head to mark the area to be marked. However, since there are many factors that affect the marking quality, considering only the location information of the area to be marked results in poor marking quality on toothpaste boxes. Summary of the Invention
[0004] To improve the coding quality of toothpaste boxes, this application provides a nonlinear coding correction method, system, storage medium, and electronic device.
[0005] The first aspect of this application provides a nonlinear inkjet coding correction method, specifically including: Obtain the target location information of the area to be printed in the target toothpaste box on the conveyor belt; According to the target position information, the inkjet printing mechanism is moved to the target inkjet printing position by a preset translation device, and the actual instantaneous deceleration of the printhead in the inkjet printing mechanism is obtained when the inkjet printing mechanism reaches the target inkjet printing position. The target inkjet printing position is the position where the printhead can normally perform inkjet printing processing on the area to be printed. Based on the actual instantaneous deceleration, determine the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position; Based on the jitter impact coefficient, determine the appropriate waiting time between the current state and the start of coding, and obtain the actual vertical distance from each sub-region to be coded in the coding area to the printhead. Based on the actual vertical distances, a suitable inkjet rate is determined for the corresponding sub-area to be coded. After the appropriate waiting time, the area to be coded is coded according to the appropriate inkjet rate, and the coded information is verified. If the verification fails, the target toothpaste box is marked as a defective product.
[0006] By adopting the above technical solution, the target position information of the area to be printed on the toothpaste box is obtained, providing reliable data support for the precise movement of the printing mechanism. This effectively avoids quality problems such as printing offset and missed printing caused by positioning deviation of the area to be printed, ensuring the accuracy of the printing position. A preset translation device moves the printing mechanism to the appropriate target printing position, and the actual instantaneous deceleration of the printhead when it reaches that position is obtained in real time. Based on this actual instantaneous deceleration, the printhead jitter influence coefficient is determined, and then the appropriate waiting time between the current position and the start of printing is determined accordingly. This effectively avoids printhead jitter. The system mitigates the adverse effects of vibration caused by deceleration on coding clarity, reducing quality defects such as blurry and broken strokes. Simultaneously, by acquiring the actual vertical distance from each sub-region to the printhead within the coding area, the system determines the appropriate inkjet rate for each sub-region, enabling adaptive adjustment of the inkjet rate. This solves problems such as uneven coding density and font distortion at different distances, further improving coding consistency and clarity. Finally, after coding is completed, the coding information is comprehensively verified, and target toothpaste boxes that fail verification are marked as defective, thereby improving the coding quality of the target toothpaste boxes.
[0007] In one embodiment, determining the jitter influence coefficient of the printhead when the coding mechanism reaches the target coding position based on the actual instantaneous deceleration specifically includes: The system acquires multiple historical instantaneous decelerations of the inkjet printing mechanism when it reaches the area where the inkjet printing defect occurs during a historical period, and multiple historical waiting times between reaching the area where the inkjet printing defect occurs and starting inkjet printing under the historical instantaneous decelerations. Cluster analysis is performed on the multiple historical instantaneous decelerations to obtain multiple deceleration intervals, and at least one target deceleration interval is determined from the multiple deceleration intervals; Based on the historical waiting time corresponding to the historical instantaneous deceleration within the target deceleration range, at least one target waiting time range corresponding to the target deceleration range is determined; Determine a first weight for the target deceleration interval and a second weight for each target waiting time interval; Based on the actual instantaneous deceleration, the first weight, and the second weight, the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position is determined.
[0008] In one implementation, determining the jitter influence coefficient of the printhead when the coding mechanism reaches the target coding position, based on the actual instantaneous deceleration, the first weight, and the second weight, specifically includes: The target deceleration interval in which the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding target waiting time interval to obtain multiple multiplication results; The smallest multiplication result is selected from the multiple multiplication results. If the smallest multiplication result is not greater than a preset first threshold, the expected jitter duration of the nozzle is determined according to the target waiting time interval corresponding to the smallest multiplication result. The expected jitter duration from 0 to the reference duration interval is determined, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding reference waiting duration interval and summed to obtain the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position. The reference waiting duration interval is the target waiting duration interval included in the reference duration interval.
[0009] In one implementation, determining the appropriate waiting time between the current state and the start of coding based on the jitter influence coefficient specifically includes: The jitter impact coefficient is compared with a preset coefficient threshold. When the vibration impact coefficient exceeds the coefficient threshold, the remaining delivery time of the product batch to which the target toothpaste box belongs and the number of unmarked toothpaste boxes in the product batch are obtained. Based on the remaining delivery time and the quantity, determine the initial waiting time interval between the current state of the printhead and the start of printing; The target deceleration interval in which the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding target waiting time interval to obtain multiple multiplication results; Multiple target multiplication results are selected from the multiple multiplication results. The target waiting time interval corresponding to each target multiplication result is intersected with the initial waiting time interval to obtain at least one intersection interval. The minimum value in the intersection interval is determined as the appropriate waiting time. The target multiplication result is a multiplication result that is not greater than a preset first threshold. When the jitter impact coefficient does not exceed the coefficient threshold, the appropriate waiting time between the current time and the start of coding is determined to be 0.
[0010] In one embodiment, determining the appropriate inkjet rate for the corresponding code area based on each of the actual vertical distances specifically includes: Based on the historical inkjet rate of the printhead within a historical time period, at least one rate range of interest is determined, wherein the historical inkjet rate is the inkjet rate when a coding defect occurs. Based on the historical vertical distance between the area where the inkjet defect occurred and the printhead when the historical inkjet rate was in the range of the inkjet rate of concern, at least one range of distances of concern is determined, wherein the historical vertical distance is the vertical distance when the inkjet defect occurred. Calculate the first risk coefficient for the occurrence of inkjet printing defects in the rate range of concern, and calculate the second risk coefficient for the occurrence of inkjet printing defects in each of the distance ranges of concern; The range of the actual vertical distance is defined as the reference distance range. If the reference distance range exists in each range of the range of the rate to be concerned, then the range of the rate to be concerned is defined as the reference rate range. The actual inkjet rate preset by the printhead is obtained, and the first influence value of the inkjet defect in the sub-region to be printed corresponding to the actual vertical distance is determined based on the first risk coefficient of the reference rate range including the actual inkjet rate and the second risk coefficient of the corresponding reference distance range. When the first influence value is not greater than the preset second threshold, the actual inkjet rate is determined as the appropriate inkjet rate for the code sub-region to be printed corresponding to the actual vertical distance.
[0011] In one embodiment, the method further includes: When the first impact value is greater than the preset second threshold, the second impact value of the inkjet printing defect in the sub-area to be inkjet printed corresponding to the actual vertical distance is determined according to the first risk coefficient of a single reference rate interval and the second risk coefficient of the corresponding reference distance range under the single reference rate interval. Select the smallest second influence value from all the second influence values. If the smallest second influence value is not greater than the second threshold, then determine the appropriate inkjet rate for the code area to be printed corresponding to the actual vertical distance based on the reference rate range corresponding to the smallest second influence value.
[0012] In one embodiment, the method further includes: If the minimum second influence value is greater than the second threshold, then the range of the actual inkjet rate in which the inkjet rate is located is determined as the important rate range, the range of the distance in which the important rate range is located is determined as the important distance range, and the sub-region of the code to be printed corresponding to the actual vertical distance is determined as the target sub-region. Based on the first risk coefficient of the important rate range and the second risk coefficient of each of the important distance ranges, a third impact value of the inkjet printing defect in the target sub-region is determined under a single important distance range; The smallest third influence value is selected from all the third influence values. If the smallest third influence value is not greater than the second threshold, the appropriate vertical distance between the printhead and the target sub-region is determined according to the important distance range corresponding to the smallest third influence value, and the actual inkjet rate is determined as the appropriate inkjet rate of the target sub-region.
[0013] A second aspect of this application provides a nonlinear inkjet coding correction system, specifically comprising: The information acquisition module is used to acquire the target location information of the area to be printed in the target toothpaste box on the conveyor belt; The mechanism movement module is used to move the inkjet printing mechanism to the target inkjet printing position according to the target position information by means of a preset translation device, and to obtain the actual instantaneous deceleration of the printhead in the inkjet printing mechanism when the inkjet printing mechanism reaches the target inkjet printing position. The target inkjet printing position is the position where the printhead can normally perform inkjet printing processing on the area to be inkjet printed. The coefficient determination module is used to determine the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration. The duration determination module is used to determine the appropriate waiting time between the current time and the start of coding based on the jitter influence coefficient, and to obtain the actual vertical distance from each sub-region to be coded in the coding area to the printhead. The information verification module is used to determine the appropriate inkjet rate for the corresponding sub-area to be printed based on the actual vertical distances, and after the appropriate waiting time, to print the area to be printed according to the appropriate inkjet rate and verify the printed information. If the verification fails, the target toothpaste box is marked as a defective product.
[0014] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when loaded and executed by a processor, performs the steps of the method described in any one of the first aspects.
[0015] A fourth aspect of this application provides an electronic device, specifically comprising: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, the processor being configured to load and execute the computer program stored in the memory to cause the electronic device to perform the method as described in any one of the first aspects.
[0016] In summary, this application includes at least one of the following beneficial technical effects: by acquiring the target position information of the area to be printed on the toothpaste box, reliable data support is provided for the precise movement of the printing mechanism, effectively avoiding quality problems such as printing offset and missed printing caused by positioning deviation of the area to be printed, and ensuring the accuracy of the printing position; by moving the printing mechanism to the appropriate target printing position through a preset translation device, and acquiring the actual instantaneous deceleration of the printhead when it reaches the position in real time, the printhead jitter influence coefficient is determined in combination with the actual instantaneous deceleration, and then the appropriate waiting time between the current position and the start of printing is determined accordingly, which can effectively... This method effectively avoids the adverse effects of printhead vibration caused by deceleration during movement on the clarity of the printed code, reducing quality defects such as blurry and broken strokes. Simultaneously, by acquiring the actual vertical distance from each sub-region to the printhead within the area to be printed, the appropriate inkjet rate for each sub-region is determined, achieving adaptive adjustment of the inkjet rate. This solves problems such as uneven code density and font distortion at different distances, further improving the consistency and clarity of the printed code. Finally, after printing is completed, the printed information is comprehensively verified, and target toothpaste boxes that fail verification are marked as defective, thereby improving the printing quality of the target toothpaste boxes. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating a nonlinear inkjet coding correction method provided in an embodiment of this application; Figure 2 This is a schematic diagram illustrating the relationship between the target deceleration range and the target waiting time range provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of a nonlinear inkjet coding correction system provided in an embodiment of this application; Figure 4 This is a schematic diagram of another nonlinear inkjet coding correction system provided in an embodiment of this application.
[0018] Explanation of reference numerals in the attached diagram: 11. Information acquisition module; 12. Mechanism movement module; 13. Coefficient determination module; 14. Duration determination module; 15. Information verification module; 16. First speed control module; 17. Second speed control module. Detailed Implementation
[0019] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0020] In the description of the embodiments of this application, words such as "exemplarily," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.
[0021] In the description of the embodiments of this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, B existing alone, or A and B existing simultaneously. Furthermore, unless otherwise stated, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0022] See Figure 1 This application discloses a flowchart of a nonlinear inkjet marking correction method, which can be implemented using a computer program or run on a nonlinear inkjet marking correction system based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application, specifically including: S101: Obtain the target location information of the area to be printed in the target toothpaste box on the conveyor belt.
[0023] Specifically, in this embodiment, the target toothpaste box is the toothpaste box that needs to be printed with information, and it is in an open state. The area to be printed is the area where information needs to be printed. A vision inspection module is pre-installed between the feed end of the conveyor belt and the coding mechanism. This module includes two symmetrically arranged industrial cameras (resolution not less than 1920×1080, frame rate not less than 30fps) and a laser positioning sensor. The industrial cameras face the surface of the conveyor belt, with the lens axis at a 45° angle to the surface of the conveyor belt. The laser positioning sensor is set perpendicular to the surface of the conveyor belt to assist in calibrating the coordinate system for image acquisition. When the laser positioning sensor detects the target toothpaste box, the two industrial cameras are activated to simultaneously acquire images of the target toothpaste box. After preprocessing the acquired images (using a Gaussian filtering algorithm to remove image noise and a binarization algorithm to distinguish the toothpaste box from the background), the actual contour of the target toothpaste box and the contour of the area to be printed are extracted by a contour recognition algorithm. Then, the contour coordinates of the area to be printed are converted into actual physical coordinates by a coordinate calibration algorithm (establishing a two-dimensional rectangular coordinate system with the detection point of the laser positioning sensor as the origin), thereby obtaining the target position information of the area to be printed.
[0024] S102: Based on the target position information, the coding mechanism is moved to the target coding position by a preset translation device, and the actual instantaneous deceleration of the printhead in the coding mechanism is obtained when the coding mechanism reaches the target coding position.
[0025] Specifically, the target coding position is the location where the printhead can normally process the coding area. Actual instantaneous deceleration refers to the rate of change of the printhead's instantaneous velocity when the coding mechanism stops at the target coding position, characterizing how quickly the printhead's velocity decreases at that moment. The translation device uses an XYZ-axis linear module, on which the coding mechanism is fixedly mounted.
[0026] Using a motion control algorithm (such as a PID control algorithm), based on the initial position of the inkjet printing mechanism and the target position information of the area to be printed, the translation distances along the X and Y axes of the inkjet printing mechanism on the XYZ linear module are determined. Simultaneously, a core standard for the target printing position is preset—the vertical distance between the printhead and the area to be printed is 5-10mm, and the printhead axis is perpendicular to the surface of the area to be printed (ensuring proper printing clarity). Combining the aforementioned translation distances with this core standard, the target printing position to which the inkjet printing mechanism needs to move is finally determined. Further, the inkjet printing mechanism is moved to the target printing position using a translation device, and when the inkjet printing mechanism reaches the target printing position, the actual instantaneous deceleration of the printhead in the inkjet printing mechanism is obtained using a preset MEMS accelerometer.
[0027] S103: Determine the vibration influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration.
[0028] Specifically, after the conveyor belt transports the target toothpaste box to the working area of the coding mechanism, the coding mechanism moves towards the target coding position under the drive of a preset translation device. Upon reaching the target coding position, the actual instantaneous deceleration of the printhead is determined when it switches from moving to stopped (preparing to perform coding operations on the area to be coded in the target toothpaste box). Based on this actual instantaneous deceleration, the printhead jitter influence coefficient when the coding mechanism reaches the target coding position is determined. The jitter influence coefficient characterizes the overall probability of coding defects induced by printhead jitter under the actual instantaneous deceleration. The greater the actual instantaneous deceleration, the stronger the inertial impact when the printhead stops abruptly, the more severe the printhead jitter, and the larger the jitter influence coefficient. Therefore, the greater the overall probability of coding defects caused by printhead jitter when the coding mechanism reaches the target coding position. It should be noted that printhead jitter causes ink droplet placement to deviate and ink droplet distribution to occur during ink ejection, resulting in defects such as coding deviation, blurring, ghosting, and ink splatter, directly reducing coding quality.
[0029] In this embodiment of the application, a feasible method for determining the jitter impact coefficient is as follows: based on pre-cached historical inkjet printing records, multiple historical instantaneous decelerations of the inkjet printing mechanism reaching the area where the inkjet printing defect occurs are obtained when inkjet printing defects are induced by printhead jitter within a historical time period. Additionally, under a single historical instantaneous deceleration, the historical waiting time between the inkjet printing mechanism reaching the area where the inkjet printing defect occurs and the start of inkjet printing is also obtained. Multiple historical waiting times are possible. The historical inkjet printing records include, but are not limited to, information such as the instantaneous deceleration of the inkjet printing mechanism reaching the area where the inkjet printing defect occurs and the waiting time until the start of inkjet printing within a historical time period. It should be noted that the historical time period can be within the past two months.
[0030] Furthermore, using the K-Means clustering algorithm, multiple historical instantaneous decelerations are clustered to divide the data into multiple deceleration intervals, covering all historical instantaneous decelerations. The first number of historical instantaneous decelerations contained in a single deceleration interval is counted. If this first number is greater than a preset threshold, the interval contains a large number of historical instantaneous decelerations. This indicates that when the printhead reaches the area requiring coding, the instantaneous deceleration falls within this interval, increasing the likelihood of coding defects caused by jitter. Therefore, this deceleration interval is designated as the target deceleration interval—that is, a deceleration interval prone to coding defects due to jitter. At least one target deceleration interval exists.
[0031] After determining the target deceleration range, the K-Means clustering algorithm is used to perform cluster analysis on the historical waiting times corresponding to historical instantaneous decelerations within a single target deceleration range, dividing the range into multiple waiting time intervals. The second number of historical waiting times contained in each waiting time interval is counted. If the second number is greater than a preset threshold, then that waiting time interval is determined as the target waiting time interval corresponding to the single target deceleration range. In other words, given that the instantaneous deceleration of the printhead when it reaches the coding area is within a single target deceleration range and a coding defect occurs, the waiting time before coding is likely to fall within the specified waiting time interval. It should be noted that each target deceleration range corresponds to at least one target waiting time interval.
[0032] Furthermore, a first weight is determined for each target deceleration interval. This first weight is the ratio of the first number corresponding to a single target deceleration interval to the sum of the first numbers corresponding to all target deceleration intervals. It represents the probability of coding defects occurring when the instantaneous deceleration of the printhead reaches the coding area within the target deceleration interval. A second weight is then determined for each target waiting time interval corresponding to the target deceleration interval. This second weight is the ratio of the second number corresponding to a single target waiting time interval to the sum of the second numbers corresponding to all target waiting time intervals. It represents the probability of coding defects occurring when the waiting time before the printhead reaches the coding area and begins coding is within the target waiting time interval. For example, given target deceleration intervals a, b, and c, where the first number corresponding to target deceleration interval a is 25, the first number corresponding to target deceleration interval b is 35, and the first number corresponding to target deceleration interval c is 40, the first weight for target deceleration interval a is: 25 / (25 + 35 + 40) = 0.25. Among them, the target deceleration interval 'a' corresponds to target waiting time intervals a1, a2, and a3; the target deceleration interval 'b' corresponds to target waiting time intervals b1 and b2, etc.; and the target deceleration interval 'c' corresponds to target waiting time intervals c1 and c2, etc. The second number corresponding to target waiting time interval a1 is 30, the second number corresponding to target waiting time interval a2 is 30, and the second number corresponding to target waiting time interval a3 is 40. Therefore, the second weight of target waiting time interval a1 is: 30 / (30 + 30 + 40) = 0.3. For details, please refer to [link / reference needed]. Figure 2 .
[0033] Furthermore, based on the actual instantaneous deceleration, the first weight, and the second weight, the jitter influence coefficient of the printhead when reaching the target coding position is determined. One feasible implementation method is as follows: if the actual instantaneous deceleration falls within a single target deceleration range, then that target deceleration range is designated as the key deceleration range. Next, the first weight of the key deceleration range is multiplied by the second weight of each corresponding target waiting time range to obtain multiple multiplication results. The multiplication results characterize the probability of coding defects occurring in subsequent coding when the printhead's waiting time before coding in the actual coding area falls within the corresponding target waiting time range, under the actual instantaneous deceleration.
[0034] The minimum multiplication result is selected from multiple multiplication results. If the minimum multiplication result is not greater than a preset first threshold, it indicates that under the actual instantaneous deceleration, when the waiting time of the printhead before printing on the area to be printed is within the target waiting time interval corresponding to the minimum multiplication result, the probability of printing defects is relatively small. This further indicates that the printhead jitter tends to disappear within the target waiting time interval corresponding to the minimum multiplication result. Therefore, the maximum value in the target waiting time interval corresponding to the minimum multiplication result is determined as the expected jitter duration of the printhead. Further, the interval from 0 to the expected jitter duration is determined as the reference duration interval. The first weight of the key deceleration interval is multiplied by the second weight of each corresponding reference waiting time interval, and the sum is obtained to obtain the printhead jitter influence coefficient. The larger the jitter influence coefficient, the greater the overall probability of printing defects occurring when the waiting time is within the reference duration interval under the current actual instantaneous deceleration. Here, the reference waiting time interval is the target waiting time interval included in the reference duration interval.
[0035] S104: Based on the jitter impact coefficient, determine the appropriate waiting time between the current state and the start of coding, and obtain the actual vertical distance from each sub-area to be coded in the coding area to the printhead.
[0036] Specifically, the vibration impact coefficient is compared with the preset coefficient threshold. If the vibration impact coefficient does not exceed the coefficient threshold, it means that the overall possibility of printhead vibration causing inkjet printing defects is small. Therefore, the appropriate waiting time between the current time and the start of inkjet printing is set to 0.
[0037] If the vibration impact coefficient exceeds the threshold, it indicates that under actual instantaneous deceleration, the overall probability of printhead vibration inducing coding defects is relatively high. Therefore, the remaining delivery time of the product batch to which the target toothpaste box belongs and the number of un-coded toothpaste boxes in the batch (including the target toothpaste box that has not yet started coding) are obtained. Specifically, the remaining delivery time and quantity are obtained by uploading data from the product manager's terminal. In other embodiments, the remaining delivery time and quantity can also be obtained through a pre-set production management system (MES / ERP). Next, based on the remaining delivery time and quantity, the initial waiting time interval between the current state and the start of printing is determined. When the printhead's waiting time is within the initial waiting time interval, it can, to some extent, ensure that the unprinted toothpaste boxes in the product batch are printed and delivered on time. In this embodiment, a feasible way to determine the initial waiting time interval is as follows: using a preset matching table, the printing time interval for a single toothpaste box is matched according to the remaining delivery time and quantity. Then, based on the historical printing time of the toothpaste box, the average printing time (the time spent on actual printing) is determined. Finally, the average printing time is subtracted from the maximum and minimum values of the printing time interval to obtain the initial waiting time interval. The matching table includes combinations of different remaining delivery times, the number of unprinted toothpaste boxes, and the corresponding printing time interval for a single toothpaste box, all set based on human experience.
[0038] Multiple target multiplication results (multiplication results not exceeding a first threshold) are selected from the multiple multiplication results. The target waiting time intervals corresponding to each target multiplication result are intersected with the initial waiting time interval to obtain at least one intersection interval. When the printhead's waiting time falls within this intersection interval, the probability of subsequent coding defects is relatively low, while also avoiding excessively long waiting times that could delay delivery. Finally, the minimum value among all intersection intervals is determined as the appropriate waiting time for the printhead.
[0039] Furthermore, based on the different information to be printed, the area to be printed is divided into multiple sub-areas. Then, using a preset infrared ranging sensor, the actual vertical distance from each sub-area to the printhead is obtained. It should be noted that during actual printing, both the vertical distance between the printhead and the area to be printed, as well as the inkjet rate, will affect the printing quality. For example, if the vertical distance is too close, ink piling may occur; if the vertical distance is too far, ink misprints may occur.
[0040] S105: Based on the actual vertical distance, determine the appropriate inkjet rate for the corresponding sub-area to be coded, and after a suitable waiting time, perform inkjet processing on the area to be coded according to the appropriate inkjet rate and verify the information after inkjet printing. If the verification fails, mark the target toothpaste box as a defective product.
[0041] Specifically, in this embodiment, a feasible way to determine the appropriate inkjet rate for the corresponding sub-region to be coded is as follows: Based on the aforementioned historical inkjet records, obtain the historical inkjet rate of the printhead and the historical vertical distance between the printhead and the region to be coded within a historical time period. The historical inkjet records also include the historical inkjet rate of the printhead and the historical vertical distance between the printhead and the region to be coded when a coding defect occurred within a historical time period. Further, using the K-Means clustering algorithm, perform cluster analysis on multiple historical inkjet rates to divide multiple rate intervals, covering all historical inkjet rates. Count the first number of historical inkjet rates contained in a single rate interval. If the first number exceeds a preset threshold, then the rate interval is determined as a rate interval of concern, that is, a rate interval that is prone to inducing coding defects, and at least one rate interval of concern exists. Next, from all historical vertical distances, select multiple historical vertical distances between the region where a coding defect occurred and the printhead when the historical inkjet rate of the printhead is within a single rate interval of concern. Use a clustering algorithm to perform cluster analysis on the selected multiple historical vertical distances to divide multiple distance ranges. The second number of historical vertical distances contained in a single distance range is counted. If this second number exceeds a threshold, then that distance range is determined as the distance range of interest corresponding to a single rate of interest interval; that is, the distance range where inkjet printing defects are prone to occur during inkjet printing. It should be noted that each rate of interest interval corresponds to at least one distance range of interest.
[0042] Furthermore, a first risk coefficient is calculated for printing defects occurring when the printhead's inkjet rate is within a single rate of interest interval. This first risk coefficient is the ratio of a first quantity corresponding to a single rate of interest interval to the sum of the first quantities corresponding to all rate of interest intervals, representing the likelihood of printing defects occurring when the inkjet rate is within a single rate of interest interval. Then, a second risk coefficient is calculated for printing defects occurring when the vertical distance between the printhead and the area to be printed falls within each range of interest distances (the range of interest distances corresponding to the rate of interest intervals). This second risk coefficient is the ratio of a second quantity corresponding to a single range of interest distances to the sum of the second quantities corresponding to all ranges of interest distances, representing the likelihood of printing defects occurring.
[0043] The range of distances of interest for a single actual vertical distance is defined as the reference distance range, i.e., the range of distances where coding defects may occur. If the reference distance range exists in each range of distances of interest corresponding to the rate range of interest, then the rate range of interest is defined as the reference rate range, and at least one reference rate range exists. Further, the preset actual inkjet rate of the printhead is obtained, and the first risk coefficient of the reference rate range containing the actual inkjet rate is multiplied by the second risk coefficient of the corresponding reference distance range to obtain the first risk value of coding defects occurring in the coding sub-region corresponding to the single actual vertical distance. The first risk value characterizes the probability of coding defects occurring when the printhead prints ink into the coding sub-region corresponding to the actual vertical distance (the vertical distance from the printhead is the actual vertical distance) at the actual inkjet rate. Next, the critical coefficient of the coding information in this coding sub-region is determined through a preset coefficient matching table. The critical coefficient is not less than 1. The larger the critical coefficient, the more important the coding information in this coding sub-region is to the toothpaste product, and the higher the requirement for coding quality. The inkjet printing information can be understood as text, patterns, numbers, or barcodes printed on the target toothpaste box. Additionally, the coefficient matching table includes different information types and their corresponding key coefficients. For example, the coefficient matching table includes information type: production date, with a key coefficient of 1.9; information type: toothpaste flavor, with a key coefficient of 1.7; information type: production batch number, with a key coefficient of 1.5, and so on. Next, the first risk value corresponding to this inkjet printing sub-area is multiplied by the key coefficient to obtain the first impact value, which characterizes the degree of impact caused by inkjet printing defects in this sub-area. It should be noted that inkjet printing defects can be understood as defects that cause the printed information on the toothpaste box to fail to meet quality requirements, such as misalignment, blurring, missing strokes, ghosting, ink splattering, etc.
[0044] Furthermore, if the first influence value is not greater than the preset second threshold, it indicates that the impact of the inkjet defect in this sub-region is relatively small, and there is no need to adjust the preset actual inkjet rate. In this case, the actual inkjet rate is directly determined as the appropriate inkjet rate for this sub-region. Conversely, if the first influence value is greater than the preset second threshold, it indicates that the impact of the inkjet defect in this sub-region is relatively large, and the actual inkjet rate needs to be adjusted to reduce the impact. In this case, the first risk coefficient of a single reference rate interval is multiplied by the second risk coefficient of the corresponding reference distance range to obtain the second risk value of inkjet defects occurring in the sub-region corresponding to the actual vertical distance. This value represents the probability of inkjet defects occurring when the printhead inkjets the sub-region corresponding to the actual vertical distance at an inkjet rate within the reference rate interval. The second risk value is then multiplied by the aforementioned key coefficient to obtain the second influence value corresponding to a single reference rate interval. Finally, the minimum second influence value is selected from the second influence values corresponding to multiple reference rate intervals. If the minimum second influence value is not greater than the second threshold, it means that the possibility of inkjet defects in the sub-area to be printed is relatively small when inkjet printing at the inkjet rate within the reference rate interval corresponding to the minimum second influence value. Therefore, the minimum value in the reference rate interval corresponding to the minimum second influence value is determined as the appropriate inkjet rate.
[0045] In one embodiment, the number of rate adjustments is determined based on the preset printing sequence of each sub-region to be printed and the suitable inkjet rate of all sub-regions to be printed. If the suitable inkjet rate of the sub-region to be printed is different from that of the next sub-region to be printed, it is considered as one rate adjustment. The difference between the total number of sub-regions to be printed and 1 is calculated. If the ratio of the number of rate adjustments to the difference is greater than the preset ratio threshold, it indicates that the inkjet rate adjustment frequency is high during the entire printing process of the sub-region to be printed, which has a significant impact on the overall printing quality of the sub-region to be printed and also affects the quality of the printhead. Then, the first risk coefficient of the rate range of concern is multiplied by the second risk coefficient of the distance range of concern where the single actual vertical distance is located, and the product corresponding to the single actual vertical distance is obtained, which characterizes the probability of printing defects occurring at a single actual vertical distance when the inkjet rate is at the threshold of the rate range of concern. The products corresponding to each actual vertical distance are summed to obtain the sum of products. If the sum of products is not greater than a preset third threshold, then when the number of products is greater than a preset fourth threshold, the minimum value in the rate range of interest is determined as the appropriate inkjet rate for all code sub-regions to be printed, and a uniform inkjet rate is adopted.
[0046] In other embodiments, if the minimum second influence value is greater than the second threshold, it indicates that the actual vertical distance needs to be adjusted and optimized. Therefore, keeping the actual inkjet rate constant, the range of rates of interest where the actual inkjet rate falls is determined as the important rate range, the range of distances of interest corresponding to the important rate range is determined as the important distance range, and the sub-region to be printed corresponding to the actual vertical distance is determined as the target sub-region. The first risk coefficient of the important rate range is multiplied by the second risk coefficient of each important distance range to obtain multiple third risk values. Each third risk value is then multiplied by the aforementioned key coefficient to obtain the third influence value corresponding to the target sub-region. This value characterizes the probability of printing defects occurring when the vertical distance between the target sub-region and the printhead is within the corresponding important distance range, assuming the actual inkjet rate remains constant. Finally, the minimum third influence value is selected from the multiple third influence values. If the minimum third influence value is not greater than the second threshold, any distance within the range of distances of interest corresponding to the minimum third influence value is determined as the suitable vertical distance between the printhead and the target sub-region. The printhead then uses this suitable vertical distance to print ink into the target sub-region, thereby reducing the risk of printing defects occurring in the subsequent target sub-region.
[0047] Furthermore, after a suitable waiting period, the printhead is controlled to print the corresponding sub-areas of the area to be printed according to the appropriate inkjet rate. After the printing of the area to be printed is completed, the printed information is verified. If the verification passes, it means that the printed information meets the quality requirements; if the verification fails, it means that the printed information does not meet the quality requirements, and the target toothpaste box is marked as defective and rejected. One feasible verification method is to acquire high-definition images of the area to be printed using an industrial camera, preprocess the acquired printing images to obtain processed information, and then extract the processed information. The system extracts the inkjet printing information (including character content, character clarity, and character completeness) and compares it with preset standard inkjet printing information. The verification includes: whether the inkjet characters are complete (no missing, no blurring, no broken strokes), whether the inkjet character content is consistent with the standard inkjet printing information (no misspellings, omissions, or incorrect codes), whether the inkjet printing position is within the preset area to be printed (offset not exceeding 0.5mm), and whether the inkjet printing clarity meets the standard (character contrast not less than 80%). If all the above verification items meet the requirements, the verification is deemed to have passed; if any verification item fails to meet the requirements, the verification is deemed to have failed. In other embodiments, the first risk coefficient of the rate range of concern in which the appropriate inkjet rate of each sub-region to be printed is located is multiplied by the second risk coefficient of the distance range of concern in which the actual vertical distance between the sub-region to be printed and the printhead is located, and the result of the multiplication is obtained. Based on the result of the multiplication, the verification order of the printed content in each sub-region to be printed is determined. The larger the result of the multiplication, the greater the possibility of printing defects, and the earlier the verification order of the corresponding sub-region to be printed is. Then, the corresponding sub-region to be printed is verified according to each verification order.
[0048] The implementation principle of the nonlinear inkjet coding correction method in this application embodiment is as follows: By acquiring the target position information of the area to be coded on the toothpaste box, reliable data support is provided for the precise movement of the coding mechanism, effectively avoiding quality problems such as coding offset and missed spraying caused by positioning deviation of the area to be coded, and ensuring the accuracy of the coding position; the coding mechanism is moved to the appropriate target coding position through a preset translation device, and the actual instantaneous deceleration of the printhead when it reaches the position is acquired in real time. The printhead jitter influence coefficient is determined by combining the actual instantaneous deceleration, and then the appropriate waiting time between the current position and the start of coding is determined accordingly, which can effectively... This method effectively avoids the adverse effects of printhead vibration caused by deceleration during movement on the clarity of the printed code, reducing quality defects such as blurry and broken strokes. Simultaneously, by acquiring the actual vertical distance from each sub-region to the printhead within the area to be printed, the appropriate inkjet rate for each sub-region is determined, achieving adaptive adjustment of the inkjet rate. This solves problems such as uneven code density and font distortion at different distances, further improving the consistency and clarity of the printed code. Finally, after printing is completed, the printed information is comprehensively verified, and target toothpaste boxes that fail verification are marked as defective, thereby improving the printing quality of the target toothpaste boxes.
[0049] The following are system embodiments of this application, which can be used to execute the method embodiments of this application. For details not disclosed in the system embodiments of this application, please refer to the method embodiments of this application.
[0050] Please see Figure 3 This is a schematic diagram of the nonlinear inkjet coding correction system provided in this application embodiment. This system, applied to nonlinear inkjet coding correction, can be implemented as all or part of a system through software, hardware, or a combination of both. The system includes an information acquisition module 11, a mechanism movement module 12, a coefficient determination module 13, a duration determination module 14, and an information verification module 15.
[0051] Information acquisition module 11 is used to acquire the target location information of the area to be printed in the target toothpaste box on the conveyor belt; The mechanism movement module 12 is used to move the inkjet printing mechanism to the target inkjet printing position according to the target position information through a preset translation device, and to obtain the actual instantaneous deceleration of the printhead in the inkjet printing mechanism when the inkjet printing mechanism reaches the target inkjet printing position. The target inkjet printing position is the position where the printhead can normally perform inkjet printing processing on the area to be inkjet printed. The coefficient determination module 13 is used to determine the vibration influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration. The duration determination module 14 is used to determine the appropriate waiting time between the current time and the start of coding based on the jitter influence coefficient, and to obtain the actual vertical distance from each sub-area to be coded in the coding area to the printhead. The information verification module 15 is used to determine the appropriate inkjet rate for the corresponding sub-area to be printed based on each actual vertical distance, and after a suitable waiting time, to print the area to be printed according to each appropriate inkjet rate and to verify the information after printing. If the verification fails, the target toothpaste box is marked as a defective product.
[0052] Optional, the coefficient determination module 13 is specifically used for: When printhead jitter induces a coding defect, acquire multiple historical instantaneous decelerations of the coding mechanism reaching the area where the coding defect occurs within a historical time period, and multiple historical waiting times between reaching the area where the coding defect occurs and starting coding under the historical instantaneous decelerations; Cluster analysis was performed on multiple historical instantaneous decelerations to obtain multiple deceleration intervals, and at least one target deceleration interval was determined from the multiple deceleration intervals. Based on the historical waiting time corresponding to the historical instantaneous deceleration within the target deceleration range, determine at least one target waiting time range corresponding to the target deceleration range; Determine the first weight of the target deceleration range and the second weight of the waiting time range for each target; Based on the actual instantaneous deceleration, the first weight, and the second weight, the vibration influence coefficient of the printhead when the coding mechanism reaches the target coding position is determined.
[0053] Optional, the coefficient determination module 13 is specifically used for: The target deceleration interval where the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of the corresponding target waiting time interval to obtain multiple multiplication results; The smallest multiplication result is selected from multiple multiplication results. If the smallest multiplication result is not greater than the preset first threshold, the expected jitter duration of the nozzle is determined according to the target waiting time interval corresponding to the smallest multiplication result. The jitter duration from 0 to the expected jitter duration is defined as the reference duration interval. The first weight of the key deceleration interval is multiplied by the second weight of each corresponding reference waiting duration interval and summed to obtain the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position. The reference waiting duration interval is the target waiting duration interval contained in the reference duration interval.
[0054] Optional, duration determination module 14, specifically used for: Compare the jitter impact coefficient with the preset coefficient threshold; When the vibration impact coefficient exceeds the coefficient threshold, obtain the remaining delivery time of the product batch to which the target toothpaste box belongs and the number of unmarked toothpaste boxes in the product batch; Based on the remaining delivery time and quantity, determine the initial waiting time interval between the current state of the printhead and the start of printing; The target deceleration interval where the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of the corresponding target waiting time interval to obtain multiple multiplication results; Multiple target multiplication results are selected from multiple multiplication results. The target waiting time interval corresponding to each target multiplication result is intersected with the initial waiting time interval to obtain at least one intersection interval. The minimum value in the intersection interval is determined as the appropriate waiting time. The target multiplication result is a multiplication result that is not greater than a preset first threshold. When the jitter impact coefficient does not exceed the coefficient threshold, the appropriate waiting time between the current time and the start of coding is set to 0.
[0055] Optional, information verification module 15, specifically used for: Based on the historical inkjet rate of the printhead within a historical period, at least one rate range of interest is determined. The historical inkjet rate is the inkjet rate when a coding defect occurs. Based on the historical vertical distance between the area where the inkjet defect occurred and the printhead when the historical inkjet rate was in the range of the inkjet rate of interest, at least one range of distances of interest is determined, and the historical vertical distance is the vertical distance when the inkjet defect occurred. Calculate the first risk coefficient for inkjet printing defects occurring within the rate range of concern, and calculate the second risk coefficient for inkjet printing defects occurring within each distance range of concern; The range of the actual vertical distance is defined as the reference distance range. If there is a reference distance range in each range of the range of the rate to be concerned, then the range of the rate to be concerned is defined as the reference rate range. The actual inkjet rate preset by the printhead is obtained. Based on the first risk coefficient of the reference rate range containing the actual inkjet rate and the second risk coefficient of the corresponding reference distance range, the first influence value of the inkjet defect in the sub-region of the code to be printed corresponding to the actual vertical distance is determined. When the first influence value is not greater than the preset second threshold, the actual inkjet rate is determined as the appropriate inkjet rate for the code area to be printed corresponding to the actual vertical distance.
[0056] Optional, such as Figure 4 As shown, the system also includes a first speed control module 16, specifically used for: When the first impact value is greater than the preset second threshold, the second impact value of the inkjet printing defect in the sub-area corresponding to the actual vertical distance under the single reference rate interval is determined based on the first risk coefficient of the single reference rate interval and the second risk coefficient of the corresponding reference distance range. Select the smallest second influence value from all the second influence values. If the smallest second influence value is not greater than the second threshold, then determine the appropriate inkjet rate for the code area to be printed corresponding to the actual vertical distance based on the reference rate range corresponding to the smallest second influence value.
[0057] Optionally, the system also includes a second speed control module 17, specifically used for: If the minimum second influence value is greater than the second threshold, then the range of the rate of interest where the actual inkjet rate is located is determined as the important rate range, the range of the distance of interest corresponding to the important rate range is determined as the important distance range, and the sub-region of the code to be printed corresponding to the actual vertical distance is determined as the target sub-region. Based on the first risk coefficient of the important rate range and the second risk coefficient of each important distance range, the third influence value of the inkjet printing defect in the target sub-region is determined under a single important distance range; Select the smallest third influence value from all the third influence values. If the smallest third influence value is not greater than the second threshold, then determine the appropriate vertical distance between the printhead and the target sub-region based on the important distance range corresponding to the smallest third influence value, and determine the actual inkjet rate as the appropriate inkjet rate for the target sub-region.
[0058] It should be noted that the nonlinear inkjet coding correction system provided in the above embodiments is only illustrated by the division of the functional modules described above when executing the nonlinear inkjet coding correction method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the equipment can be divided into different functional modules to complete all or part of the functions described above. In addition, the nonlinear inkjet coding correction system and the nonlinear inkjet coding correction method embodiment provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiment, which will not be repeated here.
[0059] This application also discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, it implements a nonlinear inkjet coding correction method as described in the above embodiments.
[0060] The computer program can be stored in a computer-readable medium. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or certain middleware. The computer-readable medium includes any entity or device capable of carrying computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the computer-readable medium includes, but is not limited to, the above-mentioned components.
[0061] The nonlinear inkjet coding correction method of the above embodiment is stored in the computer-readable storage medium and loaded and executed on the processor to facilitate the storage and application of the above method.
[0062] This application also discloses an electronic device in which a computer program is stored in a computer-readable storage medium. When the computer program is loaded and executed by a processor, it implements the above-mentioned nonlinear inkjet coding correction method.
[0063] The electronic device can be a desktop computer, a laptop computer, or a cloud server, and includes, but is not limited to, a processor and a memory. For example, the electronic device may also include input / output devices, network access devices, and buses.
[0064] The processor can be a central processing unit (CPU). Of course, depending on the actual use, it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc., and this application does not limit it.
[0065] The memory can be an internal storage unit of an electronic device, such as a hard disk or RAM, or an external storage device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD), or flash memory card (FC) equipped on the electronic device. Furthermore, the memory can be a combination of an internal storage unit and an external storage device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or will be output. This application does not limit this.
[0066] In this electronic device, a nonlinear inkjet coding correction method according to the above embodiment is stored in the memory of the electronic device and loaded and executed on the processor of the electronic device for convenient use.
[0067] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A nonlinear inkjet printing correction method, characterized in that, The method includes: Obtain the target location information of the area to be printed in the target toothpaste box on the conveyor belt; According to the target position information, the inkjet printing mechanism is moved to the target inkjet printing position by a preset translation device, and the actual instantaneous deceleration of the printhead in the inkjet printing mechanism is obtained when the inkjet printing mechanism reaches the target inkjet printing position. The target inkjet printing position is the position where the printhead can normally perform inkjet printing processing on the area to be printed. Based on the actual instantaneous deceleration, determine the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position; Based on the jitter impact coefficient, determine the appropriate waiting time between the current state and the start of coding, and obtain the actual vertical distance from each sub-region to be coded in the coding area to the printhead. Based on the actual vertical distances, a suitable inkjet rate is determined for the corresponding sub-area to be coded. After the appropriate waiting time, the area to be coded is coded according to the appropriate inkjet rate, and the coded information is verified. If the verification fails, the target toothpaste box is marked as a defective product.
2. The nonlinear inkjet printing correction method according to claim 1, characterized in that, The step of determining the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration specifically includes: The system acquires multiple historical instantaneous decelerations of the inkjet printing mechanism when it reaches the area where the inkjet printing defect occurs during a historical period, and multiple historical waiting times between reaching the area where the inkjet printing defect occurs and starting inkjet printing under the historical instantaneous decelerations. Cluster analysis is performed on the multiple historical instantaneous decelerations to obtain multiple deceleration intervals, and at least one target deceleration interval is determined from the multiple deceleration intervals; Based on the historical waiting time corresponding to the historical instantaneous deceleration within the target deceleration range, at least one target waiting time range corresponding to the target deceleration range is determined; Determine a first weight for the target deceleration interval and a second weight for each target waiting time interval; Based on the actual instantaneous deceleration, the first weight, and the second weight, the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position is determined.
3. The nonlinear inkjet printing correction method according to claim 2, characterized in that, The step of determining the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration, the first weight, and the second weight specifically includes: The target deceleration interval in which the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding target waiting time interval to obtain multiple multiplication results; The smallest multiplication result is selected from the multiple multiplication results. If the smallest multiplication result is not greater than a preset first threshold, the expected jitter duration of the nozzle is determined according to the target waiting time interval corresponding to the smallest multiplication result. The expected jitter duration from 0 to the reference duration interval is determined, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding reference waiting duration interval and summed to obtain the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position. The reference waiting duration interval is the target waiting duration interval included in the reference duration interval.
4. The nonlinear inkjet printing correction method according to claim 2, characterized in that, The step of determining the appropriate waiting time between the current state and the start of coding based on the jitter impact coefficient specifically includes: The jitter impact coefficient is compared with a preset coefficient threshold. When the vibration impact coefficient exceeds the coefficient threshold, the remaining delivery time of the product batch to which the target toothpaste box belongs and the number of unmarked toothpaste boxes in the product batch are obtained. Based on the remaining delivery time and the quantity, determine the initial waiting time interval between the current state of the printhead and the start of printing; The target deceleration interval in which the actual instantaneous deceleration is located is determined as the key deceleration interval, and the first weight of the key deceleration interval is multiplied by the second weight of each corresponding target waiting time interval to obtain multiple multiplication results; Multiple target multiplication results are selected from the multiple multiplication results. The target waiting time interval corresponding to each target multiplication result is intersected with the initial waiting time interval to obtain at least one intersection interval. The minimum value in the intersection interval is determined as the appropriate waiting time. The target multiplication result is a multiplication result that is not greater than a preset first threshold. When the jitter impact coefficient does not exceed the coefficient threshold, the appropriate waiting time between the current time and the start of coding is determined to be 0.
5. The nonlinear inkjet printing correction method according to claim 1, characterized in that, The step of determining the appropriate inkjet rate for the corresponding code area based on the actual vertical distances includes: Based on the historical inkjet rate of the printhead within a historical time period, at least one rate range of interest is determined, wherein the historical inkjet rate is the inkjet rate when a coding defect occurs. Based on the historical vertical distance between the area where the inkjet defect occurred and the printhead when the historical inkjet rate was in the range of the inkjet rate of concern, at least one range of distances of concern is determined, wherein the historical vertical distance is the vertical distance when the inkjet defect occurred. Calculate the first risk coefficient for the occurrence of inkjet printing defects in the rate range of concern, and calculate the second risk coefficient for the occurrence of inkjet printing defects in each of the distance ranges of concern; The range of the actual vertical distance is defined as the reference distance range. If the reference distance range exists in each range of the range of the rate to be concerned, then the range of the rate to be concerned is defined as the reference rate range. The actual inkjet rate preset by the printhead is obtained, and the first influence value of the inkjet defect in the sub-region to be printed corresponding to the actual vertical distance is determined based on the first risk coefficient of the reference rate range including the actual inkjet rate and the second risk coefficient of the corresponding reference distance range. When the first influence value is not greater than the preset second threshold, the actual inkjet rate is determined as the appropriate inkjet rate for the code sub-region to be printed corresponding to the actual vertical distance.
6. The nonlinear inkjet printing correction method according to claim 5, characterized in that, The method further includes: When the first impact value is greater than the preset second threshold, the second impact value of the inkjet printing defect in the sub-area to be inkjet printed corresponding to the actual vertical distance is determined according to the first risk coefficient of a single reference rate interval and the second risk coefficient of the corresponding reference distance range under the single reference rate interval. Select the smallest second influence value from all the second influence values. If the smallest second influence value is not greater than the second threshold, then determine the appropriate inkjet rate for the code area to be printed corresponding to the actual vertical distance based on the reference rate range corresponding to the smallest second influence value.
7. The nonlinear inkjet printing correction method according to claim 6, characterized in that, The method further includes: If the minimum second influence value is greater than the second threshold, then the range of the actual inkjet rate in which the inkjet rate is located is determined as the important rate range, the range of the distance in which the important rate range is located is determined as the important distance range, and the sub-region of the code to be printed corresponding to the actual vertical distance is determined as the target sub-region. Based on the first risk coefficient of the important rate range and the second risk coefficient of each of the important distance ranges, a third impact value of the inkjet printing defect in the target sub-region is determined under a single important distance range; The smallest third influence value is selected from all the third influence values. If the smallest third influence value is not greater than the second threshold, the appropriate vertical distance between the printhead and the target sub-region is determined according to the important distance range corresponding to the smallest third influence value, and the actual inkjet rate is determined as the appropriate inkjet rate of the target sub-region.
8. A nonlinear inkjet coding correction system, characterized in that, include: The information acquisition module (11) is used to acquire the target location information of the area to be printed in the target toothpaste box on the conveyor belt; The mechanism moving module (12) is used to move the inkjet printing mechanism to the target inkjet printing position by means of a preset translation device according to the target position information, and to obtain the actual instantaneous deceleration of the printhead in the inkjet printing mechanism when the inkjet printing mechanism reaches the target inkjet printing position. The target inkjet printing position is the position where the printhead can normally perform inkjet printing processing on the area to be inkjet printed. The coefficient determination module (13) is used to determine the jitter influence coefficient of the printhead when the inkjet mechanism reaches the target inkjet position based on the actual instantaneous deceleration. The duration determination module (14) is used to determine the appropriate waiting time between the current time and the start of coding based on the jitter influence coefficient, and to obtain the actual vertical distance from each sub-region to be coded in the coding area to the nozzle. The information verification module (15) is used to determine the appropriate inkjet rate of the corresponding sub-area to be printed according to the actual vertical distance, and after the appropriate waiting time, to print the area to be printed according to the appropriate inkjet rate and to verify the information after printing. If the verification fails, the target toothpaste box is marked as a defective product.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is loaded and executed by the processor, it implements the method of any one of claims 1-7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor loads and executes the computer program, it implements the method of any one of claims 1-7.