Search

CN-122008704-A - Nonlinear code spraying deviation rectifying method, system, storage medium and electronic equipment

CN122008704ACN 122008704 ACN122008704 ACN 122008704ACN-122008704-A

Abstract

The application relates to a nonlinear code spraying deviation correcting method, a system, a storage medium and electronic equipment, and relates to the technical field of code spraying, wherein the method comprises the steps of moving a code spraying mechanism to a target code spraying position through a preset translation device according to target position information, and acquiring actual instantaneous deceleration of a spray head in the code spraying mechanism when the code spraying mechanism reaches the target code spraying position; the method comprises the steps of determining a jitter influence coefficient of a spray head when an ink jet mechanism reaches a target code spraying position according to actual instantaneous deceleration, determining proper waiting time between current time and time when code spraying starts according to the jitter influence coefficient, obtaining actual vertical distances from each sub-area to be sprayed in the sub-area to be sprayed to the spray head, determining proper ink spraying rates of the corresponding sub-areas to be sprayed according to the actual vertical distances, performing code spraying processing on the sub-areas to be sprayed according to the proper ink spraying rates after the proper waiting time, and checking information after code spraying. The application has the effect of improving the code spraying quality of the target toothpaste box.

Inventors

  • ZHANG YINHAO
  • LIU JIANFENG
  • Lei Tongming
  • ZHOU YAN
  • FU FENGYUN

Assignees

  • 重庆远大智诚包装科技有限公司

Dates

Publication Date
20260512
Application Date
20260319

