Printer step calibration debugging method, device and storage medium

By using calibration card and camera in the printer for automatic image processing, the relationship between image coordinates and calibration card is established, and the problems of low calibration efficiency and poor consistency of printer stepper motors in the prior art are solved, and high-precision and efficient automatic Calibration meets the requirements of modern printing technology for high efficiency and high accuracy.

CN118665053BActive Publication Date: 2025-01-07GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410956895.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2025-01-07
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The existing stepper motor calibration methods rely on manual operations, are inefficient and susceptible to human errors, lack of standardization and automation, making it difficult to ensure the repeatability and consistency of calibration results, especially in large-scale production and multi-batch printing operations. middle.

Method used

By setting up the calibration card and the camera, the camera collects the calibration card images, establishes the coordinate relationship between the image coordinates and the calibration card, and combines image processing technology to obtain the translation distance, realizes automatic calibration of the printer, reducing manual participation and cost.

Benefits of technology

The calibration process is automated and standardized, the calibration accuracy and efficiency are improved, the consistency and high-quality output between different printer models are ensured, manual input errors are reduced, and the reliability and repetition of the calibration process is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118665053B_ABST
    Figure CN118665053B_ABST
Patent Text Reader

Abstract

The invention discloses a printer step calibration and debugging method, equipment and storage medium; the method comprises S1, placing a calibration card on a printing platform and placing it at the center of a camera; S2, taking photos by aligning a camera with the position of the calibration card, inputting the image into a calibration calculation interface of a visual algorithm after taking photos, and establishing a coordinate relationship between the image coordinates and the calibration card; S3, paper movement on the printing platform, continuously photographing the paper surface by a camera, and then inputting the photographed image into a normalized correlation coefficient matching algorithm; S4, providing the paper feed X-axis and Y-axis movement vectors and physical distance information to the printer by calculating the difference and translation distance of continuous images; the invention sets a calibration card and a camera, uses the camera to collect the image of the calibration card, establishes a coordinate relationship between the image coordinates and the calibration card, then obtains the image after the paper moves, and obtains the translation distance through image processing, thereby realizing automatic calibration of the printer and improving detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of printers, and in particular to a printer step calibration and debugging method, equipment and storage medium. Background Art

[0002] In modern printing technology, accurate calibration of printer stepper motors is key to ensuring print quality and equipment performance. However, existing calibration methods mainly rely on manual operation and empirical judgment by debuggers, which is not only inefficient but also susceptible to human errors. Due to the diversity of printer models and functions, traditional calibration methods are unable to adapt to different models and respond quickly to market demands. The manual calibration process lacks standardization and automation, making it difficult to ensure the repeatability and consistency of calibration results, which is particularly prominent in large-scale production and multi-batch printing jobs. Summary of the invention

[0003] The purpose of the present invention is to provide a method, device and storage medium for step calibration and debugging of a printer. By setting a calibration card and a camera, the camera is used to capture the image of the calibration card, and the coordinate relationship between the image coordinates and the coordinates of the calibration card is established. Then, the image after the paper is moved is obtained, and the translation distance is obtained through image processing, thereby realizing automatic calibration of the printer without manual participation, improving detection efficiency and reducing costs.

[0004] The purpose of the present invention can be achieved through the following technical solutions:

[0005] The present application provides a printer step calibration debugging method, comprising the following steps:

[0006] S1. Place the calibration card on the printing platform and in the center of the camera.

[0007] S2, take a picture by aiming the camera at the position of the calibration card, and input the image into the calibration calculation interface of the visual algorithm after taking the picture, and establish the coordinate relationship between the image coordinates and the calibration card coordinates;

[0008] S3, the paper on the printing platform moves, the paper surface is continuously photographed by a camera, and the photographed images are input into a normalized correlation coefficient matching algorithm;

[0009] S4. By calculating the difference and translation distance of the continuous images, the paper feed X-axis and Y-axis movement vectors and the physical distance information are provided to the printer.

[0010] Furthermore, it also includes: S5, by analyzing the grayscale difference on the surface of multiple frames of pictures, calculating the pixel distance of the grayscale difference change between the upper and lower frames; S6, converting the detected pixel distance into physical coordinates through the coordinate mapping relationship calculated by the calibration step, and converting it into the actual moving distance.

