Thermal printer print head bad point detection method and system

By constructing a stereoscopic model and graphic comparison of thermal printheads, calculating the matching coefficients, and determining the bad points of the printhead, solving the problem of low detection accuracy in the prior art, and achieving comprehensive detection of the printhead shape and printing defects.

CN118624627BActive Publication Date: 2024-11-12ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411116919.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-12
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The printhead defect detection accuracy of existing thermal printers is low, and it is determined only by appearance defects, and it is unable to effectively control printing defects.

Method used

By building a stereo model of the print head, marking the exception area, defining the exception characteristics and parameters, combining the printing trajectory of the figure to be tested and the comparison of the predicted figure, calculate the matching coefficient and determine the bad points of the print head.

Benefits of technology

It improves the accuracy of the detection of bad points of the print head, is compatible with three-dimensional models and graphic abnormal areas, and controls the appearance and printing defects as a whole, ensuring the accuracy of multi-dimensional detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118624627B_ABST
    Figure CN118624627B_ABST
Patent Text Reader

Abstract

The present invention discloses a bad point detection method and system for a print head of a thermal printer, which defines a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features; marks a second abnormal area based on a comparison between a pattern to be tested and a predicted pattern, defines a second abnormal parameter according to the second abnormal area and the position where the second abnormal area is located, defines a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determines the bad point of the print head according to a plurality of sub-distribution graphs and the first matching coefficient, so as to complete the detection of the bad point of the print head, thereby being compatible with the first abnormal area in a three-dimensional model of the print head and the second abnormal area in the pattern to be tested, so as to facilitate overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of the bad points of the print head, and further ensuring the accuracy of the detection of the bad points of the print head in multiple dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bad dot detection systems for print heads of thermal printers, and in particular to a bad dot detection method and system for print heads of thermal printers. Background Art

[0002] With the development of science and technology, thermal printers are used in people's lives and print on printing paper. At this time, the thermal printer prints on the printing paper through the print head, and the print head needs to print for a long time. In the prior art, the print head will cause wear and tear during long-term printing and form bad points on the print head. However, the detection of bad points on the print head is only determined by the appearance defects of the print head, and there is no control over the printing defects, resulting in low accuracy in the bad point detection of the thermal printer's print head. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a bad point detection method and system for the print head of a thermal printer, positioning the print head of the thermal printer, collecting multiple images of the print head, and building a three-dimensional model of the print head according to the multiple images of the print head; marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining multiple first abnormal features according to the identification of the first abnormal area; defining a first abnormal parameter according to the multiple first abnormal features and the positions corresponding to the first abnormal features; collecting a drawing to be tested, and defining a printing track of the print head based on the drawing to be tested and the position of the print head, and the print head prints on paper along the printing track of the print head to output a drawing to be tested. A test pattern; marking a second abnormal area based on a comparison between the pattern to be tested and the predicted pattern, defining a second abnormal parameter based on the second abnormal area and the position of the second abnormal area, defining a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determining the bad point of the print head based on multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the pattern to be tested, so as to facilitate overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of the bad points of the print head, and further ensuring the accuracy of the detection of the bad points of the print head in multiple dimensions.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a bad pixel detection method for a print head of a thermal printer, which is applied to a bad pixel detection scenario of a print head of a thermal printer;

[0005] The bad point detection method of the print head of the thermal printer comprises:

[0006] Positioning a print head of a thermal printer, acquiring multiple images of the print head, and constructing a three-dimensional model of the print head based on the multiple images of the print head;

[0007] Marking a first abnormal region based on traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to identification of the first abnormal region;

[0008] Defining a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features;

[0009] Collecting the drawing to be tested, and defining the printing track of the print head based on the drawing to be tested and the position of the print head, the print head prints on the paper along the printing track of the print head to output the pattern to be tested;

[0010] Marking a second abnormal area based on a comparison between the pattern to be tested and the predicted pattern, and defining a second abnormal parameter according to the second abnormal area and a location of the second abnormal area;

[0011] A first matching coefficient is defined based on the second abnormal parameter and the first abnormal parameter, and the bad point of the print head is determined according to the multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad point of the print head.

[0012] Optionally, the positioning of the print head of the thermal printer, collecting multiple images of the print head, and constructing a three-dimensional model of the print head according to the multiple images of the print head includes:

[0013] Collect the location of the print head of the thermal printer;

[0014] Triggering a print head positioning detection according to the position of the print head of the thermal printer to position the print head of the thermal printer;

[0015] In the positioning detection of the print head, the print head is photographed along multiple directions, and the printing end of the print head is photographed in a circular manner to collect multiple images of the print head;

[0016] Constructing a panoramic image of the print head based on the multiple images, defining multiple sub-features according to the panoramic image of the print head, and defining corresponding spatial positions according to the multiple sub-features;

[0017] constructing a three-dimensional model of the print head according to the plurality of sub-features and corresponding spatial positions;

