Search

CN-117124730-B - Automatic spray head calibration method, device, equipment and medium based on machine vision

CN117124730BCN 117124730 BCN117124730 BCN 117124730BCN-117124730-B

Abstract

The invention discloses an automatic spray head calibration method, device, equipment and medium based on machine vision, and relates to the technical field of inkjet printing. According to the method, the second calibration chart on the printing medium is acquired by utilizing the image acquisition device to obtain the third calibration chart, then the spray head channel information and the calibration information which need to be calibrated are automatically identified through the machine vision technology, the printer control system can automatically complete various spray head calibration works according to the information, manual participation is not needed, time and labor are saved, and the automatic spray head calibration by utilizing the machine vision is more accurate and higher in efficiency compared with a manual calibration mode.

Inventors

  • PENG DAIZHONG
  • CHEN YAN

Assignees

  • 深圳市汉森软件股份有限公司

Dates

Publication Date
20260512
Application Date
20220518

Claims (13)

  1. 1. A machine vision-based automatic spray head calibration method, the method comprising: The method comprises the steps of obtaining a first calibration chart, and carrying out different types of spray head calibration by setting different first detection parts in the different first calibration charts, wherein the first calibration chart comprises a first reference identification part and a first calibration identification part at the same time, and the corresponding first detection part comprises a first reference part and a first calibration part at the same time, or the first calibration chart comprises only the first reference identification part and no first calibration identification part, and the corresponding first detection part comprises only the first reference part, and the first calibration chart comprises only the first reference identification part and the first reference part, wherein the first reference identification part is used for identifying first spray head channel information, the first calibration identification part is used for identifying second spray head channel information, the first spray head channel information is information of a first spray head channel for printing the first reference part, and the second spray head channel information is information of a second spray head channel for printing the first calibration part, and the first spray head channel information and the second spray head channel information are the same or different; Printing the first calibration graph on a printing medium to obtain a second calibration graph; The image acquisition device is controlled to acquire the second calibration chart to obtain a third calibration chart, wherein the third calibration chart comprises a third detection part, a third reference identification part and a third calibration identification part which correspond to the first detection part, the first reference identification part and the first calibration identification part; Acquiring the first nozzle channel information and the second nozzle channel information according to the third reference identification part and the third calibration identification part; Acquiring calibration information according to the third detection part; and performing nozzle calibration according to the calibration information, the first nozzle channel information and the second nozzle channel information.
  2. 2. A machine vision-based automatic spray head calibration method, the method comprising: The method comprises the steps of obtaining a first calibration chart, and carrying out different types of spray head calibration by setting different first detection parts in the different first calibration charts, wherein the first calibration chart comprises a first reference identification part and a first calibration identification part at the same time, and the corresponding first detection part comprises a first reference part and a first calibration part at the same time, or the first calibration chart comprises only the first reference identification part and no first calibration identification part, and the corresponding first detection part comprises only the first reference part, and the first calibration chart comprises only the first reference identification part and the first reference part, wherein the first reference identification part is used for identifying first spray head channel information, the first calibration identification part is used for identifying second spray head channel information, the first spray head channel information is information of a first spray head channel for printing the first reference part, and the second spray head channel information is information of a second spray head channel for printing the first calibration part, and the first spray head channel information and the second spray head channel information are the same or different; Printing the first calibration graph on a printing medium to obtain a second calibration graph; The image acquisition device is controlled to acquire the second calibration chart to obtain a third calibration chart, wherein the third calibration chart comprises a third detection part and a third reference mark part corresponding to the first detection part and the first reference mark part; Acquiring the first nozzle channel information according to the third reference mark part; Acquiring calibration information according to the third detection part; and performing nozzle calibration according to the calibration information and the first nozzle channel information.
  3. 3. The machine vision based auto-head calibration method of claim 1, wherein performing head calibration based on the calibration information, the first head channel information, and the second head channel information comprises: And transmitting the calibration information, the first nozzle channel information and the second nozzle channel information to a printer control system, and driving the printer control system to calibrate the first nozzle channel and the second nozzle channel according to the calibration information.
  4. 4. The machine vision based auto-head calibration method of claim 2, wherein said head calibration based on said calibration information and said first head channel information comprises: And sending the calibration information and the first nozzle channel information to a printer control system, and driving the printer control system to calibrate the first nozzle channel according to the calibration information.
  5. 5. The machine vision-based automatic spray head calibration method according to claim 1, wherein the first detection part comprises a plurality of first sub-detection parts, each first sub-detection part comprises a first reference part and a first calibration part, calibration parameters are marked nearby each first sub-detection part, the third detection part comprises a plurality of third sub-detection parts, each third sub-detection part comprises a third reference part and a third calibration part, and calibration parameters are marked nearby each third sub-detection part.
  6. 6. The machine vision-based automatic spray head calibration method according to claim 2, wherein the first detection part comprises a plurality of first sub-detection parts, each first sub-detection part comprises a first reference part, calibration parameters are marked nearby each first sub-detection part, the third detection part comprises a plurality of third sub-detection parts correspondingly, each third sub-detection part comprises a third reference part, and calibration parameters are marked nearby each third sub-detection part.
  7. 7. The machine vision based automatic spray head calibration method according to claim 6, wherein the spray head calibration is spray head pitch calibration, the third calibration chart includes a plurality of third detection portions and corresponding third reference identification portions thereof, and the obtaining calibration information for performing spray head calibration according to the third detection portions includes: identifying the third detection part corresponding to the third reference identification part according to the third reference identification part; acquiring a specified point in each third detection part; And calculating the distance between the specified points in the third detection parts in the X direction and the Y direction, and acquiring the calibration information of the nozzle calibration.
  8. 8. The machine vision based automatic head calibration method according to claim 5, wherein the head calibration is any one of a step calibration, a head lateral pitch calibration, a head longitudinal pitch calibration, a vertical calibration, a bidirectional calibration, and a color registration calibration, and the calibration information for performing the head calibration is acquired according to the third detection section: Identifying the third detection part corresponding to the third reference identification part and the third calibration identification part according to the third reference identification part and the third calibration identification part; a third sub-detection part which meets the preset condition in the third detection part is acquired and is marked as a third reference sub-detection part; and identifying the calibration parameters corresponding to the third reference sub-detection part, and acquiring the calibration information.
  9. 9. The machine vision-based automatic head calibration method according to claim 8, wherein the obtaining a third sub-detection section satisfying a preset condition among the third detection sections, denoted as a third reference sub-detection section, includes: acquiring the initial position of a third reference part and a third calibration part in the third sub-detection part; comparing the coordinate value of the starting position of the third reference part in the X direction and/or the coordinate value of the starting position of the third calibration part in the Y direction; And when the difference value between the third reference part in the third sub-detection part and the coordinate value of the starting position of the third calibration part in the X direction and/or the coordinate value in the Y direction is smaller than or equal to a preset transverse threshold value and/or a preset longitudinal threshold value, the third sub-detection part is marked as a third reference sub-detection part.
  10. 10. An automatic spray head calibration device based on machine vision, the device comprising: The system comprises a calibration chart acquisition module, a calibration chart acquisition module and a control module, wherein the calibration chart acquisition module is used for acquiring a first calibration chart, and performing different types of spray head calibration by setting different first detection parts in different first calibration charts, wherein the first calibration chart simultaneously comprises a first reference identification part and a first calibration identification part, the corresponding first detection part simultaneously comprises a first reference part and a first calibration part, or the first calibration chart only comprises a first reference identification part and no first calibration identification part, the corresponding first detection part also only comprises a first reference part, the first calibration chart only comprises a first reference identification part and a first reference part, wherein the first reference identification part is used for identifying first spray head channel information, the first calibration identification part is used for identifying second spray head channel information, the first spray head channel information is information of a first spray head channel for printing the first reference part, and the second spray head channel information is information of a second spray head channel for printing the first calibration part, and the first spray head channel information is the same or different; the calibration graph printing module is used for printing the first calibration graph on a printing medium to obtain a second calibration graph; the image acquisition module is used for controlling the image acquisition device to acquire the second calibration graph to obtain a third calibration graph, and the third calibration graph comprises a third detection part, a third reference identification part and a third calibration identification part which correspond to the first detection part, the first reference identification part and the first calibration identification part; The spray head channel information acquisition module acquires the first spray head channel information and the second spray head channel information according to the third reference identification part and the third calibration identification part; the spray head calibration information acquisition module is used for acquiring calibration information according to the third detection part; and the spray head calibration module is used for carrying out spray head calibration according to the calibration information, the first spray head channel information and the second spray head channel information.
  11. 11. An automatic spray head calibration device based on machine vision, the device comprising: The system comprises a calibration chart acquisition module, a calibration chart acquisition module and a control module, wherein the calibration chart acquisition module is used for acquiring a first calibration chart, and performing different types of spray head calibration by setting different first detection parts in different first calibration charts, wherein the first calibration chart simultaneously comprises a first reference identification part and a first calibration identification part, the corresponding first detection part simultaneously comprises a first reference part and a first calibration part, or the first calibration chart only comprises a first reference identification part and no first calibration identification part, the corresponding first detection part also only comprises a first reference part, the first calibration chart only comprises a first reference identification part and a first reference part, wherein the first reference identification part is used for identifying first spray head channel information, the first calibration identification part is used for identifying second spray head channel information, the first spray head channel information is information of a first spray head channel for printing the first reference part, and the second spray head channel information is information of a second spray head channel for printing the first calibration part, and the first spray head channel information is the same or different; the calibration graph printing module is used for printing the first calibration graph on a printing medium to obtain a second calibration graph; The image acquisition module is used for controlling the image acquisition device to acquire the second calibration chart to obtain a third calibration chart, and the third calibration chart comprises a third detection part and a third reference identification part which correspond to the first detection part and the first reference identification part; the nozzle channel information acquisition module is used for acquiring the first nozzle channel information according to the third reference identification part; the spray head calibration information acquisition module is used for acquiring calibration information according to the third detection part; And the spray head calibration module is used for carrying out spray head calibration according to the calibration information and the first spray head channel information.
  12. 12. An inkjet printing apparatus comprising at least one processor, at least one memory and computer program instructions stored in the memory, which when executed by the processor, implement the method according to any one of claims 1-9.
  13. 13. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-9.