[0011] Furthermore, before executing S1, it includes selecting a printer type and determining a parameter configuration file corresponding to the printer according to the selected printer type, and by loading the parameter configuration file, obtaining calibration card size data, calibration card color data, calibration card pattern data, and calibration card placement angle data in the parameter configuration file.

[0012] Furthermore, before determining the parameter configuration file corresponding to the printer, the debugging personnel selects the corresponding printer type through the setting interface; or identifies the printer type by reading the printer serial number.

[0013] Furthermore, a calibration card is made according to the calibration card size data in the parameter configuration file, and then the calibration card is placed on the printing platform so that the calibration card is located in the center in front of the camera and the pattern on the calibration card is in a horizontal state.

[0014] Furthermore, S2 also includes:

[0015] Rotate the captured calibration card image to obtain a rotated calibration card image;

[0016] Using a corner point extraction algorithm to extract at least one corner point from the calibration card image before rotation and the calibration card image after rotation;

[0017] Calculate the correspondence between each extracted corner point;

[0018] According to the correspondence between each extracted corner point, the rotation angle of the calibration card image is calculated;

[0019] The position deviation of the calibration card image is corrected using the calculated rotation angle of the calibration card image.

[0020] Furthermore, before S3, it also includes:

[0021] S11, preprocessing the first paper surface image to obtain a binary image of the first paper surface image, and executing S3 to S4 to obtain a first translation distance;

[0022] S12, preprocessing the captured second paper surface image to obtain a binary image of the second paper surface image; executing S3 to S4 to obtain a second translation distance;

[0023] S13, calculating the difference between the first translation distance and the second translation distance as the final translation distance; wherein the time interval between the first paper surface image and the second paper surface image is less than a threshold time interval.

[0024] Furthermore, after S3, it also includes:

[0025] S14, if the grayscale variances of two adjacent paper surface images are both greater than the grayscale variance threshold, it is considered that the current paper surface image belongs to a normal paper surface image; if the grayscale variances of two adjacent paper surface images are both less than or equal to the grayscale variance threshold, it is considered that the current paper surface image does not belong to a normal paper surface image;

[0026] S15. When the translation distance is greater than the preset distance, the printer is controlled to stop printing; when the translation distance is less than or equal to the preset distance, the printer continues printing.

[0027] A printer step calibration and debugging device comprises a processor, a memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the steps of the printer step calibration and debugging method are implemented.

[0028] A storage medium stores computer program instructions, which implement the above-mentioned printer step calibration and debugging method steps when the computer program instructions are executed by a processor.

[0029] The beneficial effects of the present invention are:

[0030] By automatically identifying the printer type and loading the corresponding parameter configuration file, this method realizes the automation of the calibration process. This automation not only reduces the errors of manual input, but also ensures the consistency and standardization of calibration between different printer models. The precise production and standardized placement of the calibration card further enhances the reliability and repeatability of the calibration process.

[0031] The use of advanced image processing technology and visual algorithms can accurately capture and process the calibration card image. Through corner point extraction and rotation correction, the position deviation of the calibration card image is automatically calculated and corrected. The application of continuous shooting and normalized correlation coefficient matching algorithm makes the measurement of paper movement more accurate, significantly improving the accuracy and efficiency of calibration.

[0032] Through grayscale variance analysis, real-time monitoring of printed image quality is achieved. Only when the image quality meets the preset standard will the printing job continue, thus ensuring the printing quality. In addition, when the detected translation distance exceeds the preset threshold, the printer can be automatically controlled to stop printing, avoiding the occurrence of printing errors and further strengthening the control of printing quality. It not only improves the accuracy and efficiency of the printer step calibration, but also ensures the high-quality output of the printing job through intelligent control strategies, meeting the dual requirements of modern printing technology for high efficiency and high precision. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings.

[0034] Figure 1A flowchart of a printer step calibration and debugging method provided in Example 1 of the present application;

[0035] Figure 2 This is a flowchart of image processing and translation distance calculation for a printer step calibration and debugging method provided in Example 1 of the present application. DETAILED DESCRIPTION

[0036] In order to further explain the technical means and effects taken by the present invention to achieve the predetermined invention purpose, exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of methods and systems consistent with some aspects of the present application as detailed in the attached claims.

[0037] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0038] The specific implementation methods, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0039] Example 1