[0018] A printed portion in the three-dimensional model of the print head is marked, and local detection is triggered according to the printed portion to improve the printed portion in the three-dimensional model of the print head.

[0019] Optionally, the marking of the first abnormal area based on the traversal of the three-dimensional model of the print head and the definition of a plurality of first abnormal features according to the identification of the first abnormal area include:

[0020] Freeze the three-dimensional model of the print head and collect the functional preference coefficient of the print head;

[0021] defining a traversal pattern according to a three-dimensional model of the print head and a functional preference coefficient of the print head;

[0022] triggering a traversal of the three-dimensional model of the print head based on the traversal mode, and dividing the three-dimensional model of the print head into a plurality of functional areas;

[0023] The plurality of functional areas are stored in corresponding identification spaces respectively, and synchronous identification of the plurality of functional areas is triggered to define abnormal areas of each functional area;

[0024] Collecting abnormal areas of each functional area, and constructing a first abnormal area according to the abnormal areas of each functional area, at this time, marking the first abnormal area on the three-dimensional model of the print head and highlighting it;

[0025] A plurality of first anomaly features are defined based on the identification of the first anomaly region.

[0026] Optionally, defining the first abnormal parameter according to the plurality of first abnormal features and the positions corresponding to the first abnormal features includes:

[0027] Freeze multiple first abnormal features;

[0028] Mark corresponding positions based on a plurality of first abnormal feature marks;

[0029] Associating a plurality of first abnormal features and corresponding positions;

[0030] Matching a corresponding function type according to the first abnormal feature, and defining a function level parameter according to the function type and the corresponding position;

[0031] The first abnormality parameter is defined according to the function level parameter, the abnormal area and the position of the first abnormal feature.

[0032] Optionally, the collecting of the drawing to be tested, and defining a printing track of the print head based on the drawing to be tested and the position of the print head, and the print head printing on the paper along the printing track of the print head to output the pattern to be tested, includes:

[0033] Collect drawings to be tested;

[0034] Define the print outline based on the drawing to be tested;

[0035] Define the moving track of the print head when printing the drawing to be tested according to the print outer contour;

[0036] Marking a first starting point and a first exit point based on a moving track of the print head when printing the drawing to be tested;

[0037] Collect the location of the print head;

[0038] Associating the position of the print head and the movement trajectory of the print head when printing the drawing to be tested, and defining a first printing trajectory of the print head according to the position of the print head and the first starting point;

[0039] defining a second printing track of the print head according to the first starting point and the first leaving point;

[0040] defining a printing track of the print head based on the second printing track and the first printing track;

[0041] The print head prints on the paper along the print track of the print head to output the pattern to be tested.

[0042] Optionally, marking the second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining the second abnormal parameter according to the second abnormal area and the location of the second abnormal area, includes:

[0043] Freeze the graphics to be tested;

[0044] Match the corresponding predicted graphics based on the drawing to be tested;

[0045] The alignment points are marked according to the predicted pattern and the pattern to be tested, and the predicted pattern and the pattern to be tested are arranged along the alignment points to trigger the comparison between the pattern to be tested and the predicted pattern.

[0046] Optionally, the marking of the second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining the second abnormal parameter according to the second abnormal area and the location of the second abnormal area, further includes:

[0047] Defining a non-overlapping area based on a comparison between the pattern to be tested and the predicted pattern;

[0048] Define a second abnormal area according to the non-overlapping area, and mark the second abnormal area on the pattern to be tested;

[0049] Collect the position of the second abnormal area relative to the pattern to be tested, and clarify the position of the second abnormal area; at the same time, collect the function level parameters corresponding to the second abnormal area;

[0050] The second abnormality parameter is defined according to the second abnormality area, the function level parameter corresponding to the second abnormality area, and the location of the second abnormality area.

[0051] Optionally, defining a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determining the bad point of the print head according to the multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad point of the print head includes:

[0052] Freeze the second abnormal parameter and the first abnormal parameter;

[0053] Associating the second abnormal parameter with the first abnormal parameter, so that the second abnormal parameter and the first abnormal parameter are in an associated state;

[0054] Collecting the outer contour of the pattern to be tested, and defining a corresponding matching mode according to the recognition of the outer contour of the pattern to be tested;

[0055] In this matching mode, a corresponding first matching coefficient is defined according to the matching of the second abnormal parameter and the first abnormal parameter.

[0056] Optionally, the method of defining a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determining the bad point of the print head according to the plurality of sub-distribution graphs and the first matching coefficient to complete the detection of the bad point of the print head, further includes:

[0057] Collecting the second abnormal area and the first abnormal area, and constructing an abnormal distribution map according to the second abnormal area and the first abnormal area;

[0058] Divide the abnormal distribution map into multiple sub-distribution maps;

