CN115705477A - Anti-counterfeiting image generation method and device and storage medium - Google Patents

Anti-counterfeiting image generation method and device and storage medium Download PDF

Info

Publication number
CN115705477A
CN115705477A CN202110903883.7A CN202110903883A CN115705477A CN 115705477 A CN115705477 A CN 115705477A CN 202110903883 A CN202110903883 A CN 202110903883A CN 115705477 A CN115705477 A CN 115705477A
Authority
CN
China
Prior art keywords
image
main image
main
counterfeiting
generating
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.)
Pending
Application number
CN202110903883.7A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202110903883.7A priority Critical patent/CN115705477A/en
Publication of CN115705477A publication Critical patent/CN115705477A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The application provides an anti-counterfeiting image generation method, which comprises the following steps: determining the main image and the personalized attribute parameters of the main image; generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image; the method comprises the steps of carrying out rasterization processing on a main image, determining a rasterization image of the main image, determining a first area where the main image is located in the anti-counterfeiting image, adding the rasterization image into the first area, and adding an identification information image and a shading image into other areas, different from the first area, in the anti-counterfeiting image so as to generate the anti-counterfeiting image. The anti-counterfeiting image generated by the method effectively increases the personalized information characteristics in the anti-counterfeiting image, improves the anti-counterfeiting performance of the anti-counterfeiting image, and ensures that the main image in the printed anti-counterfeiting image has better definition.

Description

