A method, device and storage medium for detecting nozzle breakage during printing

Through customized detection patterns and visual algorithm processing, the problem of broken nozzles of inkjet printers is detected in real time, which solves the production stagnation and material waste caused by manual detection, and improves printing quality and efficiency.

CN117341364BActive Publication Date: 2024-10-18GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311459738.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2024-10-18
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

Existing inkjet printers require manual operation when detecting nozzle clogging or needle distortion, resulting in production stagnation, material waste and time consumption, and affecting the quality of printed matter.

Method used

Using customized detection patterns, visual algorithm processing and broken needle detection methods, nozzle broken needles are detected in real time through camera shooting and image processing, and feedback is provided to improve printing quality and production efficiency.

Benefits of technology

It reduces the waste of printing materials, realizes real-time detection and feedback, avoids manual intervention, and improves the quality and production efficiency of printed matter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117341364B_ABST
    Figure CN117341364B_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and storage medium for detecting nozzle needle breakage during printing, and relates to the technical field of digital printing; the method comprises the following steps: S1: making a customized detection pattern for production printing; S2: printing the detection pattern during production, and printing the prepared detection pattern and the target pattern simultaneously; S3: photographing the detection pattern by a camera; S4: straightening and segmenting the detection pattern by a visual algorithm, and processing the photographed image by the visual algorithm; S5: performing needle breakage detection on each group of segmented line arrays; S6: feeding back all needle breakage information; compared with the traditional printing of large-area detection strips, the method uses a customized detection pattern with a denser arrangement and a smaller area, wastes less printing material in each needle breakage detection, and saves printing costs; the needle breakage detection result can be detected and fed back in real time during production by a visual algorithm, avoiding the need for manual operation of stopping production to check the needle breakage, and ensuring high printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of digital printing, and in particular to a method, a device and a storage medium for detecting nozzle breakage during a printing process. Background Art

[0002] Inkjet printers are commonly used printing devices in the field of printing technology, and can be divided into water-based, solid ink and liquid ink printers according to the properties of inkjet materials. Regardless of the type of inkjet printer, an inkjet head device for inkjet is indispensable. For the inkjet head of an inkjet printer, due to improper use, long-term use or no use, the nozzles of individual nozzles may become clogged or crooked, which has a great impact on the print quality of the printed product.

[0003] In the prior art, when the inkjet head is clogged or the needle is crooked, it is necessary to use a manual inspection strip to perform a nozzle inspection. After the inspection strip is manually printed, the inspection strip is observed by the naked eye to determine the nozzle clogging condition. Since the printed inspection strip occupies a large area, not only a large amount of printing materials is wasted, but each inspection also requires stopping production and repeatedly cleaning the nozzle, which consumes a lot of time. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device and storage medium for detecting nozzle needle breakage during the printing process. By making customized detection patterns, printing patterns, capturing images, visual algorithm processing, needle breakage detection and needle breakage information feedback, it can help to timely discover and solve the problem of nozzle needle breakage and improve printing quality and production efficiency.

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

[0006] The present application provides a method for detecting a broken nozzle during a printing process, comprising the following steps:

[0007] S1: Make a customized detection pattern for production printing. Create line groups according to the printer design. The upper left and lower right corners of each line group are marked with solid circles as positioning points.

[0008] S2: Printing the detection pattern during production. During the production process, the prepared detection pattern and the target pattern are printed out simultaneously;

[0009] S3: The detection pattern is photographed by a camera. The image is captured by a camera device. The image captured by the camera will be used as the input of the subsequent visual algorithm.

[0010] S4: The visual algorithm aligns and segments the detection pattern, processes the captured image through the visual algorithm, and identifies and segments the image area of ​​each line group;

[0011] S5: performing a broken needle detection on each group of divided linear arrays; performing a broken needle detection on each group of divided linear arrays;

[0012] S6: Feedback all the broken needle information, and feedback the detected broken needle information.

[0013] Preferably, according to the establishment of line groups described in step S1, the number and layout of the line groups are determined, each line group is composed of four vertically arranged line arrays, the size and position of the positioning mark points are determined, and the designed line group pattern is combined with the positioning mark points to form a complete detection pattern.

[0014] Preferably, the positioning mark point draws a solid circle with a radius of r at the corresponding position on the printing medium to determine the upper left corner and the lower right corner position of each line group.

[0015] Set the upper left corner position of each line group to (x1, y1) and the lower right corner position to (x2, y2);

