Thermal-sensitive film printing control method and device
By adjusting the image offset of thermal film printing, and rotating the black line printing task to perform different hot spots, solving the problem of short service life of existing thermal print heads and extending the life of the print head.
Patent Information
- Application Number
- CN202411635140.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-11
AI Technical Summary
The service life of existing thermal printheads is relatively short, mainly due to frequent black line printing tasks, which leads to excessive loss of certain hot spots.
By acquiring the thermal film image and the printing image, the image offset interval is determined, and the printing position is adjusted according to the interval, multiple heat-generating spots can be used to perform the black line printing task with the highest heat loss.
It effectively extends the overall service life of the printhead and avoids premature damage of a certain hot spot due to frequent black line printing tasks.
Smart Images

Figure CN119408326A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical devices, and in particular to a thermal film printing control method. Background Art
[0002] The imaging principle of the thermal print head is based on thermal printing technology, which is a technology that converts printing data into images or text and prints them on thermal paper. Its working principle is to use the heating element on the print head to heat the thermal paper, causing the thermal coating on the thermal paper to react chemically, thereby showing the desired pattern or text.
[0003] The existing thermal print head is equivalent to a row of heating elements. In actual applications, there is a common phenomenon that local heating points are more likely to be damaged, resulting in a technical problem of a short service life of the existing print head. Summary of the invention
[0004] The present application provides a thermal film printing control method and device, which are used to solve the technical problem of short service life of the print head of the existing thermal printer.
[0005] In order to solve the above technical problems, the first aspect of the present application provides a thermal film printing control method, comprising:
[0006] Acquire a thermal film image and a printed image, based on a standard position of the printed image in the thermal film image;
[0007] Determining an image offset interval of the printed image according to the standard position;
[0008] Based on the image offset interval, an image offset is determined to adjust a printing position according to the image offset and the standard position, wherein the image offset does not exceed the image offset interval.
[0009] Preferably, determining the image offset interval of the printed image according to the standard position specifically includes:
[0010] According to the printed image corresponding to the standard position, a lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, an image offset interval of the printed image is determined.
[0011] Preferably, based on the image offset interval, determining the image offset specifically includes:
[0012] According to the current image offset, a new image offset is determined in combination with the image offset interval and preset image offset update condition information.
[0013] Preferably, the image offset update condition information includes: an offset change threshold and offset update trigger information.
[0014] Preferably, it also includes:
[0015] If the new image offset exceeds the image offset interval, the image offset is reset.
[0016] At the same time, the second aspect of the present application provides a thermal film printing control device, comprising:
[0017] An image acquisition unit, for acquiring a thermal film image and a printed image, according to a standard position of the printed image in the thermal film image;
[0018] An offset interval determining unit, configured to determine an image offset interval of the printed image according to the standard position;
[0019] The image offset adjustment unit is used to determine the image offset based on the image offset interval, so as to adjust the printing position according to the image offset and the standard position, wherein the image offset does not exceed the image offset interval.
[0020] Preferably, the offset interval determining unit is specifically used for:
[0021] According to the printed image corresponding to the standard position, a lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, an image offset interval of the printed image is determined.
[0022] Preferably, the image offset adjustment unit is specifically used for:
[0023] The offset determines a new image offset according to the current image offset, in combination with the image offset interval and preset image offset update condition information, so as to adjust the standard position according to the new image offset.
[0024] Preferably, the image offset update condition information includes: an offset change threshold and offset update trigger information.
[0025] Preferably, it also includes:
[0026] The offset reset determination unit is used to reset the image offset if the new image offset exceeds the image offset interval.
[0027] It can be seen from the above technical solutions that this application has the following advantages:
[0028] The solution provided in the present application sets an image offset and adjusts the printing position of the image left and right according to the image offset, so as to enable multiple printer heating points to take turns to perform the black line printing task with the highest heat loss, thereby avoiding a certain heating point from frequently performing black line printing tasks and causing its loss to be higher than other heating points, which can effectively extend the overall life of the print head. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 A schematic flow chart of an embodiment of a thermal film printing control method provided in the present application.
[0031] Figure 2 A schematic diagram of printing logic and effects of an embodiment of a thermal film printing control method provided in the present application.
[0032] Figure 3 This is a schematic structural diagram of an embodiment of a thermal film printing control device provided in the present application. DETAILED DESCRIPTION
[0033] In view of the defects of existing thermal print heads, research has found that when existing thermal printers need to print multiple images on a piece of film, they will use a table layout to splice the images together. The borders of the table layout mostly use black lines, and the print head corresponding to black has the largest heating power. The hot spots of the print head are of the heat loss type. If this method is used for a long time, the hot spots of the print head corresponding to the black lines will have a shorter life than other hot spots. Once the hot spots are damaged, the existing technology cannot repair them, which will cause direct damage to the print head.
[0034] In view of this, the present application provides a thermal film printing control method and device, which are used to solve the technical problem of short service life of the print head of the existing thermal printer.
[0035] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] First, a detailed description of an embodiment of a thermal film printing control method provided by the present application is as follows:
[0037] See also Figure 1 , the present application provides a thermal film printing control method embodiment, comprising:
[0038] Step 101: Acquire a thermal film image and a printed image, based on a standard position of the printed image in the thermal film image.
[0039] Step 102: Determine the image offset interval of the printed image according to the standard position.
[0040] Step 103: Determine the image offset based on the image offset interval, so as to adjust the printing position according to the image offset and the standard position.
[0041] The image offset does not exceed the image offset range.
[0042] It should be noted that, according to the scheme provided in this embodiment, in the printing process of each thermal film, first, by acquiring the image of the thermal film and the actual printed content, the two images can be merged according to the general printing logic, so as to determine the standard position of the printed image in the thermal film and the image offset range, wherein the standard position mentioned in this embodiment is generally the center of the thermal film, and the image offset range is used to indicate the degree to which the printed image can be offset, so as to avoid the offset image exceeding the coverage range of the thermal film, and then the image offset is determined based on the value range of the image offset range, so as to adjust the printing position according to the image offset and the standard position, thereby changing the heating point responsible for printing the black line. Through the scheme provided in this embodiment, multiple printer heating points can be implemented to perform the black line printing task with the highest heat loss in turn, so as to avoid a certain heating point frequently performing the black line printing task resulting in excessive loss, accelerate the damage of the print head, and effectively extend the overall life of the print head.
[0043] Based on the above basic embodiments, in some embodiments, the technical solution provided by this application further includes the following contents:
[0044] Furthermore, in step 102, the image offset interval of the printed image is determined according to the standard position, and the steps may include:
[0045] According to the printed image corresponding to the standard position, the lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, the image offset interval of the printed image is determined.
[0046] It should be noted that, based on the printed image located at the standard position, the deviation value between the edge of the printed image and the edge of the thermal film image on the x-axis is determined, and based on the deviation value, the image offset interval of the printed image is determined, that is, the offset range [-x, x] of the printed image.
[0047] Further, based on the image offset interval, determining the image offset specifically includes:
[0048] According to the current image offset, the new image offset is determined in combination with the image offset interval and the preset image offset update condition information.
[0049] Among them, the image offset update condition information includes: an offset change threshold and an offset update trigger information. The offset change threshold is used to indicate the change of the image offset each time the image offset is updated, and can be configured in the form of a constant value or a calculation formula; the offset update trigger information is used to indicate the trigger condition of the image offset update action, and the number of thermal films printed can be used as a judgment condition.
[0050] Furthermore, the method provided in this embodiment may also include:
[0051] Step 104: If the new image offset exceeds the image offset interval, reset the image offset.
[0052] For example, Figure 2 As shown, assuming that -x is the initial offset, the offset change threshold is +1, and the offset update trigger information is set to: trigger each time a thermal film is printed, the following printing action logic can be obtained:
[0053] 1. The first image is offset by -x pixels, that is, it is offset to the left by x pixels. The position relationship is as follows Figure 2 Dark grey image;
[0054] 2. The second image is offset by -x+1 pixels, that is, offset to the left by x-1 pixels; ...
[0056] x, the xth image is offset by 0 pixels, that is, no offset, such as Figure 2 Black images; ...
[0058] 2x+1, the 2x+1th image is offset by x pixels, that is, it is offset to the right by x pixels, such as Figure 2 Light grey image;
[0059] 2x+2. Reset the image offset to -x, and then follow steps 1 to (2x+1) to continue film printing.
[0060] For another example, assuming that -x is the initial offset, the offset change threshold is +x, and the offset update trigger information is set to: trigger each time a pack of thermal film is printed, the following printing action logic can be obtained:
[0061] 1. The first packet is offset by -x pixels, that is, it is offset to the left by x pixels, such as Figure 2 Dark grey image;
[0062] 2. The second packet is offset by 0 pixels, that is, no offset, such as Figure 2 Black images;
[0063] 3. The third packet is offset by x pixels, that is, it is offset to the right by x pixels, such as Figure 2 Light grey image;
[0064] 4. Reset the image offset to -x, and then follow steps 1 to 3 to continue film printing.
[0065] It is understandable that the determination of the film package can be based on the RFID tag of each film package, and the RFID data of different films in different packages are different. When different RFID tags are identified, it can be determined that a package of film has been printed; or, based on the number of films a in each film package, when it is detected that a film has been printed, it can also be determined that a package of film has been printed.
[0066] The above is a detailed description of an embodiment of a thermal film printing control method provided by the present application. The following is a detailed description of an embodiment of a thermal film printing control device provided by the present application.
[0067] See also Figure 3 , the present application provides a thermal film printing control device embodiment, comprising:
[0068] The image acquisition unit 201 is used to acquire the thermal film image and the printed image according to the standard position of the printed image in the thermal film image;
[0069] An offset interval determining unit 202, for determining an image offset interval of a printed image according to a standard position;
[0070] The image offset adjustment unit 203 is used to determine the image offset based on the image offset interval, so as to adjust the printing position according to the image offset and the standard position, wherein the image offset does not exceed the image offset interval.
[0071] Further, the offset interval determining unit 202 is specifically configured to:
[0072] According to the printed image corresponding to the standard position, the lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, the image offset interval of the printed image is determined.
[0073] Further, the image offset adjustment unit 203 is specifically used for:
[0074] The offset determines a new image offset based on the current image offset, the image offset interval and the preset image offset update condition information, so as to adjust the standard position according to the new image offset.
[0075] Furthermore, the image offset update condition information includes: an offset change threshold and offset update trigger information.
[0076] Furthermore, it also includes:
[0077] The offset reset determination unit 204 is configured to reset the image offset if the new image offset exceeds the image offset interval.
[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0079] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0080] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0081] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0083] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0085] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A thermal film printing control method, characterized in that: include: Acquire a thermal film image and a printed image, based on a standard position of the printed image in the thermal film image; Determining an image offset interval of the printed image according to the standard position; Based on the image offset interval, an image offset is determined to adjust a printing position according to the image offset and the standard position, wherein the image offset does not exceed the image offset interval.
2. A thermal film printing control method according to claim 1, characterized in that: Determining the image offset interval of the printed image according to the standard position specifically includes: According to the printed image corresponding to the standard position, a lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, an image offset interval of the printed image is determined.
3. A thermal film printing control method according to claim 1, characterized in that: Based on the image offset interval, determining the image offset specifically includes: According to the current image offset, a new image offset is determined in combination with the image offset interval and preset image offset update condition information.
4. A thermal film printing control method according to claim 3, characterized in that: The image offset update condition information includes: an offset change threshold and offset update trigger information.
5. A thermal film printing control method according to claim 3, characterized in that: Also includes: If the new image offset exceeds the image offset interval, the image offset is reset.
6. A thermal film printing control device, characterized in that: include: An image acquisition unit, for acquiring a thermal film image and a printed image, according to a standard position of the printed image in the thermal film image; An offset interval determining unit, configured to determine an image offset interval of the printed image according to the standard position; The image offset adjustment unit is used to determine the image offset based on the image offset interval, so as to adjust the printing position according to the image offset and the standard position, wherein the image offset does not exceed the image offset interval.
7. A thermal film printing control device according to claim 6, characterized in that: The offset interval determination unit is specifically used for: According to the printed image corresponding to the standard position, a lateral edge deviation value between the printed image and the thermal film image is determined, and according to the lateral edge deviation value, an image offset interval of the printed image is determined.
8. A thermal film printing control device according to claim 6, characterized in that: The image offset adjustment unit is specifically used for: The offset determines a new image offset according to the current image offset, in combination with the image offset interval and preset image offset update condition information, so as to adjust the standard position according to the new image offset.
9. A thermal film printing control device according to claim 8, characterized in that: The image offset update condition information includes: an offset change threshold and offset update trigger information.
10. A thermal film printing control device according to claim 8, characterized in that: Also includes: The offset reset determination unit is used to reset the image offset if the new image offset exceeds the image offset interval.
Citation Information
Patent Citations
Segmented printing method and device for printer and thermal printer
CN109532239A
Printing method and device, printer and computer readable storage medium
CN111332024A
OLED inkjet printing data processing and control method
WO2024159617A1