A printing method, apparatus, printing device and storage medium
Patent Information
- Application Number
- CN202410359926.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2044-03-27
AI Technical Summary
In existing printing equipment, insufficient printhead heat during printing results in unclear printed content, while excessive heat can easily lead to overheating, causing inconsistent printing results and wasting energy and materials.
By acquiring an image of the previous print file containing the data to be printed, analyzing the image features and heat matrix, calculating the heat matrix required for this print job, and adjusting the printing parameters of the printing equipment to achieve standard print quality.
It achieves consistent printing results, reduces energy consumption and material waste, and improves printing quality.
Smart Images

Figure CN118254488B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image printing technology, and in particular to a printing method, apparatus, printing device and storage medium. Background Technology
[0002] Currently, the demand for printing equipment is increasing. Existing printing equipment typically uses a fixed heating mode for the print head during printing. At the beginning of printing, insufficient heat from the print head results in faint or unclear prints. As heat accumulates, excessive heat can easily occur, especially with text containing many strokes or small fonts, leading to blurry prints. Furthermore, printing multiple copies may result in inconsistent print quality for each document. Therefore, the current method produces poor print quality, leading to unnecessary energy and material consumption. Improving print quality has thus become a pressing issue. Summary of the Invention
[0003] This application provides a printing method, apparatus, printing device, and storage medium that can reduce energy consumption and waste of consumables, and improve printing quality.
[0004] Firstly, this application provides a printing method, the method comprising:
[0005] The first image is obtained by acquiring an image of the previous print file corresponding to the data to be printed.
[0006] Determine the previous heat matrix of the printing device when printing the previous printed document;
[0007] By analyzing the first image and the previous heat matrix, the current heat matrix required to print the data to be printed at standard print quality is obtained.
[0008] Based on the current heat matrix, the printing parameters of the printing device are adjusted, and the current print file of the data to be printed is printed based on the adjusted printing parameters.
[0009] Furthermore, the step of obtaining the current heat matrix required for printing the data to be printed at standard print quality by analyzing the first image and the previous heat matrix includes: extracting the shape and content features of the first image; analyzing the shape features based on the original bitmap image of the data to be printed to obtain a print adjustment coefficient; analyzing the content features based on the original bitmap image to obtain a dot compensation matrix; and performing data processing on the previous heat matrix, the print adjustment coefficient, and the dot compensation matrix to obtain the current heat matrix.
[0010] Furthermore, the shape and surface features include texture density features and pattern shape features, and the print adjustment coefficient includes area adjustment coefficient and density adjustment coefficient; the step of analyzing the shape and surface features based on the original bitmap image of the data to be printed to obtain the print adjustment coefficient includes: determining the original print area and original print density based on the original bitmap image; determining the actual print density corresponding to the previous print file based on the texture density features; determining the actual print area corresponding to the previous print file based on the pattern shape features; performing data processing on the actual print area and the original print area to obtain the area adjustment coefficient; and performing data processing on the actual print density and the original print density to obtain the density adjustment coefficient.
[0011] Furthermore, the print head in the printing device includes multiple heating elements, the content features include color distribution features and surface defect features, and the pixel compensation matrix includes a pixel defect matrix and a pixel depth matrix. The step of analyzing the content features based on the original bitmap image to obtain the pixel compensation matrix includes: for the current heating element in the print head, determining the first region corresponding to the current heating element in the original bitmap image, and determining the second region corresponding to the current heating element in the first image; determining the color depth relationship between the pattern in the first region and the pattern in the second region based on the color distribution features, sequentially traversing the multiple heating elements to obtain the color depth relationship between the original bitmap image and the first image, and determining the pixel depth matrix based on the color depth relationship; determining the content comparison relationship between the pattern in the first region and the pattern in the second region based on the surface defect features, sequentially traversing the multiple heating elements to obtain the content comparison relationship between the original bitmap image and the first image, and determining the pixel defect matrix based on the content comparison relationship.
[0012] Furthermore, before obtaining the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix, the method further includes: analyzing the first image to obtain the print quality status of the previous printed document; when the print quality status is not standard print quality, triggering the execution of obtaining the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix.
[0013] Furthermore, the step of analyzing the first image to obtain the printing quality status of the previous printed document includes: obtaining the printing speed of the printing device when printing the previous printed document; inputting the printing speed, the previous heat matrix, and the first image into a pre-trained printing quality determination model; and determining the printing quality status based on the output of the printing quality determination model.
[0014] Furthermore, the printing parameters include the heating duration of the printhead, and the printhead includes multiple heating elements; adjusting the printing parameters of the printing device based on the current heat matrix includes: determining the heat output of each heating element based on the current heat matrix; determining the target heating duration of each heating element based on the heat output of each heating element; determining the previous heating duration of each heating element based on the previous heat matrix; for the current heating element, determining the adjustment method for the corresponding heating duration of the current heating element according to the relationship between the target heating duration and the previous heating duration, the adjustment method including increasing or decreasing the heating duration; adjusting the heating duration of the current heating element based on the adjustment method; and sequentially traversing the multiple heating elements to complete the task of adjusting the printing parameters.
[0015] Secondly, this application provides a printing apparatus, which includes:
[0016] The image acquisition module is used to acquire the first image from the previous print file corresponding to the data to be printed.
[0017] The data acquisition module is used to determine the previous heat matrix of the printing device when printing the previous printed document;
[0018] The heat calculation module is used to obtain the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix;
[0019] The document printing module is used to adjust the printing parameters of the printing device based on the current heat matrix, and print the current print file of the data to be printed based on the adjusted printing parameters.
[0020] Thirdly, this application provides a printing apparatus, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the printing method described in any embodiment of this application.
[0021] Fourthly, this application provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the printing method described in any embodiment of this application.
[0022] To address the shortcomings of existing technologies, this application provides a printing method that offers the following advantages: The printing device is equipped with an image acquisition component. After printing the corresponding data to be printed (i.e., obtaining the previous printable document), an image of the previous printable document is acquired to obtain a first image. Based on the image features of the first image and the heat matrix of the print head in the previous moment (i.e., the previous heat matrix), the heat matrix of the print head at the current moment (i.e., the current heat matrix) is calculated, ensuring that the printing effect of the current printable document is consistent with that of the previous printable document, both achieving standard print quality. When printing multiple copies of the data to be printed, this application intelligently adjusts the print head parameters based on the printing effect of the previous printable document. This solves the problem that existing print heads cannot intelligently adjust printing parameters based on the printing effect, avoiding overheating of the next printable document due to heat accumulation in the print head, and resolving the issue of inconsistent printing effects for each printable document. This application can reduce energy consumption and material waste while improving printing quality.
[0023] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the printing device, or it may be packaged separately from the processor of the printing device; this application does not impose any limitations on this.
[0024] The descriptions of the second, third, and fourth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects described in the second, third, and fourth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0025] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description.
[0026] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1A schematic flowchart illustrating a printing method provided in an embodiment of this application;
[0029] Figure 2 This is a schematic diagram of the structure of a printing device provided in an embodiment of this application;
[0030] Figure 3 This is a block diagram of a printing device used to implement a printing method according to an embodiment of this application. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0032] It should be noted that the terms "first," "second," "target," and "original," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprising," "having," and any variations thereof are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] Figure 1 This is a flowchart illustrating a printing method provided in an embodiment of this application. This embodiment is applicable when printing multiple copies of data, adjusting the printing parameters for each print file to ensure consistent print quality across all files. The printing method provided in this embodiment can be executed by the printing device provided in this application. This device can be implemented through software and / or hardware and integrated into the electronic device executing the method. Preferably, the electronic device in this application embodiment can be a printing device, such as a printer.
[0034] See Figure 1 The method in this embodiment includes, but is not limited to, the following steps:
[0035] S110. Acquire the first image by performing image acquisition on the previous print file corresponding to the data to be printed.
[0036] The data to be printed consists of image data that needs to be printed multiple times. The previous print file is the file printed by the printing device at the time preceding the current time. The first image corresponds to the previous print file. An image acquisition component, which can be a vision sensor such as a camera, is configured at an appropriate location on the printing device to capture images of the print file. This embodiment does not limit the specific location of the image acquisition component; optionally, it can be configured above the paper output tray of the printing device. When the data to be printed is finished printing and the print file is located in the paper output tray, the image acquisition component can capture the entire content of the print file.
[0037] In this embodiment, after the printing device has printed the previous document and it is located in the paper output tray, the image acquisition function is triggered, and the image acquisition component is activated. The image acquisition component acquires an image of the previous document in the paper output tray, obtaining a first image corresponding to the previous document.
[0038] S120. Determine the previous heat matrix of the printing device when printing the previous document.
[0039] The heat matrix refers to the heat status of each heat source in the print head of a printing device. For example, if the print head width is 53.312mm and the number of heat sources per row is 640 dots, a heat matrix of 1 row and 640 columns can be obtained based on the first image of the previous printed document.
[0040] In this embodiment, a corresponding heat matrix is calculated when printing each document, and this heat matrix can be recorded in a preset storage unit of the printing device's microcontroller. Therefore, at the current moment, the previous heat matrix corresponding to the previous moment can be retrieved from the preset storage unit, denoted as E. 上 .
[0041] S130. By analyzing the first image and the previous heat matrix, obtain the current heat matrix required to print the data to be printed at standard print quality.
[0042] In this embodiment, the printing effect of the previous printed document can be standard printing quality. The purpose of this application is to avoid the overheating phenomenon of the next printed document due to heat accumulation in the print head. Therefore, the heat matrix required for printing the data to be printed at standard printing quality can be obtained by analyzing the first image and the previous heat matrix, so that the printing effect of each printed document is consistent.
[0043] Specifically, by analyzing the first image and the previous heat matrix, the heat matrix required for printing the data to be printed at standard print quality is obtained, including:
[0044] First, the first image is input into a pre-trained feature extraction model. Based on the output of the feature extraction model, features related to the printing characteristics of the first image are determined, such as, but not limited to, shape and surface features and content features. Among them, shape and surface features include texture density features and pattern shape features, and content features include color distribution features and surface defect features. These features can reflect the visual effect of the previous printed document, thereby helping to determine whether the print head is overheating or underheating.
[0045] Texture density features are used to assess the ink density or color saturation of printed content, which can help detect whether the print quality is uniform, etc. Pattern shape features are used to locate the position of printed content on the paper and detect the geometry of the content. They can check whether the pattern is aligned, whether the shape is correct, and text characteristics such as font, font size, and line spacing, as well as graphic elements and their layout, etc. Color distribution features are used to assess the color differences of printed content, mainly including grayscale, RGB (red, green, blue) or CMYK (cyan, magenta, yellow, black) color modes, etc. Surface defect features are used to detect defects in printed content, such as scratches, missing characters, blur, ghosting, etc.
[0046] Optionally, before performing feature extraction on the first image, image preprocessing can be performed on the first image, such as denoising, binarization, contrast enhancement, etc., to improve image quality and make it more suitable for subsequent analysis.
[0047] Second, the printing adjustment coefficients are obtained by analyzing the shape and surface features of the original bitmap image of the data to be printed. The original bitmap image refers to an image composed of pixels, also known as a raster image or pixel image; the printing adjustment coefficients include area adjustment coefficients and density adjustment coefficients.
[0048] Furthermore, based on the original bitmap image of the data to be printed, the shape and surface features are analyzed to obtain the printing adjustment coefficient, including: calculating the printing area in the entire image based on the original bitmap image, denoted as the original printing area, and calculating the printing density in the entire image, denoted as the original printing density; calculating the actual printing density corresponding to the previous printed file based on the texture density features; calculating the actual printing area corresponding to the previous printed file based on the pattern shape features; and processing the actual printing area and the original printing area to obtain the area adjustment coefficient, denoted as K. area The calculation formula can be: The density adjustment coefficient, denoted as K, is obtained by processing the actual print density and the original print density. density The calculation formula can be:
[0049] Third, the pixel compensation matrix is obtained by analyzing the content features based on the original bitmap image. The print head in the printing device includes multiple heating elements, and the pixel compensation matrix includes a pixel defect matrix and a pixel depth matrix.
[0050] Furthermore, based on the content features of the original bitmap image, a pixel compensation matrix is obtained, including: for the current heat source in the printhead, determining the first region corresponding to the current heat source in the original bitmap image, and determining the second region corresponding to the current heat source in the first image; determining the color depth relationship between the pattern in the first region and the pattern in the second region based on color distribution features; sequentially traversing multiple heat sources to obtain the color depth relationship between the original bitmap image and the first image; and determining the pixel depth matrix based on the color depth relationship, denoted as... Based on surface defect features, the content comparison relationship between the patterns in the first region and the patterns in the second region is determined. After sequentially traversing multiple heat elements, the content comparison relationship between the original bitmap image and the first image is obtained. Based on the content comparison relationship, the pixel defect matrix is determined, denoted as...
[0051] For example, determining the color depth relationship between the pattern in the first region and the pattern in the second region based on color distribution characteristics can be as follows: if the pixel difference between the pattern in the first region (i.e., the printed content of the original bitmap image) and the pattern in the second region (i.e., the content of the previous printed document) is positive and greater than a first value, it is marked as 1; if the pixel difference between the pattern in the first region and the pattern in the second region is negative and less than a second value, it is marked as -1; and if the pixel difference between the pattern in the first region and the pattern in the second region is within a threshold range, it is marked as 0.
[0052] For another example, the comparison relationship between the patterns in the first region and the patterns in the second region can be determined based on the surface defect characteristics. This can be done by marking the pattern in the first region (i.e., the printed content of the original bitmap image) as having more content than the pattern in the second region (i.e., the content of the previous printed document) as 1, the pattern in the first region as having less content than the pattern in the second region as -1, and the pattern in the first region as having the same content as the pattern in the second region as 0.
[0053] Fourth, the previous heat matrix, printing adjustment coefficient, and point compensation matrix are processed to obtain the current heat matrix, denoted as E. 当前 The calculation formula can be: Among them, E 上 This represents the previous heat matrix corresponding to the previous printed file. W1 is the weighting coefficient of the area adjustment factor in the heating process, and W2 is the weighting coefficient of the density adjustment factor in the heating process. For pixel defect matrix, For the pixel depth matrix, K area K is the area adjustment coefficient. density This is the density adjustment coefficient.
[0054] S140. Adjust the printing parameters of the printing equipment based on the current heat matrix, and print the current print file of the data to be printed based on the adjusted printing parameters.
[0055] The printing parameters include the printhead heating time.
[0056] Specifically, the printing parameters of the printing equipment are adjusted based on the current heat matrix. This includes: each element in the heat matrix represents the heat output of the corresponding heating element, so the heat output of each heating element can be determined based on the current heat matrix. Based on the heat output of each heating element, the target heating duration of each heating element is calculated according to a preset calculation formula. Using the same method, the previous heating duration of each heating element can be determined based on the previous heat matrix. The print head includes multiple heating elements. For the current heating element, the adjustment method for the corresponding heating duration is determined according to the relationship between the target heating duration and the previous heating duration. The adjustment method includes increasing or decreasing the heating duration. The heating duration of the current heating element is adjusted based on the adjustment method, such as increasing or decreasing the difference between the target heating duration and the previous heating duration to make the heating duration of the heating element reach the target heating duration. This process is repeated for all heating elements to complete the task of adjusting the printing parameters.
[0057] Optionally, the heating duration of the print head in the printing device can be adjusted based on the current printing speed of the printing device, the printing effect of the previous printed document, and the current heat matrix, in order to improve printing accuracy and heating efficiency.
[0058] The technical solution provided in this embodiment obtains a first image by acquiring an image of the previous print file corresponding to the data to be printed; determines the previous heat matrix of the printing device when printing the previous print file; obtains the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix; adjusts the printing parameters of the printing device based on the current heat matrix; and prints the current print file of the data to be printed based on the adjusted printing parameters. The printing device of this application is equipped with an image acquisition component. After printing the corresponding data to be printed at the previous moment (i.e., obtaining the previous print file), it acquires an image of the previous print file to obtain a first image. Based on the image features of the first image and the heat matrix of the print head at the previous moment (i.e., the previous heat matrix), it calculates the heat matrix of the print head at the current moment (i.e., the current heat matrix), so that the printing effect of the current print file is consistent with that of the previous print file, and both are of standard print quality. When printing multiple copies of the data to be printed, this application intelligently adjusts the printing parameters of the print head according to the printing effect of the previous print file. This solves the problem that existing print heads cannot intelligently adjust printing parameters according to the printing effect, avoids the phenomenon of overheating of the print head due to heat accumulation in the next print file, and solves the problem of inconsistent printing effects of each print file. This application can reduce energy consumption and waste of consumables and improve printing effect.
[0059] In another optional embodiment, the printing method of this application can also be used to correct the printing effect of the printer. The previous printed document can be a test document, and the printing effect of the test document can be non-standard printing quality. The current printed document can be a formal printed document. The printing parameters of the print head in the printing device are adjusted according to the printing quality of the test document, and the formal printed document is printed based on the adjusted printing parameters.
[0060] Specifically, before obtaining the current heat matrix required for printing the data to be printed at standard print quality by analyzing the first image and the previous heat matrix, the process also includes: analyzing the first image to obtain the print quality status of the previous printed document; when the print quality status is not standard print quality, the print parameters of the print head need to be adjusted, which triggers the execution of obtaining the current heat matrix required for printing the data to be printed at standard print quality by analyzing the first image and the previous heat matrix.
[0061] The process of analyzing the first image to determine the print quality of the previous printed document includes: acquiring the printing speed of the printing device when printing the previous document; inputting the printing speed, the previous heat matrix, and the first image into a pre-trained print quality determination model; and determining the print quality based on the output of the print quality determination model. The print quality determination model can be a mapping relationship model between printing speed, printhead heat matrix, and printing effect established based on the image features of the corresponding image of the printed document, used to evaluate the print quality of the printed document.
[0062] Figure 2 This is a schematic diagram of the structure of a printing device provided in an embodiment of this application, such as... Figure 2 As shown, the device 200 may include:
[0063] Image acquisition module 210 is used to acquire an image of the previous print file corresponding to the data to be printed to obtain a first image;
[0064] Data acquisition module 220 is used to determine the previous heat matrix of the printing device when printing the previous printed document;
[0065] The heat calculation module 230 is used to obtain the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix;
[0066] The document printing module 240 is used to adjust the printing parameters of the printing device based on the current heat matrix, and print the current print file of the data to be printed based on the adjusted printing parameters.
[0067] Furthermore, the aforementioned heat calculation module 230 can be specifically used to: extract the shape and content features of the first image; analyze the shape features based on the original bitmap image of the data to be printed to obtain a printing adjustment coefficient; analyze the content features based on the original bitmap image to obtain a point compensation matrix; and perform data processing on the previous heat matrix, the printing adjustment coefficient, and the point compensation matrix to obtain the current heat matrix.
[0068] Optionally, the surface features include texture density features and pattern shape features, and the printing adjustment coefficient includes area adjustment coefficient and density adjustment coefficient;
[0069] Furthermore, the aforementioned heat calculation module 230 may specifically include: an adjustment coefficient calculation unit and a compensation matrix calculation unit;
[0070] The adjustment coefficient calculation unit is used to determine the original printing area and original printing density based on the original bitmap image; determine the actual printing density corresponding to the previous printed file based on the texture density feature; determine the actual printing area corresponding to the previous printed file based on the pattern shape feature; perform data processing on the actual printing area and the original printing area to obtain the area adjustment coefficient; and perform data processing on the actual printing density and the original printing density to obtain the density adjustment coefficient.
[0071] Optionally, the print head in the printing device includes multiple heating elements, the content features include color distribution features and surface defect features, and the dot compensation matrix includes a pixel defect matrix and a pixel depth matrix.
[0072] The compensation matrix calculation unit is used to determine, for the current heat source in the printhead, the first region corresponding to the current heat source in the original bitmap image, and the second region corresponding to the current heat source in the first image; based on the color distribution characteristics, determine the color depth relationship between the pattern in the first region and the pattern in the second region, sequentially traversing the multiple heat sources to obtain the color depth relationship between the original bitmap image and the first image, and determine the pixel depth matrix based on the color depth relationship; based on the surface defect characteristics, determine the content comparison relationship between the pattern in the first region and the pattern in the second region, sequentially traversing the multiple heat sources to obtain the content comparison relationship between the original bitmap image and the first image, and determine the pixel defect matrix based on the content comparison relationship.
[0073] Furthermore, the above-mentioned printing device may also include: a print quality determination module;
[0074] The print quality determination module is used to analyze the first image to obtain the print quality status of the previous printed document before obtaining the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix; when the print quality status is not standard print quality, it triggers the execution of obtaining the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix.
[0075] Furthermore, the aforementioned print quality determination module can be specifically used to: obtain the printing speed of the printing device when printing the previous print file; input the printing speed, the previous heat matrix, and the first image into a pre-trained print quality determination model; and determine the print quality status based on the output of the print quality determination model.
[0076] Optionally, the printing parameters include the heating duration of the printhead, wherein the printhead includes multiple heating elements;
[0077] Furthermore, the aforementioned document printing module 240 can be specifically used to: determine the heat output of each heat source based on the current heat matrix; determine the target heating duration of each heat source based on the heat output of each heat source; determine the previous heating duration of each heat source based on the previous heat matrix; for the current heat source, determine the adjustment method for the heating duration corresponding to the current heat source based on the relationship between the target heating duration and the previous heating duration, wherein the adjustment method includes increasing or decreasing the heating duration; adjust the heating duration of the current heat source based on the adjustment method; and sequentially traverse the multiple heat sources to complete the task of adjusting the printing parameters.
[0078] The printing device provided in this embodiment can be applied to the printing method provided in any of the above embodiments, and has the corresponding functions and beneficial effects.
[0079] Figure 3 This is a block diagram of a printing apparatus used to implement a printing method according to embodiments of this application. The printing apparatus 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The printing apparatus may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0080] like Figure 3 As shown, the printing device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 may also store various programs and data required for the operation of the printing device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0081] Multiple components in the printing device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, optical disk, etc.; and a communication unit 19, such as a network card, modem, wireless transceiver, etc. The communication unit 19 allows the printing device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0082] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the printing method.
[0083] In some embodiments, the printing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the printing device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the printing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the printing method by any other suitable means (e.g., by means of firmware).
[0084] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0085] Computer programs used to implement the methods of this application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0086] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0087] To provide interaction with the user, the systems and techniques described herein can be implemented on a printing device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the printing device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0088] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0089] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0090] Note that the above are merely preferred embodiments and technical principles applied in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. For example, those skilled in the art can use the various forms of processes shown above to reorder, add, or delete steps; the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of this application can be achieved, and no limitations are imposed herein.
[0091] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A printing method, characterized in that, The method includes: The first image is obtained by acquiring an image of the previous print file corresponding to the data to be printed. Determine the previous heat matrix of the printing device when printing the previous printed document; By analyzing the first image and the previous heat matrix, the current heat matrix required to print the data to be printed at standard print quality is obtained. Based on the current heat matrix, the printing parameters of the printing device are adjusted, and the current print file of the data to be printed is printed based on the adjusted printing parameters; The step of obtaining the current heat matrix required for printing the data to be printed at standard print quality by analyzing the first image and the previous heat matrix includes: extracting the shape and content features of the first image; analyzing the shape features based on the original bitmap image of the data to be printed to obtain a print adjustment coefficient; analyzing the content features based on the original bitmap image to obtain a dot compensation matrix; and performing data processing on the previous heat matrix, the print adjustment coefficient, and the dot compensation matrix to obtain the current heat matrix.
2. The printing method according to claim 1, characterized in that, The shape and surface features include texture density features and pattern shape features, and the print adjustment coefficients include area adjustment coefficients and density adjustment coefficients; the process of analyzing the shape and surface features based on the original bitmap image of the data to be printed to obtain the print adjustment coefficients includes: The original print area and original print density are determined based on the original bitmap image; The actual print density corresponding to the previous print file is determined based on the texture density features. The actual printing area corresponding to the previous printed document is determined based on the pattern shape features; The area adjustment coefficient is obtained by processing the actual printed area and the original printed area; the density adjustment coefficient is obtained by processing the actual printed density and the original printed density.
3. The printing method according to claim 1, characterized in that, The print head in the printing device includes multiple heating elements, the content features include color distribution features and surface defect features, and the dot compensation matrix includes a pixel defect matrix and a pixel depth matrix. The step of analyzing the content features based on the original bitmap image to obtain the point compensation matrix includes: For the current heat source in the printhead, determine the first region corresponding to the current heat source in the original bitmap image, and determine the second region corresponding to the current heat source in the first image; Based on the color distribution characteristics, the color depth relationship between the pattern in the first region and the pattern in the second region is determined. After traversing the multiple heat elements in sequence, the color depth relationship between the original bitmap image and the first image is obtained. Based on the color depth relationship, the pixel depth matrix is determined. Based on the surface defect features, the content comparison relationship between the pattern in the first region and the pattern in the second region is determined. After sequentially traversing the multiple heat elements, the content comparison relationship between the original bitmap image and the first image is obtained. Based on the content comparison relationship, the pixel defect matrix is determined.
4. The printing method according to claim 1, characterized in that, Before obtaining the current heat matrix required for printing the data to be printed at standard print quality by analyzing the first image and the previous heat matrix, the method further includes: The print quality status of the previous printed document is obtained by analyzing the first image. When the print quality condition is not standard print quality, the process is triggered to obtain the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix.
5. The printing method according to claim 4, characterized in that, The step of analyzing the first image to obtain the print quality status of the previous printed document includes: Obtain the printing speed of the printing device when printing the previous print file; The printing speed, the previous heat matrix, and the first image are input into a pre-trained printing quality determination model; The print quality status is determined based on the output of the print quality determination model.
6. The printing method according to claim 1, characterized in that, Printing parameters include the heating duration of the printhead, wherein the printhead comprises multiple heating elements; adjusting the printing parameters of the printing device based on the current heat matrix includes: The heat output of each heat source is determined based on the current heat matrix, the target heating duration of each heat source is determined based on the heat output of each heat source, and the previous heating duration of each heat source is determined based on the previous heat matrix. For the current heat source, the adjustment method for the heat duration corresponding to the current heat source is determined based on the relationship between the target heat duration and the previous heat duration. The adjustment method includes increasing the heat duration or decreasing the heat duration. The heating duration of the current heating element is adjusted based on the aforementioned adjustment method; By sequentially traversing all the multiple heating elements, the task of adjusting the printing parameters is completed.
7. A printing apparatus, characterized in that, The apparatus for implementing the printing method of claim 1 includes: The image acquisition module is used to acquire the first image from the previous print file corresponding to the data to be printed. The data acquisition module is used to determine the previous heat matrix of the printing device when printing the previous printed document; The heat calculation module is used to obtain the current heat matrix required to print the data to be printed at standard print quality by analyzing the first image and the previous heat matrix; The document printing module is used to adjust the printing parameters of the printing device based on the current heat matrix, and print the current print file of the data to be printed based on the adjusted printing parameters.
8. A printing device, characterized in that, The printing device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the printing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the printing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Thermal printing method and device capable of dynamically adjusting heating duration, equipment and medium
CN115071300A