[0016] Determine the relative position or spacing of each line group on the printing medium, and then calculate the coordinates of the solid circle's positioning mark point:

[0017] Set the radius of the solid circle to r and the coordinates of the positioning mark point to (cx, cy);

[0018] For the upper left corner positioning mark point, the formula for calculating its coordinates is as follows:

[0019] cx=x1+r;cy=y1+r;

[0020] For the lower right corner positioning mark point, the formula for calculating its coordinates is as follows:

[0021] cx=x2-r;cy=y2-r.

[0022] Preferably, according to the printing detection pattern described in step S2, the specific steps are as follows:

[0023] S21: Prepare the printing task, and prepare the target pattern and the detection pattern to be printed according to the production requirements and equipment settings;

[0024] S22: merging the target pattern and the detection pattern. In the print file or printer settings, the target pattern and the prepared detection pattern are merged and printed out simultaneously on the same print medium.

[0025] S23: executing the printing task, starting the printer, and printing the target pattern and the detection pattern together on the designated printing medium according to the set parameters and layout requirements.

[0026] Preferably, the visual algorithm described in step S4 locates and segments the detection bar, pre-processes the image captured by the camera, identifies, detects and locates the solid circle positioning mark point in the image through image processing technology, and then segments the image according to the position information of the positioning mark point to obtain the image area of ​​each line group, determines the boundary of each line group and segments it, and then performs angle correction on the image area of ​​each line group according to the position information of the positioning mark point so that each line group image is arranged vertically or horizontally.

[0027] Preferably, according to the broken needle detection in step S5, the detection steps are as follows:

[0028] S51: Every time the production needs to be inspected, the camera is triggered to take a photo, an image containing the inspection pattern is collected, and the image is converted into a binary image;

[0029] S52: The visual algorithm locates the circular mark point in the image and performs angle correction;

[0030] S53: After the angle of the detected image is corrected, each group of line array images is cropped according to the mark points;

[0031] S54: After the detection image is cropped, each line group is segmented according to the set number of columns, and the number of pixels that should be separated in each row of the segmented line array is calculated according to the set number of needles;

[0032] S55: using the calculated number of pixels as a judgment threshold and judging whether there is a needle breakage phenomenon or a large area of ​​needle breakage between the two lines according to the distance between the two lines;

[0033] S56: Save the position information of the Nth needle in each N groups.

[0034] Preferably, the number of pixels that should be spaced apart in each row is calculated according to step S54, wherein the calculation formula is:

[0035] Set the number of lines in each line group to N and the width of each line array to W;

[0036] Calculate the expected pixel spacing between adjacent lines in each line array: divide the width W of the line array into N-1 intervals, that is, the width of each interval is d_expected = W / (N-1);

[0037] Then, based on the expected pixel spacing between adjacent lines in each line array, calculate the number of pixels that should be spaced apart in each row: divide the expected pixel spacing d_expected in each line array by N-1 to obtain the number of pixels that should be spaced apart in each row, which is d_expected / (N-1).

[0038] Preferably, according to the judgment threshold described in step S55, the result calculated in step S54 is used as the judgment threshold.

[0039] For adjacent lines, the distance between the two lines is determined, the distance between them is calculated, and compared with the judgment threshold. If the distance between the two lines is less than the threshold, it is determined that there is a needle breakage phenomenon or a large area of ​​needle breakage;

[0040] If the distance between the two lines is greater than the judgment threshold, it is determined that there is no needle breakage phenomenon.

[0041] A device for detecting nozzle needle breakage during a printing process comprises at least one processor, at least one memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the method described is implemented.

[0042] A storage medium stores computer program instructions, which implement the above-mentioned method when the computer program instructions are executed by a processor.

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

[0044] (1) Compared with the traditional printing of large-area detection strips, this method uses a customized detection pattern with a denser arrangement and smaller area, which wastes less printing material during each broken needle detection and saves more printing costs;

[0045] (2) The visual algorithm of this method can detect and feedback the broken needle detection results in real time during production, avoiding the need for manual operation to stop production and check the broken needle, thus ensuring high printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] Figure 1 A flow chart of a method for detecting nozzle breakage during a printing process provided in Example 1 of the present application;

[0048] Figure 2 A flow chart of the printing detection pattern steps of a method for detecting a broken nozzle during a printing process provided in Example 1 of the present application;

[0049] Figure 3 A needle break detection flow chart of a method for detecting nozzle needle breakage during a printing process provided in Example 1 of the present application;