Anti-counterfeiting image generation method and device and storage medium
Technical Field
The present application relates to the field of anti-counterfeit technologies, and in particular, to a method and an apparatus for generating an anti-counterfeit image, and a storage medium.
Background
In daily life, the application of anti-counterfeiting marks such as anti-counterfeiting images on the surfaces of commodities or certificates is increasingly wide, the traditional anti-counterfeiting images such as the anti-counterfeiting images of the certificates mostly do not combine personalized information of the commodities or the certificates, the anti-counterfeiting images containing preset anti-counterfeiting information are arranged on the surfaces of the commodities or the certificates only by adjusting single color in the three colors of YMC through printing and ink jetting methods, the anti-counterfeiting information contained in the anti-counterfeiting images generated by the method is single and easy to forge, and due to the adoption of the method of the three colors of YMC combined printing, the anti-counterfeiting characteristic details in the anti-counterfeiting images are easy to blur, the image definition is poor and difficult to identify, so that the anti-counterfeiting performance of the images is poor.
Disclosure of Invention
In view of the above, an embodiment of the present disclosure provides an anti-counterfeit image and a method for generating the same to improve anti-counterfeit performance of the anti-counterfeit image.
In a first aspect, an embodiment of the present application provides an anti-counterfeit image generation method, including:
determining a main image and personalized attribute parameters of the main image;
generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image;
performing latticed processing on the main image to determine a latticed image of the main image;
determining a first area where a main image in the anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas different from the first area in the anti-counterfeiting image to generate the anti-counterfeiting image.
Optionally, in an embodiment of the present application, generating the identification information image and the shading image of the main portrait according to the personalized attribute parameter of the main portrait includes:
processing the personalized attribute parameters by adopting a miniature character splicing mode to generate an identification information image of the main image;
and generating a curve shading image according to the personalized attribute parameters of the main image.
Optionally, in an embodiment of the present application, the performing rasterization processing on the main image to determine a rasterized image of the main image includes:
and traversing all pixels of the main image, processing all pixels of the main image by using an error diffusion dithering algorithm, and determining a latticed image of the main image.
Optionally, in an embodiment of the present application, the processing all pixels of the main image by using an error diffusion dithering algorithm to determine a latticed image of the main image includes:
generating a gray image of the main image according to the pixel values of all the pixels of the main image;
carrying out binarization processing on the gray level image to determine a binarization image of the main image;
calculating a residual image of the gray level image and the binary image;
and determining the dot matrix image of the main image according to the residual image.
Optionally, in an embodiment of the present application, the identification information is disposed in an area of the anti-counterfeit image close to the main image.
Optionally, in an embodiment of the present application, the method further includes: and before the main image is subjected to the dot matrix processing, converting the image of a preset area in the main image into a preset color image.
Based on the method for generating a security image according to the first aspect of the present application, a second aspect of the embodiments of the present application provides a device for generating a security image, including:
the acquisition module is used for determining a main image and personalized attribute parameters of the main image;
the generating module is used for generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image;
the processing module is used for carrying out latticed processing on the main image and determining a latticed image of the main image;
the adding module is used for determining a first area where a main image in the anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas, different from the first area, in the anti-counterfeiting image to generate the anti-counterfeiting image.
Optionally, in an embodiment of the application, the generating module is further configured to process the personalized attribute parameter in a manner of micro text splicing to generate an identification information image of the main image; and generating a curve shading image according to the personalized attribute parameters of the main image, wherein the curve shading image is at least one of a sine curve shading image, a cosine curve shading image and other irregular curve shading images.
Optionally, in an embodiment of the present application, the processing module is further configured to traverse all pixels of the main image, process all pixels of the main image using an error diffusion dithering algorithm, and determine a latticed image of the main image.
In a third aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the processor executes the computer program stored in the storage medium, the method for generating an anti-counterfeit image according to any one of the first aspect of the present application is implemented.
The application provides an anti-counterfeiting image generation method, which comprises the following steps: determining a main image and personalized attribute parameters of the main image; generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image; performing latticed processing on the main image to determine a latticed image of the main image; determining a first area where a main image in the anti-counterfeiting image is located, and adding the latticed image to the first area; and adding the identification information image and the shading image into other areas which are different from the first area in the latticed anti-counterfeiting image to generate the anti-counterfeiting image. The anti-counterfeiting image generated by the method provided by the application generates the personalized identification information image and the shading image by determining the main image and combining the personalized parameters of the main image, performs the dot matrix processing on the main image, adds the dot matrix main image to the corresponding position in the anti-counterfeiting image, and adds the identification information image and the shading image to the background image of the main image, thereby effectively increasing the personalized information characteristics in the anti-counterfeiting image, improving the anti-counterfeiting performance of the anti-counterfeiting image, and enabling the main image in the printed anti-counterfeiting image to have better definition.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart of an anti-counterfeit image generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an anti-counterfeit image generation apparatus according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the embodiments in the present application.
The first embodiment,
An embodiment of the present application provides an anti-counterfeit image generation method, as shown in fig. 1, where fig. 1 is a flowchart of the anti-counterfeit image generation method provided in the embodiment of the present application, and the anti-counterfeit image generation method includes:
s101, determining a main image and personalized attribute parameters of the main image.
The embodiment describes the main image and the personalized attribute parameters of the main image exemplarily in the present application: for example, in the application of the certificate anti-counterfeiting image, the personal head portrait of the individual of the certificate can be determined as the main portrait of the certificate anti-counterfeiting image, and the information of the birthday, the identification number and the like of the individual can be used as the personalized attribute parameters of the main portrait. Therefore, the finally generated anti-counterfeiting image has personalized anti-counterfeiting characteristics, and the anti-counterfeiting coefficient of the anti-counterfeiting image is improved. When the anti-counterfeiting image is applied to a certain commodity, the product image of the commodity can be used as the main image of the anti-counterfeiting image, and the production date and the production place information of the commodity are used as the personalized attribute parameters of the main image. Of course, the embodiment is only described in the exemplary embodiments of the main image and the personalized parameters of the main image, and does not represent that the application is limited thereto.
S102, generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image.
In an implementation scenario of this embodiment, the identification information image and the shading image of the master image are generated according to the personalized attribute parameters of the master image, so that the anti-counterfeiting image is ensured to have more personalized feature information, and the anti-counterfeiting performance of the anti-counterfeiting image is further improved.
Optionally, in an implementation manner of this embodiment, generating the identification information image and the shading image of the main image according to the personalized attribute parameter of the main image includes:
processing the personalized attribute parameters by adopting a miniature character splicing mode to generate an identification information image of the main image;
and generating a curve shading image according to the personalized attribute parameters of the main image.
In an implementation scenario of this embodiment, the personalized parameters are processed in a way of splicing with miniature characters to generate the identification information image of the main image, so that the finally generated anti-counterfeit image can better contain personalized information of the main image, thereby increasing anti-counterfeit characteristics in the anti-counterfeit image and reducing the possibility of counterfeiting the anti-counterfeit image.
Optionally, in an implementation manner of this embodiment, the identification information is disposed in an area of the anti-counterfeit image close to the main image.
In an implementation manner of this embodiment, the identification information is set in the region close to the main image in the anti-counterfeit image, so that the identification information is more attached to the main image, and the defect or displacement of printing at the edge or other places of the anti-counterfeit image is avoided, so that the actual condition of the anti-counterfeit information appears, and the comprehensiveness of information contained in the anti-counterfeit image printing finished product is further improved. Meanwhile, the identification information is arranged at a position close to the main image, so that the anti-counterfeiting characteristics in the anti-counterfeiting image can be identified and checked more easily, and the anti-counterfeiting image is convenient to use.
Optionally, in a specific application scenario of this embodiment, an identification information image of the main image may be generated in a manner of directly splicing plaintext of the miniature text, so as to reduce the generation difficulty of the identification information image; the personalized attribute parameters of the main image can be encrypted firstly, and the encrypted personalized attribute parameters are spliced by using miniature characters to generate the identification information image of the main image, namely the identification information image of the main image is generated by splicing the miniature character ciphertext, so that the anti-counterfeiting performance of the anti-counterfeiting image can be improved, and the security of the personalized attribute parameters of the main image is also improved.
In an implementation manner of this embodiment, in order to further improve the anti-counterfeiting performance of the certificate anti-counterfeiting image by increasing the anti-counterfeiting characteristic, at this time, a curved shading image may be generated according to the personalized attribute parameter of the main image in the certificate, for example, in a usage scenario of the certificate anti-counterfeiting image, according to at least one digital parameter in a certificate photo number of a person of the main image in the certificate anti-counterfeiting image, where the curved shading image is any one of a sinusoidal shading image, a cosine shading image, or other irregular curved shading images, and may also be a combined image of multiple different curves. Therefore, the generation difficulty of the anti-counterfeiting image is reduced, meanwhile, the anti-counterfeiting characteristics of the anti-counterfeiting image are further increased through the curve shading image, and the anti-counterfeiting coefficient is improved.
Specifically, in an implementation scenario of this embodiment, for example, the amplitude and the phase of the curved shading image may be set according to at least one digital parameter of the personalized attribute parameters of the selected main image, so that the shading image also has a personalized anti-counterfeiting feature corresponding to the personalized attribute parameters of the main image, and the anti-counterfeiting performance of the anti-counterfeiting image is further improved.
In this embodiment, for easy identification, the last digit in the personalized attribute parameter of the anti-counterfeit image may be, for example, when the anti-counterfeit image of the certificate is manufactured, the last digit of the identification number of the individual of the certificate is selected to set the amplitude a of the curve in the curve shading image, so that the amplitude a of the curve shading varies from 0 to 9, which is clear and recognizable, and is also easy to print and manufacture the certificate.
S103, carrying out rasterization processing on the main image and determining the rasterized image of the main image.
In this implementation's an implementation scene, carry out the dot matrix image that dot matrix processing confirmed the main image with the main image, make the main image in to anti-fake image print like the certificate making in-process of anti-fake certificate, can carry out the colour setting to the well every point of the dot matrix image of this main image through the printer, thereby realize that pure color prints the certificate making, and the non-tradition uses the synthetic mode of YMC three-colour to carry out the synthesis to the formation of image pixel in the anti-fake image and prints, make the certificate making in-process high more to the control accuracy that the image color printed, the image is more clear controllable. Meanwhile, better visual effect is obtained, the difficulty of counterfeiting the anti-counterfeiting image is increased, and the microscopic anti-counterfeiting performance in the anti-counterfeiting image is further improved.
Optionally, in an implementation manner of this embodiment, the performing rasterization processing on the main image to determine a rasterized image of the main image includes:
and traversing all pixels of the main image, processing all pixels of the main image by using an error diffusion dithering algorithm, and determining a latticed image of the main image.
In an implementation manner of this embodiment, the error diffusion dithering algorithm is a mature image processing method, and when the color depth of an image is reduced, the variation error of the color of an image-summarized pixel is diffused, so that when an eye observes the image, the overall error of an adjacent pixel set is reduced, and the obtained dot matrix image of the main image is smoother and clearer.
Optionally, in an implementation manner of this embodiment, the processing all the pixels of the main image by using an error diffusion dither algorithm to determine the latticed image of the main image includes:
generating a gray image of the main image according to the pixel values of all the pixels of the main image;
carrying out binarization processing on the gray level image to determine a binarization image of the main image;
calculating a residual image of the gray level image and the binary image;
and determining the dot matrix image of the main image according to the residual image.
In a specific application scenario of this embodiment, as for a certificate anti-counterfeit image, it is generally required that the imaging definition of a main image (a personal avatar) is high, at this time, graying may be performed according to pixel values of all imaging pixel points of the traversed main image, and then binarization processing is performed on the grayscale image to determine important imaging pixels in the main image, and then a residual image of the binarized image and the grayscale image is calculated to generate a dot matrix image of the main image, so that important imaging pixel points in the generated dot matrix image main image can be ensured, and the image formed by the generated dot matrix image has higher definition.
In this embodiment, the above implementation is described by taking a specific implementation, and the rasterization described in the above embodiment is specifically described as follows:
traversing all pixel values of the main image, determining a gray level image of the main image, and performing binarization processing on the gray level image, wherein the specific process is as follows:
Figure BDA0003200929200000071
wherein DN [ i, j]Is the gray value of any pixel point in the main image,
determining a residual image E = DN [ i, j ] -D [ i, j ] of the binarized image and the grayscale image.
Determining a dot matrix image of the main image according to the residual image, comprising:
calculate the top right adjacent pixel value of the current pixel:
DN[i+1,j-1]=D[i+1,j-1]+E*3/16;
calculate the right neighboring pixel value of the current pixel:
DN[i+1,j]=D[i+1,j]+E*5/16;
calculating the value of the pixel immediately below the current pixel:
DN[i,j+1]=D[i,j+1]+E*7/16;
calculate the lower right corner neighbor pixel value for the current pixel:
D[i+1,j+1]=D[i+1,j+1]+E*1/16;
wherein: i. j is the row and column coordinates of the pixels of the image in the certificate anti-counterfeiting image.
Confirm through above-mentioned mode main picture dot matrix image, the dot matrix image that can effectual assurance generated is higher to the primary image be the looks definition to make can carry out the pure color printing of colour through the mode that the pure color printed to every pixel in the dot matrix image of primary image, reduce anti-fake image's the printing degree of difficulty.
S104, determining a first area where a main image in the anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas, different from the first area, in the anti-counterfeiting image to generate the anti-counterfeiting image.
In this embodiment, it is preferable that the generally middle position region of the security image is determined as the first region to highlight the main image, so that the main image of the security image is easy to recognize, a printing defect is not easy to occur when the main image is printed, and the image definition and integrity of the main image are ensured.
In an implementation manner of this embodiment, the identification information image and the shading image are added to the anti-counterfeit image as a main image, which is different from other areas of the first area, for example, the identification information image and the shading image may be added to a background image around the main image, so that the anti-counterfeit performance of the anti-counterfeit image is improved by the identification information image and the shading image, and at the same time, the definition of the main image that is not imaged by the identification information image and the shading image is ensured.
In this embodiment, the information-representing image and the ground tint image are images printed by at least one printing method selected from ink-jet printing, thermal transfer printing, and laser etching. In this embodiment, in order to reduce the printing difficulty of the certificate counterfeit image, any one of the printing methods of inkjet printing, thermal transfer printing and laser etching may be used to apply these conventional printing methods to the above-mentioned counterfeit feature information that only has the counterfeit-proof function, and the certificate counterfeit image certification efficiency of this embodiment can also be improved.
Optionally, in an implementation manner of this embodiment, the method further includes: and before the main image is subjected to the dot matrix processing, converting the image of a preset area in the main image into a preset color image.
In this embodiment, when the main image is determined, the main image often includes some background images inevitably, for example, in a process of making a certificate according to a certificate anti-counterfeiting image, the determined main image, that is, the personal head image often includes some blue or red background images, and the background images are mostly located on the upper left side and the upper right side of the personal head image in the main image, at this time, the upper left side area and the upper right side area in the main image are determined as preset areas, and are converted into preset colors, such as white or transparent colors, which are the same as the background images in the certificate anti-counterfeiting image, so that the main image in the certificate anti-counterfeiting image is more prominent, and the printed imaging effect is clearer. Meanwhile, when the main image is subjected to rasterization, the influence of the imaging pixels of the background image on the rasterization is reduced, and the effect of rasterization on the main image is better.
The application provides an anti-counterfeiting image generation method, which comprises the following steps: determining a main image and personalized attribute parameters of the main image; generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image; performing latticed processing on the main image to determine a latticed image of the main image; determining a first area where a main image in the anti-counterfeiting image is located, and adding the latticed image to the first area; and adding the identification information image and the shading image into other areas of the anti-counterfeiting image, which are different from the first area, so as to generate the anti-counterfeiting image. The anti-counterfeiting image generated by the method provided by the application generates the personalized identification information image and the shading image by determining the main image and combining the personalized parameters of the main image, performs the dot matrix processing on the main image, adds the dot matrix main image to the corresponding position in the anti-counterfeiting image, and adds the identification information image and the shading image to the background image of the main image, thereby effectively increasing the personalized information characteristics in the anti-counterfeiting image, improving the anti-counterfeiting performance of the anti-counterfeiting image, and enabling the main image in the printed anti-counterfeiting image to have better definition.
The second embodiment,
Based on the method for generating a security image according to the first aspect of the present application, the present application further provides a device for generating a document security image, as shown in fig. 2, fig. 2 is a diagram illustrating a structure of a device 20 for generating a security image according to an embodiment of the present application, where the device 20 for generating a security image includes:
an obtaining module 201, configured to determine a main image and an individualized attribute parameter of the main image;
a generating module 202, configured to generate an identification information image and a shading image of the main portrait according to the personalized attribute parameter of the main portrait;
the processing module 203 is configured to perform rasterization processing on the main image and determine a rasterized image of the main image;
the adding module 204 is configured to determine a first region where a main image in the anti-counterfeit image is located, add the latticed image to the first region, and add the identification information image and the shading image to other regions of the anti-counterfeit image different from the first region, so as to generate the anti-counterfeit image.
Optionally, in an implementation manner of this embodiment, the generating module 202 is further configured to process the personalized attribute parameter in a manner of splicing miniature characters to generate an identification information image of the main image; and generating a curve shading image according to the personalized attribute parameters of the main image, wherein the curve shading image is at least one of a sine curve shading image, a cosine curve shading image and other irregular curve shading images.
Optionally, in an implementation manner of this embodiment, the processing module 203 is further configured to traverse all pixels of the main image, process all pixels of the main image by using an error diffusion dithering algorithm, and determine a latticed image of the main image.
Optionally, in an implementation manner of this embodiment, the processing module 203 generates a grayscale image of the main image according to pixel values of all pixels of the main image; carrying out binarization processing on the gray level image to determine a binarization image of the main image; calculating a residual image of the gray level image and the binary image; and determining the dot matrix image of the main image according to the residual image.
Optionally, in an implementation manner of this embodiment, the adding module 204 is further configured to set identification information in an area of the anti-counterfeit image close to the main image.
Optionally, in an implementation manner of this embodiment, the anti-counterfeit image generation apparatus 20 further includes a preprocessing module, and the preprocessing module is configured to convert an image of a preset area in the main image into a preset color image before the processing module 203 performs rasterization processing on the main image.
The embodiment of the application provides an anti-counterfeiting image generation device, which is characterized in that a main image and personalized attribute parameters of the main image are determined through a setting acquisition module; a setting generation module generates an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image; setting a processing module to perform latticed processing on the main image and determine a latticed image of the main image; the anti-counterfeiting image generation device provided by the embodiment is used for generating the anti-counterfeiting image, so that personalized information characteristics contained in the anti-counterfeiting image can be effectively increased, the anti-counterfeiting performance of the anti-counterfeiting image is improved, the printed anti-counterfeiting image has better definition of the main image, and the device is simple in structure and easy to realize.
Example III,
Based on the certificate image generation method provided by the above embodiment, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the processor executes the computer program stored on the storage medium, the method for generating an anti-counterfeit image according to an embodiment of the present application is implemented, where the method for generating an anti-counterfeit image includes, but is not limited to:
determining a main image and personalized attribute parameters of the main image;
generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image;
performing latticed processing on the main image to determine a latticed image of the main image;
determining a first area where a main image in an anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas, different from the first area, in the anti-counterfeiting image to generate the anti-counterfeiting image.
The application has thus described specific embodiments of the present subject matter. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical blocks. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more of software and hardware in practicing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of generating a security image, comprising:
determining a main image and personalized attribute parameters of the main image;
generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image;
performing latticed processing on the main image to determine a latticed image of the main image;
determining a first area where a main image in the anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas different from the first area in the anti-counterfeiting image to generate the anti-counterfeiting image.
2. The method for generating an anti-counterfeiting image according to claim 1, wherein the step of generating the identification information image and the shading image of the main image according to the personalized attribute parameters of the main image comprises the following steps:
processing the personalized attribute parameters by adopting a miniature character splicing mode to generate an identification information image of the main image;
and generating a curve shading image according to the personalized attribute parameters of the main image.
3. The method for generating a forgery-preventing image according to claim 1, wherein the determining the latticed image of the main image by latticed processing the main image includes:
and traversing all pixels of the main image, processing all pixels of the main image by using an error diffusion dithering algorithm, and determining a latticed image of the main image.
4. A method for generating a security image according to claim 3, wherein the determining the latticed image of the main image by processing all pixels of the main image using an error diffusion dither algorithm comprises:
generating a gray image of the main image according to the pixel values of all the pixels of the main image;
carrying out binarization processing on the gray level image, and determining a binarization image of the main image;
calculating a residual image of the gray level image and the binary image;
and determining the dot matrix image of the main image according to the residual image.
5. The method of generating a security image according to claim 1, wherein the identification information is provided in an area of the security image near the main image.
6. The method of generating a security image according to claim 1, further comprising: and before the main image is subjected to the dot matrix processing, converting the image of a preset area in the main image into a preset color image.
7. A security image generating apparatus, comprising:
the acquisition module is used for determining a main image and personalized attribute parameters of the main image;
the generating module is used for generating an identification information image and a shading image of the main image according to the personalized attribute parameters of the main image;
the processing module is used for carrying out dot matrix processing on the main image and determining a dot matrix image of the main image;
the adding module is used for determining a first area where a main image in the anti-counterfeiting image is located, adding the latticed image to the first area, and adding the identification information image and the shading image to other areas, different from the first area, in the anti-counterfeiting image to generate the anti-counterfeiting image.
8. The apparatus according to claim 7, wherein the generating module is further configured to process the personalized attribute parameters by means of micro text stitching to generate an identification information image of the main image; and generating a curve shading image according to the personalized attribute parameters of the main image, wherein the curve shading image or at least one of a sine curve shading image, a cosine curve shading image or other irregular curve shading images.
9. The apparatus of claim 7, wherein the processing module is further configured to traverse all pixels of the main image, process all pixels of the main image using an error diffusion dithering algorithm, and determine the latticed image of the main image.
10. A storage medium having a computer program stored thereon, wherein the processor executes the computer program stored on the storage medium to implement the method for generating a forgery-proof image according to any one of claims 1 to 6.
CN202110903883.7A 2021-08-06 2021-08-06 Anti-counterfeiting image generation method and device and storage medium Pending CN115705477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110903883.7A CN115705477A (en) 2021-08-06 2021-08-06 Anti-counterfeiting image generation method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110903883.7A CN115705477A (en) 2021-08-06 2021-08-06 Anti-counterfeiting image generation method and device and storage medium