[0059] The multiple sub-distribution maps and the first matching coefficient are used to determine the bad points of the print head to complete the detection of the bad points of the print head.

[0060] In addition, an embodiment of the present invention further provides a bad pixel detection system for a print head of a thermal printer, the bad pixel detection system for a print head of a thermal printer comprising:

[0061] A three-dimensional model module is used to locate the print head of the thermal printer, collect multiple images of the print head, and construct a three-dimensional model of the print head according to the multiple images of the print head;

[0062] A first abnormal module, used for marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to the identification of the first abnormal area;

[0063] A first abnormal parameter module, used to define a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features;

[0064] The printing module is used to collect the drawing to be tested, and define the printing track of the print head based on the drawing to be tested and the position of the print head. The print head prints on the paper along the printing track of the print head to output the pattern to be tested;

[0065] A second abnormal parameter module, used for marking a second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining a second abnormal parameter according to the second abnormal area and the location of the second abnormal area;

[0066] The detection module is used to define a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determine the bad point of the print head according to the multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad point of the print head.

[0067] In an embodiment of the present invention, through the method in the embodiment of the present invention, the print head of the thermal printer is positioned, multiple images of the print head are collected, and a three-dimensional model of the print head is constructed according to the multiple images of the print head; a first abnormal area is marked based on the traversal of the three-dimensional model of the print head, and multiple first abnormal features are defined according to the identification of the first abnormal area; a first abnormal parameter is defined according to the multiple first abnormal features and the positions corresponding to the first abnormal features; a drawing to be tested is collected, and a printing track of the print head is defined based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested; based on the pattern to be tested and the predicted graphic to mark the second abnormal area, define the second abnormal parameter according to the second abnormal area and the location of the second abnormal area, define the first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determine the bad point of the print head according to multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the graphic to be tested, so as to facilitate the overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of bad points of the print head, and further ensuring the accuracy of the detection of bad points of the print head in multiple dimensions. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 is a flow chart of a method for detecting bad dots of a print head of a thermal printer in an embodiment of the present invention;

[0070] Figure 2 is a flow chart of S11 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0071] Figure 3 is a flow chart of S12 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0072] Figure 4is a flow chart of S13 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0073] Figure 5 is a flow chart of S14 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0074] Figure 6 is a flow chart of S15 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0075] Figure 7 is a flow chart of S16 in the bad pixel detection method of the print head of a thermal printer in an embodiment of the present invention;

[0076] Figure 8 Schematic diagram of the structure of a bad pixel detection system for a print head of a thermal printer in an embodiment of the present invention;

[0077] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] Method Embodiment

[0080] See also Figures 1 to 9 A method for detecting bad dots of a print head of a thermal printer is applied to the bad dot detection scenario of the print head of a thermal printer; the method for detecting bad dots of a print head of a thermal printer comprises:

[0081] Step S11: positioning a print head of a thermal printer, acquiring multiple images of the print head, and constructing a three-dimensional model of the print head according to the multiple images of the print head;

[0082] Step S12: marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to the identification of the first abnormal area;

[0083] Step S13: defining a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features;

[0084] Step S14: collecting the drawing to be tested, and defining the printing track of the print head based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested;

[0085] Step S15: marking a second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining a second abnormal parameter according to the second abnormal area and the location of the second abnormal area;

[0086] Step S16: defining a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determining the bad point of the print head according to the plurality of sub-distribution graphs and the first matching coefficient, so as to complete the detection of the bad point of the print head.

[0087] In an embodiment of the present invention, through the method in the embodiment of the present invention, the print head of the thermal printer is positioned, multiple images of the print head are collected, and a three-dimensional model of the print head is constructed according to the multiple images of the print head; a first abnormal area is marked based on the traversal of the three-dimensional model of the print head, and multiple first abnormal features are defined according to the identification of the first abnormal area; a first abnormal parameter is defined according to the multiple first abnormal features and the positions corresponding to the first abnormal features; a drawing to be tested is collected, and a printing track of the print head is defined based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested; based on the pattern to be tested and the predicted graphic to mark the second abnormal area, define the second abnormal parameter according to the second abnormal area and the location of the second abnormal area, define the first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determine the bad point of the print head according to multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the graphic to be tested, so as to facilitate the overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of bad points of the print head, and further ensuring the accuracy of the detection of bad points of the print head in multiple dimensions.

[0088] refer to Figure 2 , in step S11, positioning a print head of a thermal printer, acquiring multiple images of the print head, and constructing a three-dimensional model of the print head according to the multiple images of the print head;

[0089] In the specific implementation process of the present invention, the specific steps may be:

[0090] S111: collecting the location of the print head of the thermal printer;

[0091] S112: triggering a print head positioning detection according to the position of the print head of the thermal printer, and positioning the print head of the thermal printer;

[0092] S113: In the positioning detection of the print head, the print head is photographed along multiple directions, and a circular photograph is performed on the printing end of the print head to collect multiple images of the print head;