[0050] Figure 4 A flow chart of a method for detecting nozzle breakage during a printing process provided in Example 2 of the present application. DETAILED DESCRIPTION

[0051] 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.

[0052] 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.

[0053] 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.

[0054] Example 1

[0055] See also Figure 1-Figure 4 This embodiment can help timely discover and solve the problem of broken nozzle needles and improve printing quality and production efficiency by making customized detection patterns, printing patterns, shooting images, visual algorithm processing, broken needle detection and broken needle information feedback.

[0056] The present invention provides a method for detecting nozzle breakage during a printing process, comprising the following steps:

[0057] S1: Make a customized detection pattern for production printing. Create a line group according to the design of the printer. The upper left corner and lower right corner of each line group are marked with solid circles as positioning points. These positioning marks will be used for subsequent image processing and broken needle detection.

[0058] The prepared detection pattern can be printed together with the target pattern during the production process and provide positioning information to assist in subsequent camera shooting and image processing.

[0059] S2: Printing the detection pattern during production. During the production process, the prepared detection pattern and the target pattern are printed out simultaneously;

[0060] By printing the detection pattern together with the target pattern, it is possible to detect in real time whether the nozzle has a broken needle problem during the printing process.

[0061] S3: The detection pattern is photographed by the camera. The image generated during the printing process is photographed using a camera device. The image taken by the camera will be used as the input of the subsequent visual algorithm for further image processing and broken needle detection.

[0062] S4: The visual algorithm aligns and segments the detection pattern. The captured image is processed by the visual algorithm, including aligning the detection pattern and segmenting it into individual line groups. The visual algorithm can accurately identify and segment the image area of ​​each line group to prepare for subsequent broken needle detection. It can accurately identify each element in the detection pattern and prepare for subsequent broken needle detection.

[0063] S5: performing a broken needle detection on each group of divided linear arrays; performing a broken needle detection on each group of divided linear arrays;

[0064] After obtaining the segmented image elements, each group of segmented line arrays is tested for broken needles. By comparing the expected detection pattern with the actual printed pattern, it is possible to detect whether there is a broken nozzle. For example, if an abnormal or missing pattern element appears on a line array, it can be determined that the nozzle may have a broken needle problem.

[0065] S6: Feedback all broken needle information. Feedback the detected broken needle information, which can be sent to the control system or operator to timely discover and solve the broken needle problem of the nozzle.

[0066] By feeding back the broken needle information, the user or operator can timely understand the broken nozzle needle situation, which can help the user to promptly discover and solve the broken nozzle needle problem and take corresponding measures to solve the problem, thereby improving the printing quality and production efficiency.

[0067] In this embodiment, according to the establishment of line groups described in step S1, the number and layout of line groups are determined, each line group is composed of four vertically arranged line arrays, the size and position of the positioning mark points are determined, and considering the accuracy of shooting and image processing, the positioning mark points should have a sufficient size and ensure that they can be clearly visible during the printing process, and then the designed line group pattern is combined with the positioning mark points to form a complete detection pattern. Ensure that each line group has a corresponding positioning mark point and is arranged in a desired layout.

[0068] In this embodiment, the positioning mark point is to draw a solid circle with a radius of r at the corresponding position on the printing medium, which can be completed using a graphics drawing software or a drawing function provided by the printer to determine the upper left corner and the lower right corner of each line group.

[0069] Set the upper left corner position of each line group to (x1, y1) and the lower right corner position to (x2, y2).

[0070] According to the actual situation, the relative position or spacing of each line group on the printing medium can be determined in advance, and then the coordinates of the positioning mark points of the solid circle can be calculated:

[0071] Set the radius of the solid circle to r and the coordinates of the positioning mark point to (cx, cy).

[0072] For the upper left corner positioning mark point, its coordinates can be calculated by the following formula: cx = x1 + r; cy = y1 + r;

[0073] For the lower right corner positioning mark point, its coordinates can be calculated by the following formula: cx = x2-r; cy = y2-r;

[0074] Through the above process and calculation formula, solid circle positioning marks can be added to the upper left corner and lower right corner of each line group when making the detection pattern. These positioning marks can be used as reference points to help the subsequent image processing algorithm accurately identify and segment the image area of ​​each line group, and help identify and accurately measure the position and size of each line group.

[0075] In this embodiment, according to the printing detection pattern described in step S2, the specific steps are as follows:

[0076] S21: Prepare the printing task, and prepare the target pattern and the detection pattern to be printed according to the production requirements and equipment settings;

[0077] S22: merging the target pattern and the detection pattern. In the print file or printer settings, the target pattern and the prepared detection pattern are merged to ensure that they are printed out on the same print medium at the same time. The pattern merging can be completed through image processing software or a function provided by the printer.

[0078] S23: Execute the printing task, start the printer, and execute the prepared printing task. The printer will print the target pattern and the detection pattern together on the designated printing medium according to the set parameters and layout requirements.

[0079] Compared with the traditional large-area detection strip, this method uses a more dense and smaller customized detection pattern. This means that less printing material is required for each broken needle detection, and the customized detection pattern can be compactly arranged on the print medium without taking up too much space; when making the detection pattern, the line group is established according to the design of the printer, and the position and size of each line group are determined. By reasonably designing the layout of the line group, the spacing between the line groups is small, so that less printing material is required for each broken needle detection.

[0080] In this embodiment, the visual algorithm described in step S4 locates and segments the detection strips. First, the image captured by the camera is preprocessed to improve the processing effect of the subsequent algorithm. Possible preprocessing operations include grayscale, denoising, image enhancement, etc.

[0081] Through image processing technology, the solid circle positioning mark points in the image are identified, detected and located. This can be achieved using morphological processing, edge detection, circle detection and other methods. The position information of the positioning mark points will be used for subsequent image segmentation and broken needle detection.

[0082] Then, according to the position information of the positioning mark points, the image is segmented to obtain the image area of ​​each line group. According to the coordinates of the positioning mark points and the design requirements, the boundary of each line group can be determined and segmented. Segmentation can be based on edge, color or area.

[0083] According to the position information of the positioning mark point, the image area of ​​each line group is angle corrected. By calculating the position of the positioning mark point and the design requirements, the rotation or tilt in the image can be corrected so that each line group image is arranged vertically or horizontally.

[0084] For each segmented thread group image region, features are extracted for subsequent broken needle detection. These features may include edge information, shape descriptors, texture features, etc. Feature extraction can be accomplished using various image processing and machine learning methods.

[0085] Through the above steps, the visual algorithm can accurately identify and segment the image area of ​​each line group, and perform angle correction and feature extraction. This provides accurate input data for subsequent broken needle detection and helps detect whether the nozzle has a broken needle problem. The accuracy and effect of the visual algorithm will have an important impact on the accuracy and reliability of subsequent broken needle detection.

[0086] In this embodiment, according to the broken needle detection described in step S5, the detection steps are as follows:

[0087] S51: Every time the production needs to be inspected, the camera is triggered to take a photo, an image containing the inspection pattern is collected, and the image is converted into a binary image;

[0088] S52: The visual algorithm locates the circular mark point in the image and performs angle correction;

[0089] S53: After the angle of the detected image is corrected, each group of line array images is cropped according to the mark points;

[0090] S54: After the detection image is cropped, each line group is segmented according to the set number of columns, and the number of pixels that should be separated in each row of the segmented line array is calculated according to the set number of needles;

[0091] S55: using the calculated number of pixels as a judgment threshold and judging whether there is a needle breakage phenomenon or a large area of ​​needle breakage between the two lines according to the distance between the two lines;

[0092] S56: Save the position information of the Nth needle in each N groups.

[0093] In this embodiment, the number of pixels that should be spaced apart in each row is calculated according to step S54, wherein the calculation formula is:

[0094] Set the number of lines in each line group to N and the width of each line array to W;

[0095] Calculate the expected pixel spacing between adjacent lines in each line array: divide the width W of the line array into N-1 intervals, that is, the width of each interval is d_expected = W / (N-1);

[0096] Based on the expected pixel spacing between adjacent lines in each line array, calculate the number of pixels that should be spaced apart in each row: divide the expected pixel spacing d_expected in each line array by N-1 to get the number of pixels that should be spaced apart in each row.

[0097] The number of pixels each row should be apart = d_expected / (N-1).

[0098] In this embodiment, the judgment threshold according to step S55 is specifically expressed as:

[0099] For each group of segmented line arrays, the number of pixels that should be spaced between each line is calculated, that is, the number of pixels calculated according to the result obtained in step S54 is used as the judgment threshold. For adjacent lines, the distance between two lines is determined, the distance between them is calculated, and compared with the judgment threshold. If the distance between the two lines is less than the threshold, it is determined that there is a needle breakage phenomenon or a large area of ​​needle breakage;