Publications (1)

Publication Number Publication Date
CN115705477A true CN115705477A (en) 2023-02-17

Family

ID=85179160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110903883.7A Pending CN115705477A (en) 2021-08-06 2021-08-06 Anti-counterfeiting image generation method and device and storage medium

Country Status (1)

Country Link
CN (1) CN115705477A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116597259A (en) * 2023-05-26 2023-08-15 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116597259A (en) * 2023-05-26 2023-08-15 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof
CN116597259B (en) * 2023-05-26 2023-12-05 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof

Similar Documents

Publication Publication Date Title
TWI571803B (en) Generation? method? of? color? qr? code
JP4915883B2 (en) Printed matter for preventing forgery, method for producing the same, and recording medium storing software for producing halftone data
JP4684959B2 (en) Image processing apparatus, image processing method, and program
US10237442B2 (en) Security mark with anti-copyable effect
US8830533B2 (en) System and method for creating machine-readable codes in combination with other images such as logos
EA002934B1 (en) Anti-counterfeiting method and apparatus using digital screening
US10506131B2 (en) Image processing apparatus that specifies edge pixel in target image using single-component image data
US10583681B2 (en) Method of manufacturing items with lens-based security features using multiple lenses dedicated to individual colors
CN114265567B (en) Watermark printing method, printing equipment and storage medium
JP2016032270A (en) Image processor and image processing program
CN115705477A (en) Anti-counterfeiting image generation method and device and storage medium
JP6948028B2 (en) Anti-counterfeit printed matter creation method and anti-counterfeit printed matter creation program
JP3957734B1 (en) Program, information storage medium, 2D code generation system, 2D code
CN100484189C (en) Halftone dot encoding
JP2009042826A (en) Two dimensional code creation system and two dimensional code printing medium
CN107590839B (en) High-fidelity hidden picture-based tracing anti-counterfeiting method
AU2021402665B2 (en) Methods for designing and producing a security feature
CN113348092B (en) Method for printing verification marks by amplitude modulation grid printing
CA2720274A1 (en) A hidden image method and a hidden image apparatus
JP6179271B2 (en) Processing device and computer program
JP2017072958A (en) Image processing device, method and program for decoding information multiplexed on image
TWI228240B (en) Image processing method for reducing jaggy-effect
CN114298251B (en) Anti-counterfeiting image printing method and device and related equipment
CN110956568B (en) Independent secret information hiding method in shared image of halftone image
CN104778593A (en) Anti-counterfeiting image encrypting and detecting method

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