CN112000303B - Processing method and device capable of realizing watermark printing, electronic equipment and storage medium - Google Patents

Processing method and device capable of realizing watermark printing, electronic equipment and storage medium Download PDF

Info

Publication number
CN112000303B
CN112000303B CN202010875397.4A CN202010875397A CN112000303B CN 112000303 B CN112000303 B CN 112000303B CN 202010875397 A CN202010875397 A CN 202010875397A CN 112000303 B CN112000303 B CN 112000303B
Authority
CN
China
Prior art keywords
characteristic
chromaticity
preset
initial
watermark
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
CN202010875397.4A
Other languages
Chinese (zh)
Other versions
CN112000303A (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.)
Hangzhou Netease Zaigu Technology Co Ltd
Original Assignee
Hangzhou Netease Zaigu 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 Hangzhou Netease Zaigu Technology Co Ltd filed Critical Hangzhou Netease Zaigu Technology Co Ltd
Priority to CN202010875397.4A priority Critical patent/CN112000303B/en
Publication of CN112000303A publication Critical patent/CN112000303A/en
Application granted granted Critical
Publication of CN112000303B publication Critical patent/CN112000303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • 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
    • 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/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The embodiment of the invention provides a processing method capable of realizing watermark printing. The method comprises the following steps: generating an initial layer containing a watermark object; performing lattice treatment on the initial layer to obtain a watermark lattice layer; and superposing the watermark lattice layer and other information layers to be printed to obtain the object to be printed containing the watermark object. The method of the invention effectively improves the watermark printing effect, brings better experience for users, and effectively reduces the time consumption caused by manually setting the watermark parameters of the printer. Furthermore, embodiments of the present invention provide a processing apparatus, an electronic device, and a computer-readable storage medium that can realize watermark printing.