[0100] If the distance between the two lines is greater than the judgment threshold, it is determined that there is no needle breakage phenomenon.

[0101] A device for detecting nozzle needle breakage during a printing process comprises at least one processor, at least one memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the method described is implemented.

[0102] A storage medium stores computer program instructions, which implement the above-mentioned method when the computer program instructions are executed by a processor.

[0103] Example 2

[0104] like Figure 4As shown, the broken needle detection of this embodiment is to improve the accuracy and stability of broken needle detection by introducing machine learning or deep learning algorithms. These algorithms can automatically learn and identify broken needle phenomena through training models, thereby reducing false alarm rates and missed alarm rates.

[0105] This embodiment provides a method for detecting a broken nozzle during a printing process, using a machine learning algorithm, such as a support vector machine or a random forest, to construct a classifier through a training sample data set. The training data set should contain image samples of normal nozzles and broken nozzles, as well as corresponding label information. By extracting image features and using them as input, the classifier is trained to distinguish between normal and broken nozzle images.

[0106] This embodiment is applied to nozzle broken needle detection in the field of 3D printing. The specific broken needle detection includes the following steps:

[0107] S101: Data collection and annotation: collect a large number of 3D printing process image samples, including normal printing and samples with broken nozzles. These images can be collected in real time through camera equipment, and ensure that different printing conditions, materials and broken nozzle types are covered. At the same time, the images are annotated based on whether there is a broken nozzle problem;

[0108] S102: Data preprocessing: preprocessing the collected images, such as resizing, noise reduction, contrast enhancement, etc., which helps to extract more accurate features and reduce the impact of image noise on algorithm performance;

[0109] S103: Feature extraction, using deep learning models, such as convolutional neural networks (CNN), to extract representative features from the preprocessed image. You can use a pre-trained CNN model as the base network and perform fine-tuning or transfer learning based on actual conditions. Through multiple convolutional layers and pooling layers, the CNN model can learn local and global features of the image;

[0110] S104: Model training and validation, divide the data set into a training set and a validation set, use the training set to train the deep learning model, and use the validation set to evaluate the performance of the model. Common training strategies can be used, such as the stochastic gradient descent optimization algorithm and the cross entropy loss function. Based on the validation results, adjust and optimize the model to obtain higher accuracy and robustness;

[0111] S105: Model deployment and application. In the actual 3D printing process, the trained deep learning model is deployed to the detection system. The system will collect the printing process images in real time and perform needle break detection through the deep learning model. If the model output indicates that there is a nozzle needle break problem, the system will promptly feedback to the operator and trigger the corresponding alarm mechanism.

[0112] The deep learning model can automatically learn and identify nozzle breakage from 3D printing process images, improving the accuracy and stability of detection. Through continuous iteration and optimization of algorithms, this solution can help the 3D printing industry improve production efficiency and product quality, and reduce printing failures and scrap rates caused by nozzle breakage.

[0113] 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 method for detecting nozzle breakage during printing, characterized in that: The steps include: S1. Establish a detection model, use a machine learning algorithm, and build a classifier through a training sample data set, which contains image samples of normal nozzles and broken needles, as well as corresponding label information. By extracting image features and using them as input, the classifier is trained to distinguish between normal and broken needle images; S2, data collection and annotation, based on the model established in step S1, a large number of 3D printing process image samples are collected into the model, including samples of normal printing and samples with broken nozzles; S3, data preprocessing, based on the image collected in step S2, preprocessing it, including resizing, noise reduction, and contrast enhancement; S4, feature extraction, based on the preprocessed image obtained in step S3, using the deep learning model, extracting representative features from the preprocessed image, performing model training and verification, dividing the data set into a training set and a verification set, using the training set to train the deep learning model, and deploying and applying the model, deploying the trained deep learning model to the detection system in the actual 3D printing process; S5. Make a customized detection pattern for production printing. Create a line group according to the design of the printer. The upper left corner and lower right corner of each line group are marked with solid circles as positioning points. S6, printing the detection pattern during production, during the production process, the prepared detection pattern and the target pattern are printed out simultaneously; S7, the detection pattern is photographed by a camera, and the image is photographed by a camera device. The image photographed by the camera will be used as an input for subsequent visual algorithms; S8, the visual algorithm aligns and segments the detection pattern, processes the captured image through the visual algorithm, and identifies and segments the image area of ​​each line group; S9, the detection model analyzes the detection pattern obtained in steps S8 and S9, and the detection pattern is used for broken needle detection and analysis through a feature extraction deep learning model; S10, feeding back all the broken needle information, feeding back the detected broken needle information; According to the printing detection pattern described in step S6, the specific steps are as follows: S61, prepare a printing task, prepare a target pattern and a detection pattern to be printed according to production requirements and equipment settings, and retrieve them from the training set and the verification set; S62, merging the target pattern and the detection pattern, merging the target pattern and the prepared detection pattern in the print file or printer settings, and printing them simultaneously on the same print medium; S63, executing the printing task, starting the printer, and printing the target pattern and the detection pattern together on the designated printing medium according to the set parameters and layout requirements.