Claims (10)

  1. 1. The nonlinear code spraying deviation rectifying method is characterized by comprising the following steps of: Acquiring target position information of a to-be-sprayed code area in a target toothpaste box on a conveyor belt; according to the target position information, moving the code spraying mechanism to a target code spraying position through a preset translation device, and acquiring the actual instantaneous deceleration of a spray head in the code spraying mechanism when the code spraying mechanism reaches the target code spraying position, wherein the target code spraying position is a position where the spray head can normally spray codes to the to-be-sprayed area; Determining a jitter influence coefficient of the spray head when the code spraying mechanism reaches the target code spraying position according to the actual instantaneous deceleration; Determining a proper waiting time length from the current time to the time of starting code spraying according to the jitter influence coefficient, and acquiring the actual vertical distance from each sub-area to be sprayed in the area to be code sprayed to the spray head; and determining the proper ink-jet rate of the corresponding sub-area to be sprayed according to the actual vertical distance, performing code-spraying treatment on the area to be sprayed according to the proper ink-jet rate after the proper waiting time, checking the information after code-spraying, and marking the target toothpaste box as a defective product when the checking is failed.
  2. 2. The method for correcting a nonlinear code spraying deviation according to claim 1, wherein the determining, according to the actual instantaneous deceleration, a jitter influence coefficient of the nozzle when the code spraying mechanism reaches the target code spraying position specifically includes: When the spray head shake induces the code spraying defect in the historical time, the code spraying mechanism reaches a plurality of historical instant decelerations of the region where the code spraying defect appears, and reaches a plurality of historical waiting time periods from the region where the code spraying defect appears to the beginning of code spraying under the historical instant decelerations; performing cluster analysis on the plurality of historical instantaneous deceleration to obtain a plurality of deceleration intervals, and determining at least one target deceleration interval from the plurality of deceleration intervals; Determining at least one target waiting time interval corresponding to the target deceleration interval according to the historical waiting time corresponding to the historical instantaneous deceleration in the target deceleration interval; Determining a first weight of the target deceleration interval and determining a second weight of each target waiting duration interval; And determining a jitter influence coefficient of the spray head when the code spraying mechanism reaches the target code spraying position according to the actual instantaneous deceleration, the first weight and the second weight.
  3. 3. The method for correcting a nonlinear code spraying deviation according to claim 2, wherein determining the jitter influence coefficient of the nozzle when the code spraying mechanism reaches the target code spraying position according to the actual instantaneous deceleration, the first weight and the second weight specifically comprises: determining a target deceleration section where the actual instantaneous deceleration is located as an important deceleration section, and multiplying a first weight of the important deceleration section by a second weight of each corresponding target waiting duration section to obtain a plurality of multiplication results; Selecting a minimum multiplication result from the multiple multiplication results, and if the minimum multiplication result is not greater than a preset first threshold value, determining the predicted jitter duration of the spray head according to a target waiting duration interval corresponding to the minimum multiplication result; And determining 0 to the predicted jitter time period as a reference time period interval, multiplying and summing the first weight of the key deceleration interval and the second weight of each corresponding reference waiting time period interval to obtain a jitter influence coefficient of the spray head when the code spraying mechanism reaches the target code spraying position, wherein the reference waiting time period interval is a target waiting time period interval contained in the reference time period interval.
  4. 4. The method for correcting a nonlinear code spraying deviation according to claim 2, wherein the determining a suitable waiting time period from the current time to the beginning of code spraying according to the jitter influence coefficient specifically comprises: comparing the jitter influence coefficient with a preset coefficient threshold; When the jitter influence coefficient exceeds the coefficient threshold, acquiring the residual delivery time of the product batch to which the target toothpaste box belongs and the number of the toothpaste boxes without codes in the product batch; Determining an initial waiting time interval from the current time of the spray head to the time of starting the spray code according to the residual delivery time and the quantity; determining a target deceleration section where the actual instantaneous deceleration is located as an important deceleration section, and multiplying a first weight of the important deceleration section by a second weight of each corresponding target waiting duration section to obtain a plurality of multiplication results; Selecting a plurality of target multiplication results from the plurality of multiplication results, respectively carrying out intersection operation on a target waiting time interval corresponding to each target multiplication result and the initial waiting time interval to obtain at least one intersection interval, and determining the minimum value in the intersection interval as a proper waiting time, wherein the target multiplication result is a multiplication result not greater than a preset first threshold value; and when the jitter influence coefficient does not exceed the coefficient threshold value, determining the proper waiting time period from the current time to the beginning of code spraying to be 0.
  5. 5. The method for correcting nonlinear code spraying according to claim 1, wherein the determining the appropriate ink spraying rate of the corresponding sub-region to be sprayed according to each of the actual vertical distances specifically comprises: determining at least one speed interval to be concerned according to the historical ink-jet speed of the spray head in the historical time, wherein the historical ink-jet speed is the ink-jet speed when the ink-jet code has the ink-jet defect; Determining at least one distance range to be concerned according to the historical vertical distance between the region where the code spraying defect occurs and the spray head when the historical ink spraying rate is in the region of the rate to be concerned, wherein the historical vertical distance is the vertical distance when the code spraying defect occurs in the code spraying; calculating a first risk coefficient of the code spraying defect in the to-be-focused rate interval, and calculating a second risk coefficient of the code spraying defect in each to-be-focused distance range; Determining a distance range to be concerned, in which the actual vertical distance is located, as a reference distance range, and determining the speed range to be concerned as a reference speed range if the reference distance range exists in each distance range to be concerned corresponding to the speed range to be concerned; Acquiring an actual ink jet rate preset by the spray head, and determining a first influence value of a code spraying defect in a sub-area to be sprayed corresponding to the actual vertical distance according to a first risk coefficient of a reference rate interval containing the actual ink jet rate and a second risk coefficient of a corresponding reference distance range; And when the first influence value is not greater than a preset second threshold value, determining the actual ink jet rate as the proper ink jet rate of the sub-area to be jetted corresponding to the actual vertical distance.
  6. 6. The method of correcting a nonlinear code-spraying error according to claim 5, further comprising: When the first influence value is larger than a preset second threshold value, determining a second influence value of the code spraying defect in the sub-region to be sprayed corresponding to the actual vertical distance in the single reference rate interval according to the first risk coefficient of the single reference rate interval and the second risk coefficient of the corresponding reference distance range; And selecting a minimum second influence value from the second influence values, and if the minimum second influence value is not greater than the second threshold value, determining the proper ink jet rate of the sub-area to be jetted corresponding to the actual vertical distance according to a reference rate interval corresponding to the minimum second influence value.
  7. 7. The method of non-linear code-spraying correction according to claim 6, further comprising: If the minimum second influence value is larger than the second threshold value, determining a to-be-focused rate interval in which the actual ink jet rate is located as an important rate interval, determining a to-be-focused distance range corresponding to the important rate interval as an important distance range, and determining a to-be-sprayed sub-region corresponding to the actual vertical distance as a target sub-region; Determining a third influence value of the code spraying defect in the target subarea under a single important distance range according to the first risk coefficient of the important speed interval and the second risk coefficient of each important distance range; And selecting a minimum third influence value from the third influence values, if the minimum third influence value is not greater than the second threshold value, determining a proper vertical distance between the spray head and the target subarea according to an important distance range corresponding to the minimum third influence value, and determining the actual ink jet rate as the proper ink jet rate of the target subarea.
  8. 8. The utility model provides a nonlinear spouts a yard rectifying system which characterized in that includes: The information acquisition module (11) is used for acquiring target position information of a to-be-sprayed code area in a target toothpaste box on the conveyor belt; The mechanism moving module (12) is used for moving the code spraying mechanism to a target code spraying position through a preset translation device according to the target position information, and acquiring the actual instantaneous deceleration of a spray head in the code spraying mechanism when the code spraying mechanism reaches the target code spraying position, wherein the target code spraying position is a position where the spray head can normally spray codes to the to-be-sprayed code area; the coefficient determining module (13) is used for determining a jitter influence coefficient of the spray head when the code spraying mechanism reaches the target code spraying position according to the actual instantaneous deceleration; The duration determining module (14) is used for determining the proper waiting duration from the current time to the time of starting code spraying according to the jitter influence coefficient, and acquiring the actual vertical distance from each sub-area to be sprayed in the area to be code sprayed to the spray head; And the information verification module (15) is used for determining the proper ink-jet rate of the corresponding sub-area to be sprayed according to the actual vertical distance, carrying out code-spraying processing on the area to be sprayed according to the proper ink-jet rate after the proper waiting time, verifying the information after code-spraying, and marking the target toothpaste box as a defective product when the verification is not passed.
  9. 9. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when loaded and executed by a processor, implements the method of any of claims 1-7.
  10. 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 the method of any of claims 1-7 is implemented when the computer program is loaded and executed by the processor.