Description

Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of watermarks, in particular to a processing method, a processing device, electronic equipment and a storage medium capable of realizing watermark printing.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the advent of the information age, the way of performing information processing on data such as characters, pictures, and face sheets has become more and more popular. The electronic data obtained by the information processing is also widely used in applications such as copyright protection, authentication, data tracking and the like.
In implementing the disclosed concept of the present invention, the inventors found that, due to different watermark parameter settings of different printers, the perceptibility of the same watermark parameter by different printers is also different, which results in different printing effects of the watermark when electronic data with the same watermark is printed by different printers.
This results in poor watermark printing effects on the one hand and in a significant amount of time and effort being expended to set watermark parameters for different printers on the other hand, which significantly increases the labor costs involved in watermark printing.
Disclosure of Invention
In the prior art, when watermark printing is carried out, watermark parameter settings of different printers are different, the perceptibility of the same watermark parameters of different printers is also different, and in order to realize the watermark printing effect meeting the requirements, a great deal of time and effort are required to carry out the watermark parameter settings of different printers.
In the prior art, therefore, when the same watermark is printed by using different printers, the watermark printing effect is unstable, and watermark parameter settings of the different printers consume a lot of labor cost, which is a very annoying process.
Therefore, an improved watermark printing processing method is needed to realize that the watermark printing effect is stable and better when different printers are used for watermark printing, and a great deal of time and effort are not needed to be spent for setting watermark parameters of different printers.
In this context, embodiments of the present invention desire to provide a processing method, apparatus, electronic device, and storage medium that can implement watermark printing.
In a first aspect of the embodiments of the present invention, a processing method for enabling watermark printing is provided, including generating an initial layer containing a watermark object; performing lattice treatment on the initial layer to obtain a watermark lattice layer; and superposing the watermark lattice layer and other information layers to be printed to obtain an object to be printed containing the watermark object.
In one embodiment of the present invention, the performing a dot matrix process on the initial layer to obtain a watermark dot matrix layer includes selecting at least one pixel point from a preset area of the initial layer including the watermark object according to a preset rule, and performing the following operations on the selected pixel point to determine a first color feature of the at least one pixel point, where the first color feature includes an initial chromaticity feature, an initial saturation feature and an initial brightness feature; and according to the first color characteristic of the pixel point, performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point, wherein at least one pixel point after the chromaticity adjustment processing forms the watermark lattice layer.
In another embodiment of the present invention, the performing a dot matrix process on the initial layer to obtain a watermark dot matrix layer includes determining a first color feature of each pixel point in a preset area of the initial layer including the watermark object, where the first color feature includes an initial chromaticity feature, an initial saturation feature, and an initial brightness feature; selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, wherein the pixel point is provided with a first color feature, executing the following operation on the selected pixel point, performing chromaticity adjustment processing on the initial chromaticity feature of the pixel point according to the first color feature of the pixel point, and forming the watermark lattice layer by the at least one pixel point after the chromaticity adjustment processing.
In yet another embodiment of the present invention, a method for determining the first color feature of the pixel includes performing a color feature conversion process on the pixel according to a second color feature of the pixel to obtain the first color feature of the pixel, where the second color feature includes a luminance feature of at least one preset primary color.
In another embodiment of the present invention, the selecting at least one pixel from a preset area of the initial layer including the watermark object according to a preset rule includes selecting pixels with a preset number of pixels from each pixel row or each pixel column of the preset area, so as to obtain the at least one pixel.
In another embodiment of the present invention, the performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point according to the first color characteristic of the pixel point and a preset rule includes determining a preset chromaticity characteristic for the pixel point according to the first color characteristic of the pixel point; and determining a target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point.
In another embodiment of the present invention, the determining the preset chrominance feature for the pixel according to the first color feature of the pixel includes determining the preset chrominance feature as a first chrominance feature or a second chrominance feature according to the first color feature of the pixel, wherein the first chrominance feature indicates a background color of the other information layer, and the second chrominance feature indicates a color of the watermark object.
In another embodiment of the present invention, the determining the preset chromaticity feature as a first chromaticity feature or a second chromaticity feature according to the first color feature of the pixel point includes determining the preset chromaticity feature as the second chromaticity feature when a difference between the initial chromaticity feature and the first chromaticity feature is greater than a first preset value, the initial saturation feature is greater than a second preset value, and the initial brightness feature is greater than a third preset value: and determining that the preset chromaticity characteristic is the first chromaticity characteristic in other cases.
In another embodiment of the present invention, the determining the target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point includes determining whether the initial chromaticity characteristic meets a preset condition; if yes, taking the preset chromaticity characteristic as the target chromaticity characteristic; if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
In another embodiment of the present invention, the background color of the other information layer indicated by the first chrominance feature is white, and the color of the watermark object indicated by the second chrominance feature is black.
In a second aspect of the embodiments of the present invention, a processing apparatus capable of implementing watermark printing is provided, including a first processing module, configured to generate an initial layer including a watermark object; the second processing module is used for carrying out dot matrix processing on the initial layer to obtain a watermark dot matrix layer; and the third processing module is used for superposing the watermark lattice layer and other information layers needing to be printed to obtain an object to be printed containing the watermark object.
In another embodiment of the present invention, the second processing module includes a first processing sub-module, configured to select at least one pixel point from a preset area of the initial layer including the watermark object according to a preset rule; a second processing sub-module configured to determine a first color characteristic of the at least one pixel point, wherein the first color characteristic includes an initial chromaticity characteristic, an initial saturation characteristic, and an initial brightness characteristic; and the third processing sub-module is used for carrying out chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, and the at least one pixel point after the chromaticity adjustment processing forms the watermark lattice layer.
In another embodiment of the present invention, the second processing module includes a fourth processing sub-module configured to determine a first color feature of each pixel point in a preset area of the initial layer including the watermark object, where the first color feature includes an initial chromaticity feature, an initial saturation feature, and an initial brightness feature; the first processing sub-module is used for selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, wherein the pixel point has a first color characteristic; and the third processing sub-module is used for carrying out chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, and the at least one pixel point after the chromaticity adjustment processing forms the watermark lattice layer.
In another embodiment of the present invention, the second processing sub-module and the fourth processing sub-module include a first processing unit, configured to perform a color feature conversion process on the pixel according to a second color feature of the pixel, so as to obtain the first color feature of the pixel, where the second color feature includes a brightness feature of at least one preset primary color.
In another embodiment of the present invention, the first processing sub-module includes a second processing unit, configured to select, in each pixel row or each pixel column of the preset area, pixels with a preset number of pixels, so as to obtain the at least one pixel.
In another embodiment of the present invention, the third processing sub-module includes a first determining unit, configured to determine a preset chromaticity characteristic for the pixel point according to the first color characteristic of the pixel point; and the second determining unit is used for determining target chromaticity characteristics aiming at the pixel points according to the initial chromaticity characteristics and the preset chromaticity characteristics aiming at the pixel points.
In another embodiment of the present invention, the first determining unit includes a first determining subunit, configured to determine, according to the first color characteristic of the pixel point, the preset chroma characteristic as a first chroma characteristic or a second chroma characteristic, where the first chroma characteristic indicates a background color of the other information layer, and the second chroma characteristic indicates a color of the watermark object.
In another embodiment of the present invention, the second determining unit includes a second determining subunit, configured to determine that the preset chromaticity feature is the second chromaticity feature when the difference between the initial chromaticity feature and the first chromaticity feature is greater than a first preset value, and the initial saturation feature is greater than a second preset value, and the initial brightness feature is greater than a third preset value; and determining that the preset chromaticity characteristic is the first chromaticity characteristic in other cases.
In another embodiment of the present invention, the second determining unit includes a third determining subunit configured to determine whether the initial chromaticity characteristic meets a preset condition; a fourth determining subunit, configured to take the preset chromaticity characteristic as the target chromaticity characteristic if the preset chromaticity characteristic is the target chromaticity characteristic; if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
In a third aspect of the embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects.
In a fourth aspect of embodiments of the present invention, there is provided a computer readable storage medium storing computer executable instructions which, when executed, are adapted to carry out the method of any one of the first aspects.
According to the processing method and the processing device capable of realizing watermark printing, the watermark printing effect can be improved, the watermark printing efficiency is improved, a great amount of time and effort are not required to be spent for setting watermark parameters of printing equipment, the time consumption for watermark printing by using different printing equipment is obviously reduced, and better experience is brought to users.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates an exemplary system architecture of a processing method and apparatus that may implement watermark printing in accordance with an embodiment of the present invention;
FIG. 2 schematically illustrates a flow diagram of a processing method that may implement watermark printing, in accordance with an embodiment of the present invention;
FIG. 3 schematically illustrates a flow diagram of another processing method that may implement watermark printing, in accordance with an embodiment of the present invention;
FIG. 4 schematically illustrates a flow chart of a method of rasterizing an initial layer in accordance with an embodiment of the present invention;
fig. 5 schematically shows a schematic diagram of a watermark lattice layer according to an embodiment of the invention;
FIG. 6 schematically illustrates a block diagram of a processing method that may implement watermark printing in accordance with an embodiment of the invention;
fig. 7 schematically shows a schematic diagram after a printing process of an object to be printed according to an embodiment of the present invention;
FIG. 8 schematically illustrates a program product that may implement a watermark printing process according to an embodiment of the invention;
Fig. 9 schematically shows a block diagram of a processing device that may implement watermark printing according to an embodiment of the invention; and
Fig. 10 schematically illustrates a computing device that may implement a watermark printing process according to an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are presented merely to enable those skilled in the art to better understand and practice the invention and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Those skilled in the art will appreciate that embodiments of the invention may be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to an embodiment of the invention, a processing method, a processing device, an electronic device and a computer readable medium capable of realizing watermark printing are provided.
In this document, it should be understood that any number of elements in the drawings is for illustration and not limitation, and that any naming is used only for distinction and not for any limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments thereof.
Summary of The Invention
The inventor finds that when watermark printing is performed by using printers in the prior art, since watermark parameter settings of different printers are different, and perceptibility of the same watermark parameter settings of different printers is different, even some printers do not have watermark printing functions. Therefore, this causes different printers to print different effects for the same watermark, the print effect is poor, and it also takes a lot of time and effort to set watermark parameters for different printers. The processing method and the processing device for realizing watermark printing provided by the embodiment of the invention can effectively improve the watermark printing effect, and do not need to spend a great deal of time and effort for setting watermark parameters for different printers.
Having described the basic principles of the present invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
An exemplary system architecture of a processing method and apparatus for watermark printing that may be implemented in accordance with an embodiment of the present invention will be described in detail with reference to fig. 1.
As shown in fig. 1, a system architecture 100 according to this embodiment may include printing devices 101, 102, 103, a network 104, and a processing device 105. The network 104 is used as a medium to provide a communication link between the printing apparatuses 101, 102, 103 and the processing apparatus 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The printing devices 101, 102, 103 may be various electronic devices supporting printing functions including, but not limited to, inkjet printers, thermal printers, laser printers, electrostatic printers, and the like.
The processing device 105 may be a device providing watermark print processing functionality, for example a processor of a computer that is network connected to the printing devices 101, 102, 103. The processing device 105 may process the watermark object to be printed after receiving the watermark print request of the user, generate an object to be printed containing the watermark object, and send the object to be printed (for example, may be image data containing the watermark object) to the printing device for printing.
It should be noted that the processing method for watermark printing may be generally executed by the processing device 105. Accordingly, the processing device capable of watermark printing provided by the embodiment of the present invention may be generally disposed in the processing device 105. The processing method provided by the embodiment of the present invention, in which watermark printing can be implemented, may also be performed by a processing device or a processing device cluster, which is different from the processing device 105 and capable of communicating with the printing devices 101, 102, 103 and/or the processing device 105. Accordingly, the processing apparatus capable of watermark printing provided by the embodiments of the present invention may also be provided in other processing devices or processing device clusters that are different from the processing device 105 and capable of communicating with the printing devices 101, 102, 103 and/or the processing device 105.
It should be understood that the number of printing devices, networks, and processing devices in fig. 1 are merely illustrative. There may be any number of printing devices, networks, and processing devices, as desired for implementation.
Exemplary method
A processing method for enabling watermark printing according to an exemplary embodiment of the present invention is described below with reference to fig. 2 and 3 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenario is only shown for the convenience of understanding the spirit and principle of the present invention, and the embodiments of the present invention are not limited in any way. Rather, embodiments of the invention may be applied to any scenario where applicable.
Fig. 2 schematically shows a flow chart of a processing method that may enable watermark printing according to an embodiment of the invention.
As shown in fig. 2, the method is applied to a terminal including at least one application program executable. The method 200 may include operations S210-S230.
In operation S210, an initial layer containing a watermark object is generated.
According to the embodiment of the invention, after receiving a print request from a print request device, print content, print identification information, and print apparatus information in the print request are determined. The print request device may be a smart phone, a tablet computer, a laptop, etc., and software capable of requesting to print a file, for example, office software, pdf software, notepad software, etc., is installed in the print request device. The print identification information may specifically be user terminal information, user login information, print time information, or the like. The printing device information indicates device information for watermark printing, and the printing device can be specifically a thermal printer, a thermal transfer printer, a needle printer, an inkjet printer and the like, and it is noted that the implementation of the printing function by what mode does not affect the implementation of the present invention.
The print content is data to be printed including watermark objects and non-watermark objects. The printable watermark object may include a text watermark, such as a digital watermark, a letter watermark, a text watermark, etc., and an image watermark, such as an icon watermark, a picture watermark, logo watermark, etc. The non-watermark object is other information to be printed, and specifically may be other words except the watermark object to be printed. For example, in an application scenario of printing an express delivery receipt containing a watermark object, the non-watermark object may be, for example, express delivery information to be printed, and the express delivery information may include, for example, a sender name, a sender address, a sender phone, a recipient name, a recipient address, a recipient phone, cargo information, and the like.
When generating an original layer containing a watermark object, defining a single layer for placing characters or patterns exhibiting a watermark effect, and adding the characters or patterns as watermark objects to the layer to obtain the original layer containing the watermark object. The original image layer is composed of a plurality of pixel points, each pixel point is provided with a second color characteristic, and the second color characteristic comprises the brightness characteristic of at least one preset primary color. Illustratively, the second color feature is an RGB color feature, which includes luminance features of three primary colors of red, green, and blue.
In operation S220, the initial layer is subjected to a rasterization process, so as to obtain a watermark bitmap layer.
According to the embodiment of the invention, the initial layer is subjected to dot matrix processing to obtain the watermark dot matrix layer containing the watermark object, specifically, at least one pixel point is selected from a preset area containing the watermark object of the initial layer according to a preset rule, and the following operation is performed on the selected pixel point: determining a first color characteristic of at least one pixel point, wherein the first color characteristic comprises an initial chromaticity characteristic, an initial saturation characteristic and an initial brightness characteristic; and according to the first color characteristic of the pixel point, performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point, wherein at least one pixel point after the chromaticity adjustment processing forms a watermark lattice layer.
Or determining a first color characteristic of each pixel point in a preset area of the initial layer containing the watermark object, wherein the first color characteristic comprises an initial chromaticity characteristic, an initial saturation characteristic and an initial brightness characteristic; selecting at least one pixel point from a preset area of an initial layer containing a watermark object according to a preset rule, wherein the pixel point is provided with a first color characteristic, and executing the following operations aiming at the selected pixel point: and according to the first color characteristic of the pixel point, performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point, wherein at least one pixel point after the chromaticity adjustment processing forms a watermark lattice layer.
The method for determining the first color characteristic of the pixel point can comprise the following steps: and carrying out color feature conversion processing on the pixel points according to the second color features of the pixel points so as to obtain the first color features of the pixel points. The first color feature may be, for example, an HSB color feature that characterizes color by utilizing three color features of Hue (Hue), saturation (Saturation), brightness (Brightness). Chromaticity (Hue) represents the type of color (e.g., red, green, or yellow) and ranges from 0 to 360, with each chromaticity feature representing a color. Saturation (Saturation) represents the Saturation of a color, the range of values is 0 to 1, saturation is 0 represents a gray scale, and Saturation is 1 represents a pure color. Brightness (Brightness) represents the Brightness of a color, and the range of Brightness is 0 to 1, brightness 0 represents black, and Brightness 1 represents a color of a specific saturation.
The method for obtaining the HSB color characteristic by performing color characteristic conversion processing on the pixel point according to the RGB color characteristic of the pixel point can be realized according to the following conversion relation.
B=max
Wherein R, G, B represents a red luminance value, a green luminance value, and a blue luminance value, respectively, max represents a maximum luminance value in R, G, B, and min represents a minimum luminance value in R, G, B.
And selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset sparse lattice algorithm, so as to realize the conversion of the initial layer into a sparse lattice layer. Specifically, selecting pixel points with the number of every preset pixel from each pixel point row or each pixel point column in the preset area to obtain at least one pixel point. As an alternative, in the preset area containing the watermark object, according to each pixel line of the preset area, selecting every preset number of pixels from one line end to the other line end line by line. Illustratively, at least one pixel point of every 4 pixels is selected from left to right row by row in each pixel point row from top to bottom in the preset area. As another alternative, in the preset area containing the watermark object, according to each pixel column of the preset area, selecting every preset number of pixels from one column end to the other column end. Illustratively, at least one pixel point of every 4 pixels is selected from top to bottom in each pixel point column from left to right in the preset area. When the pixel point is selected, the preset number of pixels can be one value, or can be a plurality of values, or can be a value adjusted according to the first color characteristic of the pixel point.
The preset area may be any area of the initial layer including the watermark object, specifically may be all areas of the initial layer, or may be a partial area of the initial layer including the watermark object. The embodiment of the invention can determine the first color characteristics of all the pixel points in the preset area, and then select part of the pixel points from all the pixel points to perform initial chromaticity characteristic adjustment processing. The design is favorable for determining which pixel points are selected for initial chromaticity characteristic adjustment processing according to the determined first color characteristics of the pixel points. Generally, a pixel point with an initial saturation characteristic and an initial brightness characteristic greater than a preset threshold may be selected for initial chroma characteristic adjustment processing. In addition, a part of pixel points can be selected in the preset area, the first color characteristics of the part of pixel points are determined, and then the initial chromaticity characteristic adjustment processing is carried out on the part of pixel points. The design is beneficial to reducing the workload of color feature conversion processing and improving the efficiency of watermark printing processing by determining the first color features of part of pixel points.
And aiming at the selected at least one pixel point, performing chromaticity adjustment processing on the initial chromaticity characteristics of the pixel point according to the first color characteristics of the pixel point, wherein the at least one pixel point after the chromaticity adjustment processing forms a watermark lattice layer. Specifically, discretization processing can be performed on the initial chromaticity characteristics of each pixel point, so that the initial chromaticity characteristics of each pixel point are converted into target chromaticity characteristics, and the conversion of the initial chromaticity characteristics of each pixel point into chromaticity characteristics with stable printing effect is realized. The watermark printing device is beneficial to realizing stable printing effect and better printing quality when watermark printing is carried out by utilizing different printers, does not need to spend a great deal of time and effort for setting watermark parameters of the different printers, and is beneficial to reducing the implementation cost of watermark printing technology.
When the printer is used for printing characters, the characters in the dot matrix data form are imaged to be in a solid color state, the toner covers all character areas, the influence of the concentration of the toner and the transparency of the image on the character printing effect is not required to be considered, the printing effect is stable, and the printing quality is better. Therefore, the original chromaticity characteristics of the watermark object can be considered to be adjusted, the watermark object is processed into dot matrix data with the same character effect, and when the watermark object in the dot matrix data form is printed by using the printer, the influence of the watermark parameter setting of the printer on the printing effect of the watermark object can be omitted.
In operation S230, the watermark lattice layer is superimposed with other information layers to be printed, to obtain an object to be printed including a watermark object.
According to the embodiment of the invention, when the watermark lattice layer is overlapped with other information layers needing to be printed, the watermark lattice layer can be arranged at the bottom layer, and then the other information layers needing to be printed are overlapped on the watermark lattice layer, so that the object to be printed containing the watermark object is obtained.
Other information to be printed may be dot matrix data, or data described in a printer language (Printer Language Description data, abbreviated as PLD data). When other information is dot matrix data, the other information layers are dot matrix layers containing non-watermark objects, and the printer can directly obtain the dot matrix data from the dot matrix layers for printing. When other information is PLD data, various printing control instructions in the PLD data can be analyzed, so that the PLD data can be converted into dot matrix data, namely, other information layers are converted into dot matrix layers containing non-watermark objects.
The printing head of the printing equipment can directly print dot matrix data in the dot matrix layer, the printing effect is a character printing effect, and the printing effect does not depend on the transparency of pictures, the model of the printing equipment and the watermark parameter setting of the printing equipment. Therefore, the printing driver of the printing equipment is not required to be set, the watermark parameter of the printing equipment is also not required to be set, and compared with the prior art that a watermark object is processed into a watermark layer, the watermark layer is printed by the printing equipment, the embodiment of the invention has lower implementation cost, more stable watermark printing effect and can realize the printing of the watermark effect even when the printing equipment does not have the watermark printing function.
The technical scheme of the embodiment of the invention provides a processing method capable of realizing watermark printing, which is implemented by generating an initial layer containing a watermark object; performing lattice treatment on the initial layer to obtain a watermark lattice layer; and superposing the watermark lattice layer and other information layers to be printed to obtain the object to be printed containing the watermark object. The method comprises the steps of performing dot matrix processing on an initial layer containing a watermark object to obtain a watermark dot matrix layer containing the watermark object, and then superposing the watermark dot matrix layer with other information layers to obtain an object to be printed containing the watermark object, so that when the object to be printed containing the watermark object is printed, the traditional watermark printing is converted into dot matrix data printing, the printing effect is stable, and the printing quality is excellent; and the watermark printing effect is independent of watermark parameter setting of the printing equipment, so that a great amount of time and effort are not required to be spent on setting the watermark parameter of the printing equipment, and the watermark printing efficiency is effectively improved, and the printing cost of watermark printing is reduced.
Fig. 3 schematically shows a flow chart of another processing method that may enable watermark printing according to an embodiment of the invention.
As shown in fig. 3, the method is applied to a terminal including at least one application program executable. The method may include operations S310 to S330.
In operation S310, an initial layer containing a watermark object is generated.
In accordance with the embodiment of the present invention, the principles and processes of operation S310 may refer to the principles and processes of operation S210, which are not described herein.
In operation S320, according to the first color characteristic of at least one pixel in the initial layer, a chromaticity adjustment process is performed on each pixel, and the at least one pixel after the chromaticity adjustment process forms the watermark lattice layer.
According to the embodiment of the present invention, the method for determining at least one pixel point in the initial layer and determining the first color characteristic of the pixel point in the initial layer may refer to the principle and the process of operation S220, which are not described herein.
The first color characteristic of the pixel point comprises an initial chroma characteristic, an initial saturation characteristic and an initial brightness characteristic, and specifically comprises an initial chroma value, an initial saturation value and an initial brightness value. When the pixel point is subjected to chromaticity adjustment processing, a preset chromaticity characteristic aiming at the pixel point is determined according to the initial chromaticity characteristic in the first color characteristic of the pixel point, and then a target chromaticity characteristic aiming at the pixel point is determined according to the initial chromaticity characteristic and the preset chromaticity characteristic aiming at the pixel point.
When the preset chromaticity characteristic aiming at the pixel point is determined according to the first color characteristic of the pixel point, the preset chromaticity characteristic is determined to be the first chromaticity characteristic or the second chromaticity characteristic according to the first color characteristic of the pixel point, wherein the first chromaticity characteristic indicates the background color of other information layers, and the second chromaticity characteristic indicates the color of the watermark object. Then, a target chromaticity characteristic for the pixel point is determined according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point. Specifically, determining whether the initial chromaticity characteristic meets a preset condition; if yes, taking the preset chromaticity characteristic as a target chromaticity characteristic; if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
When determining the preset chromaticity characteristic for the pixel point according to the first color characteristic of the pixel point, the preset chromaticity characteristic can be determined to be the second chromaticity characteristic specifically under the conditions that the difference value between the initial chromaticity characteristic and the first chromaticity characteristic is larger than a first preset value, the initial saturation characteristic is larger than a second preset value and the initial brightness characteristic is larger than a third preset value; the remaining cases determine that the preset chromaticity characteristic is the first chromaticity characteristic.
Since chromaticity represents the type of color, each chromaticity feature represents one color (i.e., each chromaticity value represents one color), when the difference between the initial chromaticity feature of the pixel and the chromaticity feature of the background color of the other information layer is greater than the first preset value, it is indicated that the color of the pixel is different from, or even greater than, the background color of the other information layer. At this time, whether the initial saturation characteristic and the initial brightness characteristic of the pixel point are larger than a preset threshold value is continuously determined, when the initial saturation characteristic and the initial brightness characteristic are both larger than the preset threshold value, the saturation and the brightness of the color of the pixel point are both higher, and at this time, the initial color characteristic of the pixel point is converted into a second chromaticity characteristic. When the pixel point subjected to the chromaticity characteristic conversion is the pixel point of the watermark object, the initial color characteristic of the pixel point is not processed; when the pixel is not the pixel of the watermark object, the color of the pixel is set as the color of the watermark object. The values of the first, second and third preset values can be adjusted according to the printing effect of the historical object to be printed containing the watermark object, and the values of the three preset values have flexibility and are not uniquely determined.
Optionally, in a case where the initial chroma feature of the pixel point is not the first chroma feature, and the initial saturation feature is greater than the second preset value and the initial brightness feature is greater than the third preset value, determining the preset chroma feature as the second chroma feature. That is, when the color of the pixel is not the background color of the other information layer and the saturation and brightness of the color of the pixel are both high, the color of the pixel is set as the color of the watermark object. And otherwise, determining the preset chromaticity characteristic of the pixel point as a first chromaticity characteristic.
Optionally, the background color of the other information layer indicated by the first chrominance feature is white, and the color of the watermark object indicated by the second chrominance feature is black. At this time, it is first determined whether the color of the pixel is white, and if so, the initial chromaticity characteristic of the pixel is not processed. If the color is not white, determining whether the initial saturation value of the color of the pixel point is greater than 0.5, and determining whether the initial brightness value of the color of the pixel point is greater than 0.5, and determining that the preset chromaticity characteristic for the pixel point is black when both the initial saturation value and the initial brightness value of the color of the pixel point are greater than 0.5; if the initial saturation value or the initial brightness value of the color of the pixel point is not greater than 0.5, determining that the preset chromaticity characteristic for the pixel point is white.
After the preset chromaticity characteristic for each pixel point is determined, the target chromaticity characteristic for each pixel point is determined continuously according to the initial chromaticity characteristic and the preset chromaticity characteristic of each pixel point. Specifically, according to whether the initial chromaticity characteristic of each pixel point meets a preset condition, determining that the target chromaticity characteristic of each pixel point is a first chromaticity characteristic or a second chromaticity characteristic. That is, after the preset chromaticity characteristic for each pixel point is determined, further adjustment processing is performed on the chromaticity characteristic of each pixel point. The preset condition is adjustable according to the printing effect of the historical object to be printed containing the watermark object, and the selection of the preset condition has flexibility and is not uniquely determined.
In the field of printing technology, the colors of printed matter are often expressed using a CMYK print color mode. The CMYK mode is different from the RGB mode in that the RGB mode is a color mode in which a screen display emits light, and the CMYK mode is a color mode in which a print depends on reflection of light. The images displayed in the screen are represented by RGB modes, and the images presented in the print are represented by CMYK modes. Before the actual printing, the printed color can be checked by using the reference color, and the printed color can be checked by using a color spectrum which is represented by increasing the chromaticity value of each color by 10% by 10 cells or decreasing the chromaticity value by 10 cells. So, the CMYK values in a general printing technique are multiples of 10, whereby colors that correspond exactly to the CMYK values can be found chromatographically. In the case of relaxing the standard, it is also possible to take the CMYK values as multiples of 5. Therefore, the preset condition in the embodiment of the present invention may be selected to determine whether the initial chromaticity value of the pixel point is a multiple of 5 or 10.
Illustratively, it is determined whether the initial chroma value of the pixel is a multiple of 5, i.e., the initial chroma value of the pixel is left over by 5. When the remainder is 0, taking the preset chromaticity characteristic as a target chromaticity characteristic of the pixel point; if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic of the pixel point in the first chromaticity characteristic and the second chromaticity characteristic. Specifically, when the first chromaticity characteristic indicates white and the second chromaticity characteristic indicates black, and the remainder is 0 and the preset chromaticity characteristic of the pixel point is white, determining that the target chromaticity characteristic of the pixel point is white; and when the preset chromaticity characteristic of the pixel point is black, determining that the target chromaticity characteristic of the pixel point is black. When the remainder is not 0, determining that the target chromaticity characteristic of the pixel point is black when the preset chromaticity characteristic of the pixel point is white; and when the preset chromaticity characteristic of the pixel point is black, determining that the target chromaticity characteristic of the pixel point is white.
The method comprises the steps of performing sparse lattice processing on an initial layer containing a watermark object, and performing chromaticity characteristic adjustment processing on pixel points subjected to the sparse lattice processing, so that the initial chromaticity characteristic of each pixel point is converted into a target chromaticity characteristic, specifically, the initial chromaticity characteristic of each pixel point is converted into the chromaticity characteristic of the background color of other information layers, or the chromaticity characteristic of the color of the watermark object. The method comprises the steps of performing dot matrix processing on an initial layer containing a watermark object, processing the watermark object into discrete pixel points, and representing the shape of the watermark object by utilizing the target chromaticity characteristic of each pixel point, so that the watermark object is represented by a group of two-dimensional pixel information.
In operation S330, the watermark lattice layer is superimposed with other information layers to be printed, to obtain an object to be printed including a watermark object.
According to the embodiment of the invention, the watermark lattice layer is obtained by carrying out lattice treatment on the initial layer containing the watermark object, and then the watermark lattice layer is overlapped with other information layers to obtain the object to be printed containing the watermark object. The watermark effect presented after the object to be printed is basically the same as the traditional watermark layer mode of directly printing the watermark object. When an object to be printed is printed, the watermark object in the object to be printed is equivalent to a common printing font, and printing of the watermark object can be realized according to the printing requirement of the common printing font, so that the requirement on printing equipment is effectively reduced, even the printing equipment is not required to have a watermark printing function, the design is favorable for ensuring the stability of the watermark printing effect and improving the watermark printing effect, and the watermark parameter setting of the printing equipment can be performed without spending a great amount of time and effort, so that the watermark printing efficiency is improved, and the watermark printing cost consumption is reduced.
Fig. 4 schematically shows a flow chart of a method of rasterizing an initial layer according to an embodiment of the present invention.
As shown in fig. 4, the method 400 may include operations S401 to S416, each of which is described in detail below.
In operation S401, an initial layer containing a watermark object is generated;
In operation S402, determining HSB color characteristics of all pixel points in an initial layer;
In operation S403, a first pixel point is selected from a first pixel point column from the left of the initial layer;
In operation S404, it is determined whether the color of the pixel is white, if yes, operation S412 is performed, otherwise operation S405 is performed;
In operation S405, it is determined whether the initial saturation value and the initial brightness value of the pixel point are both greater than 50%, if yes, operation 406 is performed, otherwise operation 407 is performed, and after operations S406 and S407 are performed, operation S408 is performed;
in operation S406, the color of the pixel point is preset to black;
in operation S407, the color of the pixel point is preset to white;
In operation S408, the initial chromaticity value of the pixel point is divided by 5;
In operation S409, it is judged whether the remainder is 0, operation S410 is performed if yes, otherwise operation S411 is performed, and after operations S410 and S411 are performed, operation S412 is performed
In operation S410, the preset color of the pixel point is reserved, that is, if the preset color is black, the color of the pixel point is finally set to black, and if the preset color is white, the color of the pixel point is finally set to white;
In operation S411, the color of the pixel is set to another color different from the preset color, that is, if the preset color is black, the color of the pixel is finally set to white, if the preset color is white, the color of the pixel is finally set to black;
In operation S412, it is determined whether all the processes of the pixel columns are completed, if yes, operation S414 is performed, otherwise operation S413 is performed;
In operation S413, selecting the next pixel of the four pixel columns, and after performing operation S413, performing operation S404;
In operation S414, it is determined whether the processing of the pixels in all the pixel columns is completed, if yes, operation S416 is performed, otherwise operation S415 is performed;
in operation S415, a first pixel to be processed is selected from the next pixel column to the right, and after operation S415 is performed, operation S404 is performed;
In operation S416, a watermark lattice layer is obtained,
After performing operation S416 is complete, the method 400 ends. And obtaining the watermark lattice layer containing the watermark object by carrying out lattice treatment on the initial layer.
Fig. 5 schematically illustrates a schematic diagram of a watermark bitmap layer according to an embodiment of the present invention, as shown in fig. 5, a watermark object in the watermark bitmap layer 500 is an "SF" letter, and by performing a chromaticity characteristic adjustment process on an initial layer for every fourth pixel number line by line from left to right, specifically, converting the initial chromaticity characteristic of each pixel into white or black, so as to implement processing the watermark object into lattice data represented by discrete two-dimensional pixel information, where the watermark object in the obtained watermark bitmap layer is lattice data identical to text. The printing effect of the watermark object after the dot matrix processing is still the watermark effect, but the printing technology aiming at the watermark object is the common printing technology which is the same as characters, the ink concentration of a printer and the transparency of an image containing the watermark object are irrelevant, the watermark printing effect is stable, and the printing effect is obvious.
Fig. 6 schematically shows a block diagram representation of a processing method that may implement watermark printing according to an embodiment of the invention.
As shown in fig. 6, the method 600 may include operations S601 to S605, each of which is described in detail below.
In operation S601, determining a watermark object to be printed;
generating an initial layer containing a watermark object in operation S602;
in operation S603, the initial layer is subjected to lattice processing by using a preset sparse lattice algorithm, so as to obtain a watermark lattice layer. The preset sparse lattice algorithm is determined according to preset algorithm parameters and watermark printing effects.
In operation S604, the watermark lattice layer is overlapped with other information layers to be printed to obtain an object to be printed including a watermark object;
In operation S605, a print process is performed on an object to be printed using a printing apparatus.
Fig. 7 schematically illustrates a schematic diagram after a print process of an object to be printed according to an embodiment of the present invention, and as illustrated in fig. 7, 700 is a schematic diagram after the print process is performed on the object to be printed by using a printing apparatus, and watermark objects in the object to be printed include "SF" and "23: the 30' word pattern, other information layers to be printed are express delivery face sheets, and the express delivery face sheets comprise basic information of express delivery face sheets, such as information including addressee names, addressee addresses, sender names, sender addresses, logistics companies and the like. The watermark object is positioned at the lower layer of the express bill information, and the printing and displaying effect of the watermark object after the dot matrix processing is the watermark effect.
Exemplary Medium
Having described the method of an exemplary embodiment of the present invention, a computer-readable storage medium of an exemplary embodiment of the present invention is described next with reference to fig. 8. The computer-readable storage medium stores computer-executable instructions for implementing the watermark printing-enabled processing method according to any one of the above method embodiments when executed by a processing unit.
In some possible implementations, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a computing apparatus to carry out the steps of the watermark printing-enabling processing method according to the various exemplary embodiments of the present invention as described in the "exemplary method" section of this specification, when said program product is run on the computing apparatus, for example, the computing apparatus may carry out operation S210 as shown in fig. 2: generating an initial layer containing a watermark object; operation S220: performing lattice treatment on the initial layer to obtain a watermark lattice layer; operation S230: and superposing the watermark lattice layer and other information layers to be printed to obtain the object to be printed containing the watermark object.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, 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), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 8, a program product 800 for implementing a watermark printing process is described that may employ a portable compact disc read only memory (CD-ROM) and include program code and may run on a computing device, such as a personal computer, in accordance with an embodiment of the present invention. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected through the Internet using an Internet service provider).
Exemplary apparatus
Having described the media of the exemplary embodiments of the present invention, next, a processing device that can implement watermark printing of the exemplary embodiments of the present invention will be described with reference to fig. 9 and 10.
Fig. 9 schematically shows a block diagram of a processing device that may implement watermark printing according to an embodiment of the invention.
As shown in fig. 9, a processing device 900 that may implement watermark printing may include a first processing module 910, a second processing module 920, and a third processing module 930. The processing means may perform the method described with reference to the method embodiments section.
Specifically, a first processing module 910 is configured to generate an initial layer including a watermark object; the second processing module 920 is configured to perform a lattice processing on the initial layer to obtain a watermark lattice layer; and a third processing module 930, configured to superimpose the watermark lattice layer with other information layers to be printed, to obtain an object to be printed that includes the watermark object.
According to the embodiment of the invention, the watermark lattice layer containing the watermark object is obtained by carrying out lattice treatment on the initial layer containing the watermark object, and then the watermark lattice layer is overlapped with other information layers to obtain the object to be printed containing the watermark object, so that when the object to be printed containing the watermark object is printed, the traditional watermark printing is converted into lattice data printing, the printing effect is stable, and the printing quality is excellent; and the watermark printing effect is independent of watermark parameter setting of the printing equipment, so that a great amount of time and effort are not required to be spent on setting the watermark parameter of the printing equipment, and the watermark printing efficiency is effectively improved, and the printing cost of watermark printing is reduced.
In one embodiment of the present invention, the second processing module includes a first processing sub-module, configured to select at least one pixel point from a preset area of the initial layer, where the preset area includes a watermark object, according to a preset rule; a second processing sub-module configured to determine a first color characteristic of at least one pixel, wherein the first color characteristic includes an initial chromaticity characteristic, an initial saturation characteristic, and an initial brightness characteristic; and the third processing sub-module is used for carrying out chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, and at least one pixel point after the chromaticity adjustment processing forms a watermark lattice layer.
In another embodiment of the present invention, the second processing module includes a fourth processing sub-module configured to determine a first color characteristic of each pixel point in a preset area of the initial layer including the watermark object, where the first color characteristic includes an initial chromaticity characteristic, an initial saturation characteristic, and an initial brightness characteristic; the first processing sub-module is used for selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, wherein the pixel point has a first color characteristic; and the third processing sub-module is used for carrying out chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, and at least one pixel point after the chromaticity adjustment processing forms a watermark lattice layer.
In another embodiment of the present invention, the second processing sub-module and the fourth processing sub-module include a first processing unit, configured to perform a color feature conversion process on the pixel according to a second color feature of the pixel, so as to obtain a first color feature of the pixel, where the second color feature includes a brightness feature of at least one preset primary color.
In another embodiment of the present invention, the first processing sub-module includes a second processing unit, configured to select, in each pixel row or each pixel column of the preset area, pixels with a number of pixels preset to obtain at least one pixel.
In another embodiment of the present invention, the third processing sub-module includes a first determining unit, configured to determine a preset chromaticity characteristic for the pixel according to the first color characteristic of the pixel; and the second determining unit is used for determining the target chromaticity characteristic aiming at the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic aiming at the pixel point.
In another embodiment of the present invention, the first determining unit includes a first determining subunit, configured to determine, according to a first color feature of the pixel, a preset chroma feature as a first chroma feature or a second chroma feature, where the first chroma feature indicates a background color of the other information layer, and the second chroma feature indicates a color of the watermark object.
In another embodiment of the present invention, the second determining unit includes a second determining subunit configured to determine that the preset chromaticity characteristic is the second chromaticity characteristic when the initial chromaticity characteristic is not the first chromaticity characteristic and the initial saturation characteristic is greater than the second preset value and the initial brightness characteristic is greater than the third preset value; and determining the preset chromaticity characteristic as the first chromaticity characteristic in the rest cases.
In another embodiment of the present invention, the second determining unit includes a third determining subunit for determining whether the initial chromaticity characteristic satisfies a preset condition; a fourth determining subunit, configured to take the preset chromaticity characteristic as a target chromaticity characteristic if the preset chromaticity characteristic is the target chromaticity characteristic; if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
In another embodiment of the present invention, the background color of the other information layer indicated by the first chrominance feature is white, and the color of the watermark object indicated by the second chrominance feature is black.
Since the respective functional modules of the watermark printing-capable processing apparatus 900 according to the exemplary embodiment of the present invention correspond to the steps of the above-described exemplary embodiment of the watermark printing-capable processing method, the description thereof will not be repeated herein.
Exemplary computing device
Having described the methods, media, and apparatus of exemplary embodiments of the present invention, next, a computing device of exemplary embodiments of the present invention for implementing the processing method of the present invention that may implement watermark printing is described with reference to fig. 10.
The embodiment of the invention also provides a computing device. Those skilled in the art will appreciate that the various aspects of the invention may be implemented as an apparatus, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to the invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps in the processing method described in the above section of the "exemplary method" of the present specification, which can realize watermark printing according to various exemplary embodiments of the present invention. For example, the processing unit may perform operation S210 as shown in fig. 2: generating an initial layer containing a watermark object; operation S220: performing lattice treatment on the initial layer to obtain a watermark lattice layer; operation S230: and superposing the watermark lattice layer and other information layers to be printed to obtain the object to be printed containing the watermark object.
A computing device 1000 that may implement a watermark printing process according to such an embodiment of the invention is described below with reference to fig. 10. The computing device 1000 shown in fig. 10 is merely an example and should not be taken as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 10, the computing device 1000 is embodied in the form of a general purpose computing device. Components of computing device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, and a bus 1030 that connects the various system components, including the memory unit 1020 and the processing unit 1010.
Bus 1030 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The memory unit 1020 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1021 and/or cache memory 1022, and may further include Read Only Memory (ROM) 1023.
Storage unit 1020 may also include a program/utility 1025 having a set (at least one) of program modules 1024, such program modules 1024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Computing device 1000 can also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with computing device 1000, and/or any device (e.g., router, modem, etc.) that enables computing device 1000 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1050. Moreover, the computing device 1000 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, for example, the Internet, through a network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the computing device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computing device 1000, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of the apparatus are mentioned in the above detailed description, this division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module in accordance with embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Furthermore, although the operations of the methods of the present invention are depicted in the drawings in a particular order, this is not required or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While the spirit and principles of the present invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments nor does it imply that features of the various aspects are not useful in combination, nor are they useful in any combination, such as for convenience of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (18)