2. The method for detecting nozzle breakage during printing according to claim 1, characterized in that: According to the establishment of line groups described in step S5, the number and layout of line groups are determined, each line group is composed of four vertically arranged line arrays, the size and position of the positioning mark points are determined, and the designed line group pattern is combined with the positioning mark points to form a complete detection pattern.

3. The method for detecting nozzle breakage during printing according to claim 2, characterized in that: The positioning mark point draws a solid circle with a radius of r at the corresponding position on the printing medium to determine the upper left corner and lower right corner position of each line group. Set the upper left corner position of each line group to (x1, y1) and the lower right corner position to (x2, y2); Determine the relative position or spacing of each line group on the printing medium, and then calculate the coordinates of the solid circle's positioning mark point: Set the radius of the solid circle to r and the coordinates of the positioning mark point to (cx, cy); For the upper left corner positioning mark point, the formula for calculating its coordinates is as follows: cx=x1+r;cy=y1+r; For the lower right corner positioning mark point, the formula for calculating its coordinates is as follows: cx=x2-r;cy=y2-r.

4. The method for detecting nozzle breakage during printing according to claim 1, characterized in that: The visual algorithm described in step S8 locates and segments the detection bar, pre-processes the image captured by the camera, identifies, detects and locates the solid circle positioning mark point in the image through image processing technology, and then segments the image according to the position information of the positioning mark point to obtain the image area of ​​each line group, determine the boundary of each line group and segment it, and then perform angle correction on the image area of ​​each line group according to the position information of the positioning mark point so that each line group image is arranged vertically or horizontally.

5. The method for detecting nozzle breakage during printing according to claim 1, characterized in that: The detection pattern in step S9 further includes the following sub-steps: S91: triggering the detection model each time production is performed, collecting an image containing a detection pattern, and converting the image into a binary image; S92: The visual algorithm locates the circular mark point in the image and performs angle correction; S93: After the angle of the detected image is corrected, each group of line array images is cropped according to the mark point; S94: After the detection image is cropped, each line group is segmented according to the set number of columns, and the number of pixels that should be separated in each row of the segmented line array is calculated according to the set number of needles; S95: using the calculated number of pixels as a judgment threshold and judging whether there is a needle breakage phenomenon or a large area of ​​needle breakage between the two lines according to the distance between the two lines; S96: Save the position information of the Nth needle in each N groups.

6. The method for detecting nozzle breakage during printing according to claim 5, characterized in that: The number of pixels that should be spaced apart in each row is calculated according to step S94, wherein the calculation formula is: Set the number of lines in each line group to N and the width of each line array to W; Calculate the expected pixel spacing between adjacent lines in each line array: divide the width W of the line array into N-1 intervals, that is, the width of each interval is d_expected = W / (N-1); Then, based on the expected pixel spacing between adjacent lines in each line array, calculate the number of pixels that should be spaced apart in each row: divide the expected pixel spacing d_expected in each line array by N-1 to get the number of pixels that should be spaced apart in each row, which is d_expected / (N-1).

7. The method for detecting nozzle breakage during printing according to claim 5, characterized in that: According to the judgment threshold described in step S95, the result calculated according to step S54 is used as the judgment threshold, For adjacent lines, the distance between the two lines is determined, the distance between them is calculated, and compared with the judgment threshold. If the distance between the two lines is less than the threshold, it is determined that there is a needle breakage phenomenon or a large area of ​​needle breakage; If the distance between the two lines is greater than the judgment threshold, it is determined that there is no needle breakage phenomenon.

8. A device for detecting nozzle breakage during printing, characterized in that: The method comprises at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

9. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Spray head maintenance method and device of printing equipment and printing equipment

    CN114683703A