[0093] S114: constructing a panoramic image of the print head based on the multiple images, defining multiple sub-features according to the panoramic image of the print head, and defining corresponding spatial positions according to the multiple sub-features;

[0094] S115: constructing a three-dimensional model of the print head according to the multiple sub-features and the corresponding spatial positions;

[0095] S116: Mark the printed part in the three-dimensional model of the print head, and trigger local detection according to the printed part to improve the printed part in the three-dimensional model of the print head.

[0096] In an embodiment of the present application, the position of the print head of the thermal printer is collected so as to introduce the position of the print head of the thermal printer, thereby triggering the positioning detection of the print head according to the position of the print head of the thermal printer, realizing targeted detection of the print head, and positioning the print head of the thermal printer, so as to facilitate further processing of the print head of the thermal printer.

[0097] At this time, during the positioning detection of the print head, the print head is photographed along multiple directions, and the printing end of the print head is photographed in a circular manner to capture multiple images of the print head, thereby controlling the shape of the print head in multiple different directions, so as to construct a panoramic image of the print head based on multiple images, and thus present the print head according to the panoramic image of the print head.

[0098] Therefore, multiple sub-features are defined based on the panoramic image of the print head, and corresponding spatial positions are defined based on the multiple sub-features; a three-dimensional model of the print head is constructed based on the multiple sub-features and the corresponding spatial positions; the printed part in the three-dimensional model of the print head is marked, and local detection is triggered based on the printed part to improve the printed part in the three-dimensional model of the print head, thereby optimizing the printed part in the three-dimensional model of the print head, so as to facilitate the management and control of core parts such as the printed part, thereby ensuring the accuracy of the three-dimensional model of the print head.

[0099] refer to Figure 3 , in step S12, marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to the identification of the first abnormal area;

[0100] In the specific implementation process of the present invention, the specific steps may be:

[0101] S121: freezing the three-dimensional model of the print head and collecting the functional preference coefficient of the print head;

[0102] S122: defining a traversal mode according to a three-dimensional model of the print head and a functional preference coefficient of the print head;

[0103] S123: triggering a traversal of the three-dimensional model of the print head based on the traversal mode, and dividing the three-dimensional model of the print head into a plurality of functional areas;

[0104] S124: storing the multiple functional areas in corresponding identification spaces respectively, and triggering synchronous identification of the multiple functional areas to define abnormal areas of each functional area;

[0105] S125: collecting abnormal areas of each functional area, and constructing a first abnormal area according to the abnormal areas of each functional area. At this time, the first abnormal area is marked on the three-dimensional model of the print head and highlighted;

[0106] S126: Define a plurality of first abnormal features according to the identification of the first abnormal region.

[0107] In an embodiment of the present application, a three-dimensional model of the print head is frozen, and the functional preference coefficient of the print head is collected, so as to define the printing mode that the print head is good at according to the functional preference coefficient of the print head, so as to be compatible with the consideration of the functional preference coefficient of the print head.

[0108] At this time, a traversal mode is defined according to the three-dimensional model of the print head and the functional preference coefficient of the print head; based on the traversal mode, the traversal of the three-dimensional model of the print head is triggered, and the three-dimensional model of the print head is divided into multiple functional areas, so as to manage and control the multiple functional areas, so as to store the multiple functional areas in the corresponding identification spaces respectively, and trigger the simultaneous identification of the multiple functional areas to define the abnormal areas of each functional area, thereby clarifying the abnormal areas of each functional area and conducting abnormal troubleshooting for each functional area.

[0109] Therefore, the abnormal areas of each functional area are collected, and the first abnormal area is constructed according to the abnormal areas of each functional area. At this time, the first abnormal area is marked on the three-dimensional model of the print head and highlighted. According to the identification of the first abnormal area, a plurality of first abnormal features are defined, so as to present the abnormal part of the first abnormal area based on the plurality of first abnormal features, so as to define the appearance defects for the three-dimensional model of the print head, and then introduce the consideration of appearance defects in the bad point detection of the print head, thereby ensuring the comprehensiveness of the bad point detection of the print head.

[0110] refer to Figure 4 , in step S13, defining a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features;

[0111] In the specific implementation process of the present invention, the specific steps may be:

[0112] S131: freezing a plurality of first abnormal features;

[0113] S132: Mark corresponding positions based on a plurality of first abnormal feature marks;

[0114] S133: Associating a plurality of first abnormal features and corresponding positions;

[0115] S134: matching a corresponding function type according to the first abnormal feature, and defining a function level parameter according to the function type and the corresponding position;

[0116] S135: Define a first abnormality parameter according to the function level parameter, the abnormal area and the position of the first abnormal feature.

[0117] In an embodiment of the present application, a plurality of first abnormal features are frozen; corresponding positions are marked based on the plurality of first abnormal features, so as to associate the plurality of first abnormal features and the corresponding positions, thereby performing position control on the plurality of first abnormal features.