Description

Automatic spray head calibration method, device, equipment and medium based on machine vision Technical Field The present invention relates to the field of inkjet printing technologies, and in particular, to a machine vision-based automatic nozzle calibration method, apparatus, device, and medium. Background In practical production application, in order to improve printing output and printing efficiency, more and more splicing sprayers are used in the way of splicing sprayers, as shown in fig. 1, in order to improve the output of primary printing, splice a plurality of sprayers in the Y direction or the longitudinal direction, and in order to improve the precision of primary printing, splice a plurality of sprayers in the X direction or the transverse direction in a staggered manner, and the existing sprayers are manually installed and fixed, so that the installation error is larger, the problems of inclination of the sprayer installation, inaccurate installation distance and the like often occur, and the final printed image has deviation. Furthermore, in order to improve the printing precision and printing efficiency, the reciprocating scanning technology is often adopted to perform ink-jet printing, the spray head is scanned and printed back and forth along the X direction in the printing process, and the spray head and the printing medium are moved for a certain stepping distance along the Y direction between Pass scanning, so that the printing with high precision and large breadth is performed alternately, however, due to the structures of the stepping motor and the machine, the problems of inaccurate stepping, uneven left and right reciprocating printing positions, inaccurate color registration and the like often exist. Current methods for solving the above problems perform the calibration of the spray head by printing a calibration chart, where the calibration of the spray head often includes step calibration, spray head pitch calibration, lateral pitch calibration, longitudinal pitch calibration, vertical calibration, bidirectional calibration, color registration calibration, and the like. The step calibration is to calibrate the step offset of the spray heads in the reciprocating scanning printing, the spray head interval calibration is to calibrate the distance between the spray heads in the transverse direction and the longitudinal direction, the accurate calibration is to calibrate by the calibration modes such as the transverse interval calibration, the longitudinal interval calibration and the like, the vertical calibration is used for calibrating whether the spray heads are vertical to the printing direction, the two-way calibration criterion is to calibrate whether the printing positions of the spray head channels are consistent in the reciprocating scanning process, and the printing positions of the different color channels are consistent in the scanning process when the color correction criterion is used. In the prior art, calibration parameters are often obtained by printing a calibration chart and then manually identifying, but the calibration chart is complex and needs more parameters to be set, and the manual identifying mode has large error, inaccuracy and low efficiency. Disclosure of Invention In view of the above, the embodiments of the present invention provide a method, an apparatus, a device, and a medium for calibrating an automatic nozzle based on machine vision, so as to solve the problems of large nozzle calibration error and low efficiency in the prior art. In a first aspect, an embodiment of the present invention provides a machine vision-based automatic spray head calibration method, where the method includes: Acquiring a first calibration chart, wherein the first calibration chart at least comprises a first detection part, a first reference identification part and/or a first calibration identification part, the first detection part comprises a first reference part and/or a first calibration part, the first reference identification part is used for identifying first nozzle channel information, the first calibration identification part is used for identifying second nozzle channel information, the first nozzle channel information is information of a first nozzle channel for printing the first reference part, the second nozzle channel information is information of a second nozzle channel for printing the first calibration part, and the first nozzle channel information and the second nozzle channel information are the same or different; Printing the first calibration graph on a printing medium to obtain a second calibration graph; The image acquisition device is controlled to acquire the second calibration chart to obtain a third calibration chart, wherein the third calibration chart comprises a third detection part, a third reference identification part and/or a third calibration identification part corresponding to the first detection part, the first reference identificatio