1. A processing method for enabling watermark printing, comprising:
Generating an initial layer containing a watermark object;
Performing lattice treatment on the initial layer to obtain a watermark lattice layer, wherein at least one pixel point is selected from a preset area of the initial layer containing the watermark object according to a preset sparse lattice algorithm, so as to realize conversion of the initial layer into the watermark lattice layer;
superposing the watermark lattice layer and other information layers to be printed to obtain an object to be printed containing the watermark object,
The step of performing lattice processing on the initial layer to obtain a watermark lattice layer comprises the following steps:
Selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, and executing the following operations on the selected pixel point:
determining a first color characteristic of the at least one pixel point, wherein the first color characteristic comprises an initial chromaticity characteristic, an initial saturation characteristic and an initial brightness characteristic;
Performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel points according to the first color characteristic of the pixel points, forming the watermark lattice layer by at least one pixel point after the chromaticity adjustment processing,
The performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point according to a preset rule according to the first color characteristic of the pixel point includes:
determining a preset chromaticity characteristic aiming at the pixel point according to the first color characteristic of the pixel point;
Determining a target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point,
Wherein, the determining, according to the first color characteristic of the pixel point, the preset chromaticity characteristic for the pixel point includes:
Determining the preset chromaticity characteristic as a second chromaticity characteristic under the condition that the difference value between the initial chromaticity characteristic and the first chromaticity characteristic is larger than a first preset value, the initial saturation characteristic is larger than a second preset value and the initial brightness characteristic is larger than a third preset value; the other conditions determine that the preset chromaticity characteristic is a first chromaticity characteristic, the first chromaticity characteristic indicates the background color of other information layers, and the second chromaticity characteristic indicates the color of the watermark object;
The determining the target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point comprises:
If the initial chromaticity characteristic is determined to meet the preset condition, taking the preset chromaticity characteristic as a target chromaticity characteristic; and if the initial chromaticity characteristic does not meet the preset condition, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic, wherein the preset condition is that the initial chromaticity value of the pixel point is a multiple of 5 or 10.
2. The method of claim 1, wherein the performing the rasterization on the initial layer to obtain a watermark bitmap layer comprises:
Determining a first color characteristic of each pixel point in a preset area of the initial layer containing the watermark object, wherein the first color characteristic comprises an initial chromaticity characteristic, an initial saturation characteristic and an initial brightness characteristic;
selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, wherein the pixel point is provided with a first color characteristic, and executing the following operations aiming at the selected pixel point:
And according to the first color characteristic of the pixel point, performing chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point, wherein at least one pixel point after the chromaticity adjustment processing forms the watermark lattice layer.
3. The method of claim 1 or 2, wherein the method of determining the first color characteristic of the pixel comprises:
and performing color feature conversion processing on the pixel points according to second color features of the pixel points to obtain the first color features of the pixel points, wherein the second color features comprise brightness features of at least one preset primary color.
4. The method according to claim 1 or 2, wherein the selecting at least one pixel from a preset area of the initial layer containing the watermark object according to a preset rule comprises:
and selecting pixel points with the number of every preset pixel from each pixel point row or each pixel point column of the preset area to obtain at least one pixel point.
5. The method of claim 1, wherein the determining the preset chromaticity characteristic for the pixel from the first color characteristic of the pixel comprises:
determining the preset chromaticity characteristic as a first chromaticity characteristic or a second chromaticity characteristic according to the first color characteristic of the pixel point,
Wherein the first chrominance feature indicates a background color of the other information layer and the second chrominance feature indicates a color of the watermark object.
6. The method of claim 5, wherein the determining the preset chromaticity feature as the first chromaticity feature or the second chromaticity feature according to the first color feature of the pixel point comprises:
determining that the preset chromaticity characteristic is the second chromaticity characteristic when the difference value between the initial chromaticity characteristic and the first chromaticity characteristic is larger than a first preset value, the initial saturation characteristic is larger than a second preset value and the initial brightness characteristic is larger than a third preset value;
And determining that the preset chromaticity characteristic is the first chromaticity characteristic in other cases.
7. The method of claim 5, wherein the determining a target chromaticity characteristic for the pixel from the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel comprises:
determining whether the initial chromaticity characteristic meets a preset condition;
if yes, taking the preset chromaticity characteristic as the target chromaticity characteristic;
if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
8. The method of any of claims 5 to 7, wherein the background color of the other information layer indicated by the first chrominance feature is white and the color of the watermark object indicated by the second chrominance feature is black.
9. A processing apparatus that enables watermark printing, comprising:
a first processing module for generating an initial layer containing a watermark object;
The second processing module is used for carrying out lattice treatment on the initial layer to obtain a watermark lattice layer, wherein at least one pixel point is selected from a preset area of the initial layer containing the watermark object according to a preset sparse lattice algorithm, so that the initial layer is converted into the watermark lattice layer;
a third processing module, configured to superimpose the watermark lattice layer with other information layers to be printed to obtain an object to be printed that contains the watermark object,
Wherein the second processing module comprises:
the first processing sub-module is used for selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule;
A second processing sub-module configured to determine a first color characteristic of the at least one pixel point, wherein the first color characteristic includes an initial chromaticity characteristic, an initial saturation characteristic, and an initial brightness characteristic;
A third processing sub-module, configured to perform chromaticity adjustment processing on the initial chromaticity characteristic of the pixel according to the first color characteristic of the pixel, where the at least one pixel after chromaticity adjustment processing forms the watermark bitmap layer,
Wherein the third processing sub-module comprises:
A first determining unit, configured to determine a preset chromaticity characteristic for the pixel point according to the first color characteristic of the pixel point;
A second determination unit configured to determine a target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point,
The first determining unit is further configured to determine that the preset chromaticity characteristic is the second chromaticity characteristic when the difference between the initial chromaticity characteristic and the first chromaticity characteristic is greater than a first preset value, the initial saturation characteristic is greater than a second preset value, and the initial brightness characteristic is greater than a third preset value; the other conditions determine that the preset chromaticity characteristic is a first chromaticity characteristic, the first chromaticity characteristic indicates the background color of other information layers, and the second chromaticity characteristic indicates the color of the watermark object;
the second determining unit is further configured to, if it is determined that the initial chromaticity characteristic meets a preset condition, take the preset chromaticity characteristic as a target chromaticity characteristic; and if the initial chromaticity characteristic does not meet the preset condition, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic, wherein the preset condition is that the initial chromaticity value of the pixel point is a multiple of 5 or 10.
10. The apparatus of claim 9, wherein the second processing module comprises:
A fourth processing sub-module, configured to determine a first color feature of each pixel point in a preset area of the initial layer including the watermark object, where the first color feature includes an initial chroma feature, an initial saturation feature, and an initial brightness feature;
the first processing sub-module is used for selecting at least one pixel point from a preset area of the initial layer containing the watermark object according to a preset rule, wherein the pixel point has a first color characteristic;
and the third processing sub-module is used for carrying out chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, and the at least one pixel point after the chromaticity adjustment processing forms the watermark lattice layer.
11. The apparatus of claim 10, wherein the second processing sub-module and the fourth processing sub-module comprise:
The first processing unit is used for performing color feature conversion processing on the pixel points according to second color features of the pixel points to obtain the first color features of the pixel points, wherein the second color features comprise brightness features of at least one preset primary color.
12. The apparatus of claim 9 or 10, wherein the first processing sub-module comprises:
the second processing unit is used for selecting the pixel points with the number of every preset pixel from each pixel point row or each pixel point column of the preset area so as to obtain the at least one pixel point.
13. The apparatus of claim 12, wherein the first determining unit comprises:
a first determining subunit, configured to determine, according to the first color characteristic of the pixel point, whether the preset chromaticity characteristic is a first chromaticity characteristic or a second chromaticity characteristic,
Wherein the first chrominance feature indicates a background color of the other information layer and the second chrominance feature indicates a color of the watermark object.
14. The apparatus of claim 13, wherein the second determining unit comprises:
A second determining subunit, configured to determine that the preset chromaticity feature is the second chromaticity feature when a difference between the initial chromaticity feature and the first chromaticity feature is greater than a first preset value, and the initial saturation feature is greater than a second preset value, and the initial brightness feature is greater than a third preset value; and
And determining that the preset chromaticity characteristic is the first chromaticity characteristic in other cases.
15. The apparatus of claim 13, wherein the second determining unit comprises:
A third determining subunit, configured to determine whether the initial chroma feature meets a preset condition;
a fourth determining subunit, configured to take the preset chromaticity characteristic as the target chromaticity characteristic if the preset chromaticity characteristic is the target chromaticity characteristic;
if not, taking the other chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
16. The apparatus of any of claims 13 to 15, wherein a background color of the other information layer indicated by the first chrominance feature is white and a color of the watermark object indicated by the second chrominance feature is black.
17. An electronic device, comprising:
one or more processors;
A memory for storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 8.
18. A computer readable storage medium storing computer executable instructions which when executed are adapted to implement the method of any one of claims 1 to 8.
CN202010875397.4A 2020-08-26 2020-08-26 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium Active CN112000303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010875397.4A CN112000303B (en) 2020-08-26 2020-08-26 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010875397.4A CN112000303B (en) 2020-08-26 2020-08-26 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112000303A CN112000303A (en) 2020-11-27
CN112000303B true CN112000303B (en) 2024-05-14