[0118] Furthermore, the corresponding function type is matched according to the first abnormal feature, and the function level parameter is defined according to the function type and the corresponding position; the first abnormal parameter is defined according to the function level parameter, the abnormal area and the position of the first abnormal feature, so as to control the first abnormal parameter in the function level parameter, the abnormal area and the position of the first abnormal feature, and then ensure the accuracy of the first abnormal parameter in multiple dimensions.

[0119] refer to Figure 5 , S14: collecting the drawing to be tested, and defining the printing track of the print head based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested;

[0120] In the specific implementation process of the present invention, the specific steps may be:

[0121] S141: Collect drawings to be tested;

[0122] S142: Define the printing outer contour based on the drawing to be tested;

[0123] S143: defining the movement trajectory of the print head when printing the drawing to be tested according to the printing outer contour;

[0124] S144: marking a first starting point and a first exit point based on a moving trajectory of the print head when printing the drawing to be tested;

[0125] S145: collecting the location of the print head;

[0126] S146: Associating the position of the print head with the movement trajectory of the print head when printing the drawing to be tested, and defining a first printing trajectory of the print head according to the position of the print head and the first starting point;

[0127] S147: defining a second printing track of the print head according to the first starting point and the first leaving point;

[0128] S148: defining a printing track of the print head based on the second printing track and the first printing track;

[0129] S149: The print head prints on the paper along the print track of the print head to output the pattern to be tested.

[0130] In an embodiment of the present application, a drawing to be tested is collected, and a printing outer contour is defined based on the drawing to be tested, thereby introducing a printing outer contour, and a movement trajectory of the print head when printing the drawing to be tested is defined according to the printing outer contour, thereby clarifying the movement trajectory of the print head when printing the drawing to be tested.

[0131] Furthermore, a first starting point and a first exit point are marked based on the movement trajectory of the print head when printing the drawing to be tested so as to freeze the first starting point and the first exit point, and at the same time, the position of the print head is acquired; the position of the print head and the movement trajectory of the print head when printing the drawing to be tested are associated, and the first printing trajectory of the print head is defined according to the position of the print head and the first starting point, so as to define the first printing trajectory of the print head, thereby controlling the movement between the position of the print head and the first starting point.

[0132] At the same time, a second printing trajectory of the print head is defined according to the first starting point and the first leaving point, so as to define the second printing trajectory of the print head, thereby controlling the movement between the first starting point and the first leaving point.

[0133] Furthermore, a printing track of the print head is defined based on the second printing track and the first printing track; the print head prints on the paper along the printing track of the print head to output the pattern to be tested, thereby introducing the pattern to be tested for further processing of the pattern to be tested.

[0134] refer to Figure 6 , S15: marking a second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining a second abnormal parameter according to the second abnormal area and the location of the second abnormal area;

[0135] In the specific implementation process of the present invention, the specific steps may be:

[0136] S151: freeze the pattern to be tested;

[0137] S152: matching a corresponding predicted graph based on the drawing to be tested;

[0138] S153: marking alignment points according to the predicted pattern and the pattern to be tested, and arranging the predicted pattern and the pattern to be tested along the alignment points to trigger comparison between the pattern to be tested and the predicted pattern;

[0139] S154: defining a non-overlapping area based on a comparison between the pattern to be tested and the predicted pattern;

[0140] S155: defining a second abnormal area according to the non-overlapping area, and marking the second abnormal area on the pattern to be tested;

[0141] S156: collecting the position of the second abnormal area relative to the pattern to be tested, and clarifying the position of the second abnormal area; at the same time, collecting the function level parameter corresponding to the second abnormal area;

[0142] S157: defining a second abnormal parameter according to the second abnormal area, the function level parameter corresponding to the second abnormal area, and the location of the second abnormal area.

[0143] In an embodiment of the present application, the pattern to be tested is frozen; the corresponding predicted pattern is matched based on the drawing to be tested so as to compare the pattern to be tested with the predicted pattern. At this time, alignment points are marked according to the predicted pattern and the pattern to be tested, and the predicted pattern and the pattern to be tested are arranged along the alignment points to trigger the comparison between the pattern to be tested and the predicted pattern.

[0144] At this time, a non-overlapping area is defined based on the comparison between the pattern to be tested and the predicted pattern; a second abnormal area is defined according to the non-overlapping area, and the second abnormal area is marked on the pattern to be tested, thereby presenting the second abnormal area.

[0145] Furthermore, the position of the second abnormal area relative to the pattern to be tested is collected, and the position of the second abnormal area is clarified; at the same time, the function level parameters corresponding to the second abnormal area are collected; the second abnormal parameters are defined according to the second abnormal area, the function level parameters corresponding to the second abnormal area, and the position of the second abnormal area, so as to control the second abnormal parameters according to the second abnormal area, the function level parameters corresponding to the second abnormal area, and the position of the second abnormal area, thereby ensuring the accuracy of the second abnormal parameters.

