CN113135043B - Watermark printing method of thermal printer, storage medium and thermal printing equipment - Google Patents

Watermark printing method of thermal printer, storage medium and thermal printing equipment Download PDF

Info

Publication number
CN113135043B
CN113135043B CN202110255633.7A CN202110255633A CN113135043B CN 113135043 B CN113135043 B CN 113135043B CN 202110255633 A CN202110255633 A CN 202110255633A CN 113135043 B CN113135043 B CN 113135043B
Authority
CN
China
Prior art keywords
watermark
data
printing
thermal
gray scale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110255633.7A
Other languages
Chinese (zh)
Other versions
CN113135043A (en
Inventor
黄建雄
谢发炎
吴涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baige Feichi Technology Co ltd
Original Assignee
Xiamen Miaobao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Miaobao Technology Co ltd filed Critical Xiamen Miaobao Technology Co ltd
Priority to CN202110255633.7A priority Critical patent/CN113135043B/en
Publication of CN113135043A publication Critical patent/CN113135043A/en
Application granted granted Critical
Publication of CN113135043B publication Critical patent/CN113135043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • B41M5/26Thermography ; Marking by high energetic means, e.g. laser otherwise than by burning, and characterised by the material used
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Abstract

The invention relates to the technical field of thermal printing, and discloses a watermark printing method, a storage medium and a thermal printing device of a thermal printer, wherein the watermark printing method comprises the following steps: converting the initial binary printing data of the watermark into gray scale data according to the watermark command; and after error diffusion processing is carried out on the gray scale data, new binary printing data are formed through an image binarization algorithm. The thermal printer converts initial binary printing data of the watermark into gray scale data according to the watermark command; the method comprises the steps of carrying out error diffusion algorithm processing on gray scale data, forming new binary printing data through an image binarization algorithm, and forming staggered spaced points by original continuous heating points through algorithm processing, so that characters with reduced concentration are formed and displayed, an added watermark has certain transparency, a printed normal text cannot be shielded, and a better watermark adding effect of thermal printing is realized.

Description

Watermark printing method of thermal printer, storage medium and thermal printing equipment
Technical Field
The invention relates to the technical field of thermal printing, in particular to a watermark printing method, a storage medium and a thermal printing device of a thermal printer.
Background
The thermal printing technology was used in the fax machine for the first time, and its basic principle is to convert the data received by the printer into dot matrix signals to control the heating of the thermal unit, and heat and develop the thermal coating on the thermal paper. Thermal printers have been widely used in the fields of POS terminal systems, banking systems, medical instruments, and the like. Thermal printers can only use dedicated thermal paper, which is coated with a coating that changes color when exposed to heat, similar to a photosensitive film, but changes color when exposed to heat, and thermal printing techniques have been developed by using this characteristic of thermal coatings.
Known from the above working principle, thermal printing can only print out black and white binary images, and the character watermarks with different depth effects are added when the thermal printer prints, for example, when a courier thermal printer prints an express receipt, the requirement of adding the watermark is met. In the prior art, printing data of a printed text and printing data of a watermark are simply superposed, because the text and the watermark are continuously thermally printed, the text and the watermark which are thermally printed are all pure black characters, the effect of increasing the watermark by the thermal printing is shown in figure 2, and the pure black watermark characters at the overlapped part of the normal text and the watermark can cover the normal text characters, so that the text content can not be normally displayed, and the identifiability of the text characters is influenced.
In addition, in the prior art, the watermark is printed by using the self-contained diffusion processing of the computer driver, so that the effect of changing the shade of the watermark can be achieved, but the processing is inconvenient, and particularly the processing cannot be realized for a portable printer.
In view of the above, the present invention is particularly proposed.
Disclosure of Invention
The invention aims to: how to add a light-colored watermark for thermal printing that does not mask normal text.
In order to achieve the above purpose, the invention provides the following technical scheme:
a watermark printing method of a thermal printer comprises the following steps:
converting the initial binary printing data of the watermark into gray scale data according to the watermark command;
and after error diffusion processing is carried out on the gray scale data, new binary printing data is formed through an image binarization algorithm.
As an embodiment of the present invention, the converting binary print data of a watermark into grayscale data according to an acquired watermark command includes:
presetting watermark depth levels S1, S2, and the... once.once.Sn and the. once.once.once.n (M levels are total, 1 is less than M and less than 255), wherein the preset gray level value corresponding to Sn is Nn, and when the depth level in the obtained watermark command is Sn, converting binary printing data 0 of the watermark into a preset gray level value N0, and converting 1 into a gray level value Nn, wherein 255 is more than or equal to a preset gray level value N0 and more than Nn.
As an embodiment of the present invention, the converting binary print data of a watermark into grayscale data according to an acquired watermark command includes:
presetting watermark depth levels S1, S2, and the.. once.; when the depth level in the watermark acquisition command is Sn, the binary print data 0 of the watermark is converted into a preset gray-scale value N0, and 1 is converted into a gray-scale value (255/M) × (N-1), wherein 255 is more than or equal to the preset gray-scale value N0 > (255/M) > (N-1).
As an embodiment of the present invention, the converting binary print data of a watermark into grayscale data according to an acquired watermark command includes:
acquiring a watermark command, converting binary printing data 0 of the watermark into a preset gray level value N0, and converting 1 into a gray level value k 255 (rounding), wherein k is a set value, k is more than 0 and less than 1, the larger the k is, the shallower the depth of the watermark is, and the 255 is more than or equal to the preset gray level value N0 and more than k 255.
Further, the error diffusion processing carries out transition processing on the gray scale data to form continuously-transitional gray scale data;
the image binarization algorithm processing is carried out on the continuously transitional gray scale data, the gray scale data which do not accord with the preset condition are converted into binary printing data 0, so that the original continuous heating points can form staggered spaced points due to the algorithm processing, and watermarks with different concentrations are formed and displayed.
And further, performing logical OR operation superposition on the received text printing data and the new binary printing data of the watermark obtained by the processing of the watermark data to form final printing data, and controlling a thermal printing unit to print.
Further, the watermark printing method further includes: receiving a text printing command, acquiring word stock character data in a printer according to GBK codes of a printed text, generating binary printing data of the printed text by combining character position coordinates of the printed text, storing the binary printing data in a cache, and waiting for calling and carrying out logical or operational superposition on the new binary printing data of the watermark obtained by processing the watermark data processing process to form final printing data.
Further, the watermark printing method further includes: receiving a watermark printing command, acquiring word stock character data in a printer according to GBK (global bit keying) codes of watermarks, generating initial binary printing data of the watermarks by combining position coordinates of characters for printing the watermarks, executing a watermark data processing process, and storing new binary printing data of the watermarks obtained by the watermark data processing process in a cache;
receiving a text printing command, acquiring word stock character data in a printer according to GBK codes of a printing text, generating binary printing data of the printing text by combining character position coordinates of the printing text, and calling a binary printing data memory in a cache to perform logical or operational superposition with the binary printing data of the printing text to form final printing data.
The present embodiment also provides a storage medium storing at least one instruction, and/or at least one program, and/or a code set, and/or an instruction set, for implementing a watermark printing method of any one of the thermal printers.
The present embodiment also provides a thermal printing apparatus including:
the processing unit is used for converting the initial binary printing data of the watermark into gray scale data according to the obtained watermark command; and after error diffusion processing is carried out on the gray scale data, new binary printing data is formed through an image binarization algorithm.
Further, the thermal printing apparatus of the present embodiment includes:
the processing unit performs logical OR operation superposition on the received text printing data and the new binary printing data of the watermark obtained by processing to form final printing data and generates a printing instruction;
the thermal printing unit is used for receiving the printing instruction sent by the processing unit and executing the printing process;
preferably, the thermal printing device further comprises a storage unit, configured to obtain font library character data in the printer according to the GBK code of the print text by the cache processing unit, and generate binary print data of the print text by combining with the character position coordinates of the print text, or configured to cache new binary print data of the watermark obtained by the watermark data processing process.
Compared with the prior art, the invention has the following beneficial effects:
the initial binary printing data of the watermark printed by the heat sensitivity is composed of 0 and 1, wherein 0 represents no heating, 1 represents heating, and the initial binary printing data of the watermark is converted into gray scale data according to a watermark command; the error diffusion algorithm processing is carried out on the new watermark data, the new binary printing data is formed through the image binarization algorithm, and the original continuous heating points form staggered interval points due to the algorithm processing, so that characters with reduced concentration are displayed, the added watermark has certain transparency, the printed normal text cannot be shielded, the better watermark adding effect of thermal printing is realized, and the identifiability of the text characters is not influenced.
The invention presets M-level watermark depth levels, so that a user can select the corresponding watermark depth level for watermark addition according to the required watermark effect, and the conversion process of the watermark printing method for thermal printing is simpler by setting the numerical value of M, and the method is more suitable for a portable thermal printer.
Description of the drawings:
FIG. 1 is a block diagram of a method for printing a watermark in a thermal printer according to the present invention;
FIG. 2 is a diagram showing the effect of adding watermarks in a thermal printing express waybill in the background art of the present invention;
fig. 3 is a diagram of the watermark effect of ten levels of depth level of thermal printing according to the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present invention, and not all of them.
Thus, the following detailed description of the embodiments of the invention is not intended to limit the scope of the invention as claimed, but is merely representative of some embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that the embodiments of the present invention and the features and technical solutions thereof may be combined with each other without conflict.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "upper", "lower", and the like refer to orientations or positional relationships based on those shown in the drawings, or orientations or positional relationships that are conventionally arranged when the products of the present invention are used, or orientations or positional relationships that are conventionally understood by those skilled in the art, and such terms are used for convenience of description and simplification of the description, and do not refer to or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, the watermark printing method of the thermal printer provided by this embodiment includes:
the processing unit converts the initial binary printing data of the watermark into gray scale data according to the watermark command;
and after error diffusion processing is carried out on the gray scale data, new binary printing data is formed through an image binarization algorithm.
The initial binary printing data of the watermark for thermal printing in the embodiment is composed of 0 and 1, wherein 0 represents no heating, 1 represents heating, and the processing unit converts the initial binary printing data of the watermark into gray scale data according to the watermark command; the error diffusion algorithm processing is carried out on the new watermark data, the new binary printing data is formed through the image binarization algorithm, and the original continuous heating points form staggered interval points due to the algorithm processing, so that characters with reduced concentration are displayed, the added watermark has certain transparency, the printed normal text cannot be shielded, the better watermark adding effect of thermal printing is realized, and the identifiability of the text characters is not influenced.
As an implementation manner of this embodiment, the processing unit of this embodiment converts the watermarked binary print data into grayscale data according to the acquired watermark command, including:
presetting watermark depth levels S1, S2, and the... once.once.Sn and the. once.once.once.n (M levels are total, 1 is less than M and less than 255), wherein the preset gray level value corresponding to Sn is Nn, and when the depth level in the obtained watermark command is Sn, converting binary printing data 0 of the watermark into a preset gray level value N0, and converting 1 into a gray level value Nn, wherein 255 is more than or equal to a preset gray level value N0 and more than Nn.
In the present embodiment, according to binary print data of thermal printing, 0 represents no heating, the print effect is white, corresponding to a gray level value of 255,1 represents heating, the print effect is black, and the corresponding gray level value is 0, therefore, in the present embodiment, the binary print data of the watermark, corresponding to a gray level value of 1 greater than 0 and less than 255, presents gray between white and black, and is converted into binary print data executable by thermal printing to perform printing.
According to the watermark printing method of the thermal printer, the M watermark levels with different depth levels are set, the gray level values corresponding to the M watermark levels can be average or non-average, and a user can select the watermark level Sn according to specific printing requirements, so that the watermark printing requirements of the user are greatly met.
As another implementation manner of this embodiment, the converting the two-value printing data of the watermark into the grayscale data according to the obtained watermark command includes:
presetting watermark depth levels S1, S2, and the.. once.; when the depth level in the watermark acquiring command is Sn, the binary printing data 0 of the watermark is converted into a preset gray level value N0, and 1 is converted into a gray level value (255/M) × (N-1), wherein 255 is more than or equal to the preset gray level value N0 > (255/M) × (N-1).
Presetting watermark depth levels S1, S2, a.. once.a., Sn, a.. once.a. (M levels are total, 1 is less than M and less than 255), wherein S1 corresponds to a gray level value 0, Sn corresponds to a gray level value (255/M) is (n-1), and 1 is less than n and less than M; when the processing unit obtains that the depth level in the watermark command is Sn, the binary printing data 0 of the watermark is converted into a gray-scale value 255, and 1 is converted into a gray-scale value (255/M) × (n-1).
In the present embodiment, according to binary print data of thermal printing, 0 represents no heating, the print effect is white, corresponding to a gray level value of 255,1 represents heating, the print effect is black, and the corresponding gray level value is 0, therefore, in the present embodiment, the binary print data of the watermark, corresponding to a gray level value of 1 greater than 0 and less than 255, presents gray between white and black, and is converted into binary print data executable by thermal printing to perform printing.
In this embodiment, M-level watermark depth levels are preset, so that a user can select a corresponding watermark depth level for watermark addition according to a required watermark effect, and by setting the value of M, the conversion process of the watermark printing method for thermal printing is simpler, and the method is more suitable for a portable thermal printer. In addition, the watermark depth level of the M-level watermark is changed averagely, so that the watermark selection of the depth effect is more convenient for a user.
As an embodiment of this embodiment, ten preset watermark depth levels S1, S2, and S10 are stored in the storage unit of the thermal printer, where the level S1 corresponds to a gray level value 0, the level S2 corresponds to a gray level value 25, the level S3 corresponds to a gray level value 50, and so on, the level S10 corresponds to a gray level value 225, and the watermark depths from the level S1 to the level S10 gradually become shallower.
Referring to the thermal printing effect diagram of the ten-level preset watermark depth levels S1, S2, and S10 shown in fig. 3, the ten-level watermark depth levels are preset in the embodiment to meet the watermark adding requirements of users, and the conversion algorithm corresponding to the ten-level watermark depth levels is simple and is more suitable for a portable thermal printer.
As an implementation manner of this embodiment, the processing unit converts the watermarked binary print data into grayscale data according to the acquired watermark command, and includes:
the processing unit obtains a watermark command, and converts the binary printing data 0 of the watermark into a preset gray-scale value N0, and converts 1 into a gray-scale value k 255 (rounding), wherein k is a set value, k is greater than 0 and less than 1, the larger the k is, the shallower the depth of the watermark is, and the 255 is greater than or equal to the preset gray-scale value N0 and greater than the gray-scale value k 255.
In this embodiment, the binary print data 1 of the watermark is converted into the gray-scale value k × 255 (rounded), so that the conversion algorithm of the watermark printing method of the thermal printing can be fixed, and the method is simplified to the greatest extent and is more suitable for the portable thermal printer. Since the binary print data 1 of this embodiment is converted into the gray-scale value k × 255 (rounded) and converted into a watermark with a fixed depth, the effect of adding watermarks in thermal printing is satisfied. Preferably, k of this embodiment may be selected to be 0.5.
As described above, the preset grayscale value N0 of the present embodiment should be binary print data 0 (white), and therefore N0 of the present embodiment should be selected to be close to or equal to 255.
Further, the error diffusion processing carries out transition processing on the gray scale data to form continuously-transitional gray scale data;
the image binarization algorithm processing is carried out on the continuously transitional gray scale data, the gray scale data which do not accord with the preset condition are converted into binary printing data 0, so that the original continuous heating points can form staggered spaced points due to the algorithm processing, and watermarks with different concentrations are formed and displayed.
Further, in the watermark printing method of the thermal printer according to the embodiment, the processing unit performs logical or operation and superposition on the received text printing data and the new binary printing data of the watermark obtained by the processing of the watermark data to form final printing data, and controls the thermal printing unit to print.
The watermark printing method of the thermal printer of the embodiment further includes:
receiving a text printing command, acquiring word stock character data in a printer according to GBK codes of a printed text, generating binary printing data of the printed text by combining character position coordinates of the printed text, storing the binary printing data in a cache, and waiting for calling and carrying out logical or operational superposition on the new binary printing data of the watermark obtained by processing the watermark data processing process to form final printing data.
As another implementation manner of this embodiment, the watermark printing method further includes:
receiving a watermark printing command, acquiring word stock character data in a printer according to GBK (global bit keying) codes of watermarks, generating initial binary printing data of the watermarks by combining position coordinates of characters for printing the watermarks, executing a watermark data processing process, and storing new binary printing data of the watermarks obtained by the watermark data processing process in a cache;
receiving a text printing command, acquiring word stock character data in a printer according to GBK codes of a printing text, generating binary printing data of the printing text by combining character position coordinates of the printing text, and calling a binary printing data memory in a cache to perform logical or operational superposition with the binary printing data of the printing text to form final printing data. The thermal printing method of the thermal printer in the embodiment is particularly suitable for the portable thermal printer because the logical operation method is simple and effective and the printed watermark effect is good, thereby not only meeting the portable requirements of users, but also providing good watermark printing effect. The portable thermal printer of the present embodiment includes, but is not limited to, a label/receipt printer, an express single-electron-face single printer, and a portable error-problem printer.
The embodiment also provides a storage medium storing at least one instruction, and/or at least one program, and/or a code set, and/or an instruction set, for implementing the watermark printing method for thermal printing. Optionally, the computer-readable storage medium includes a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Disk (SSD), or an optical disk.
The present embodiment also provides a thermal printing apparatus including:
an acquisition unit that acquires the watermark command;
the processing unit is used for converting the initial binary printing data of the watermark into gray scale data according to the watermark command acquired by the acquisition unit; and after error diffusion processing is carried out on the gray scale data, new binary printing data are formed through an image binarization algorithm. Further, in the thermal printing apparatus of this embodiment, the processing unit performs logical or operation and superposition on the received text print data and the new binary print data of the watermark obtained by processing to form final print data, and generates a print instruction;
the thermal printing device comprises a thermal printing unit, a printing unit and a control unit, wherein the thermal printing unit receives the printing instruction sent by the processing unit and executes a printing process;
preferably, the thermal printing device further comprises a storage unit, configured to obtain font library character data in the printer according to the GBK code of the print text by the cache processing unit, and generate binary print data of the print text by combining with the character position coordinates of the print text, or configured to cache new binary print data of the watermark obtained by the watermark data processing process.
The above embodiments are only used to illustrate the present invention and not to limit the technical solutions described in the present invention, and although the present invention has been described in detail in the present specification with reference to the above embodiments, the present invention is not limited to the above specific embodiments, and therefore, any modifications or equivalents of the present invention may be made; all such modifications and variations are intended to be included herein within the scope of this disclosure and the appended claims.

Claims (10)

1. A watermark printing method for a thermal printer, comprising:
converting the initial binary printing data of the watermark into gray scale data according to the watermark command;
performing error diffusion processing on the gray scale data;
forming new binary printing data through an image binarization algorithm;
the error diffusion processing carries out transition processing on the gray scale data to form continuously-transitional gray scale data;
the image binarization algorithm processing is carried out on the continuously transitional gray scale data, the gray scale data which do not accord with the preset condition are converted into binary printing data 0, so that the original continuous heating points can form staggered spaced points due to the algorithm processing, and watermarks with different concentrations are formed and displayed.
2. The watermark printing method of a thermal printer according to claim 1, wherein the converting the initial binary print data of the watermark into the gray scale data according to the watermark command comprises:
presetting watermark depth levels S1, S2, and 1, Sn, and 10, wherein the preset gray level value corresponding to Sn is Nn (M is more than 1 and less than 255), and when the depth level in the obtained watermark command is Sn, converting initial binary printing data 0 of the watermark into a preset gray level value N0 and converting 1 into a gray level value Nn, wherein 255 is more than or equal to a preset gray level value N0 and more than Nn.
3. The watermark printing method of a thermal printer according to claim 1, wherein the converting the initial binary print data of the watermark into the gray scale data according to the watermark command comprises:
presetting watermark depth levels S1, S2, and the.. once.; when the depth level in the watermark acquisition command is Sn, the initial binary print data 0 of the watermark is converted into a preset gray-scale value N0, and 1 is converted into a gray-scale value (255/M) × (N-1), wherein 255 is more than or equal to the preset gray-scale value N0 > (255/M) > (N-1).
4. The watermark printing method of a thermal printer according to claim 1, wherein the converting the initial binary print data of the watermark into the gray scale data according to the watermark command comprises:
and converting the initial binary printing data 0 of the watermark into a preset gray-scale value N0, converting 1 into a gray-scale value k 255 and rounding, wherein k is a set value, k is more than 0 and less than 1, the larger the k is, the shallower the depth of the watermark is, and 255 is more than or equal to the preset gray-scale value N0 and more than the gray-scale value k 255.
5. The watermark printing method of the thermal printer according to any one of claims 1 to 4, characterized in that the received text printing data and the new binary printing data are logically OR-added to form final printing data for printing.
6. The method of claim 5, wherein the converting the initial binary print data of the watermark into the gray scale data according to the watermark command comprises:
and receiving a watermark printing command, acquiring character database character data in the printer according to the GBK code of the watermark, and generating initial binary printing data of the watermark by combining the character position coordinates of the watermark.
7. A storage medium storing at least one instruction, and/or at least one program, and/or a set of codes, and/or a set of instructions to implement a method of watermarking a thermal printer according to any one of claims 1 to 6.
8. Thermal printing apparatus, characterized by comprising:
the processing unit is used for converting the initial binary printing data of the watermark into gray scale data according to the obtained watermark command; after error diffusion processing is carried out on the gray scale data, new binary printing data are formed through an image binarization algorithm;
the error diffusion processing carries out transition processing on the gray scale data to form continuously-transitional gray scale data; the image binarization algorithm processing is carried out on the continuously transitional gray scale data, the gray scale data which do not accord with the preset condition are converted into binary printing data 0, so that the original continuous heating points can form staggered spaced points due to the algorithm processing, and watermarks with different concentrations are formed and displayed.
9. Thermal printing apparatus as in claim 8,
the processing unit performs logical OR operation superposition on the received text printing data and the new binary printing data obtained by processing to form final printing data and generates a printing instruction;
the thermal printing device comprises a thermal printing unit which receives the printing instruction sent by the processing unit and executes the printing process.
10. The thermal printing apparatus according to claim 9, wherein the thermal printing apparatus further comprises a storage unit, the buffer processing unit is configured to obtain font data in a printer according to the GBK code of the print text, and generate binary print data of the print text in combination with the text position coordinates of the print text, and the binary print data is used for processing the buffer watermark data to obtain new binary print data.
CN202110255633.7A 2021-03-10 2021-03-10 Watermark printing method of thermal printer, storage medium and thermal printing equipment Active CN113135043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110255633.7A CN113135043B (en) 2021-03-10 2021-03-10 Watermark printing method of thermal printer, storage medium and thermal printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110255633.7A CN113135043B (en) 2021-03-10 2021-03-10 Watermark printing method of thermal printer, storage medium and thermal printing equipment

Publications (2)

Publication Number Publication Date
CN113135043A CN113135043A (en) 2021-07-20
CN113135043B true CN113135043B (en) 2022-06-24

Family

ID=76810946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110255633.7A Active CN113135043B (en) 2021-03-10 2021-03-10 Watermark printing method of thermal printer, storage medium and thermal printing equipment

Country Status (1)

Country Link
CN (1) CN113135043B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4235184A1 (en) * 1991-10-28 1993-04-29 Kanzaki Paper Mfg Co Ltd Sheet prodn. process for producing watermarks in thermal printer - involves heating proof material carrying film in dot form to transmit proof material to sheet
CN1450495A (en) * 2002-03-29 2003-10-22 佳能株式会社 Image process device and method
CN101600039A (en) * 2008-06-05 2009-12-09 佳世达科技股份有限公司 The method of half tone image conversion method, Method of printing and generation halftone shield
CN101989348A (en) * 2009-07-30 2011-03-23 株式会社理光 Image processing apparatus, image processing method, and computer readable storage medium
TW201112756A (en) * 2009-09-23 2011-04-01 Chin-Chen Chang A digital watermarking technique based on random halftoning
CN105538939A (en) * 2015-12-31 2016-05-04 李菁 Watermark printing method and device of thermal printer
CN106484340A (en) * 2016-09-08 2017-03-08 中标软件有限公司 Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark
CN106681673A (en) * 2016-12-21 2017-05-17 福建升腾资讯有限公司 Grayscale printing method of thermosensitive printer
CN106708449A (en) * 2016-12-31 2017-05-24 金航数码科技有限责任公司 Anti copy method based on negative color image watermark in monochrome printing
CN109087234A (en) * 2018-08-09 2018-12-25 李晓妮 Watermark embedding method and device in a kind of text image
CN110189241A (en) * 2019-04-26 2019-08-30 江苏信实云安全技术有限公司 A kind of anti-printing noise image water mark method based on block mean value
CN110992328A (en) * 2019-11-28 2020-04-10 京东方科技集团股份有限公司 Dark spot detection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW512104B (en) * 2002-02-08 2002-12-01 Hi Touch Imaging Tech Co Ltd A method for generating a watermark on a photo picture using a thermal printer

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4235184A1 (en) * 1991-10-28 1993-04-29 Kanzaki Paper Mfg Co Ltd Sheet prodn. process for producing watermarks in thermal printer - involves heating proof material carrying film in dot form to transmit proof material to sheet
CN1450495A (en) * 2002-03-29 2003-10-22 佳能株式会社 Image process device and method
CN101600039A (en) * 2008-06-05 2009-12-09 佳世达科技股份有限公司 The method of half tone image conversion method, Method of printing and generation halftone shield
CN101989348A (en) * 2009-07-30 2011-03-23 株式会社理光 Image processing apparatus, image processing method, and computer readable storage medium
TW201112756A (en) * 2009-09-23 2011-04-01 Chin-Chen Chang A digital watermarking technique based on random halftoning
CN105538939A (en) * 2015-12-31 2016-05-04 李菁 Watermark printing method and device of thermal printer
CN106484340A (en) * 2016-09-08 2017-03-08 中标软件有限公司 Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark
CN106681673A (en) * 2016-12-21 2017-05-17 福建升腾资讯有限公司 Grayscale printing method of thermosensitive printer
CN106708449A (en) * 2016-12-31 2017-05-24 金航数码科技有限责任公司 Anti copy method based on negative color image watermark in monochrome printing
CN109087234A (en) * 2018-08-09 2018-12-25 李晓妮 Watermark embedding method and device in a kind of text image
CN110189241A (en) * 2019-04-26 2019-08-30 江苏信实云安全技术有限公司 A kind of anti-printing noise image water mark method based on block mean value
CN110992328A (en) * 2019-11-28 2020-04-10 京东方科技集团股份有限公司 Dark spot detection method and device

Also Published As

Publication number Publication date
CN113135043A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
JP3262183B2 (en) Method and apparatus for decoding a cell of an image having a plurality of pixels
US6753977B2 (en) Machine-readable information embedded on a document
US5606649A (en) Method of encoding a document with text characters, and method of sending a document with text characters from a transmitting computer system to a receiving computer system
EP1515263A2 (en) Method for printing digital documents
US7636180B2 (en) Methods and apparatus for smoothing text outlines
US20050013487A1 (en) System, computer software product and method for transmitting and processing handwritten data
US6771820B1 (en) Encoding information within text printed on a page using differing gray or color levels
KR20190113578A (en) Machine readable security mark and process for generating
JP2006326913A5 (en)
EP2580060B1 (en) High resolution digital embossing
US7609398B2 (en) System and method for rendering fonts for tabbed paper stock on a network
JP2008117379A (en) System, method and computer program for encoded raster document generation
CN113135043B (en) Watermark printing method of thermal printer, storage medium and thermal printing equipment
JP2021026191A (en) Learned machine learning model, image data generation apparatus, and method
JP3242511B2 (en) Character generation device and character generation method
US20040223645A1 (en) Generation of documents
JP4797766B2 (en) Image processing apparatus, image forming apparatus, and image processing method
US20080192295A1 (en) Generation of Areas of Position Location Pattern
JP2006309354A (en) Digital pen input system
JPH0916582A (en) Document preparing device and method for outputting recognition result used for this device
JP4159948B2 (en) Two-dimensional code reading device, two-dimensional code reading method, two-dimensional code reading program, and storage medium
US10839562B2 (en) Methods and systems for enabling object attribute driven super resolution encoding
JP2951809B2 (en) Handwritten font printing method
JPH08123904A (en) Character style classification processing device
CN113805822A (en) Ticket printing generation method, device, equipment and medium on embedded terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 3124, Xuanye Building, Pioneer Park, Torch High-tech Zone, Xiamen City, Fujian Province, 361006

Patentee after: XIAMEN MIAOBAO TECHNOLOGY CO.,LTD.

Address before: 361006 room 3124, Xuanye building, Pioneer Park, torch hi tech Zone, Jimei District, Xiamen City, Fujian Province

Patentee before: XIAMEN MIAOBAO TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230625

Address after: 6001, 6th Floor, No.1 Kaifeng Road, Shangdi Information Industry Base, Haidian District, Beijing, 100085

Patentee after: Beijing Baige Feichi Technology Co.,Ltd.

Address before: Room 3124, Xuanye Building, Pioneer Park, Torch High-tech Zone, Xiamen City, Fujian Province, 361006

Patentee before: XIAMEN MIAOBAO TECHNOLOGY CO.,LTD.