Family

ID=73471978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010875397.4A Active CN112000303B (en) 2020-08-26 2020-08-26 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000303B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488902B (en) * 2020-12-21 2024-02-06 重庆紫光华山智安科技有限公司 Optimization method, system, medium and terminal for self-adaptive hidden watermark
CN113459688A (en) * 2021-07-08 2021-10-01 上海中通吉网络技术有限公司 System based on laser printing equipment printing face list information
CN115079966B (en) * 2022-08-22 2022-12-02 南京数睿数据科技有限公司 Code-free page printing method and device, electronic equipment and readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530843A (en) * 2013-10-14 2014-01-22 杭州电子科技大学 Picture watermark embedding and removing method based on color information compression
CN106708449A (en) * 2016-12-31 2017-05-24 金航数码科技有限责任公司 Anti copy method based on negative color image watermark in monochrome printing
CN107316269A (en) * 2017-06-22 2017-11-03 上海艺赛旗软件股份有限公司 A kind of micro- aberration watermark handling method tracked for information-leakage and system
CN107391052A (en) * 2016-05-16 2017-11-24 山东新北洋信息技术股份有限公司 Express delivery face singles' impression method and device
CN107451947A (en) * 2017-08-03 2017-12-08 武汉远众科技有限公司 A kind of enhancing evidence collection method based on picture watermark
CN108875323A (en) * 2018-06-15 2018-11-23 江苏神州信源系统工程有限公司 watermark adding method and device
CN110084735A (en) * 2019-04-26 2019-08-02 新华三云计算技术有限公司 Watermark adding method, analytic method, device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423902B (en) * 2013-09-02 2018-02-23 北大方正集团有限公司 Digital printing control method and system for secret papers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530843A (en) * 2013-10-14 2014-01-22 杭州电子科技大学 Picture watermark embedding and removing method based on color information compression
CN107391052A (en) * 2016-05-16 2017-11-24 山东新北洋信息技术股份有限公司 Express delivery face singles' impression method and device
CN106708449A (en) * 2016-12-31 2017-05-24 金航数码科技有限责任公司 Anti copy method based on negative color image watermark in monochrome printing
CN107316269A (en) * 2017-06-22 2017-11-03 上海艺赛旗软件股份有限公司 A kind of micro- aberration watermark handling method tracked for information-leakage and system
CN107451947A (en) * 2017-08-03 2017-12-08 武汉远众科技有限公司 A kind of enhancing evidence collection method based on picture watermark
CN108875323A (en) * 2018-06-15 2018-11-23 江苏神州信源系统工程有限公司 watermark adding method and device
CN110084735A (en) * 2019-04-26 2019-08-02 新华三云计算技术有限公司 Watermark adding method, analytic method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112000303A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN112000303B (en) Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
US8134573B2 (en) Encoding CMYK data for display using indexed RGB
JP6824052B2 (en) Image processing device, its control method, and program
US8117134B2 (en) Neutral pixel correction for proper marked color printing
US9659387B2 (en) Graphics primitive and color channels
JP4978348B2 (en) Image processing system and image processing method
JP2009267927A (en) Image processing apparatus and program
US8339663B2 (en) Encoding of non-indexed data for printing using indexed RGB
US10432826B2 (en) Automatic suppression of unrecognized spot colors from a raster image
US9001381B2 (en) Image forming apparatus which processes printing data including a transparency pattern, printing control terminal apparatus, and image forming method thereof
JP4208877B2 (en) Image processing apparatus and method, computer program, and storage medium
US7061645B2 (en) Non-segmentation, individual pixel-by-pixel-based image rendering system
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
US11422755B1 (en) Systems and methods for pseudo spot color printing
US8294951B2 (en) Method of reducing the amount of black in an image
JP2013202927A (en) Image forming method and image forming apparatus
US10306104B2 (en) Image processing method and image processing apparatus that ensure efficient memory use, and recording medium therefor
JP2008160476A (en) Image processor and its processing method
US8351099B2 (en) Hue specific monochromatic printing mechanism
US10057458B2 (en) Method and apparatus for printing in grayscale
JP2016025422A (en) Information processor and program
US9111200B2 (en) Image forming apparatus combining stamp image with original image
JP2011025478A (en) Image forming apparatus, image forming method, program, and recording medium
JP5138088B2 (en) Image processing apparatus and processing method thereof
JP2007324864A (en) Image processor, control method thereof, and program

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