[0146] refer to Figure 7 , S16: defining a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determining the bad point of the print head according to the plurality of sub-distribution graphs and the first matching coefficient, so as to complete the detection of the bad point of the print head;

[0147] In the specific implementation process of the present invention, the specific steps may be:

[0148] S161: freeze the second abnormal parameter and the first abnormal parameter;

[0149] S162: Associating the second abnormal parameter with the first abnormal parameter, so that the second abnormal parameter and the first abnormal parameter are in an associated state;

[0150] S163: collecting the outer contour of the pattern to be tested, and defining a corresponding matching mode according to the recognition of the outer contour of the pattern to be tested;

[0151] S164: In this matching mode, a corresponding first matching coefficient is defined according to the matching of the second abnormal parameter and the first abnormal parameter;

[0152] S165: collecting the second abnormal area and the first abnormal area, and constructing an abnormal distribution map according to the second abnormal area and the first abnormal area;

[0153] S166: Divide the abnormal distribution map into multiple sub-distribution maps;

[0154] S167: Determine the bad points of the print head using the multiple sub-distribution maps and the first matching coefficient to complete the detection of the bad points of the print head.

[0155] In the specific implementation process of the present invention, the first matching coefficient is defined based on the second abnormal parameter and the first abnormal parameter, and the bad points of the print head are determined according to multiple sub-distribution maps and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the pattern to be tested, so as to facilitate the overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of bad points of the print head, and further ensuring the accuracy of the detection of bad points of the print head in multiple dimensions.

[0156] At this time, the second abnormal parameter and the first abnormal parameter are frozen, and the second abnormal parameter and the first abnormal parameter are associated, and the second abnormal parameter and the first abnormal parameter are in an associated state, so as to facilitate further processing of the second abnormal parameter and the first abnormal parameter.

[0157] At the same time, the outer contour of the figure to be tested is collected, and a corresponding matching mode is defined based on the recognition of the outer contour of the figure to be tested, thereby defining a matching mode. At this time, under this matching mode, a corresponding first matching coefficient is defined based on the matching of the second abnormal parameter and the first abnormal parameter, thereby presenting the matching degree of the second abnormal parameter and the first abnormal parameter through the first matching coefficient.

[0158] Furthermore, the second abnormal area and the first abnormal area are collected, and an abnormal distribution map is constructed based on the second abnormal area and the first abnormal area; a plurality of sub-distribution maps are divided according to the abnormal distribution map; the bad points of the print head are determined by using the plurality of sub-distribution maps and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the pattern to be tested, so as to facilitate overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of the bad points of the print head, and further ensuring the accuracy of the detection of the bad points of the print head in multiple dimensions.

[0159] In an embodiment of the present invention, through the method in the embodiment of the present invention, the print head of the thermal printer is positioned, multiple images of the print head are collected, and a three-dimensional model of the print head is constructed according to the multiple images of the print head; a first abnormal area is marked based on the traversal of the three-dimensional model of the print head, and multiple first abnormal features are defined according to the identification of the first abnormal area; a first abnormal parameter is defined according to the multiple first abnormal features and the positions corresponding to the first abnormal features; a drawing to be tested is collected, and a printing track of the print head is defined based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested; based on the pattern to be tested and the predicted graphic to mark the second abnormal area, define the second abnormal parameter according to the second abnormal area and the location of the second abnormal area, define the first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determine the bad point of the print head according to multiple sub-distribution graphs and the first matching coefficient to complete the detection of the bad points of the print head, thereby being compatible with the first abnormal area in the three-dimensional model of the print head and the second abnormal area in the graphic to be tested, so as to facilitate the overall control of the appearance defects and printing defects of the print head, thereby ensuring the accuracy of the detection of bad points of the print head, and further ensuring the accuracy of the detection of bad points of the print head in multiple dimensions.

[0160] System Example

[0161] See also Figure 8 , Figure 8 The figure is a schematic diagram of the structure of a bad pixel detection system for a print head of a thermal printer according to an embodiment of the present invention.

[0162] like Figure 8 As shown, a bad dot detection system for a print head of a thermal printer, the bad dot detection system for a print head of a thermal printer comprises:

[0163] A three-dimensional model module 21 is used to locate the print head of the thermal printer, collect multiple images of the print head, and construct a three-dimensional model of the print head according to the multiple images of the print head;

[0164] A first abnormal module 22, for marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to the identification of the first abnormal area;

[0165] A first abnormal parameter module 23, used to define a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features;

[0166] The printing module 24 is used to collect the drawing to be tested, and define the printing track of the print head based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested;

[0167] A second abnormal parameter module 25, for marking a second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and defining a second abnormal parameter according to the second abnormal area and the location of the second abnormal area;

