Thermal printer printing control method and system for patterns
By identifying the location and location of dense patterns, triggering intensive printing modes, and controlling print head parameters in real time, the problem of poor printing effects of existing thermal printers in dense patterns is solved, and high accuracy and intensive effects are achieved Pattern printing.
Patent Information
- Application Number
- CN202411133311.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-19
AI Technical Summary
Existing thermal printers cannot self-regulate when printing dense patterns, resulting in poor printing results and inability to effectively print targeted dense patterns.
By identifying the location and location of dense patterns, the intensive printing mode is triggered, and the printing image is collected in real time, the printing abnormal parts are determined, and the speed and temperature of the print head are adjusted according to the abnormal type matching optimization methods until a qualified printing image is output.
The accuracy and effect of dense patterns are improved, and targeted printing and overall control of dense patterns are achieved.
Smart Images

Figure CN118656042B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of a thermal printer's printing control system for patterns, and in particular to a thermal printer's printing control method and system for patterns. Background Art
[0002] With the development of technology, thermal printers are a type of printers that print on printing paper through a print head. In the prior art, thermal printers sometimes print dense patterns. During the printing of dense patterns, the print head prints along the upper left corner of the dense pattern and prints along the dense pattern. However, the printing effect of the dense pattern is not ideal, and the print head cannot self-regulate parameters, which affects the printing effect of the print head on the dense pattern. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a printing control method and system for a thermal printer on a pattern. If the position of a dense pattern is in the first line position, the dense printing mode of the thermal printer is triggered; in the dense printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, thereby performing targeted printing on the dense pattern, and overall control is performed in the intensive printing mode of the thermal printer.
[0004] At the same time, the printed image of the dense pattern is collected in real time, and multiple printing abnormal parts are determined based on the printed image of the dense pattern, and the abnormality type is defined based on the multiple printing abnormal parts, and the corresponding optimization means are matched according to the abnormality type and the current printing speed of the print head; in the optimization means, the balance relationship in the control combination is triggered according to the control combination and the multiple printing abnormal parts to trigger the self-regulation of the control combination until a qualified printed image of the dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions.
[0005] The embodiment of the present invention provides a method for controlling printing of a pattern by a thermal printer, which is applied to a scenario in which a thermal printer controls printing of a pattern;
[0006] The thermal printer printing control method for a pattern comprises:
[0007] Collecting the content to be printed by the thermal printer, and determining the pattern area according to the traversal of the content to be printed;
[0008] Defining a dense pattern based on the identification of the pattern region and marking the location of the dense pattern;
[0009] If the dense pattern is located at the first line, the dense printing mode of the thermal printer is triggered;
[0010] In a dense printing mode of a thermal printer, a registration point of a dense pattern is defined, and a positioning movement of a print head is triggered according to the registration point of the dense pattern; and the print head is triggered to print the dense pattern along the registration point of the dense pattern;
[0011] Collecting a printing image of a dense pattern in real time, determining multiple printing abnormal parts according to the printing image of the dense pattern, defining abnormal types according to the multiple printing abnormal parts, and matching corresponding optimization means according to the abnormal type and the current printing speed of the print head;
[0012] In the optimization method, the balance relationship in the control combination is triggered according to the control combination and multiple printing abnormal parts to trigger the self-regulation of the control combination until a print image of a qualified dense pattern is output.
[0013] Optionally, the collecting of the content to be printed by the thermal printer and determining the pattern area according to the traversal of the content to be printed includes:
[0014] Locate the working space of the thermal printer and position the print arrangement table according to the working space;
[0015] Defining the content to be printed by the thermal printer based on the print arrangement table and the working progress of the thermal printer;
[0016] Collect the content to be printed by the thermal printer and freeze the content to be printed;
[0017] Defining a traversal pattern based on the content distribution style of the content to be printed, and traversing the content to be printed along the traversal pattern;
[0018] The pattern area is determined based on the traversal of the content to be printed.
[0019] Optionally, defining a dense pattern according to the identification of the pattern area and marking the position of the dense pattern includes:
[0020] Freeze pattern area;
[0021] Triggering positioning detection based on the pattern area, and outputting a coherent pattern during positioning detection;
[0022] Define the coherence scope of the coherence pattern and what is presented;
[0023] Defining dense patterns based on coherent range and identification of presented content;
[0024] Associating dense patterns and pattern regions;
[0025] The position of the dense pattern is defined based on the dense pattern and the pattern area, and the position of the dense pattern is marked.
[0026] Optionally, if the dense pattern is located at the first line, triggering a dense printing mode of the thermal printer includes:
[0027] Freeze the position of dense patterns;
[0028] Based on the first row position corresponding to the pattern area mark, the first row position and the position of the dense pattern are associated;
[0029] Compare the positions of the first row and the dense pattern;
[0030] If the dense pattern is located in the first row, the space ratio is defined according to the dense pattern and the pattern area;
[0031] matching the first pattern parameter according to the spatial proportion, and defining the second pattern parameter according to the spatial position of the dense pattern relative to the pattern area;
[0032] The intensive printing mode of the thermal printer is matched based on the second mode parameter and the first mode parameter, and a mode level of the intensive printing mode is defined to trigger the intensive printing mode of the thermal printer.
[0033] Optionally, in the dense printing mode of the thermal printer, defining alignment points of a dense pattern, and triggering the positioning movement of the print head according to the alignment points of the dense pattern; and triggering the print head to print the dense pattern along the alignment points of the dense pattern, comprises:
[0034] In a dense printing mode of a thermal printer, traversing a dense pattern;
[0035] Defining a registration point of the dense pattern according to a dense coefficient of the dense pattern and a plurality of printing parameters of a print head;
[0036] Triggering the positioning movement of the print head according to the alignment point of the dense pattern, at this time, collecting the alignment point of the dense pattern and the current position of the print head;
[0037] Determine a moving track of the print head according to the alignment point of the dense pattern and the current position of the print head, and move along the moving track until the print head is at the alignment point of the dense pattern;
[0038] The print head is triggered to print the dense pattern along the alignment points of the dense pattern. At this time, the working trajectory of the print head is defined based on the alignment points of the dense pattern and the position of the core area in the dense pattern, and dynamic printing is performed along the working trajectory of the print head.
[0039] Optionally, the real-time acquisition of the printing image of the dense pattern, and determining a plurality of printing abnormal parts according to the printing image of the dense pattern, and defining abnormality types according to the plurality of printing abnormal parts, and matching the corresponding optimization means according to the abnormality type and the current printing speed of the print head include:
[0040] Real-time acquisition of printed images of dense patterns;
[0041] Dynamic detection is performed based on the printed image. At this time, the print head is associated with the printing logic and the detection logic. The print head prints the dense pattern based on the printing logic, and the print head performs dynamic detection on the printed image based on the detection logic.
[0042] Optionally, the real-time acquisition of the printing image of the dense pattern, and determining a plurality of printing abnormal parts according to the printing image of the dense pattern, and defining abnormality types according to the plurality of printing abnormal parts, and matching the corresponding optimization means according to the abnormality type and the current printing speed of the print head, further includes:
[0043] Outputting a plurality of abnormal areas sequentially based on dynamic detection of the printed image;
[0044] determining a plurality of printing abnormal parts based on region recognition of the plurality of abnormal regions;
[0045] defining an exception type according to a plurality of print exception parts and a type matching table;
[0046] Freeze abnormality type, current printing speed of the print head;
[0047] According to the abnormality type, the current printing speed of the print head is matched with the corresponding optimization means.
[0048] Optionally, in the optimization means, triggering a balance relationship in the control combination according to the control combination and the plurality of printing abnormal parts to trigger self-control of the control combination until a print image of a qualified dense pattern is output, includes:
[0049] Among the optimization methods, the paper feed speed, printing speed, and print head temperature are collected;
[0050] Dynamically control the paper feed speed, print speed, and print head temperature, and build a control combination based on the paper feed speed, print speed, and print head temperature;
[0051] Associated regulatory combinations and multiple printing exception parts;
[0052] Based on multiple printing abnormal parts and control combination matching corresponding optimization solutions.
[0053] Optionally, in the optimization means, triggering a balance relationship in the control combination according to the control combination and the plurality of abnormal printing parts to trigger self-regulation of the control combination until a print image of a qualified dense pattern is output, further comprising:
[0054] Define the corresponding balance level according to the optimization plan;
[0055] Define the balance relationship in the control combination according to the balance level and the control combination, and trigger the balance relationship in the control combination;
[0056] Triggering self-regulation of the regulatory combination based on the balance relationship in the regulatory combination;
[0057] A dynamic interaction among paper feed speed, printing speed, and print head temperature is constructed until a qualified densely patterned print image is output.
[0058] In addition, an embodiment of the present invention further provides a thermal printer printing control system for a pattern, the thermal printer printing control system for a pattern comprising:
[0059] A collection module, used for collecting the content to be printed by the thermal printer, and determining the pattern area according to the traversal of the content to be printed;
[0060] A location module, used to define a dense pattern according to the identification of the pattern area and mark the location of the dense pattern;
[0061] A printing mode module, used for triggering a dense printing mode of the thermal printer if the dense pattern is located at the first line position;
[0062] The print head module is used to define the alignment points of the dense pattern in the dense printing mode of the thermal printer, and trigger the positioning movement of the print head according to the alignment points of the dense pattern; and trigger the print head to print the dense pattern along the alignment points of the dense pattern;
[0063] An optimization module, for collecting a printing image of a dense pattern in real time, determining a plurality of printing abnormal parts according to the printing image of the dense pattern, defining abnormality types according to the plurality of printing abnormal parts, and matching corresponding optimization means according to the abnormality type and the current printing speed of the print head;
[0064] The self-regulation module is used to trigger the balance relationship in the regulation combination according to the regulation combination and multiple printing abnormal parts in the optimization method, so as to trigger the self-regulation of the regulation combination until a printed image with a qualified dense pattern is output.
[0065] In an embodiment of the present invention, through the method in the embodiment of the present invention, if the position of the dense pattern is in the first line position, the intensive printing mode of the thermal printer is triggered; in the intensive printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, thereby performing targeted printing on the dense pattern, and overall control is performed in the intensive printing mode of the thermal printer.
[0066] At the same time, the printed image of the dense pattern is collected in real time, and multiple printing abnormal parts are determined based on the printed image of the dense pattern, and the abnormality type is defined based on the multiple printing abnormal parts, and the corresponding optimization means are matched according to the abnormality type and the current printing speed of the print head; in the optimization means, the balance relationship in the control combination is triggered according to the control combination and the multiple printing abnormal parts to trigger the self-regulation of the control combination until a qualified printed image of the dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] 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.
[0068] Figure 1 is a flow chart of a method for controlling the printing of a pattern by a thermal printer in an embodiment of the present invention;
[0069] Figure 2 is a flow chart of S11 in the method for controlling the printing of a pattern by a thermal printer in an embodiment of the present invention;
[0070] Figure 3 is a flow chart of S12 in the method for controlling printing of a pattern by a thermal printer in an embodiment of the present invention;
[0071] Figure 4 is a flow chart of S13 in the method for controlling the printing of a pattern by a thermal printer in an embodiment of the present invention;
[0072] Figure 5 is a flow chart of S14 in the method for controlling the printing of a pattern by a thermal printer in an embodiment of the present invention;
[0073] Figure 6 is a flow chart of S15 in the method for controlling printing of a pattern by a thermal printer in an embodiment of the present invention;
[0074] Figure 7 is a flow chart of S16 in the method for controlling the printing of a pattern by a thermal printer in an embodiment of the present invention;
[0075] Figure 8 Schematic diagram of the structure of a thermal printer controlling system for printing patterns in an embodiment of the present invention;
[0076] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0077] 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.
[0078] Method Embodiment
[0079] See also Figures 1 to 9 , a method for controlling the printing of a pattern by a thermal printer, applied to a scenario in which a thermal printer controls the printing of a pattern; the method for controlling the printing of a pattern by a thermal printer comprises:
[0080] Step S11: collecting the content to be printed by the thermal printer, and determining the pattern area according to the traversal of the content to be printed;
[0081] Step S12: defining a dense pattern according to the identification of the pattern area, and marking the position of the dense pattern;
[0082] Step S13: If the dense pattern is located at the first row, triggering the dense printing mode of the thermal printer;
[0083] Step S14: in the dense printing mode of the thermal printer, defining the alignment points of the dense pattern, and triggering the positioning movement of the print head according to the alignment points of the dense pattern; triggering the print head to print the dense pattern along the alignment points of the dense pattern;
[0084] Step S15: collecting a printing image of a dense pattern in real time, determining a plurality of printing abnormal parts according to the printing image of the dense pattern, defining abnormality types according to the plurality of printing abnormal parts, and matching corresponding optimization means according to the abnormality type and the current printing speed of the print head;
[0085] Step S16: In the optimization method, the balance relationship in the control combination is triggered according to the control combination and the multiple printing abnormal parts, so as to trigger the self-control of the control combination until a print image of a qualified dense pattern is output.
[0086] In an embodiment of the present invention, through the method in the embodiment of the present invention, if the position of the dense pattern is in the first line position, the intensive printing mode of the thermal printer is triggered; in the intensive printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, thereby performing targeted printing on the dense pattern, and overall control is performed in the intensive printing mode of the thermal printer.
[0087] At the same time, the printed image of the dense pattern is collected in real time, and multiple printing abnormal parts are determined based on the printed image of the dense pattern, and the abnormality type is defined based on the multiple printing abnormal parts, and the corresponding optimization means are matched according to the abnormality type and the current printing speed of the print head; in the optimization means, the balance relationship in the control combination is triggered according to the control combination and the multiple printing abnormal parts to trigger the self-regulation of the control combination until a qualified printed image of the dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions.
[0088] refer to Figure 2 , in step S11, the content to be printed by the thermal printer is collected, and the pattern area is determined according to the traversal of the content to be printed;
[0089] In the specific implementation process of the present invention, the specific steps may be:
[0090] S111: locating a working space of the thermal printer, and locating a print arrangement table according to the working space;
[0091] S112: defining the content to be printed by the thermal printer based on the print arrangement table and the working progress of the thermal printer;
[0092] S113: collecting the content to be printed by the thermal printer and freezing the content to be printed;
[0093] S114: defining a traversal pattern based on the content distribution style of the content to be printed, and traversing the content to be printed along the traversal pattern;
[0094] S115: Determine a pattern area based on the traversal of the content to be printed.
[0095] In an embodiment of the present application, the working space of the thermal printer is located, and the print arrangement table is located according to the working space, so as to introduce the print arrangement table, thereby defining the content to be printed by the thermal printer based on the print arrangement table and the working progress of the thermal printer, so as to clarify the content to be printed by the thermal printer, and make full use of the print arrangement table and the working progress of the thermal printer to control in multiple dimensions, thereby ensuring the accuracy of the content to be printed.
[0096] At this time, the content to be printed by the thermal printer is collected and frozen, so as to define a traversal mode based on the content distribution style of the content to be printed, thereby matching the corresponding traversal mode according to the content distribution style.
[0097] In order to carry out targeted traversal of the content to be printed according to the traversal mode, the content to be printed is traversed along the traversal mode, and then the pattern area is determined based on the traversal of the content to be printed, so as to determine the pattern area based on the content to be printed, and perform subsequent management and control on the pattern area.
[0098] refer to Figure 3 , in step S12, a dense pattern is defined according to the identification of the pattern area, and the position of the dense pattern is marked;
[0099] In the specific implementation process of the present invention, the specific steps may be:
[0100] S121: freeze pattern area;
[0101] S122: triggering positioning detection based on the pattern area, and outputting a coherent pattern during positioning detection;
[0102] S123: define the coherence scope of the coherence pattern and the content presented;
[0103] S124: defining a dense pattern based on the identification of the coherent range and the presented content;
[0104] S125: Associating dense patterns and pattern areas;
[0105] S126: defining the position of the dense pattern based on the dense pattern and the pattern area, and marking the position of the dense pattern.
[0106] In an embodiment of the present application, a pattern area is frozen and further controlled, so that positioning detection is triggered based on the pattern area, and a continuity pattern is output during the positioning detection, so as to facilitate processing of the continuity pattern.
[0107] At this time, the coherence range of the coherence pattern and the presented content are defined to facilitate the introduction of the coherence range of the coherence pattern and the presented content, and the coherence range of the coherence pattern and the presented content are controlled in an overall manner, so as to define a dense pattern based on the recognition of the coherence range and the presented content, and realize the output of the dense pattern, so as to ensure the accuracy of the dense pattern.
[0108] Furthermore, dense patterns and pattern areas are controlled and associated so that the position of the dense pattern is defined based on the dense pattern and pattern area, thereby clarifying the position of the dense pattern and marking the position of the dense pattern for subsequent further processing of the position of the dense pattern.
[0109] refer to Figure 4 , in step S13, if the position of the dense pattern is at the first line position, the dense printing mode of the thermal printer is triggered;
[0110] In the specific implementation process of the present invention, the specific steps may be:
[0111] S131: freeze the position of dense pattern;
[0112] S132: associating the first row position and the position of the dense pattern based on the first row position corresponding to the pattern area mark;
[0113] S133: comparing the first row position and the dense pattern position;
[0114] S134: If the dense pattern is located at the first row, define a space ratio according to the dense pattern and the pattern area;
[0115] S135: matching the first mode parameter according to the spatial proportion, and defining the second mode parameter according to the spatial position of the dense pattern relative to the pattern area;
[0116] S136: Matching the intensive printing mode of the thermal printer based on the second mode parameter and the first mode parameter, and defining a mode level of the intensive printing mode to trigger the intensive printing mode of the thermal printer.
[0117] In an embodiment of the present application, the position of a dense pattern is frozen and controlled. In addition, based on the first row position corresponding to the pattern area mark, the first row position and the position of the dense pattern are introduced to associate the first row position and the position of the dense pattern.
[0118] At this time, the first row position and the position of the dense pattern are compared, so as to compare the first row position and the position of the dense pattern, thereby determining whether the position of the dense pattern is in the first row position.
[0119] Furthermore, if the dense pattern is located in the first row, the space ratio is defined based on the dense pattern and the pattern area, so as to further control the space ratio, match the first mode parameters based on the space ratio, and define the second mode parameters based on the spatial position of the dense pattern relative to the pattern area.
[0120] Therefore, the second mode parameters and the first mode parameters are introduced, and the space occupation and the spatial position of the dense pattern relative to the pattern area are controlled as a whole, so as to match the intensive printing mode of the thermal printer based on the second mode parameters and the first mode parameters, so as to clarify the intensive printing mode of the thermal printer, and perform targeted processing on the dense pattern through the intensive printing mode of the thermal printer. At the same time, the mode level of the intensive printing mode is defined to trigger the intensive printing mode of the thermal printer.
[0121] refer to Figure 5 , S14: in a dense printing mode of the thermal printer, defining alignment points of a dense pattern, and triggering the positioning movement of the print head according to the alignment points of the dense pattern; triggering the print head to print the dense pattern along the alignment points of the dense pattern;
[0122] In the specific implementation process of the present invention, the specific steps may be:
[0123] S141: in a dense printing mode of the thermal printer, traversing a dense pattern;
[0124] S142: defining an alignment point of the dense pattern according to a dense coefficient of the dense pattern and a plurality of printing parameters of the print head;
[0125] S143: triggering the positioning movement of the print head according to the alignment point of the dense pattern, at this time, collecting the alignment point of the dense pattern and the current position of the print head;
[0126] S144: determining a moving track of the print head according to the alignment point of the dense pattern and the current position of the print head, and moving along the moving track until the print head is at the alignment point of the dense pattern;
[0127] S145: Triggering the print head to print the dense pattern along the alignment points of the dense pattern. At this time, the working trajectory of the print head is defined based on the alignment points of the dense pattern and the positions of the core areas in the dense pattern, and dynamic printing is performed along the working trajectory of the print head.
[0128] In an embodiment of the present application, in a dense printing mode of a thermal printer, a dense pattern is traversed to facilitate further processing of the dense pattern. At the same time, an alignment point of the dense pattern is defined according to a dense coefficient of the dense pattern and multiple printing parameters of the print head, and an alignment point of the dense pattern is introduced. The position where printing starts in the dense pattern is defined based on the alignment point. At the same time, the printing position of the print head is regulated based on the alignment point, and printing of the dense pattern is controlled starting from the alignment point.
[0129] Furthermore, the positioning movement of the print head is triggered according to the alignment point of the dense pattern. At this time, the alignment point of the dense pattern and the current position of the print head are collected to introduce the alignment point of the dense pattern and the current position of the print head, and the movement trajectory of the print head is determined according to the alignment point of the dense pattern and the current position of the print head, thereby clarifying the movement trajectory, and the print head moves along the movement trajectory until the print head is at the alignment point of the dense pattern, ensuring that the print head is in place at the alignment point of the dense pattern.
[0130] The print head is triggered to print the dense pattern along the alignment points of the dense pattern. At this time, the working trajectory of the print head is defined based on the alignment points of the dense pattern and the positions of the core areas in the dense pattern, and dynamic printing is performed along the working trajectory of the print head to gradually complete the printing of the dense pattern.
[0131] Therefore, if the position of the dense pattern is in the first line position, the dense printing mode of the thermal printer is triggered; in the dense printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, thereby performing targeted printing on the dense pattern and performing overall control in the intensive printing mode of the thermal printer.
[0132] refer to Figure 6 , S15: collecting the printing image of the dense pattern in real time, and determining a plurality of printing abnormal parts according to the printing image of the dense pattern, and defining abnormality types according to the plurality of printing abnormal parts, and matching corresponding optimization means according to the abnormality type and the current printing speed of the print head;
[0133] In the specific implementation process of the present invention, the specific steps may be:
[0134] S151: real-time acquisition of a printing image of a dense pattern;
[0135] S152: Dynamic detection is performed based on the printed image. At this time, the print head is associated with the printing logic and the detection logic. The print head prints the dense pattern based on the printing logic, and the print head dynamically detects the printed image based on the detection logic.
[0136] S153: outputting a plurality of abnormal areas in sequence based on dynamic detection of the printed image;
[0137] S154: determining a plurality of printing abnormal parts based on the region recognition of the plurality of abnormal regions;
[0138] S155: defining an abnormality type according to a plurality of abnormal printing parts and a type matching table;
[0139] S156: freeze abnormality type, current printing speed of the print head;
[0140] S157: Matching corresponding optimization means according to the abnormality type and the current printing speed of the print head.
[0141] In an embodiment of the present application, a printed image of a dense pattern is collected in real time to facilitate dynamic shooting of the printed image of the dense pattern. At the same time, dynamic detection is performed based on the printed image. At this time, the print head is associated with printing logic and detection logic. The print head prints the dense pattern based on the printing logic, and the print head dynamically detects the printed image based on the detection logic.
[0142] Furthermore, printing logic and detection logic are introduced so that the printing logic and detection logic can control the printing effect of dense patterns and the detection effect of printed images, thereby performing an overall evaluation on the printing effect of dense patterns and the detection effect of printed images.
[0143] Therefore, multiple abnormal areas are output sequentially based on dynamic detection of the printed image, so that multiple abnormal areas can be determined based on the printed image, and multiple printing abnormal parts can be determined based on area recognition of the multiple abnormal areas, so as to facilitate the management of the multiple printing abnormal parts, thereby achieving overall management of the multiple printing abnormal parts.
[0144] At the same time, the abnormal type is defined according to multiple printing abnormal parts and the type matching table; the abnormal type and the current printing speed of the print head are fixed; the corresponding optimization means are matched according to the abnormal type and the current printing speed of the print head, and then the print head is optimized based on the optimization means, and the printing abnormal part is gradually eliminated.
[0145] refer to Figure 7 , S16: in the optimization means, triggering a balance relationship in the control combination according to the control combination and the plurality of printing abnormal parts, so as to trigger self-control of the control combination until a print image of a qualified dense pattern is output;
[0146] In the specific implementation process of the present invention, the specific steps may be:
[0147] S161: In the optimization method, the paper feed speed, the printing speed, and the temperature of the print head are collected;
[0148] S162: Dynamically control the paper feed speed, the printing speed, and the temperature of the print head, and construct a control combination based on the paper feed speed, the printing speed, and the temperature of the print head;
[0149] S163: Associating the control combination and the plurality of printing abnormal parts;
[0150] S164: Matching corresponding optimization solutions based on multiple printing abnormal parts and control combinations;
[0151] S165: defining a corresponding balance level according to the optimization scheme;
[0152] S166: defining a balance relationship in the control combination according to the balance level and the control combination, and triggering the balance relationship in the control combination;
[0153] S167: triggering self-regulation of the regulation combination based on the balance relationship in the regulation combination;
[0154] S168: A dynamic interaction among paper feed speed, printing speed, and print head temperature is constructed until a print image with a qualified dense pattern is output.
[0155] In the specific implementation process of the present invention, a printed image of a dense pattern is collected in real time, and a plurality of printing abnormal parts are determined based on the printed image of the dense pattern, and the abnormality type is defined based on the plurality of printing abnormal parts, and the corresponding optimization means are matched according to the abnormality type and the current printing speed of the print head; in the optimization means, a balance relationship in the control combination is triggered according to the control combination and the plurality of printing abnormal parts to trigger the self-regulation of the control combination until a qualified printed image of the dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions.
[0156] At this time, in the optimization method, the paper feed speed, printing speed, and temperature of the print head are collected to facilitate regulation based on the paper feed speed, printing speed, and temperature of the print head. Therefore, dynamic regulation is performed based on the paper feed speed, printing speed, and temperature of the print head, and a control combination is constructed based on the paper feed speed, printing speed, and temperature of the print head, so as to facilitate overall presentation based on the control combination, and gradually optimize multiple printing abnormal parts based on the control combination.
[0157] Furthermore, the control combination and the multiple printing abnormal parts are associated; and corresponding optimization schemes are matched based on the multiple printing abnormal parts and the control combination, so as to perform optimization processing based on the optimization scheme and optimize the multiple printing abnormal parts.
[0158] At this time, the corresponding balance level is defined according to the optimization scheme; the balance relationship in the control combination is defined according to the balance level and the control combination, and the balance relationship in the control combination is triggered, so as to regulate the balance relationship in the control combination, and trigger the self-regulation of the control combination based on the balance relationship in the control combination, so as to realize the corresponding dynamic adjustment of the paper feed speed, printing speed and temperature of the print head in the control combination, and maintain the stability among the paper feed speed, printing speed and temperature of the print head, so as to construct the dynamic interaction of the paper feed speed, printing speed and temperature of the print head, until a qualified printed image of a dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions.
[0159] In an embodiment of the present invention, through the method in the embodiment of the present invention, if the position of the dense pattern is in the first line position, the intensive printing mode of the thermal printer is triggered; in the intensive printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, thereby performing targeted printing on the dense pattern, and overall control is performed in the intensive printing mode of the thermal printer.
[0160] At the same time, the printed image of the dense pattern is collected in real time, and multiple printing abnormal parts are determined based on the printed image of the dense pattern, and the abnormality type is defined based on the multiple printing abnormal parts, and the corresponding optimization means are matched according to the abnormality type and the current printing speed of the print head; in the optimization means, the balance relationship in the control combination is triggered according to the control combination and the multiple printing abnormal parts to trigger the self-regulation of the control combination until a qualified printed image of the dense pattern is output, thereby ensuring the accuracy of the printed image of the dense pattern and improving the printing effect of the print head on the dense pattern from multiple dimensions.
[0161] System Example
[0162] See also Figure 8 , Figure 8 It is a schematic diagram of the structure of a printing control system for a pattern by a thermal printer in an embodiment of the present invention.
[0163] like Figure 8 As shown, a thermal printer prints a pattern control system, and the thermal printer prints a pattern control system comprising:
[0164] The acquisition module 21 is used to acquire the content to be printed by the thermal printer and determine the pattern area according to the traversal of the content to be printed;
[0165] A location module 22, for defining a dense pattern according to the identification of the pattern area, and marking the location of the dense pattern;
[0166] The printing mode module 23 is used to trigger the dense printing mode of the thermal printer if the dense pattern is located at the first line position;
[0167] The print head module 24 is used to define the alignment points of the dense pattern in the dense printing mode of the thermal printer, and trigger the positioning movement of the print head according to the alignment points of the dense pattern; and trigger the print head to print the dense pattern along the alignment points of the dense pattern;
[0168] The optimization module 25 is used to collect the printing image of the dense pattern in real time, determine multiple printing abnormal parts according to the printing image of the dense pattern, define abnormality types according to the multiple printing abnormal parts, and match corresponding optimization means according to the abnormality type and the current printing speed of the print head;
[0169] The self-regulation module 26 is used to trigger the balance relationship in the regulation combination according to the regulation combination and multiple printing abnormal parts in the optimization method, so as to trigger the self-regulation of the regulation combination until a printed image with a qualified dense pattern is output.
[0170] Device Embodiment
[0171] 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.
[0172] 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).
[0173] 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.
[0174] 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 .
[0175] The storage unit 42 may also include a program / utility 424 having a set of (at least one) self-regulating modules 425, such self-regulating modules 425 including but not limited to: an operating system, one or more application programs, other self-regulating modules, and program data, each of which or some combination may include the implementation of a network environment.
[0176] 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.
[0177] 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.
[0178] 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.
[0179] 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.
[0180] In addition, the above is a detailed introduction to the printing control method and system of the thermal printer for patterns provided in the embodiment of the present invention. 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 methods 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 controlling the printing of a pattern by a thermal printer, characterized in that: Applicable to thermal printers for pattern printing control scenarios; The thermal printer printing control method for a pattern comprises: Collect the content to be printed by the thermal printer, and determine the pattern area according to the traversal of the content to be printed; locate the working space of the thermal printer, and locate the print arrangement table according to the working space; define the content to be printed by the thermal printer based on the print arrangement table and the working progress of the thermal printer; collect the content to be printed by the thermal printer, and freeze the content to be printed; define the traversal mode based on the content distribution style of the content to be printed, and traverse the content to be printed along the traversal mode; determine the pattern area based on the traversal of the content to be printed; Defining dense patterns based on the recognition of pattern areas and marking the positions of the dense patterns; freezing the pattern areas; triggering positioning detection based on the pattern areas and outputting coherent patterns in the positioning detection; defining the coherent range and the presented content of the coherent patterns; defining dense patterns based on the recognition of the coherent range and the presented content; associating dense patterns with pattern areas; defining the positions of dense patterns based on the dense patterns and the pattern areas and marking the positions of the dense patterns; If the position of the dense pattern is at the first line position, the dense printing mode of the thermal printer is triggered; the position of the dense pattern is frozen; based on the first line position corresponding to the pattern area mark, the first line position and the position of the dense pattern are associated; the first line position and the position of the dense pattern are compared; if the position of the dense pattern is at the first line position, the space proportion is defined according to the dense pattern and the pattern area; the first mode parameter is matched according to the space proportion, and the second mode parameter is defined according to the spatial position of the dense pattern relative to the pattern area; the intensive printing mode of the thermal printer is matched based on the second mode parameter and the first mode parameter, and the mode level of the intensive printing mode is defined to trigger the intensive printing mode of the thermal printer; In the dense printing mode of the thermal printer, the alignment points of the dense pattern are defined, and the positioning movement of the print head is triggered according to the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern; in the dense printing mode of the thermal printer, the dense pattern is traversed; the alignment points of the dense pattern are defined according to the dense coefficient of the dense pattern and multiple printing parameters of the print head; the positioning movement of the print head is triggered according to the alignment points of the dense pattern, at this time, the alignment points of the dense pattern and the current position of the print head are collected; the movement trajectory of the print head is determined according to the alignment points of the dense pattern and the current position of the print head, and the print head is moved along the movement trajectory until the print head is at the alignment points of the dense pattern; the print head is triggered to print the dense pattern along the alignment points of the dense pattern, at this time, the working trajectory of the print head is defined based on the alignment points of the dense pattern and the position of the core area in the dense pattern, and dynamic printing is performed along the working trajectory of the print head; Collecting a printing image of a dense pattern in real time, determining multiple printing abnormal parts according to the printing image of the dense pattern, defining abnormal types according to the multiple printing abnormal parts, and matching corresponding optimization means according to the abnormal type and the current printing speed of the print head; In the optimization method, the balance relationship in the control combination is triggered according to the control combination and multiple printing abnormal parts, so as to trigger the self-regulation of the control combination until a printed image of a qualified dense pattern is output; in the optimization method, the paper feed speed, printing speed, and print head temperature are collected; dynamic regulation is performed based on the paper feed speed, printing speed, and print head temperature, and a control combination is constructed based on the paper feed speed, printing speed, and print head temperature; the control combination and multiple printing abnormal parts are associated; the corresponding optimization scheme is matched based on the multiple printing abnormal parts and the control combination; the corresponding balance level is defined according to the optimization scheme; the balance relationship in the control combination is defined according to the balance level and the control combination, and the balance relationship in the control combination is triggered; the self-regulation of the control combination is triggered based on the balance relationship in the control combination; the dynamic interaction of the paper feed speed, printing speed, and print head temperature is constructed until a printed image of a qualified dense pattern is output.
2. The method for controlling the printing of a pattern by a thermal printer according to claim 1, characterized in that: The real-time acquisition of the printing image of the dense pattern, and the determination of multiple printing abnormal parts according to the printing image of the dense pattern, and the definition of abnormality types according to the multiple printing abnormal parts, and the matching of corresponding optimization means according to the abnormality type and the current printing speed of the print head include: Real-time acquisition of printed images of dense patterns; Dynamic detection is performed based on the printed image. At this time, the print head is associated with the printing logic and the detection logic. The print head prints the dense pattern based on the printing logic, and the print head performs dynamic detection on the printed image based on the detection logic.
3. The method for controlling the printing of a pattern by a thermal printer according to claim 2, characterized in that: The method includes collecting a printing image of a dense pattern in real time, determining a plurality of printing abnormal parts according to the printing image of the dense pattern, defining abnormality types according to the plurality of printing abnormal parts, and matching corresponding optimization means according to the abnormality type and the current printing speed of the print head, and further comprising: Outputting a plurality of abnormal areas sequentially based on dynamic detection of the printed image; determining a plurality of printing abnormal parts based on region recognition of the plurality of abnormal regions; defining an exception type according to a plurality of print exception parts and a type matching table; Freeze abnormality type, current printing speed of the print head; According to the abnormality type, the current printing speed of the print head is matched with the corresponding optimization means.
4. A thermal printer printing control system for patterns, characterized in that: The printing control system of the thermal printer for patterns is applied to the printing control method of the thermal printer for patterns as claimed in any one of claims 1 to 3, and the printing control system of the thermal printer for patterns comprises: The acquisition module is used to acquire the content to be printed by the thermal printer, and determine the pattern area according to the traversal of the content to be printed; locate the working space of the thermal printer, and locate the print arrangement table according to the working space; define the content to be printed by the thermal printer based on the print arrangement table and the working progress of the thermal printer; acquire the content to be printed by the thermal printer, and freeze the content to be printed; define the traversal mode based on the content distribution style of the content to be printed, and traverse the content to be printed along the traversal mode; determine the pattern area based on the traversal of the content to be printed; A position module, used to define a dense pattern according to the recognition of a pattern area, and mark the position of the dense pattern; freeze the pattern area; trigger positioning detection based on the pattern area, and output a coherent pattern in the positioning detection; define the coherent range and the presented content of the coherent pattern; define a dense pattern based on the recognition of the coherent range and the presented content; associate the dense pattern with the pattern area; define the position of the dense pattern based on the dense pattern and the pattern area, and mark the position of the dense pattern; A printing mode module, used for triggering a dense printing mode of a thermal printer if the dense pattern is located at the first line position; freezing the position of the dense pattern; associating the first line position with the position of the dense pattern based on the first line position corresponding to the pattern area mark; comparing the first line position with the position of the dense pattern; if the dense pattern is located at the first line position, defining a spatial proportion according to the dense pattern and the pattern area; matching a first mode parameter according to the spatial proportion, and defining a second mode parameter according to the spatial position of the dense pattern relative to the pattern area; matching the dense printing mode of the thermal printer based on the second mode parameter and the first mode parameter, and defining a mode level of the dense printing mode to trigger the dense printing mode of the thermal printer; A print head module, used to define the alignment points of dense patterns in the dense printing mode of a thermal printer, and trigger the positioning movement of the print head according to the alignment points of the dense patterns; trigger the print head to print the dense patterns along the alignment points of the dense patterns; freeze the position of the dense patterns; associate the first line position with the position of the dense patterns based on the first line position corresponding to the pattern area mark; compare the first line position with the position of the dense patterns; if the position of the dense patterns is at the first line position, define the space proportion according to the dense patterns and the pattern areas; match the first mode parameters according to the space proportion, and define the second mode parameters according to the spatial position of the dense patterns relative to the pattern areas; match the dense printing mode of the thermal printer based on the second mode parameters and the first mode parameters, and define the mode level of the dense printing mode to trigger the dense printing mode of the thermal printer; an optimization module, used to collect the printing images of the dense patterns in real time, determine multiple printing abnormal parts according to the printing images of the dense patterns, define the abnormality type according to the multiple printing abnormal parts, and match the corresponding optimization means according to the abnormality type and the current printing speed of the print head; A self-regulation module is used to trigger the balance relationship in the regulation combination according to the regulation combination and multiple printing abnormal parts in the optimization means, so as to trigger the self-regulation of the regulation combination until a printed image with a qualified dense pattern is output; in the optimization means, the paper feed speed, the printing speed, and the temperature of the print head are collected; dynamic regulation is performed based on the paper feed speed, the printing speed, and the temperature of the print head, and a regulation combination is constructed based on the paper feed speed, the printing speed, and the temperature of the print head; the regulation combination and multiple printing abnormal parts are associated; the corresponding optimization scheme is matched based on the multiple printing abnormal parts and the regulation combination; the corresponding balance level is defined according to the optimization scheme; the balance relationship in the regulation combination is defined according to the balance level and the regulation combination, and the balance relationship in the regulation combination is triggered; the self-regulation of the regulation combination is triggered based on the balance relationship in the regulation combination; the dynamic interaction of the paper feed speed, the printing speed, and the temperature of the print head is constructed until a printed image with a qualified dense pattern is output.