Description

Nonlinear code spraying deviation rectifying method, system, storage medium and electronic equipment Technical Field The application relates to the technical field of code spraying, in particular to a nonlinear code spraying deviation rectifying method, a nonlinear code spraying deviation rectifying system, a storage medium and electronic equipment. Background The code spraying refers to the process of spraying production date, batch number, bar code, two-dimensional code or text pattern on the surface of the product package or object. The special code spraying device (code spraying mechanism) is utilized to spray ink drops on the surface of an object in a non-contact mode to form identification information, and the most common code spraying scene is to spray codes on the area of the surface of the toothpaste box, which needs to spray codes. The code spraying deviation correction is a process of automatically detecting and correcting deviations of the relative positions of the spray head and the area needing code spraying due to mechanical vibration, vibration of a conveying belt, position deviation of a toothpaste box and the like in the code spraying process so as to ensure that the content of the code spraying accurately falls at a preset position. At present, the code spraying correction is generally carried out on a toothpaste box in a mode of acquiring the position information of the area needing code spraying on the toothpaste box in real time, then controlling the code spraying mechanism to move to the corresponding position according to the position information, and adjusting the spray head to carry out code spraying treatment on the area needing code spraying. Disclosure of Invention In order to improve the code spraying quality of a toothpaste box, the application provides a nonlinear code spraying deviation correcting method, a nonlinear code spraying deviation correcting system, a storage medium and electronic equipment. In a first aspect of the present application, a method for correcting a nonlinear code spraying deviation is provided, which specifically includes: Acquiring target position information of a to-be-sprayed code area in a target toothpaste box on a conveyor belt; according to the target position information, moving the code spraying mechanism to a target code spraying position through a preset translation device, and acquiring the actual instantaneous deceleration of a spray head in the code spraying mechanism when the code spraying mechanism reaches the target code spraying position, wherein the target code spraying position is a position where the spray head can normally spray codes to the to-be-sprayed area; Determining a jitter influence coefficient of the spray head when the code spraying mechanism reaches the target code spraying position according to the actual instantaneous deceleration; Determining a proper waiting time length from the current time to the time of starting code spraying according to the jitter influence coefficient, and acquiring the actual vertical distance from each sub-area to be sprayed in the area to be code sprayed to the spray head; and determining the proper ink-jet rate of the corresponding sub-area to be sprayed according to the actual vertical distance, performing code-spraying treatment on the area to be sprayed according to the proper ink-jet rate after the proper waiting time, checking the information after code-spraying, and marking the target toothpaste box as a defective product when the checking is failed. According to the technical scheme, reliable data support is provided for accurate movement of a code spraying mechanism by acquiring target position information of a code spraying area of a target toothpaste box, quality problems such as code spraying deviation, missing spraying and the like caused by positioning deviation of the code spraying area are effectively avoided, accuracy of the code spraying position is guaranteed, the code spraying mechanism is moved to an adaptive target code spraying position by a preset translation device, actual instantaneous deceleration when a spray head reaches the position is acquired in real time, jitter influence coefficient of the spray head is determined by combining the actual instantaneous deceleration, proper waiting time between the current time and the beginning of code spraying is determined in a targeted manner, quality defects such as code spraying blurring and pen breakage caused by jitter generated by movement deceleration of the spray head can be effectively avoided, meanwhile, proper ink spraying rate of each code spraying sub-area to the spray head is correspondingly determined, the problems such as uneven code spraying concentration and deformation under different distances are solved, consistency and the quality of the spray head is further improved, the quality of the toothpaste box is comprehensively checked by the fact that the code spraying is not marked by the target toothpas