[0040] See also Figure 1-Figure 2 The present embodiment provides a method, device and storage medium for printer step calibration and debugging. By setting a calibration card and a camera, the camera is used to capture the image of the calibration card, and the relationship between the image coordinates and the coordinates of the calibration card is established. Then, the image after the paper is moved is obtained, and the translation distance is obtained through image processing, thereby realizing automatic calibration of the printer without manual intervention, improving detection efficiency and reducing costs.

[0041] The present invention provides a printer step calibration and debugging method, comprising the following steps:

[0042] S1. Place the calibration card on the printing platform and in the center of the camera.

[0043] Before executing S1, it includes selecting a printer type and determining a parameter configuration file corresponding to the printer according to the selected printer type. By loading the parameter configuration file, the calibration card size data, calibration card color data, calibration card pattern data, and calibration card placement angle data in the parameter configuration file are obtained.

[0044] The method also includes that before determining the parameter configuration file corresponding to the printer, the debugging personnel selects the corresponding printer type through the setting interface; or identifies the printer type by reading the printer serial number.

[0045] More specifically, a calibration card is made according to the calibration card size data in the parameter configuration file, and then the calibration card is placed on the printing platform so that the calibration card is located in the center in front of the camera and the pattern on the calibration card is in a horizontal state.

[0046] By automatically selecting or identifying the printer type and loading the corresponding parameter configuration file, this method ensures the precise production and standardized placement of the calibration card, thereby achieving high consistency and accuracy in the calibration process. It not only reduces human operating errors, but also improves calibration efficiency, optimizes calibration quality, ensures the reliability and repeatability of the printer step calibration, and lays a solid foundation for subsequent image processing and precise calibration.

[0047] S2, take a picture by aiming the camera at the position of the calibration card, and input the image into the calibration calculation interface of the visual algorithm after taking the picture, and establish the coordinate relationship between the image coordinates and the calibration card coordinates;

[0048] Wherein step S2 also includes:

[0049] Rotate the captured calibration card image to obtain a rotated calibration card image;

[0050] Using a corner point extraction algorithm to extract at least one corner point from the calibration card image before rotation and the calibration card image after rotation;

[0051] Calculate the correspondence between each extracted corner point;

[0052] Specifically, for each pair of matching corner points P i and P' i , record their coordinates:

[0053] P i =(x i1 ,y i1 ), P′ i =(x i2 ,y i2 ), where (x i1 ,y i1 ) is the coordinate of the corner point before rotation, (x i2 ,y i2 ) are the coordinates of the corner point after rotation.

[0054] According to the correspondence between each extracted corner point, the rotation angle of the calibration card image is calculated;

[0055] The position deviation of the calibration card image is corrected using the calculated rotation angle of the calibration card image.

[0056] The specific rotation angle is expressed as: Where n means there are n pairs of matching corner points, (x 1 ,y 1 ) and (x 2 ,y 2 ) are the coordinates of the corresponding corner points before and after the rotation.

[0057] Correct the position deviation of the calibration card image, which is specifically expressed as:

[0058] Convert the rotation angle θ into a rotation matrix R;

[0059]

[0060] For each corner point P′ after rotation i , use the rotation matrix R to correct its position, the specific correction formula is;

[0061] P″ i =R·(P′ i -C)+C

[0062] Where C = (X c , Y c ) is the coordinate of the center of mass, P″ i is the corrected position.

[0063] The specific centroid coordinates are expressed as;

[0064]

[0065] Through precise image capture and advanced visual algorithm processing, an accurate correspondence between image coordinates and calibration card coordinates is successfully established. This first involves precise shooting and rotation correction of the calibration card image, and then the corner points in the image before and after rotation are identified and matched through the corner point extraction algorithm. The rotation angle of the calibration card image is calculated using the coordinate differences of these corner point pairs. Subsequently, the rotation angle is converted into a rotation matrix to correct the position deviation of each corner point, ensuring that the calibration card image is accurately aligned with the actual coordinates after rotation. Finally, by calculating the average center of mass coordinates of all corner points, the precise correction of the calibration card image position is achieved, thereby providing an accurate visual reference for the printer step calibration, significantly improving the efficiency and accuracy of the calibration process.

[0066] S3, the paper on the printing platform moves, the paper surface is continuously photographed by a camera, and the photographed images are input into a normalized correlation coefficient matching algorithm;

[0067] Specifically, the camera continuously captures images I and J of the paper surface and calculates the normalized correlation coefficient between them to find the best matching area, which is expressed as:

[0068]

