Anti-counterfeiting method, device, computer equipment and storage medium
By using CMYK color mode to print color ink on the subject matter, a micro-coded image is formed as an anti-counterfeiting code, which solves the problem that traditional anti-counterfeiting methods are easily copied and insufficient information, and achieves more efficient anti-counterfeiting and information carrying.
Patent Information
- Application Number
- CN202111214899.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-10-19
AI Technical Summary
Traditional anti-counterfeiting methods such as QR codes are easily copied and have a small amount of information, which cannot effectively adapt to the quantity requirements of the subject matter.
Color ink printing on the subject matter is performed using CMYK color mode to form a microcoded image, including code points of at least one color, and used as anti-counterfeiting codes for anti-counterfeiting.
It improves the difficulty of copying anti-counterfeiting codes and enhances the anti-counterfeiting effect. At the same time, through multiple color code points, the information carrying ability is improved, adapts to the quantity needs of various products, and forms a colorful visual effect.
Smart Images

Figure CN115534550B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of anti-counterfeiting technology, and in particular to an anti-counterfeiting method, device, computer equipment and storage medium. Background Art
[0002] Traditional anti-counterfeiting methods usually use patterns such as QR codes for anti-counterfeiting, that is, bar codes that use certain geometric figures to record data symbol information in black and white patterns distributed on a plane according to certain rules. However, the QR code itself is easy to copy, and the copied pattern is usually accurate enough to easily break through the anti-counterfeiting verification process, thereby greatly reducing the anti-counterfeiting effect. At the same time, the black and white pattern is single in color and has less information, which cannot well meet the quantity requirements of the subject matter. Summary of the invention
[0003] The embodiments of the present invention provide an anti-counterfeiting method, an apparatus, a computer device and a storage medium to improve the anti-counterfeiting effect and the ability of an anti-counterfeiting code to carry information.
[0004] In a first aspect, an embodiment of the present invention provides an anti-counterfeiting method, the method comprising:
[0005] Performing color ink printing on the target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color;
[0006] The microscopic coded image is used as an anti-counterfeiting code for anti-counterfeiting.
[0007] Optionally, the step of printing a color ink on the target object using a CMYK color mode to form a microscopic coded image on the target object comprises:
[0008] The three color channels C, M, and Y are used to form cyan, magenta, and yellow code points, respectively.
[0009] Optionally, after using the three color channels C, M and Y to form a cyan code point, a magenta code point and a yellow code point respectively, the method further includes:
[0010] The code points formed by each of the color channels are used to independently form a plurality of the microscopic coded images; or,
[0011] The code points formed by each of the color channels together constitute a microscopic coding image.
[0012] Optionally, the code points formed by the various color channels partially or completely overlap in the microscopic coded image, or do not overlap at all.
[0013] Optionally, after using the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting, the method further includes:
[0014] Acquire image data of the microscopic coded image on the target object in three color channels of R, G and B;
[0015] Determine the color, position and size of the code point according to the image data on each of the color channels;
[0016] Anti-counterfeiting verification is performed based on the color, position and size of the code point.
[0017] Optionally, the anti-counterfeiting verification according to the color, position and size of the code point includes:
[0018] The microscopic coded images independently formed by the code points of each color are respectively subjected to anti-counterfeiting verification, and the authenticity of the subject matter is determined based on the respective verification results.
[0019] Optionally, determining the color, position and size of the code point according to the image data on each of the color channels includes:
[0020] If a dark spot appears in the image data on the R color channel, it is determined that at least the cyan code point formed by the C color channel is required in the micro-encoded image, and the position and size of the cyan code point are determined according to the dark spot that appears;
[0021] If a dark spot appears in the image data on the G color channel, it is determined that at least the magenta code point formed by the M color channel is required in the microscopic coded image, and the position and size of the magenta code point are determined according to the dark spot that appears;
[0022] If a dark spot appears in the image data on the B color channel, the yellow code point formed by at least the Y color channel in the micro-encoded image is determined, and the position and size of the yellow code point are determined based on the dark spot that appears.
[0023] In a second aspect, an embodiment of the present invention further provides an anti-counterfeiting device, the device comprising:
[0024] An image printing module, used for printing color ink on the target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color;
[0025] The image application module is used to use the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting.
[0026] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
[0027] one or more processors;
[0028] A memory for storing one or more programs;
[0029] When the one or more programs are executed by the one or more processors, the one or more processors implement the anti-counterfeiting method provided by any embodiment of the present invention.
[0030] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the anti-counterfeiting method provided by any embodiment of the present invention is implemented.
[0031] The embodiment of the present invention provides an anti-counterfeiting method, firstly, a color ink is printed on a target object using a CMYK color mode to form a microscopic coding image on the target object, wherein the microscopic coding image includes code points of at least one color, and then the obtained microscopic coding image can be used as an anti-counterfeiting code for anti-counterfeiting. The anti-counterfeiting method provided by the embodiment of the present invention increases the difficulty of copying the anti-counterfeiting code by using a microscopic coding image, especially a color microscopic coding image, as an anti-counterfeiting code, thereby achieving a better anti-counterfeiting effect. At the same time, the microscopic coding image is printed on the target object by color ink printing, so that the microscopic coding image can include code points of multiple colors, so that the anti-counterfeiting code can carry more information to meet the quantity requirements of various products, and the use of a color microscopic coding image as an anti-counterfeiting code can also form a colorful visual effect, making the target object more beautiful as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flowchart of the anti-counterfeiting method provided in Embodiment 1 of the present invention;
[0033] Figure 2 A schematic diagram of an exemplary microscopic coded image provided in Embodiment 1 of the present invention;
[0034] Figure 3 A schematic diagram of another exemplary microscopic coded image provided in Embodiment 1 of the present invention;
[0035] Figure 4 A schematic diagram of a superimposed microscopic coded image provided in Embodiment 1 of the present invention;
[0036] Figure 5 A schematic diagram of the structure of an anti-counterfeiting device provided in Embodiment 2 of the present invention;
[0037] Figure 6 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0039] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0040] Embodiment 1
[0041] Figure 1 This is a flowchart of the anti-counterfeiting method provided in the first embodiment of the present invention. This embodiment is applicable to the case where an anti-counterfeiting code is set on any product for anti-counterfeiting. The method can be executed by the anti-counterfeiting device provided in the embodiment of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a computer device. Figure 1 As shown, the specific steps include:
[0042] S11. Printing color ink on the target object using CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color.
[0043] Among them, the microscopic coding image is an image composed of code points in micrometers according to certain arrangement rules, which contains variable data information, can realize one code for one object, and the coding is not repeated. Because the code points are very small and difficult to distinguish with the naked eye, they have a good hiding effect and can be well combined with the printed logo of the product. The current mainstream color ink printing adopts the CMYK color mode of 4 primary colors, that is, using four colors of ink: C (cyan), M (magenta), Y (yellow) and K (black). White light is a mixture of red, green and blue light. When white light is irradiated on inks of various colors, C (cyan) ink can absorb red light, retain green and blue light and present cyan, M (magenta) ink can absorb green light, retain red and blue light and present magenta, Y (yellow) ink can absorb blue light, retain red and green light and present yellow, and K (black) ink can absorb all three colors of red, green and blue light and present black. Specifically, the inks of various colors mentioned above can be used to print a microscopic coded image at a preset position on the surface of the target object, so that the microscopic coded image includes code points of at least one color.
[0044] Optionally, the CMYK color mode is used to print color ink on the target object to form a microscopic coded image on the target object, including: using three color channels C, M and Y to form cyan code points, magenta code points and yellow code points respectively. Specifically, in traditional color ink printing, due to the limitation of production technology, the purity of ink is often unsatisfactory, so that the black mixed by the three color inks of cyan, magenta and yellow is not rich enough, and can only be mixed by purified K (black) ink. However, in this embodiment, the subsequent anti-counterfeiting verification process can be realized by relying on the various colors of inks to absorb different colors and only absorb one color of light. At the same time, the microscopic coded image itself is difficult to distinguish with the naked eye, and there is no high requirement for the actual displayed color. Therefore, only cyan, magenta and yellow inks can be used to print the code points in the microscopic coded image, wherein each color of ink can use a color channel to realize independent printing, that is, cyan ink can print cyan code points through the C color channel, magenta ink can print magenta code points through the M color channel, and yellow ink can print yellow code points through the Y color channel. Before printing, the code point patterns of each color channel can be generated respectively, and each color channel can be controlled according to each code point pattern to realize independent printing, that is, each color can be printed layer by layer, and each code point pattern can be superimposed to generate a final pattern first, and then printed directly according to the pattern. It should be noted that for the microscopic coded images of all the target objects, the above three colors of ink can be used to form code points, and for the microscopic coded image of a specific target object, code points of at least one color can still be formed.
[0045] Further optionally, after the three color channels C, M and Y are used to form cyan code points, magenta code points and yellow code points respectively, it also includes: using the code points formed by each of the color channels to independently form multiple microscopic coded images. Specifically, there can be multiple microscopic coded images, and each microscopic coded image can only include code points of one color, wherein each microscopic coded image can be set at different positions on the surface of the target object without overlapping. Then, in the subsequent anti-counterfeiting verification process, each microscopic coded image can be verified separately, and the anti-counterfeiting verification is determined to be passed only when all the microscopic coded images pass the verification, and the anti-counterfeiting verification can also be determined to be passed when some of the microscopic coded images pass the verification, so as to further improve the anti-counterfeiting effect.
[0046] Further optionally, after the three color channels C, M and Y are used to form cyan code points, magenta code points and yellow code points respectively, the method further includes: the code points formed by each color channel are used together to form a microscopic coding image. Specifically, the microscopic coding image can be one, that is, the microscopic coding images formed by each color channel can be aligned and superimposed together to form a microscopic coding image. In the subsequent anti-counterfeiting verification process, the microscopic coding image can be verified by the three color channels R, G and B to determine whether the code points of different colors can pass the verification, and the anti-counterfeiting verification is determined to be passed only when all the code points of all colors pass the verification. It can also be specified that the anti-counterfeiting verification is determined to be passed when the code points of some colors pass the verification, so as to further improve the anti-counterfeiting effect.
[0047] Further optionally, when there is only one microscopic coding image, the code points formed by each color channel partially or completely overlap in the microscopic coding image. Of course, they may not overlap at all. When there are multiple microscopic coding images, the code points formed by each color channel naturally do not overlap at all. Specifically, the code points formed by different color channels can overlap, that is, it is allowed that there are code points formed by two or more color channels on the same coordinate. When there is an overlap between cyan ink, magenta ink and yellow ink, the light of each corresponding color can be absorbed. For example, when cyan ink and magenta ink are superimposed, red and green light can be absorbed while blue light is retained, thereby presenting a blue color. Since code points of different colors can overlap, after printing is completed, there may be cyan, magenta, yellow, red, green, blue and black code points on the surface of the target object.
[0048] S12, using the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting.
[0049] Specifically, after the above-mentioned microscopic coded image is printed on the target object, the microscopic coded image can be combined with color ink printing according to the light absorption characteristics of the above-mentioned various colors of ink, so that the color microscopic coded image printed with color ink can be used as an anti-counterfeiting code for anti-counterfeiting. Since the microscopic coded images use code points of micron size, it is easy to lose the code points when copying at the micron scale, which will cause the code points to be lost or the code points to change significantly in size. Therefore, the authenticity can be identified by distinguishing them during identification. Specifically, to copy the color microscopic coded images, color copying equipment or scanning and printing equipment is required. However, whether it is copying or scanning and then printing, the process is to first image and then restore it to CMYK color mode data before printing. Due to performance and accuracy limitations, these devices are not very ideal in restoring colors at the micron scale, which will more or less cause the loss of some code points or color errors. In particular, when there are more than two colors of code points overlapping, the color error after restoration will be even greater, causing serious interference between the code points on the C, M, and Y channels, thereby causing the subsequent anti-counterfeiting verification process to fail to parse. Therefore, the anti-counterfeiting method provided in this embodiment can achieve better anti-counterfeiting effects. At the same time, using multiple color channels to form code points of different colors can contain more information, that is, three times that of a single color channel. Because it is a color-coded image, the code points can have up to seven colors, thus forming a colorful visual effect, making the target object more beautiful as a whole.
[0050] On the basis of the above technical solution, optionally, after the microscopic coding image is used as an anti-counterfeiting code for anti-counterfeiting, it also includes: obtaining the image data of the microscopic coding image on the three color channels of R, G and B on the target object; determining the color, position and size of the code point according to the image data on each color channel; and performing anti-counterfeiting verification according to the color, position and size of the code point. Specifically, when anti-counterfeiting verification is required, a color image including the microscopic coding image on the target object can be first captured under natural light or white light using a mobile phone or a dedicated reading device, and the microscopic coding image in the color image can be cut out according to the edge features or positioning features of the microscopic coding image. Then, based on the RGB color mode, the color image (specifically, the microscopic coding image part) can be separated into the image data of the three color channels of R (red), G (green) and B (blue), so that the position and size of the code points of various colors in the image can be determined according to the light absorption characteristics of the above-mentioned various colors of ink and the image data on each color channel. A dedicated reading device can also be used to illuminate the microscopic coded image on the surface of the target object with three light sources of R (red), G (green) and B (blue), and capture the image data of the corresponding three color channels of R (red), G (green) and B (blue), so as to determine the position and size of the code points of various colors in the image. The former has better universality and can be realized using general devices such as mobile phones, while the latter must use dedicated equipment, but relatively speaking, the separation of the three color channels is higher, so it has higher accuracy. After determining the color, position and size of each code point, this information can be compared with the target microscopic coded image, or this information can be searched in the microscopic coded image database to determine whether the microscopic coded image in the currently captured color image is true. The specific image analysis process and the anti-counterfeiting verification process are not specifically limited in this embodiment, wherein the target microscopic coded image can be a reserved real microscopic coded image corresponding to the current target object.
[0051] Further optionally, the anti-counterfeiting verification according to the color, position and size of the code point includes: performing anti-counterfeiting verification on the microscopic coded images independently formed by the code points of each color, and determining the authenticity of the target object according to each verification result. Specifically, after determining the color, position and size of each code point, the code points of the same color can be extracted respectively, and each microscopic coded image can be formed respectively, and then each microscopic coded image can be subjected to anti-counterfeiting verification. The specific verification method includes but is not limited to the above-mentioned verification method, such as comparing each microscopic coded image with its corresponding target microscopic coded image, or searching each microscopic coded image in a microscopic coded image database, etc. After obtaining the verification results of each microscopic coded image, the authenticity of the target object can be finally determined according to each verification result, such as determining that the target object is authentic when all verifications are passed, or determining that the target object is authentic when a preset part of the verifications are passed, etc.
[0052] Further optionally, determining the color, position and size of the code point according to the image data on each of the color channels includes: if a dark spot appears in the image data on the R color channel, determining that at least the cyan code point formed by the C color channel is required in the micro-coded image, and determining the position and size of the cyan code point according to the dark spot that appears; if a dark spot appears in the image data on the G color channel, determining that at least the magenta code point formed by the M color channel is required in the micro-coded image, and determining the position and size of the magenta code point according to the dark spot that appears; if a dark spot appears in the image data on the B color channel, determining that at least the yellow code point formed by the Y color channel is required in the micro-coded image, and determining the position and size of the yellow code point according to the dark spot that appears. Specifically, when the code points do not overlap: the cyan code point absorbs red light and retains green and blue light, then the code point appears as a dark dot in the R color channel of the color image, and has no obvious features in the G and B color channels; the magenta code point absorbs green light and retains red and blue light, then the code point appears as a dark dot in the G color channel of the color image, and has no obvious features in the R and B color channels; the yellow code point absorbs blue light and retains red and green light, then the code point appears as a dark dot in the B color channel of the color image, and has no obvious features in the R and G color channels. When there are two or more code points of different colors overlapping: when the cyan code point and the magenta code point overlap, they absorb red and green light and retain blue light, then the code point appears as a dark spot in both the R and G color channels of the color image, and has no obvious features in the B color channel; when the cyan code point and the yellow code point overlap, they absorb red and blue light and retain green light, then the code point appears as a dark spot in both the R and B color channels of the color image, and has no obvious features in the G color channel; when the magenta code point and the yellow code point overlap, they absorb green and blue light and retain red light, then the code point appears as a dark spot in both the G and B color channels of the color image, and has no obvious features in the R channel; when the cyan code point, magenta code point and yellow code point all overlap, they absorb light of three colors, then the code point appears as a dark spot in the R, G and B color channels of the color image. It can be seen that by separating the image data of the microscopic coded image on the three color channels of R, G and B, the images of the code points of the three colors of cyan, magenta and yellow can be filtered out, and then processed separately to obtain the positions and sizes of the code points of various colors. Even if there is overlap between the code points of different colors, there is no interference. The positions can be the coordinate positions in the coordinate system established with the edge of the microscopic coded image as the coordinate axis, etc.
[0053] For example, Figure 2As shown, code points are set in the three color channels of C (cyan), M (magenta) and Y (yellow), and these code points do not overlap, wherein the number of code points contained in the three channels is 12, 11 and 14 respectively. Since the code points do not overlap, after the three channels are superimposed, the number of code points contained is the sum of the number of code points contained in each of the three channels, that is, 37. After the superimposed image is printed, all the code points of the three channels will be contained on the surface of the target object. After the image data of the three color channels of R (red), G (green) and B (blue) of the microscopic coded image on the surface of the target object is obtained by a mobile phone or a dedicated device, the coordinates of the code points in the three color channels of R, G and B (corresponding to the C, M and Y color channels in the original microscopic coded image, respectively) and the size of the code points can be calculated respectively, and the authenticity can be further identified by analysis.
[0054] For example, Figure 3 As shown in FIG. 1 , code points are set in the three color channels C (cyan), M (magenta) and Y (yellow), and some code points overlap. The number of code points contained in the three channels is 14, 11 and 14 respectively. Figure 4 In the code point 1 and code point 2 are respectively formed by overlapping a code point on the C and M color channels, and code point 3 and code point 4 are respectively formed by overlapping a code point on the C, M and Y color channels). After the three channels are superimposed, the number of code points contained is 33, which is less than the sum of the number of code points of the three channels, 39. After the superimposed image is printed on the surface of the target object, code point 1 and code point 2 appear blue due to the superimposition of cyan and magenta inks, which absorb red and green light respectively, and code point 3 and code point 4 appear black due to the superimposition of cyan, magenta and yellow inks, which absorb red, green and blue light respectively. Then, after the image data of the three color channels R (red), G (green) and B (blue) of the microscopic coding image on the target object is captured by a mobile phone or a dedicated device, the coordinates and sizes of the code points in the three color channels R, G and B (corresponding to the C, M and Y color channels in the original microscopic coding image, respectively), can be calculated respectively, and the authenticity can be further identified by analysis.
[0055] The technical solution provided by the embodiment of the present invention first adopts the CMYK color mode to print color ink on the target object to form a microscopic coding image on the target object, wherein the microscopic coding image includes code points of at least one color, and then the obtained microscopic coding image can be used as an anti-counterfeiting code for anti-counterfeiting. By using the microscopic coding image, especially the color microscopic coding image as the anti-counterfeiting code, the difficulty of copying the anti-counterfeiting code is increased, thereby achieving a better anti-counterfeiting effect. At the same time, the microscopic coding image is printed on the target object by color ink printing, so that the microscopic coding image can include code points of multiple colors, so that the anti-counterfeiting code can carry more information to meet the quantity requirements of various products, and the use of the color microscopic coding image as the anti-counterfeiting code can also form a colorful visual effect, making the target object more beautiful as a whole.
[0056] Embodiment 2
[0057] Figure 5 This is a schematic diagram of the structure of the anti-counterfeiting device provided in the second embodiment of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a computer device to execute the anti-counterfeiting method provided in any embodiment of the present invention. Figure 5 As shown, the device comprises:
[0058] An image printing module 51, used for printing color ink on a target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color;
[0059] The image application module 52 is used to use the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting.
[0060] The technical solution provided by the embodiment of the present invention first adopts the CMYK color mode to print color ink on the target object to form a microscopic coding image on the target object, wherein the microscopic coding image includes code points of at least one color, and then the obtained microscopic coding image can be used as an anti-counterfeiting code for anti-counterfeiting. By using the microscopic coding image, especially the color microscopic coding image as the anti-counterfeiting code, the difficulty of copying the anti-counterfeiting code is increased, thereby achieving a better anti-counterfeiting effect. At the same time, the microscopic coding image is printed on the target object by color ink printing, so that the microscopic coding image can include code points of multiple colors, so that the anti-counterfeiting code can carry more information to meet the quantity requirements of various products, and the use of the color microscopic coding image as the anti-counterfeiting code can also form a colorful visual effect, making the target object more beautiful as a whole.
[0061] On the basis of the above technical solution, optionally, the image printing module 51 is specifically used for:
[0062] The three color channels C, M, and Y are used to form cyan, magenta, and yellow code points, respectively.
[0063] On the basis of the above technical solution, optionally, the image printing module 51 is further used for:
[0064] After using the three color channels C, M and Y to form cyan code points, magenta code points and yellow code points respectively, using the code points formed by each of the color channels to independently form a plurality of microscopic coded images; or,
[0065] The code points formed by each of the color channels together constitute a microscopic coding image.
[0066] On the basis of the above technical solution, optionally, the code points formed by the various color channels partially or completely overlap in the microscopic coded image, or do not overlap at all.
[0067] On the basis of the above technical solution, optionally, the anti-counterfeiting device further includes:
[0068] An image data acquisition module, used for acquiring image data of the microscopic coded image on the target object in three color channels of R, G and B after the microscopic coded image is used as an anti-counterfeiting code for anti-counterfeiting;
[0069] A code point feature determination module, used to determine the color, position and size of the code point according to the image data on each of the color channels;
[0070] The anti-counterfeiting verification module is used to perform anti-counterfeiting verification according to the color, position and size of the code point.
[0071] On the basis of the above technical solution, optionally, the anti-counterfeiting verification module is specifically used for:
[0072] The microscopic coded images independently formed by the code points of each color are respectively subjected to anti-counterfeiting verification, and the authenticity of the subject matter is determined based on the respective verification results.
[0073] On the basis of the above technical solution, optionally, the code point feature determination module is specifically used for:
[0074] If a dark spot appears in the image data on the R color channel, it is determined that at least the cyan code point formed by the C color channel is required in the micro-encoded image, and the position and size of the cyan code point are determined according to the dark spot that appears;
[0075] If a dark spot appears in the image data on the G color channel, it is determined that at least the magenta code point formed by the M color channel is required in the microscopic coded image, and the position and size of the magenta code point are determined according to the dark spot that appears;
[0076] If a dark spot appears in the image data on the B color channel, the yellow code point formed by at least the Y color channel in the micro-encoded image is determined, and the position and size of the yellow code point are determined based on the dark spot that appears.
[0077] The anti-counterfeiting device provided by the embodiment of the present invention can execute the anti-counterfeiting method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0078] It is worth noting that in the above-mentioned embodiment of the anti-counterfeiting device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0079] Embodiment 3
[0080] Figure 6 The schematic diagram of the structure of the computer device provided for the third embodiment of the present invention shows a block diagram of an exemplary computer device suitable for implementing the implementation mode of the present invention. Figure 6 The computer device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. Figure 6 As shown, the computer device includes a processor 61, a memory 62, an input device 63 and an output device 64; the number of processors 61 in the computer device can be one or more. Figure 6 Taking a processor 61 as an example, the processor 61, memory 62, input device 63 and output device 64 in the computer device can be connected through a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0081] The memory 62 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the anti-counterfeiting method in the embodiment of the present invention (for example, the image printing module 51 and the image application module 52 in the anti-counterfeiting device). The processor 61 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 62, that is, realizing the above-mentioned anti-counterfeiting method.
[0082] The memory 62 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 62 may further include a memory remotely arranged relative to the processor 61, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The input device 63 can be used to capture a color image of a microscopically coded image on a target object, and to generate key signal inputs related to user settings and function controls of a computer device, etc. The output device 64 can be used to print color inks on a target object using a CMYK color mode to form a microscopically coded image on the target object, etc.
[0084] Embodiment 4
[0085] Embodiment 4 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute an anti-counterfeiting method when executed by a computer processor, the method comprising:
[0086] Performing color ink printing on the target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color;
[0087] The microscopic coded image is used as an anti-counterfeiting code for anti-counterfeiting.
[0088] The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system, which is connected to the computer system via a network (such as the Internet). The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). The storage medium may store program instructions (e.g., embodied as a computer program) that may be executed by one or more processors.
[0089] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the anti-counterfeiting method provided by any embodiment of the present invention.
[0090] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0091] The program code embodied on the computer 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.
[0092] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0093] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An anti-counterfeiting method, characterized in that: include: Performing color ink printing on the target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color; Using the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting; The method of printing color ink on the target object using the CMYK color mode to form a microscopic coded image on the target object includes: Use the three color channels C, M, and Y to form cyan code points, magenta code points, and yellow code points respectively; After using the three color channels C, M and Y to form cyan code points, magenta code points and yellow code points respectively, the method further includes: The code points formed by the color channels together form a microscopic coded image; the code points formed by the color channels partially or completely overlap in the microscopic coded image; After using the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting, the method further comprises: Acquire image data of the microscopic coded image on the target object in three color channels of R, G and B; Determine the color, position and size of the code point according to the image data on each of the color channels; Anti-counterfeiting verification is performed based on the color, position and size of the code point.
2. The anti-counterfeiting method according to claim 1, characterized in that: The anti-counterfeiting verification according to the color, position and size of the code point includes: The microscopic coded images independently formed by the code points of each color are respectively subjected to anti-counterfeiting verification, and the authenticity of the subject matter is determined based on the respective verification results.
3. The anti-counterfeiting method according to claim 1, characterized in that: The determining the color, position and size of the code point according to the image data on each of the color channels includes: If a dark spot appears in the image data on the R color channel, it is determined that at least the cyan code point formed by the C color channel is required in the microscopic encoded image, and the position and size of the cyan code point are determined according to the dark spot that appears; If a dark spot appears in the image data on the G color channel, it is determined that at least the magenta code point formed by the M color channel is required in the microscopic coded image, and the position and size of the magenta code point are determined according to the dark spot that appears; If a dark spot appears in the image data on the B color channel, the yellow code point formed by at least the Y color channel in the micro-encoded image is determined, and the position and size of the yellow code point are determined based on the dark spot that appears.
4. An anti-counterfeiting device, characterized in that: include: An image printing module, used for printing color ink on the target object using a CMYK color mode to form a microscopic coded image on the target object, wherein the microscopic coded image includes code points of at least one color; An image application module, used for using the microscopic coded image as an anti-counterfeiting code for anti-counterfeiting; The image printing module is specifically used for: Use the three color channels C, M, and Y to form cyan code points, magenta code points, and yellow code points respectively; The image printing module is also specifically used for: After using the three color channels C, M and Y to form cyan code points, magenta code points and yellow code points respectively, the code points formed by the respective color channels are used together to form a microscopic coded image; the code points formed by the respective color channels partially or completely overlap in the microscopic coded image; The anti-counterfeiting device further comprises: An image data acquisition module, used for acquiring image data of the microscopic coded image on the target object in three color channels of R, G and B after the microscopic coded image is used as an anti-counterfeiting code for anti-counterfeiting; A code point feature determination module, used to determine the color, position and size of the code point according to the image data on each of the color channels; The anti-counterfeiting verification module is used to perform anti-counterfeiting verification according to the color, position and size of the code point.
5. A computer device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the anti-counterfeiting method as described in any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the anti-counterfeiting method as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method for encoding and decoding data in a color barcode pattern
US20100282856A1