CN112000303A - 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
CN112000303A
CN112000303A CN202010875397.4A CN202010875397A CN112000303A CN 112000303 A CN112000303 A CN 112000303A CN 202010875397 A CN202010875397 A CN 202010875397A CN 112000303 A CN112000303 A CN 112000303A
Authority
CN
China
Prior art keywords
watermark
pixel point
characteristic
initial
feature
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.)
Granted
Application number
CN202010875397.4A
Other languages
Chinese (zh)
Other versions
CN112000303B (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

Images

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)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (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 dot matrix processing on the initial layer to obtain a watermark dot matrix layer; and superposing the watermark dot matrix layer and other information layers to be printed to obtain the object to be printed containing the watermark object. The method provided by the invention has the advantages that the watermark printing effect is effectively improved, better experience is brought to users, and the time consumption caused by manual setting of the watermark parameters of the printer is effectively reduced. In addition, the embodiment of the invention provides a processing device capable of realizing watermark printing, an electronic device and a computer readable storage medium.

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 and device capable of realizing watermark printing, an electronic device and a storage medium.
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, ways of performing information processing on data such as characters, pictures, and facesheets have become more and more common. The use of watermarks for copyright protection, authenticity identification, data tracking, and the like of electronic data obtained by informatization is also widely used.
In implementing the disclosed concept of the present invention, the inventor found that, due to different settings of watermark parameters of different printers, the perceptibility of the same watermark parameter is different for different printers, which results in different printing effects of watermarks when electronic data with the same watermark is printed by different printers.
This results in poor watermark printing effect on the one hand, and also results in a great deal of time and energy being spent on setting watermark parameters of different printers, which significantly increases the labor cost consumed by watermark printing.
Disclosure of Invention
In the prior art, when watermark printing is carried out, the watermark parameters of different printers are set differently, the perceptibility of different printers to the same watermark parameters is also different, and in order to realize the watermark printing effect meeting the requirements, a great amount of time and energy are needed to set the watermark parameters of different printers.
Therefore, in the prior art, when different printers are used for printing the same watermark, the watermark printing effect is unstable, and the watermark parameter setting of different printers consumes a large amount of labor cost, which is a very annoying process.
Therefore, an improved processing method capable of realizing watermark printing is highly needed, so that when different printers are used for watermark printing, the watermark printing effect is stable, the watermark printing effect is good, and a great amount of time and energy are not needed for setting watermark parameters of different printers.
In this context, embodiments of the present invention are intended to provide a processing method, an apparatus, an electronic device, and a storage medium, which can implement watermark printing.
In a first aspect of embodiments of the present invention, a processing method capable of implementing watermark printing is provided, including generating an initial layer including a watermark object; performing dot matrix processing on the initial layer to obtain a watermark dot matrix layer; and superposing the watermark dot matrix layer and other information layers to be printed to obtain an object to be printed containing the watermark object.
In an embodiment of the present invention, the performing the rasterization processing on the initial layer to obtain the watermark dot-matrix layer includes selecting at least one pixel point from a preset region of the initial layer containing the watermark object according to a preset rule, and performing the following operation 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 carrying out chroma adjustment processing on the initial chroma characteristic of the pixel point according to the first color characteristic of the pixel point, wherein the at least one pixel point after the chroma adjustment processing forms the watermark dot matrix layer.
In another embodiment of the present invention, the performing the rasterization processing on the initial layer to obtain the watermark dot matrix layer includes determining a first color feature of each pixel point in a preset region of the initial layer that includes 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 has a first color characteristic, executing the following operation aiming at the selected pixel point, carrying out chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point according to the first color characteristic of the pixel point, and forming the watermark dot matrix layer by the at least one pixel point after the chromaticity adjustment processing.
In another embodiment of the present invention, a method for determining the first color characteristic of the pixel point includes performing color characteristic conversion processing on the pixel point according to a second color characteristic of the pixel point to obtain the first color characteristic of the pixel point, where the second color characteristic includes a luminance characteristic of at least one preset primary color.
In another embodiment of the present invention, the selecting at least one pixel point from a preset region of the initial layer containing the watermark object according to a preset rule includes selecting pixel points every other preset number of pixels from each pixel point row or each pixel point column of the preset region to obtain the at least one pixel point.
In another embodiment of the present invention, the performing the 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 aiming at the pixel point according to the initial chromaticity characteristic aiming at the pixel point and the preset chromaticity characteristic.
In another embodiment of the present invention, the determining a preset chrominance characteristic for the pixel according to the first color characteristic of the pixel includes determining the preset chrominance characteristic as a first chrominance characteristic or a second chrominance characteristic according to the first color characteristic of the pixel, where the first chrominance characteristic indicates a background color of the other information layers, and the second chrominance characteristic indicates a color of the watermark object.
In another embodiment of the present invention, the determining the preset chrominance characteristic as a first chrominance characteristic or a second chrominance characteristic according to the first color characteristic of the pixel point includes determining the preset chrominance characteristic as the second chrominance characteristic when a difference between the initial chrominance characteristic and the first chrominance 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: and determining the preset chromaticity characteristic as the first chromaticity characteristic under other conditions.
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 so, taking the preset chromaticity characteristic as the target chromaticity characteristic; and if not, taking another 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, a background color of the other information layer indicated by the first chrominance characteristic is white, and a color of the watermark object indicated by the second chrominance characteristic 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 dot matrix layer and other information layers 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 region of the initial layer containing the watermark object according to a preset rule; the second processing submodule is used for determining a first color characteristic of the at least one pixel point, wherein the first color characteristic comprises an initial chroma characteristic, an initial saturation characteristic and an initial lightness characteristic; and the third processing submodule is used for carrying out chroma adjustment processing on the initial chroma characteristic of the pixel point according to the first color characteristic of the pixel point, and the at least one pixel point after the chroma adjustment processing forms the watermark dot matrix 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 region of the initial layer that includes the watermark object, where the first color feature includes an initial chrominance feature, an initial saturation feature, and an initial brightness feature; the first processing submodule is used for selecting at least one pixel point from a preset area containing the watermark object in the initial layer according to a preset rule, wherein the pixel point has a first color characteristic; and the third processing submodule is used for carrying out chroma adjustment processing on the initial chroma characteristic of the pixel point according to the first color characteristic of the pixel point, and the at least one pixel point after the chroma adjustment processing forms the watermark dot matrix 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 color feature conversion processing 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 first processing sub-module includes a second processing unit, configured to select, in each pixel row or each pixel column of the preset region, a pixel point every other preset number of pixels to obtain the at least one pixel point.
In another embodiment of the present invention, the third processing sub-module includes a first determining unit, configured to determine a preset chrominance 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 aiming at the pixel point and the preset chromaticity characteristic.
In another embodiment of the present invention, the first determining unit includes a first determining subunit, configured to determine, according to the first color feature of the pixel, that the preset chrominance feature is a first chrominance feature or a second chrominance feature, where 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 second determining unit includes a second determining subunit, configured to determine that the preset chroma feature is the second chroma feature if the difference between the initial chroma feature and the first chroma feature is greater than a first preset value, the initial saturation feature is greater than a second preset value, and the initial lightness feature is greater than a third preset value; and determining the preset chromaticity characteristic as the first chromaticity characteristic in other conditions.
In another embodiment of the present invention, the second determining unit includes a third determining subunit, configured to determine whether the initial chromaticity characteristic satisfies a preset condition; a fourth determining subunit, configured to, if yes, use the preset chromaticity feature as the target chromaticity feature; and if not, taking another 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 embodiments of the present invention, there is provided an electronic apparatus, comprising: one or more processors; 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 for implementing the method of any one of the first aspect when executed.
According to the processing method and device capable of realizing watermark printing, provided by the embodiment of the invention, the watermark printing effect can be improved, the watermark printing efficiency is improved, a large amount of time and energy are not needed to be spent for setting the watermark parameters of the printing equipment, the time consumption for carrying out watermark printing by utilizing different printing equipment is obviously reduced, and better experience is brought to users.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the 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 shows an exemplary system architecture of a processing method and an apparatus thereof, which can implement watermark printing according to an embodiment of the present invention;
fig. 2 is a flow chart schematically illustrating a processing method capable of realizing watermark printing according to an embodiment of the present invention;
FIG. 3 is a flow chart that schematically illustrates another processing method for enabling watermark printing, in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart schematically illustrating a method for performing rasterization processing on an initial layer according to an embodiment of the present invention;
fig. 5 schematically shows a schematic view of a watermark lattice layer according to an embodiment of the invention;
FIG. 6 is a block diagram illustrating schematically a processing method by which watermark printing may be implemented, according to an embodiment of the present invention;
fig. 7 schematically shows a schematic view of an object to be printed after print processing according to an embodiment of the present invention;
FIG. 8 schematically illustrates a program product that can implement a watermarking process according to an embodiment of the present invention;
fig. 9 schematically shows a block diagram of a processing apparatus that can implement watermark printing according to an embodiment of the present invention; and
fig. 10 schematically illustrates a computing device that can implement a watermarking print process according to an embodiment of the present 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 with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to 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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the 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 is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for differentiation only and not in any limiting sense.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that in the prior art, when a printer is used for watermark printing, because the watermark parameter settings of different printers are different, and the perceptibility of different printers for the same watermark parameter setting is different, even some printers do not have the watermark printing function. Therefore, this causes different printers to print different effects for the same watermark, the printing effects are not good, and it also takes a lot of time and effort to perform watermark parameter setting for different printers. The processing method and the 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 energy to set watermark parameters for different printers.
Having described the general principles of the 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 an apparatus thereof that can implement watermark printing according to an embodiment of the present invention will be described in detail with reference to fig. 1.
As shown in fig. 1, the 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 to provide a medium of communication links between the printing devices 101, 102, 103 and the processing device 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The printing devices 101, 102, 103 may be various electronic devices that support 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 that provides a watermark printing processing function, and may be, for example, a processor of a computer network-connected to the printing devices 101, 102, 103. The processing device 105 may, after receiving a watermark printing request from a user, process a watermark object to be printed, generate an object to be printed containing the watermark object, and send the object to be printed (for example, image data containing the watermark object) to the printing device for printing.
It should be noted that the processing method capable of realizing watermark printing provided by the embodiment of the present invention may be generally executed by the processing device 105. Accordingly, the processing device capable of realizing watermark printing provided by the embodiment of the present invention may be generally disposed in the processing device 105. The processing method capable of realizing watermark printing provided by the embodiment of the present invention may also be executed by other processing devices or processing device clusters 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 implementing watermark printing provided by the embodiment of the present invention may also be disposed in other processing devices or processing device clusters 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 is illustrative only. There may be any number of printing devices, networks, and processing devices, as desired for an implementation.
Exemplary method
In the following, a processing method capable of realizing watermark printing according to an exemplary embodiment of the present invention is described with reference to fig. 2 and 3 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Fig. 2 schematically shows a flowchart of a processing method that can implement watermark printing according to an embodiment of the present invention.
As shown in fig. 2, the method is applied to a terminal including at least one application program that can be executed. 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 present invention, upon receiving a print request from a print requesting apparatus, print contents, print identification information, printing device information in the print request are determined. The print request device may specifically be a smart phone, a tablet computer, a laptop computer, or the like, and software that can request to print a file is installed in the print request device, for example, the print request device may be office software, pdf software, notepad software, or the like. The print identification information may specifically be user terminal information, user login information, print time information, and the like. The printing device information indicates device information used for watermark printing, and the printing device may be a thermal printer, a thermal transfer printer, a stylus printer, an inkjet printer, or the like.
The printing content is to-be-printed data containing a watermark object and a non-watermark object. The printable processed watermark object may include a text watermark, such as a digital watermark, an alphabetic watermark, a text watermark, and the like, and an image watermark, such as an icon watermark, a picture watermark, a logo watermark, and the like. The non-watermark object is other information needing to be printed, and specifically can be other characters needing to be printed except the watermark object. For example, in an application scenario of printing an express bill containing a watermark object, the non-watermark object may be, for example, express information to be printed, and the express information may include, for example, a sender name, a sender address, a sender phone number, a recipient name, a recipient address, a recipient phone number, cargo information, and the like.
When an original layer containing a watermark object is generated, an independent layer is defined, the layer is used for placing characters or patterns which are shown as watermark effects, and the characters or patterns which are used as the watermark object are added into 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 has a second color characteristic, and the second color characteristic comprises a brightness characteristic of at least one preset primary color. Illustratively, the second color characteristic is an RGB color characteristic, which includes luminance characteristics of three primary colors of red, green, and blue.
In operation S220, the initial layer is subjected to a rasterization process to obtain a watermark dot matrix layer.
According to the embodiment of the invention, the initial layer is subjected to the dot matrix processing to obtain the watermark dot matrix layer containing the watermark object, specifically, at least one pixel point is selected from the preset area containing the watermark object of the initial layer according to the preset rule, and the following operations are executed aiming at 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 performing chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, wherein at least one pixel point after the chromaticity adjustment processing forms a watermark dot matrix layer.
Or determining a first color characteristic of each pixel point in a preset region 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 containing a watermark object of the initial layer according to a preset rule, wherein the pixel point has a first color characteristic, and executing the following operations aiming at the selected pixel point: and performing chromaticity adjustment processing on the initial chromaticity characteristics of the pixel points according to the first color characteristics of the pixel points, wherein at least one pixel point after the chromaticity adjustment processing forms a watermark dot matrix layer.
The method for determining the first color feature of the pixel point may include: and according to the second color characteristic of the pixel point, performing color characteristic conversion processing on the pixel point to obtain the first color characteristic of the pixel point. The first color feature may be, for example, an HSB color feature that characterizes a color by using three color features of Hue (Hue), Saturation (Saturation), and lightness (Brightness). The Hue (Hue) represents the type of color (e.g., red, green, or yellow), and ranges from 0 to 360, and each Hue feature represents a color. The Saturation (Saturation) represents the Saturation of a color, and ranges from 0 to 1, the Saturation of 0 represents a gray scale map, and the Saturation of 1 represents a pure color. Lightness (Brightness) represents the Brightness of a color, and ranges from 0 to 1, lightness of 0 represents black, and lightness of 1 represents a color of a specific saturation.
The method for obtaining the HSB color feature by performing color feature conversion processing on the pixel point according to the RGB color features of the pixel point can be implemented according to the following conversion relationship, for example.
Figure BDA0002651867620000101
Figure BDA0002651867620000102
B=max
Where R, G, B denotes a red luminance value, a green luminance value, and a blue luminance value, respectively, max denotes a maximum luminance value in R, G, B, and min denotes a minimum luminance value in R, G, B.
And selecting at least one pixel point from a preset region containing the watermark object of the initial layer according to a preset sparse lattice algorithm, so as to convert the initial layer into a sparse lattice layer. Specifically, in each pixel point row or each pixel point column of the preset area, pixel points of every preset number of pixels are selected to obtain at least one pixel point. As an optional mode, in a preset region containing a watermark object, according to each pixel point row of the preset region, pixel points of every preset number of pixels are selected from one row end to the other row end line by line. Illustratively, in each pixel point row of the preset area from top to bottom, at least one pixel point every 4 pixels is selected from left to right line by line. As another optional mode, in a preset region containing the watermark object, pixel points of every preset number of pixels are selected from one row end to the other row end line by line according to each pixel point row of the preset region. Illustratively, in each pixel point column from left to right of the preset area, at least one pixel point every 4 pixels is selected from top to bottom column by column. When the pixel points are selected, the preset number of the pixels can be a value, a plurality of values, or a value adjusted according to the first color characteristic of the pixel points.
The preset region may be any region of the initial layer that includes the watermark object, specifically, may be a whole region of the initial layer, or may be a partial region of the initial layer that includes 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 carry out initial chromaticity characteristic adjustment processing. The design is favorable for determining which pixel points are selected to carry out initial chromaticity characteristic adjustment processing according to the first color characteristics of the determined pixel points. Generally, the pixels with the initial saturation characteristic and the initial brightness characteristic larger than the preset threshold may be selected to perform the initial chromaticity characteristic adjustment process. In addition, a part of pixel points can be selected in a 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 favorable for reducing the workload of color characteristic conversion processing and improving the efficiency of watermark printing processing by determining the first color characteristics of partial pixel points.
Aiming at least one selected pixel point, carrying out chromaticity adjustment processing on the initial chromaticity characteristic of the pixel point according to the first color characteristic of the pixel point, wherein at least one pixel point after the chromaticity adjustment processing forms a watermark dot matrix layer. Specifically, discretization can be performed on the initial chromaticity characteristics of each pixel point, the initial chromaticity characteristics of each pixel point are converted into target chromaticity characteristics, and the initial chromaticity characteristics of each pixel point are converted into chromaticity characteristics with stable printing effect. The method is favorable for realizing stable printing effect and better printing quality when different printers are used for carrying out watermark printing, does not need to spend a large amount of time and energy to set watermark parameters of different printers, and is favorable for reducing the implementation cost of the watermark printing technology.
When a printer is used for printing characters, the characters in the dot matrix data form are imaged to be in a pure color state, all character areas are covered by the toner, the influence of the toner concentration and the image transparency on the character printing effect is not required to be considered, the printing effect is stable, and the printing quality is good. Therefore, the original chromaticity characteristics of the watermark object can be considered to be adjusted, the watermark object can be processed into the dot matrix data with the same character effect, and when the printer is used for printing the watermark object in the dot matrix data form, the influence of the watermark parameter setting of the printer on the printing effect of the watermark object can be avoided.
In operation S230, the watermark dot matrix layer is superimposed with other information layers to be printed, so as to obtain an object to be printed including the watermark object.
According to the embodiment of the invention, when the watermark dot matrix layer and other information layers to be printed are superposed, the watermark dot matrix layer can be arranged on the bottom layer, and then the other information layers to be printed are superposed on the watermark dot matrix layer to obtain the object to be printed containing the watermark object.
The 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 the other information is dot matrix data, the other information layers are dot matrix layers containing non-watermark objects, and the printer can directly acquire the dot matrix data from the dot matrix layers for printing. When the other information is the PLD data, various print control instructions in the PLD data can be analyzed to convert the PLD data into dot matrix data, that is, the other information layer is converted into a dot matrix layer containing a non-watermark object.
The printing head of the printing equipment can directly print the 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 the picture or the model of the printing equipment or the watermark parameter setting of the printing equipment. Therefore, a print driver of the printing device does not need to be set, and a watermark parameter of the printing device also does not need to be set.
The technical scheme of the embodiment of the invention provides a processing method capable of realizing watermark printing, which comprises the steps of generating an initial layer containing a watermark object; performing dot matrix processing on the initial layer to obtain a watermark dot matrix layer; and superposing the watermark dot matrix 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 overlapping 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 superior; and the watermark printing effect does not depend on the watermark parameter setting of the printing equipment, and the watermark parameter setting of the printing equipment does not need to spend a large amount of time and energy, so that the watermark printing efficiency is effectively improved, and the printing cost of the watermark printing is favorably reduced.
Fig. 3 schematically shows a flowchart of another processing method capable of realizing watermark printing according to an embodiment of the present invention.
As shown in fig. 3, the method is applied to a terminal including at least one application program that can be executed. The method may include operations S310 to S330.
In operation S310, an initial layer containing a watermark object is generated.
According to the embodiment of the present invention, the principle and process of operation S310 may refer to the principle and process of operation S210, which is not described herein again.
In operation S320, according to the first color feature of at least one pixel point in the initial layer, a chroma adjustment process is performed on each pixel point, and the at least one pixel point after the chroma adjustment process forms a watermark dot matrix 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 feature of the pixel point in the initial layer may refer to the principle and process of operation S220, which is not described herein again.
The first color feature of the pixel point comprises an initial chromaticity feature, an initial saturation feature and an initial brightness feature, and specifically comprises an initial chromaticity value, an initial saturation value and an initial brightness value. When the chromaticity of the pixel point is adjusted, the preset chromaticity characteristic of the pixel point is determined according to the initial chromaticity characteristic in the first color characteristic of the pixel point, and then the target chromaticity characteristic of the pixel point is determined according to the initial chromaticity characteristic and the preset chromaticity characteristic of the pixel point.
When the preset chrominance characteristic of the pixel point is determined according to the first color characteristic of the pixel point, the preset chrominance characteristic is determined to be the first chrominance characteristic or the second chrominance characteristic according to the first color characteristic of the pixel point, wherein the first chrominance characteristic indicates the background color of other information layers, and the second chrominance characteristic indicates the color of the watermark object. And then, determining a target chromaticity characteristic for the pixel point according to the initial chromaticity characteristic and the preset chromaticity characteristic for the pixel point. Specifically, determining whether the initial chromaticity characteristics meet preset conditions; if so, taking the preset chromaticity characteristic as a target chromaticity characteristic; and if not, taking another chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
When the preset chrominance characteristic of the pixel point is determined according to the first color characteristic of the pixel point, the preset chrominance characteristic can be determined to be a second chrominance characteristic under the condition that the difference value between the initial chrominance characteristic and the first chrominance 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; and determining the preset chromaticity characteristic as the first chromaticity characteristic under other conditions.
Because the chromaticity represents the type of the color, each chromaticity characteristic represents a color (that is, each chromaticity value represents a color), and when the difference value between the initial chromaticity characteristic of the pixel point and the chromaticity characteristics of the background colors of other information layers is greater than a first preset value, it is indicated that the color of the pixel point is different from the background colors of other information layers, even the difference is larger. At this moment, whether the initial saturation characteristic and the initial brightness characteristic of the pixel point are larger than a preset threshold value or not 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 determined to be higher, and at this moment, the initial color characteristic of the pixel point is converted into a second color characteristic. When the pixel point subjected to the chrominance characteristic conversion processing is the pixel point of the watermark object, the initial color characteristic of the pixel point is not processed; and when the pixel point is not the pixel point of the watermark object, setting the color of the pixel point 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, when the initial chromaticity characteristic of the pixel is not the first chromaticity characteristic, the initial saturation characteristic is greater than the second preset value, and the initial brightness characteristic is greater than the third preset value, the preset chromaticity characteristic is determined to be the second chromaticity characteristic. Namely, when the color of the pixel is not the background color of other information layers and the saturation and the brightness of the color of the pixel are high, the color of the pixel is set as the color of the watermark object. And determining the preset chromaticity characteristics of the pixel points as the first chromaticity characteristics under other conditions.
Optionally, the background color of the other information layers indicated by the first chrominance characteristic is white, and the color of the watermark object indicated by the second chrominance characteristic is black. At this time, whether the color of the pixel point is white is judged firstly, and if the color of the pixel point is white, the initial chromaticity characteristic of the pixel point 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 or not, and determining whether the initial brightness value of the color of the pixel point is greater than 0.5 or not, and when the initial saturation value and the initial brightness value of the color of the pixel point are both greater than 0.5, determining that the preset chromaticity characteristic aiming at the pixel point is black; and if the initial saturation value or the initial brightness value of the color of the pixel point is not more than 0.5, determining that the preset chromaticity characteristic aiming at the pixel point is white.
And after the preset chromaticity characteristics aiming at each pixel point are determined, continuously determining the target chromaticity characteristics aiming at each pixel point according to the initial chromaticity characteristics and the preset chromaticity characteristics of each pixel point. Specifically, the target chromaticity characteristic of each pixel point is determined to be the first chromaticity characteristic or the second chromaticity characteristic according to whether the initial chromaticity characteristic of each pixel point meets the preset condition. That is, after the preset chromaticity characteristics for each pixel point are determined, further adjustment processing is performed on the chromaticity characteristics 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 preset condition is flexible to select and is not uniquely determined.
In the field of printing technology, the colors of printed matter are often represented using a CMYK printing color scheme. 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 printed matter relies on light reflection. The image displayed on the screen is expressed by the RGB mode, and the image expressed in the printed matter is expressed by the CMYK mode. In order to confirm the printed colors before actual printing, the colors of the printed matter may be collated with reference colors, and generally, the colors of the printed matter may be collated with color spectrums, which are presented by multiplying the colorimetric values of each color by 10% of density, and increasing or decreasing by 10 grids. Therefore, the CMYK values in a general printing technology are multiples of 10, and thus colors exactly corresponding to the CMYK values can be found in a color spectrum. In the case of relaxing the criteria, it is also possible to take the CMYK value as a multiple of 5. Therefore, the preset condition in the embodiment of the present invention may be selected to determine whether the initial chroma value of the pixel is a multiple of 5 or 10.
Illustratively, it is determined whether the initial chrominance value of the pixel point is a multiple of 5, that is, the initial chrominance value of the pixel point is left over by 5. When the remainder is 0, taking the preset chromaticity characteristic as the target chromaticity characteristic of the pixel point; if not, in the first chrominance characteristic and the second chrominance characteristic, the other chrominance characteristic except the preset chrominance characteristic is used as the target chrominance characteristic of the pixel point. Specifically, under the condition that the first chromaticity characteristic indicates white and the second chromaticity characteristic indicates black, when 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 and the preset chromaticity characteristic of the pixel point is white, determining the target chromaticity characteristic of the pixel point to be black; 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 initial chroma feature of each pixel point is converted into the target chroma feature by performing sparse dot matrix processing on the initial layer containing the watermark object and performing chroma feature adjustment processing on the pixel points after the sparse dot matrix processing, and specifically, the initial chroma feature of each pixel point is converted into the chroma feature of the background color of other information layers or is converted into the chroma feature of the watermark object color. The method comprises the steps of carrying out dot matrix processing on an initial layer containing a watermark object to realize processing of the watermark object into discrete pixel points, then representing the shape of the watermark object by utilizing the target chromaticity characteristics of each pixel point, and realizing representation of the watermark object by a group of two-dimensional pixel information.
In operation S330, the watermark dot matrix layer is superimposed with other information layers to be printed, so as to obtain an object to be printed including the watermark object.
According to the embodiment of the invention, the initial layer containing the watermark object is subjected to the dot matrix processing to obtain the watermark dot matrix layer, and then the watermark dot matrix layer is superposed 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 presentation effect of directly printing the watermark object in the traditional watermark layer mode. When treating the printing object and printing, treat that the watermark object in the printing object is equivalent to ordinary printing typeface, according to the printing requirement of ordinary printing typeface, can realize the printing to the watermark object, this is favorable to effectively reducing the requirement to printing equipment, do not require printing equipment to have the watermark function of printing even, this kind of design is favorable to guaranteeing the stability of watermark printing effect, and improves the watermark printing effect, and can need not to spend a large amount of time energy to carry out the setting of printing equipment watermark parameter, be favorable to improving watermark printing efficiency, and reduce watermark printing cost consumption.
Fig. 4 is a flowchart schematically illustrating a method for performing rasterization processing on 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, and the specific contents of each operation are as follows.
In operation S401, generating an initial layer including a watermark object;
in operation S402, determining HSB color characteristics of all pixel points in the initial layer;
in operation S403, selecting a first pixel point from a first pixel point column from the left of the initial layer;
in operation S404, determining whether the color of the pixel point is white, if so, performing operation S412, otherwise, performing operation S405;
in operation S405, it is determined whether the initial saturation value and the initial brightness value of the pixel are both greater than 50%, if yes, operation 406 is performed, otherwise, operation 407 is performed, and after performing operations S406 and S407, operation S408 is performed;
in operation S406, presetting the color of the pixel point to black;
in operation S407, preset the color of the pixel point to white;
in operation S408, the initial chrominance value of the pixel point is left as 5;
in operation S409, it is determined whether the remainder is 0, if so, operation S410 is performed, otherwise, operation S411 is performed, and after performing operations S410 and S411, operation S412 is performed
In operation S410, the preset color of the pixel point is retained, that is, if the preset color is black, the color of the pixel point is finally set to be black, and if the preset color is white, the color of the pixel point is finally set to be white;
in operation S411, the color of the pixel point is set to another color different from the preset color, that is, if the preset color is black, the color of the pixel point is finally set to white, and if the preset color is white, the color of the pixel point is finally set to black;
in operation S412, it is determined whether all the pixel point rows are processed, if yes, operation S414 is performed, otherwise, operation S413 is performed;
in operation S413, selecting a next pixel in the pixel row with the number of four pixels apart, and after performing operation S413, performing operation S404;
in operation S414, it is determined whether the processing of the pixel points in all the pixel point rows is completed, if yes, operation S416 is performed, otherwise, operation S415 is performed;
in operation S415, a first pixel point to be processed is selected from the next pixel point row to the right, and after the operation S415 is completed, operation S404 is performed;
in operation S416, a watermark lattice layer is obtained,
upon completion of performing operation S416, the method 400 ends. And carrying out dot matrix processing on the initial layer to obtain a watermark dot matrix layer containing the watermark object.
Fig. 5 schematically shows a schematic diagram of a watermark dot matrix layer according to an embodiment of the present invention, and as shown in fig. 5, a watermark object in the watermark dot matrix layer 500 is an "SF" letter, and chrominance characteristic adjustment processing is performed on every four pixel-numbered pixel points row by row from left to right on an initial layer, specifically, initial chrominance characteristics of each pixel point are converted into white or black, so that the watermark object is processed into latticed data represented by discrete two-dimensional pixel information, and the obtained watermark object in the watermark dot matrix layer is latticed data identical to characters. 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 the image containing the watermark object are irrelevant, the watermark printing effect is stable, and the printing effect is obvious.
Fig. 6 is a block diagram schematically illustrating a processing method capable of realizing watermark printing according to an embodiment of the present invention.
As shown in fig. 6, the method 600 may include operations S601 to S605, and the specific content of each operation is as follows.
In operation S601, a watermark object to be printed is determined;
in operation S602, generating an initial layer including a watermark object;
in operation S603, a predetermined sparse dot matrix algorithm is used to perform dot matrix processing on the initial layer, so as to obtain a watermark dot matrix layer. The preset sparse dot matrix algorithm is determined according to preset algorithm parameters and the watermark printing effect.
In operation S604, the watermark dot matrix layer is superimposed with other information layers to be printed, so as to obtain an object to be printed, which includes a watermark object;
in operation S605, a print process is performed on an object to be printed using a printing apparatus.
Fig. 7 schematically shows a schematic diagram of an object to be printed after print processing according to an embodiment of the present invention, and as shown in fig. 7, 700 is a schematic diagram of an object to be printed after printing with a printing device, where a watermark object in the object to be printed includes "SF" and "23: the 30' wording, the other information layer to be printed is an express bill, and the express bill comprises basic information of an express bill number, such as information of a recipient name, a recipient address, a sender name, a sender address, a logistics company and the like. The watermark object is positioned at the lower layer of the express waybill information, and the printing 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, which when executed by the processing unit, are used for implementing the processing method capable of realizing watermark printing according to any one of the above-mentioned method embodiments.
In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product including program code for causing a computing device to perform steps in a watermark printing implementable processing method according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the computing device, for example, the computing device may perform operation S210 as shown in fig. 2: generating an initial layer containing a watermark object; operation S220: performing dot matrix processing on the initial layer to obtain a watermark dot matrix layer; operation S230: and superposing the watermark dot matrix 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc 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 watermarking process according to an embodiment of the present invention is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present 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.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. 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 thereof. 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 for aspects 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 and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
Exemplary devices
Having described the medium of the exemplary embodiment of the present invention, a processing apparatus that can realize watermark printing of the exemplary embodiment of the present invention is described next with reference to fig. 9 and 10.
Fig. 9 schematically shows a block diagram of a processing apparatus that can realize watermark printing according to an embodiment of the present invention.
As shown in fig. 9, the processing device 900 capable of implementing 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 as described in the method embodiments section.
Specifically, the first processing module 910 is configured to generate an initial image layer containing a watermark object; a second processing module 920, configured to perform a rasterization process on the initial layer to obtain a watermark dot matrix layer; a third processing module 930, configured to superimpose the watermark dot matrix layer with other information layers that need to be printed, so as to obtain an object to be printed that includes 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 overlapping 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 superior; and the watermark printing effect does not depend on the watermark parameter setting of the printing equipment, and the watermark parameter setting of the printing equipment does not need to spend a large amount of time and energy, so that the watermark printing efficiency is effectively improved, and the printing cost of the watermark printing is favorably reduced.
In an 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 region containing the watermark object in the initial layer according to a preset rule; the second processing submodule is used for determining a first color characteristic of at least one pixel point, wherein the first color characteristic comprises an initial chroma characteristic, an initial saturation characteristic and an initial brightness characteristic; and the third processing submodule is used for carrying out chroma adjustment processing on the initial chroma characteristics of the pixel points according to the first color characteristics of the pixel points, and at least one pixel point after the chroma adjustment processing forms a watermark dot matrix 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 region of the initial layer that includes 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 submodule is used for selecting at least one pixel point from a preset area containing a watermark object in the initial layer according to a preset rule, wherein the pixel point has a first color characteristic; and the third processing submodule is used for carrying out chroma adjustment processing on the initial chroma characteristics of the pixel points according to the first color characteristics of the pixel points, and at least one pixel point after the chroma adjustment processing forms a watermark dot matrix 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 color feature conversion processing on the pixel point according to a second color feature of the pixel point to obtain a first color feature of the pixel point, where the second color feature includes a luminance 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, a pixel point every other preset number of pixels to obtain at least one pixel point.
In another embodiment of the present invention, the third processing sub-module includes a first determining unit, configured to determine a preset chrominance characteristic for a pixel point according to a first color characteristic of the pixel point; and the second determining unit is used for determining the target chromaticity characteristic aiming at the pixel point according to the initial chromaticity characteristic aiming at the pixel point and the preset chromaticity characteristic.
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, that the preset chroma feature is 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 the preset chroma feature as the second chroma feature when the initial chroma feature is not the first chroma feature, the initial saturation feature is greater than the second preset value, and the initial brightness feature is greater than a third preset value; and determining the preset chromaticity characteristic as 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 satisfies a preset condition; a fourth determining subunit, configured to, if yes, take the preset chromaticity feature as the target chromaticity feature; and if not, taking another 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 characteristic is white, and the color of the watermark object indicated by the second chrominance characteristic is black.
Since each functional module of the processing apparatus 900 capable of realizing watermark printing according to the exemplary embodiment of the present invention corresponds to the step of the above-described exemplary embodiment of the processing method capable of realizing watermark printing, it is not described herein again.
Exemplary computing device
Having described the method, medium, and apparatus of exemplary embodiments of the present invention, a computing device of exemplary embodiments of the present invention for implementing a watermarking process of the present invention will now be described with reference to fig. 10.
The embodiment of the invention also provides the computing equipment. As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as an apparatus, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a computing device according to the present invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code that, when executed by the processing unit, causes the processing unit to execute the steps in the processing method of enabling watermark printing according to various exemplary embodiments of the present invention described in the above section "exemplary method" of the present specification. 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 dot matrix processing on the initial layer to obtain a watermark dot matrix layer; operation S230: and superposing the watermark dot matrix layer and other information layers to be printed to obtain the object to be printed containing the watermark object.
A computing device 1000 that can implement the watermark printing process according to this embodiment of the present invention is described below with reference to fig. 10. The computing device 1000 as shown in FIG. 10 is only one example and should not be taken to limit the scope of use and functionality of embodiments of the present invention.
As shown in fig. 10, 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 couples various system components including the memory unit 1020 and the processing unit 1010.
Bus 1030 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures.
The storage 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 of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 1000 may also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with computing device 1000, and/or with any devices (e.g., router, modem, etc.) that enable computing device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Moreover, computing device 1000 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the computing device 1000 over a bus 1030. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the apparatus are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the 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 is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A processing method capable of realizing watermark printing, comprising:
generating an initial layer containing a watermark object;
performing dot matrix processing on the initial layer to obtain a watermark dot matrix layer;
and superposing the watermark dot matrix layer and other information layers to be printed to obtain an object to be printed containing the watermark object.
2. The method according to claim 1, wherein the performing rasterization processing on the initial layer to obtain a watermark lattice layer includes:
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 aiming at the selected pixel point:
determining a first color feature of the at least one pixel point, wherein the first color feature comprises an initial chroma feature, an initial saturation feature and an initial lightness feature;
and carrying out chroma adjustment processing on the initial chroma characteristic of the pixel point according to the first color characteristic of the pixel point, wherein the at least one pixel point after the chroma adjustment processing forms the watermark dot matrix layer.
3. The method according to claim 1, wherein the performing rasterization processing on the initial layer to obtain a watermark lattice layer includes:
determining a first color feature of each pixel point in a preset region of the initial layer containing the watermark object, wherein the first color feature comprises 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 has a first color characteristic, and executing the following operations aiming at the selected pixel point:
and carrying out chroma adjustment processing on the initial chroma characteristic of the pixel point according to the first color characteristic of the pixel point, wherein the at least one pixel point after the chroma adjustment processing forms the watermark dot matrix layer.
4. The method according to claim 2 or 3, wherein the performing, according to the first color feature of the pixel point, a chroma adjustment process on the initial chroma feature of the pixel point according to a preset rule includes:
determining a preset chromaticity characteristic aiming at the pixel point according to the first color characteristic of the pixel point;
and determining a target chromaticity characteristic aiming at the pixel point according to the initial chromaticity characteristic aiming at the pixel point and the preset chromaticity characteristic.
5. The method of claim 4, wherein the determining a preset chrominance feature for the pixel point according to the first color feature of the pixel point 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 characteristic indicates a background color of the other information layers, and the second chrominance characteristic indicates a color of the watermark object.
6. The method of claim 5, wherein the determining the preset chrominance feature as a first chrominance feature or a second chrominance feature according to the first color feature of the pixel point comprises:
determining the preset chroma feature as the second chroma feature when the difference between the initial chroma feature and the first chroma 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 the preset chromaticity characteristic as the first chromaticity characteristic under other conditions.
7. The method of claim 5, wherein the determining a target chroma feature for the pixel point according to the initial chroma feature and the preset chroma feature for the pixel point comprises:
determining whether the initial chromaticity characteristics meet preset conditions;
if so, taking the preset chromaticity characteristic as the target chromaticity characteristic;
and if not, taking another chromaticity characteristic except the preset chromaticity characteristic as the target chromaticity characteristic in the first chromaticity characteristic and the second chromaticity characteristic.
8. A processing apparatus capable of implementing watermark printing, comprising:
the first processing module is used for generating an initial image layer containing 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 dot matrix layer and other information layers to be printed to obtain an object to be printed containing the watermark object.
9. 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-7.
10. A computer-readable storage medium storing computer-executable instructions for implementing the method of any one of claims 1 to 7 when executed.
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 true CN112000303A (en) 2020-11-27
CN112000303B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488902A (en) * 2020-12-21 2021-03-12 重庆紫光华山智安科技有限公司 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
CN115079966A (en) * 2022-08-22 2022-09-20 南京数睿数据科技有限公司 Code-free page printing method and device, electronic equipment and readable medium

Citations (8)

* 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
US20160196094A1 (en) * 2013-09-02 2016-07-07 Peking University Founder Group Co., Ltd. Method and system for controlling digital printing of secret file
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160196094A1 (en) * 2013-09-02 2016-07-07 Peking University Founder Group Co., Ltd. Method and system for controlling digital printing of secret file
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488902A (en) * 2020-12-21 2021-03-12 重庆紫光华山智安科技有限公司 Optimization method, system, medium and terminal for self-adaptive hidden watermark
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
CN115079966A (en) * 2022-08-22 2022-09-20 南京数睿数据科技有限公司 Code-free page printing method and device, electronic equipment and readable medium
CN115079966B (en) * 2022-08-22 2022-12-02 南京数睿数据科技有限公司 Code-free page printing method and device, electronic equipment and readable medium

Also Published As

Publication number Publication date
CN112000303B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN112000303B (en) Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
JP5553139B2 (en) Image processing apparatus and image processing program
KR101520151B1 (en) Image processing apparatus, image processing method and computer-readable storage medium
JP4618324B2 (en) Image processing apparatus and program
JP2008028679A (en) Color conversion table, and method and device for generating the same
JP2006108866A (en) Image processing apparatus
US8610957B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable medium
JP2012043406A (en) Image processing apparatus, image processing method and program
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
US9001381B2 (en) Image forming apparatus which processes printing data including a transparency pattern, printing control terminal apparatus, and image forming method thereof
JP2009171254A (en) Image forming device, image forming system, and image forming program
US20130176327A1 (en) Method of rendering a colour image with spatial gamut mapping
JP4208877B2 (en) Image processing apparatus and method, computer program, and storage medium
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP6794821B2 (en) Image processing equipment and computer programs
US8081343B2 (en) Image forming system and computer readable medium storing image forming program
JP2010205016A (en) Information processing device and program
JP4509190B2 (en) Color image processing apparatus, color image processing method, and program
JP2011244054A (en) Image processor, image processing method, and image processing program
JP2011223198A (en) Image processing device and image processing program
JP2006260533A (en) Image forming apparatus and method
JP2007081886A (en) Drawing processing apparatus
US8351099B2 (en) Hue specific monochromatic printing mechanism
JP2007324864A (en) Image processor, control method thereof, and program
JP2016025422A (en) Information processor 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