[0069] in, and are the average grayscale values ​​of images I and J respectively.

[0070] By calculating the NCC values ​​of I and J under different translation states, find the translation (dx, dy) that maximizes the NCC value, which represents the best matching position of J relative to I;

[0071] Based on the best matching position (dx, dy), calculate the translation distance between the two images.

[0072] Before S3, it also included image processing and translation distance calculation, which was specifically expressed as:

[0073] S11, preprocessing the first paper surface image to obtain a binary image of the first paper surface image, and executing S3 to S4 to obtain a first translation distance;

[0074] S12, preprocessing the captured second paper surface image to obtain a binary image of the second paper surface image; executing S3 to S4 to obtain a second translation distance;

[0075] S13, calculating the difference between the first translation distance and the second translation distance as the final translation distance; wherein the time interval between the first paper surface image and the second paper surface image is less than a threshold time interval.

[0076] After step S3, the method further includes:

[0077] S14, if the grayscale variances of two adjacent paper surface images are both greater than the grayscale variance threshold, it is considered that the current paper surface image belongs to a normal paper surface image; if the grayscale variances of two adjacent paper surface images are both less than or equal to the grayscale variance threshold, it is considered that the current paper surface image does not belong to a normal paper surface image;

[0078] S15. When the translation distance is greater than the preset distance, the printer is controlled to stop printing; when the translation distance is less than or equal to the preset distance, the printer continues printing.

[0079] By continuously photographing the paper movement and applying the normalized correlation coefficient matching algorithm, combined with the preprocessing steps and the analysis of grayscale variance, this method achieves accurate measurement and control of the paper movement on the printing platform. First, the binary image obtained through preprocessing ensures the efficiency and accuracy of the algorithm, and then the final translation distance is obtained by calculating the translation distance difference between two consecutive images. In addition, by comparing the grayscale variance, the system can determine whether the image on the paper surface is normal, thereby ensuring that the printer will continue to perform the printing task only when the image quality meets the requirements. When the detected translation distance exceeds the preset threshold, the system will automatically stop printing to avoid errors, and when the translation distance is within the allowable range, the printing job will continue, thereby achieving strict monitoring and control of the printing quality.

[0080] S4. By calculating the difference and translation distance of the continuous images, the paper feed X-axis and Y-axis movement vectors and the physical distance information are provided to the printer.

[0081] The method further includes: S5, calculating the pixel distance of the grayscale difference change between the upper and lower frames by analyzing the grayscale difference of the surfaces of the multiple frames of the image;

[0082] Specifically,

[0083] S6, converting the detected pixel distance into physical coordinates through the coordinate mapping relationship calculated in the calibration step, and converting the image coordinates into actual moving distance;

[0084]

[0085] Furthermore, through the unified debugging method, the debugging personnel only need to uniformly fix the installation position of the camera on the printer, eliminating the step of motor calibration and reducing the technical requirements for the debugging personnel.

[0086] A printer step calibration and debugging device comprises a processor, a memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the steps of the printer step calibration and debugging method are implemented.

[0087] A storage medium stores computer program instructions, which implement the above-mentioned printer step calibration and debugging method steps when the computer program instructions are executed by a processor.

[0088] This printer step calibration and debugging method realizes efficient calibration of the moving accuracy of the printer printing platform through a series of automated and precise steps. By automatically selecting or identifying the printer type and loading the corresponding parameter configuration file, it ensures the accurate production and standardized placement of the calibration card, laying a solid foundation for the calibration process. Next, the camera is used to shoot the calibration card, and the image is processed by the visual algorithm to establish an accurate correspondence between the image coordinates and the calibration card coordinates. In this process, the system performs rotation correction on the image, and matches the corner points before and after the rotation through the corner point extraction algorithm, calculates the rotation angle of the calibration card image, and uses this angle to correct the image position deviation to ensure the accurate alignment of the calibration card image with the actual coordinates.

[0089] Subsequently, the paper's translation distance is accurately measured by continuously photographing the moving paper surface and using the normalized correlation coefficient matching algorithm. The preprocessing step converts the image into a binary image to improve the efficiency and accuracy of the matching algorithm. By comparing the grayscale variance of two consecutive images, it is determined whether the paper surface image is normal, and the printer's printing behavior is controlled accordingly to achieve strict monitoring of the printing quality.