[0168] The detection module 26 is used to define a first matching coefficient based on the second abnormal parameter and the first abnormal parameter, and determine the bad point of the print head according to the multiple sub-distribution maps and the first matching coefficient to complete the detection of the bad point of the print head.

[0169] Device Embodiment

[0170] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0171] like Fig. 9 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).

[0172] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.

[0173] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0174] The storage unit 42 may also include a program / utility 424 having a set (at least one) of detection modules 425, such detection modules 425 including but not limited to: an operating system, one or more application programs, other detection modules, and program data, each of which or some combination may include an implementation of a network environment.

[0175] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0176] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.

[0177] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0178] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.

[0179] In addition, the bad pixel detection method and system for the print head of a thermal printer provided in the embodiment of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting bad dots of a print head of a thermal printer, characterized in that: Applied to bad pixel detection scenario of print head of thermal printer; The bad point detection method of the print head of the thermal printer comprises: Positioning a print head of a thermal printer, acquiring multiple images of the print head, and constructing a three-dimensional model of the print head based on the multiple images of the print head; Marking a first abnormal region based on traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to identification of the first abnormal region; Defining a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features; Collect the drawing to be tested, and define the printing track of the print head based on the drawing to be tested and the position of the print head, and the print head prints on the paper along the printing track of the print head to output the pattern to be tested; collect the drawing to be tested; define the printing outer contour based on the drawing to be tested; define the movement track of the print head when printing the drawing to be tested according to the printing outer contour; mark the first starting point and the first leaving point based on the movement track of the print head when printing the drawing to be tested; collect the position of the print head; associate the position of the print head with the movement track of the print head when printing the drawing to be tested, and define the first printing track of the print head according to the position of the print head and the first starting point; define the second printing track of the print head according to the first starting point and the first leaving point; define the printing track of the print head based on the second printing track and the first printing track; the print head prints on the paper along the printing track of the print head to output the pattern to be tested; Mark the second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and define the second abnormal parameter according to the second abnormal area and the location of the second abnormal area; freeze the pattern to be tested; match the corresponding predicted pattern based on the drawing to be tested; mark the alignment points according to the predicted pattern and the pattern to be tested, and arrange the predicted pattern and the pattern to be tested along the alignment points to trigger the comparison between the pattern to be tested and the predicted pattern; define the non-overlapping area based on the comparison between the pattern to be tested and the predicted pattern; define the second abnormal area according to the non-overlapping area, and mark the second abnormal area on the pattern to be tested; collect the position of the second abnormal area relative to the pattern to be tested, and clarify the location of the second abnormal area; at the same time, collect the function level parameter corresponding to the second abnormal area; define the second abnormal parameter according to the second abnormal area, the function level parameter corresponding to the second abnormal area, and the location of the second abnormal area; A first matching coefficient is defined based on a second abnormal parameter and a first abnormal parameter, and a bad point of a print head is determined according to a plurality of sub-distribution maps and the first matching coefficient, so as to complete the detection of the bad point of the print head; the second abnormal parameter and the first abnormal parameter are frozen; the second abnormal parameter and the first abnormal parameter are associated, and the second abnormal parameter and the first abnormal parameter are in an associated state; the outer contour of a figure to be tested is collected, and a corresponding matching mode is defined according to the recognition of the outer contour of the figure to be tested; in this matching mode, a corresponding first matching coefficient is defined according to the matching of the second abnormal parameter and the first abnormal parameter; the second abnormal area and the first abnormal area are collected, and an abnormal distribution map is constructed according to the second abnormal area and the first abnormal area; a plurality of sub-distribution maps are divided according to the abnormal distribution map; the bad point of the print head is determined according to the plurality of sub-distribution maps and the first matching coefficient, so as to complete the detection of the bad point of the print head.

2. The method for detecting bad dots of a print head of a thermal printer according to claim 1, characterized in that: The method of positioning a print head of a thermal printer, collecting multiple images of the print head, and constructing a three-dimensional model of the print head according to the multiple images of the print head includes: Collect the location of the print head of the thermal printer; Triggering a print head positioning detection according to the position of the print head of the thermal printer to position the print head of the thermal printer; In the positioning detection of the print head, the print head is photographed along multiple directions, and the printing end of the print head is photographed in a circular manner to collect multiple images of the print head; Constructing a panoramic image of the print head based on the multiple images, defining multiple sub-features according to the panoramic image of the print head, and defining corresponding spatial positions according to the multiple sub-features; constructing a three-dimensional model of the print head according to the plurality of sub-features and corresponding spatial positions; A printed portion in the three-dimensional model of the print head is marked, and local detection is triggered according to the printed portion to improve the printed portion in the three-dimensional model of the print head.