[0090] Finally, by analyzing the grayscale differences on the surfaces of multiple frames of images, calculating the pixel distance, and converting the image coordinates into physical coordinates through a calibration step, and then converting them into actual moving distances, the printer is provided with accurate paper feed X, Y axis movement vectors and physical distance information. The unified debugging method simplifies the calibration process, reduces the technical requirements for debugging personnel, and improves the operability and accuracy of calibration.

[0091] In summary, this method realizes the automation and precision of printer step calibration through precise image processing and intelligent algorithms, significantly improving the calibration efficiency and printing quality of the printer. At the same time, it simplifies the operation process and lowers the technical threshold. It has broad application value and market prospects.

[0092] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A printer step calibration and debugging method, characterized in that: The steps include: S1. Place the calibration card on the printing platform and in the center of the camera; S2, take a picture by aiming the camera at the position of the calibration card, and input the image into the calibration calculation interface of the visual algorithm after taking the picture, and establish the coordinate relationship between the image coordinates and the calibration card coordinates; S3, the paper on the printing platform moves, the paper surface is continuously photographed by a camera, and the photographed images are input into a normalized correlation coefficient matching algorithm; S4. By calculating the difference and translation distance of the continuous images, the paper feed X-axis and Y-axis movement vectors and the physical distance information are provided to the printer.

2. A printer step calibration and debugging method according to claim 1, characterized in that: Also includes: S5, by analyzing the grayscale difference of the surfaces of multiple frames of images, calculating the pixel distance of the grayscale difference change between the upper and lower frames; S6. The detected pixel distance is converted into physical coordinates by using the coordinate mapping relationship calculated in the calibration step, and then converted into the actual moving distance.

3. A printer step calibration and debugging method according to claim 1, characterized in that: Before executing S1, it includes selecting a printer type and determining a parameter configuration file corresponding to the printer according to the selected printer type. By loading the parameter configuration file, the calibration card size data, calibration card color data, calibration card pattern data, and calibration card placement angle data in the parameter configuration file are obtained.

4. A printer step calibration and debugging method according to claim 3, characterized in that: Before determining the parameter configuration file corresponding to the printer, the debugging personnel selects the corresponding printer type through the setting interface; Or identify the printer type by reading the printer serial number.

5. A printer step calibration and debugging method according to claim 3, characterized in that: Make a calibration card according to the calibration card size data in the parameter configuration file, and then place the calibration card on the printing platform so that the calibration card is located in the center in front of the camera and the pattern on the calibration card is in a horizontal state.

6. A printer step calibration and debugging method according to claim 1, characterized in that: S2 also includes: Rotate the captured calibration card image to obtain a rotated calibration card image; Using a corner point extraction algorithm to extract at least one corner point from the calibration card image before rotation and the calibration card image after rotation; Calculate the correspondence between each extracted corner point; According to the correspondence between each extracted corner point, the rotation angle of the calibration card image is calculated; The position deviation of the calibration card image is corrected using the calculated rotation angle of the calibration card image.

7. A printer step calibration and debugging method according to claim 1, characterized in that: Prior to S3, this also included: S11, preprocessing the first paper surface image to obtain a binary image of the first paper surface image, and executing S3 to S4 to obtain a first translation distance; S12, preprocessing the captured second paper surface image to obtain a binary image of the second paper surface image; executing S3 to S4 to obtain a second translation distance; S13, calculating the difference between the first translation distance and the second translation distance as the final translation distance; wherein the time interval between the first paper surface image and the second paper surface image is less than a threshold time interval.

8. A printer step calibration and debugging method according to claim 1, characterized in that: After S3, it also includes: S14, when the grayscale variances of two adjacent paper surface images are both greater than the grayscale variance threshold, it is considered that the current paper surface image belongs to a normal paper surface image; when the grayscale variances of two adjacent paper surface images are both less than or equal to the grayscale variance threshold, it is considered that the current paper surface image does not belong to a normal paper surface image; S15. When the translation distance is greater than the preset distance, the printer is controlled to stop printing; when the translation distance is less than or equal to the preset distance, the printer continues printing.

9. A printer step calibration and debugging device, characterized in that: The invention comprises a processor, a memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, a printer step calibration and debugging method as described in any one of claims 1 to 8 is implemented.

10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by the processor, a printer step calibration and debugging method as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Steel coil positioning method and device based on vision

    CN109493313A

  • Optical calibration method of 3D printer and optical calibration system of 3D printer

    CN111899308A