3. The bad pixel detection method of the print head of a thermal printer according to claim 2, characterized in that: The marking of the first abnormal area based on the traversal of the three-dimensional model of the print head and the definition of a plurality of first abnormal features according to the identification of the first abnormal area include: Freeze the three-dimensional model of the print head and collect the functional preference coefficient of the print head; defining a traversal pattern according to a three-dimensional model of the print head and a functional preference coefficient of the print head; triggering a traversal of the three-dimensional model of the print head based on the traversal mode, and dividing the three-dimensional model of the print head into a plurality of functional areas; The plurality of functional areas are stored in corresponding identification spaces respectively, and synchronous identification of the plurality of functional areas is triggered to define abnormal areas of each functional area; Collecting abnormal areas of each functional area, and constructing a first abnormal area according to the abnormal areas of each functional area, at this time, marking the first abnormal area on the three-dimensional model of the print head and highlighting it; A plurality of first anomaly features are defined based on the identification of the first anomaly region.

4. The method for detecting bad dots of a print head of a thermal printer according to claim 1, characterized in that: The step of defining the first abnormal parameter according to the plurality of first abnormal features and the positions corresponding to the first abnormal features comprises: Freeze multiple first abnormal features; Mark corresponding positions based on a plurality of first abnormal feature marks; Associating a plurality of first abnormal features and corresponding positions; Matching a corresponding function type according to the first abnormal feature, and defining a function level parameter according to the function type and the corresponding position; The first abnormality parameter is defined according to the function level parameter, the abnormal area and the position of the first abnormal feature.

5. A bad pixel detection system for a print head of a thermal printer, characterized in that: The bad dot detection system for the print head of a thermal printer is applied to the bad dot detection method for the print head of a thermal printer as claimed in any one of claims 1 to 4, and the bad dot detection system for the print head of a thermal printer comprises: A three-dimensional model module is used to locate the print head of the thermal printer, collect multiple images of the print head, and construct a three-dimensional model of the print head according to the multiple images of the print head; A first abnormal module, used for marking a first abnormal area based on the traversal of the three-dimensional model of the print head, and defining a plurality of first abnormal features according to the identification of the first abnormal area; A first abnormal parameter module, used to define a first abnormal parameter according to a plurality of first abnormal features and positions corresponding to the first abnormal features; A printing module is used to collect drawings to be tested, and define a printing track of the print head based on the drawings to be tested and the position of the print head, and the print head prints on paper along the printing track of the print head to output the graphics to be tested; collect drawings to be tested; define a printing outer contour based on the drawings to be tested; define a moving track of the print head when printing the drawings to be tested according to the printing outer contour; mark a first starting point and a first leaving point based on the moving track of the print head when printing the drawings to be tested; collect the position of the print head; associate the position of the print head with the moving track of the print head when printing the drawings to be tested, and define a first printing track of the print head according to the position of the print head and the first starting point; define a second printing track of the print head according to the first starting point and the first leaving point; define the printing track of the print head based on the second printing track and the first printing track; the print head prints on paper along the printing track of the print head to output the graphics to be tested; A second abnormal parameter module is used to mark the second abnormal area based on the comparison between the pattern to be tested and the predicted pattern, and define the second abnormal parameter according to the second abnormal area and the location of the second abnormal area; freeze the pattern to be tested; match the corresponding predicted pattern based on the drawing to be tested; mark the alignment points according to the predicted pattern and the pattern to be tested, and arrange the predicted pattern and the pattern to be tested along the alignment points to trigger the comparison between the pattern to be tested and the predicted pattern; define the non-overlapping area based on the comparison between the pattern to be tested and the predicted pattern; define the second abnormal area according to the non-overlapping area, and mark the second abnormal area on the pattern to be tested; collect the position of the second abnormal area relative to the pattern to be tested, and clarify the location of the second abnormal area; at the same time, collect the function level parameter corresponding to the second abnormal area; define the second abnormal parameter according to the second abnormal area, the function level parameter corresponding to the second abnormal area, and the location of the second abnormal area; A detection module is used to define a first matching coefficient based on a second abnormal parameter and a first abnormal parameter, and determine a bad point of a print head according to a plurality of sub-distribution graphs and the first matching coefficient, so as to complete the detection of bad points of the print head; freeze the second abnormal parameter and the first abnormal parameter; associate the second abnormal parameter with the first abnormal parameter, so that the second abnormal parameter and the first abnormal parameter are in an associated state; collect the outer contour of a figure to be tested, and define a corresponding matching mode according to the recognition of the outer contour of the figure to be tested; in this matching mode, define a corresponding first matching coefficient according to the matching of the second abnormal parameter and the first abnormal parameter; collect the second abnormal area and the first abnormal area, and construct an abnormal distribution graph according to the second abnormal area and the first abnormal area; divide a plurality of sub-distribution graphs according to the abnormal distribution graph; determine the bad point of the print head according to the plurality of sub-distribution graphs and the first matching coefficient, so as to complete the detection of bad points of the print head.