Embedded code random formation method, embedded code recognition method and computer device thereof

By randomly distributing marking points in the identification code outline area and defining their positional relationship with the sub-region, computer-readable characters are formed, and the problem of reading rate reduction and aesthetics caused by tolerances during printing is solved, and the precision equipment is realized valid anti-counterfeiting code identification on it.

CN118586423BActive Publication Date: 2024-11-01ZHEJIANG MICROCODE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411053228.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-01
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

In the prior art, the deviation of the anti-counterfeiting code during the printing process due to factors such as equipment tolerance and ink tension affects the reading rate and aesthetics of the QR code. The random characteristics are difficult to form or be easily coupled on precision equipment and cannot be effective. Anti-counterfeiting.

Method used

Computer-readable characters are formed by randomly distributing mark points in the identification code outline area and defining the relative positional relationship between mark points and sub-regions, and different CMYK color values ​​or spot colors are used to distinguish mark points and sub-regions, forming an embedded code Anti-counterfeiting characters and parses and verifys these characters through computer devices.

Benefits of technology

It effectively solves the problem of reduced reading rate caused by tolerances during printing, improves the accuracy and aesthetics of anti-counterfeiting code identification, and is suitable for precision printing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586423B_ABST
    Figure CN118586423B_ABST
Patent Text Reader

Abstract

The present application discloses an embedded code random formation method, an embedded code recognition method and a computer device thereof, wherein the embedded code random formation method comprises: determining the outline of an identification code used to identify a target object, wherein the identification code has a unique ID, and determining at least one marking point with a predetermined shape randomly distributed in the outline area containing the identification code; determining the relative position relationship between at least one marking point located in an empty area of ​​the identification code and a plurality of sub-areas containing the marking point, wherein the plurality of sub-areas are formed by dividing a predetermined area containing the marking point; and defining a computer-readable character formed by the relative position relationship between the plurality of sub-areas and the marking point as an anti-counterfeiting character of the embedded code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an embedded code recognition method, and in particular to an embedded code random formation method, an embedded code recognition method and a computer device thereof. Background Art

[0002] In our daily life, many products are at risk of being copied after being promoted and gaining good market feedback. In order to prevent consumers from being deceived, these manufacturers usually print some anti-counterfeiting labels on the packaging of the products.

[0003] The process of printing flat labels is divided into two types: overlapping or nesting, and the static relationship between images and texts mainly includes four types: superposition, intersection, separation, and connection. The superposition and intersection of image and text relationships can use micro-overlapping codes to generate corresponding structured data, which is controlled by software to generate a set of image and text relationship patterns with randomly changing positions. In actual printing, the above position relationship has a certain deviation value due to factors such as equipment tolerance and ink tension changes. The digital anti-counterfeiting traceability label will use the actual printed image and text pattern as the base map to store the corresponding data.

[0004] For example, the patent with application number: CN202410066462.7 records an anti-counterfeiting code. Although this anti-counterfeiting code can play an anti-counterfeiting effect to a certain extent, it generates a very complex axis in the appearance of the anti-counterfeiting code. That is, the QR code and the axis intersect, which not only affects the appearance, but also the QR code is superimposed on the axis. Although the CMYK color value or spot color of the printed axis is different from the QR code, it will also affect the reading rate of the QR code.

[0005] In addition, the Chinese invention patent publication number: CN109472337A discloses a label anti-counterfeiting method and device based on random features, which uses some random features formed by the characteristics of molecular / atomic movement caused by equipment jitter, ambient light changes and temperature changes during printing and pasting to prevent counterfeiting. The random features include shape features, position offset features, color features, or a combination of one or more. This solution still relies on the characteristic recognition of the graphics formed by the printing to prevent counterfeiting, which is suitable for relatively rough printing equipment. For existing relatively precise printing equipment, these random features either do not exist or are easily coupled. Summary of the invention

[0006] To solve the above technical problem, according to one aspect of the present invention, the present invention provides a method for randomly forming an embedded code, the method comprising:

[0007] Determine the outline of an identification code for identifying a target object, wherein the identification code has a unique ID, and determine at least one marking point having a predetermined shape and randomly distributed in the outline area within the outline area including the identification code;

[0008] Determine a relative positional relationship between at least one of the marking points located in the empty area of ​​the identification code and a plurality of sub-areas including the marking point, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0009] A computer-readable character formed by the relative position relationship between the plurality of sub-areas and the marking point is defined as the anti-counterfeiting character of the embedded code.

[0010] According to an embodiment of the present invention, the marking dots and the identification code have different CMYK color values ​​or spot colors.

[0011] According to an embodiment of the present invention, the area ratio of each divided sub-region to the marking point is set within a preset range.

[0012] According to an embodiment of the present invention, the marking point does not overlap with the identification code.

[0013] According to an embodiment of the present invention, the plurality of marking points may have different CMYK color values ​​or spot colors, or may have the same CMYK color values ​​or spot colors.

[0014] According to an embodiment of the present invention, the areas of the plurality of sub-regions are the same.

[0015] According to an embodiment of the present invention, determining the relative position relationship between at least one of the marking points and a plurality of sub-regions including the marking point includes:

[0016] It is defined that the anti-counterfeiting character of the sub-region filled with the marking dots is different from the anti-counterfeiting character of the sub-region not filled with the marking dots.

[0017] According to another aspect of the present invention, the present invention provides an embedded code recognition method comprising the following steps:

[0018] Parsing an embedded code on at least one standard printed label, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area including the identification code, and determining that the computer-readable character formed by the relative positional relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas including the marking point is an anti-counterfeiting character of the standard embedded code, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0019] Parsing an embedded code on at least one printed label to be identified, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area including the identification code, and determining that the computer-readable character formed by the relative positional relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas including the marking point is the anti-counterfeiting character of the embedded code to be identified, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0020] The anti-counterfeiting character corresponding to the embedded code to be identified is verified with the anti-counterfeiting character corresponding to the standard embedded code. When the difference is less than a preset threshold, the verification is successful; when the difference is greater than the preset threshold, the verification fails.

[0021] According to another aspect of the present invention, the present invention provides a computer device, the computer device comprising:

[0022] One or more processors and storage media, wherein the storage medium is communicatively connected to the processor, and the processor is configured to execute the above-mentioned embedded code random formation method.

[0023] According to another aspect of the present invention, the present invention provides a computer device, the computer device comprising:

[0024] One or more processors and storage media, wherein the storage medium is communicatively connected to the processor, and the processor is configured to execute the above-mentioned embedded code recognition method. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 The flowchart of the method for randomly forming an embedded code according to a preferred embodiment of the present invention is shown.

[0026] Figure 2A A schematic diagram of the embedded code according to an embodiment of the present invention is shown.

[0027] Figure 2B A schematic diagram of the embedded code according to another embodiment of the present invention is shown.

[0028] Figure 3 The present invention is shown Figure 2A A partial enlarged view of the embodiment.

[0029] Figure 4 The flowchart of the method for identifying the embedded code of the present invention is shown.

[0030] Figure 5 A structural block diagram of a computer device according to a preferred embodiment of the present invention is shown. DETAILED DESCRIPTION

[0031] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0032] A method for randomly forming an embedded code according to a preferred embodiment of the present invention will be described in detail below, wherein various different embedded codes can be formed through the method, so that after the embedded code is printed on the label, the label can correspond one-to-one with the embedded code, so that the embedded code can be used to identify the goods one-to-one.

[0033] refer to Figure 1 Specifically, the embedded code random forming method includes:

[0034] S1001, determining the outline of an identification code for identifying a target object, wherein the identification code has a unique ID, and determining, within a contour area including the identification code, at least one marking point having a predetermined shape and randomly distributed in the contour area.

[0035] Those skilled in the art will appreciate that the shape of the marking point may be circular, pentagonal, star-shaped, linear, etc. The present invention is not limited in this respect.

[0036] Those skilled in the art can also understand that the identification code is usually printed on an anti-counterfeiting label. The identification code on the anti-counterfeiting label can be set as a QR code or a bar code, etc. Figure 2A and Figure 2B In addition, the identification code is usually associated with some parameters of the target object, such as origin, weight, area code, date, etc. In the prior art, these identification codes are usually formed by printing with a printing device.

[0037] In addition, the marking points are randomly printed in the contour area containing the identification code. Preferably, the more the marking points are, the better. It can be understood by those skilled in the art that the more the marking points are, the more tolerances are formed by the printing superposition during printing.

[0038] Since the number and position of the marking points can be determined randomly, the embedded code corresponding to each label with the identification code can be formed, so that the identification code can be formed by spraying in the blank.

[0039] However, since printing tolerances are inevitable during printing, for example, the influence of ink tension will cause printing deviations. Therefore, when the embedded code is formed in a controllable manner, the marking points formed by printing are bound to have microscopic deviations relative to the preset standard position, and this deviation is uncontrollable.

[0040] refer to Figure 1 , Figure 2A as well as Figure 3 , further, the embedded code random forming method includes:

[0041] S1002, determining a relative positional relationship between at least one of the marking points located in the empty area of ​​the identification code and a plurality of sub-areas including the marking point, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0042] S1003: Define a computer-readable character formed by the relative position relationship between the plurality of sub-areas and the marking point as an anti-counterfeiting character of the embedded code.

[0043] In a preferred embodiment, the ratio of the area of ​​each separated sub-region to the area of ​​the marking point is set within a preset range to effectively amplify the deviation between the marking point and the preset position. It is worth mentioning that the area of ​​the printed marking point can overflow the area of ​​the separated sub-region after random printing for several times.

[0044] It is worth mentioning that by dividing the predetermined area containing the marking point into a plurality of sub-areas, and when the area of ​​the sub-areas is similar to the area of ​​the marking point, the uncontrollable position of the marking point formed by printing can be converted into the relative position relationship between the marking point and the sub-areas. It is also worth mentioning that, since the deviation between the marking point and the preset position is very small when printing the marking point, and the appearance of the marking point itself is very small, it is very difficult to identify such a small difference through the coordinate relationship.

[0045] However, the present application converts the uncontrollable slight deviation into a relative positional relationship with the sub-region, so that the uncontrollable printing tolerance can be effectively identified.

[0046] In addition, the anti-counterfeiting characters formed include but are not limited to numbers, letters, symbols, etc. The present invention is not limited in this respect.

[0047] For example, in Figure 2AIn the example shown, a plurality of marking points are printed on the contour area where the identification code is located, wherein the marking points are dots. A rectangular area in the upper left corner of the identification code is selected as the predetermined area. Figure 2A The predetermined area is divided into several sub-areas, such as Figure 3 As shown, the plurality of sub-areas are a plurality of rectangular areas, and the area of ​​each rectangular area is similar to the area of ​​the marking point. In this way, when the marking point is printed, the position of the marking point in the rectangular area, i.e., the predetermined area, is determined, and at the same time, the relative position relationship between the marking point and the plurality of sub-areas in the predetermined area is also determined.

[0048] The relative position relationship between the marking point and the sub-region in the predetermined area can be defined by a preset relationship rule. Figure 3 As shown, as an example, the sub-region within the predetermined area that is at least partially filled by the marking point can be represented by a computer-readable character "1", and the sub-region within the predetermined area that is not filled by the marking point can be represented by a computer-readable character "0".

[0049] Under normal circumstances, Figure 3 The computer-readable characters corresponding to the nine sub-areas framed by the second marking point from left to right in the upper part are 000010000, but due to the tolerance in actual printing, the actual code generated is 011011000. This is because of the uncontrollable ink tension when printing this marking point.

[0050] More preferably, the marking point and the identification code have different CMYK color values ​​or spot colors. This facilitates the subsequent identification of the marking point. Also preferably, the plurality of marking points have different CMYK color values ​​or spot colors. In this way, when printing the embedded code, in order to form the marking point, it is necessary to print through different nozzles, thereby effectively accumulating more tolerances.

[0051] In a preferred embodiment, when the identification code is printed, a set of points formed by the boundary between the identification code and the background color is defined as the marking points. That is to say, in this embodiment, when the identification code is printed, due to the difference between the formed identification code and the background color of the anti-counterfeiting label, there will be many marking points formed by printing tolerance at the boundary of the identification code.

[0052] It is worth mentioning that in a preferred embodiment, the preset relationship rule is: defining the anti-counterfeiting character of the sub-region filled with the marking point to be different from the anti-counterfeiting character of the sub-region not filled with the marking point, as described above Figure 2A and Figure 3 Example shown.

[0053] According to another aspect of the present invention, the present invention provides a method for identifying an embedded code, the method for identifying an embedded code comprising the following steps:

[0054] S2001, parsing an embedded code on at least one standard printed label, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area including the identification code, and determining that the computer-readable character formed by the relative positional relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas including the marking point is an anti-counterfeiting character of the standard embedded code, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0055] S2002, parsing an embedded code on at least one printed label to be identified, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area including the identification code, and determining that the computer-readable character formed by the relative position relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas including the marking point is the anti-counterfeiting character of the embedded code to be identified, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point;

[0056] S2003, verifying the anti-counterfeiting character corresponding to the embedded code to be identified with the anti-counterfeiting character corresponding to the standard embedded code. When the difference is less than a preset threshold, the verification is successful; when the difference is greater than the preset threshold, the verification fails.

[0057] According to another aspect of the present invention, the present invention also provides Figure 5 This is a schematic diagram of the structure of an embodiment of the computer device of the present application, such as Figure 5 As shown, the above-mentioned computer device may include: one or more processors and memories; and one or more computer programs.

[0058] Among them, the above-mentioned computer device can be a computer, a server, a mobile terminal (mobile phone), a cash register device, a computer, a smart screen, a drone, an intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as: ICV), a smart / intelligent car or a vehicle-mounted device and other devices.

[0059] The one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute the anti-counterfeiting key forming method or anti-counterfeiting key management method.

[0060] Figure 5 The computer device shown can be a terminal device or a server, or a circuit device built into the terminal device or server. The device can be used to execute the application Figure 1 Or the embedded code random formation method or the embedded code recognition method provided in the embodiment shown in Figure 5.

[0061] like Figure 5 As shown, the computer device includes a processor 910 and a memory 920. The processor 910 and the memory 920 can communicate with each other through an internal connection path to transmit control and / or data signals. The memory 920 is used to store computer programs, and the processor 910 is used to call and run the computer program from the memory 920.

[0062] The above-mentioned memory 920 can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital universal disc, Blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or it can also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0063] The processor 910 and the memory 920 may be combined into a processing device, or more commonly, they are independent components, and the processor 910 is used to execute the program code stored in the memory 920 to implement the above functions. In specific implementation, the memory 920 may also be integrated into the processor 910, or may be independent of the processor 910.

[0064] It should be understood that Figure 5 The computer device shown can implement the present application Figure 1The operations and / or functions of each module in the computer device are respectively to implement the corresponding processes in the above method embodiments. Figure 1 Or the description in the method embodiment shown in 5, in order to avoid repetition, the detailed description is appropriately omitted here.

[0065] In addition, in order to make the functions of the computer device more complete, the computer device may further include one or more of a power supply 940 , an input unit 950 , and the like.

[0066] Optionally, the power supply 940 is used to provide power to various devices or circuits in the computer device.

[0067] It should be understood that Figure 5 The processor 910 in the computer device shown may be a system on chip SOC, and the processor 910 may include a central processing unit (Central Processing Unit; hereinafter referred to as CPU), and may further include other types of processors.

[0068] In summary, the various processors or processing units inside the processor 910 can work together to implement the previous method flow, and the corresponding software programs of the various processors or processing units can be stored in the memory 920.

[0069] The present application also provides a computer device, the device comprising a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, the storage medium stores a computer executable program, the central processing unit is connected to the non-volatile storage medium, and executes the computer executable program to implement the present application Figure 1 Or the method provided in the embodiment shown in 4.

[0070] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a numerical signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units); the processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0071] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the present application. Figure 1 Or the method provided in the embodiment shown in 4.

[0072] The present application also provides a computer program product, which includes a computer program, which, when executed on a computer, enables the computer to execute the present application. Figure 1 Or the method provided in the embodiment shown in 5.

[0073] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0074] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0075] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0076] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

[0077] It should be understood by those skilled in the art that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The advantages of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments, and the embodiments of the present invention may be deformed or modified in any way without departing from the principles.

Claims

1. A method for randomly forming an embedded code, characterized in that: The embedded code random forming method comprises: Determine the outline of an identification code for identifying a target object, wherein the identification code has a unique ID, and determine at least one marking point having a predetermined shape and randomly distributed in the outline area within the outline area including the identification code; Determine a relative positional relationship between at least one of the marking points located in the empty area of ​​the identification code and a plurality of sub-areas including the marking point, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point; A computer-readable character formed by the relative position relationship between the plurality of sub-areas and the marking point is defined as the anti-counterfeiting character of the embedded code.

2. The method for randomly forming an embedded code according to claim 1, characterized in that: The marking dots and the identification code have different CMYK color values ​​or spot colors.

3. The method for randomly forming an embedded code according to claim 1, characterized in that: The ratio of the area of ​​each divided sub-region to the area of ​​the marking point is set within a preset range.

4. The method for randomly forming an embedded code according to claim 1, characterized in that: The marking point does not overlap with the identification code.

5. The method for randomly forming an embedded code according to claim 4, characterized in that: The multiple marking points may have different CMYK color values ​​or spot colors, or may have the same CMYK color value or spot color.

6. The method for randomly forming an embedded code according to claim 1, characterized in that: The areas of the plurality of sub-regions are the same.

7. The method for randomly forming an embedded code according to any one of claims 1 to 6, characterized in that: Determining a relative positional relationship between at least one of the marking points and a plurality of sub-regions containing the marking point comprises: It is defined that the anti-counterfeiting character of the sub-region filled with the marking dots is different from the anti-counterfeiting character of the sub-region not filled with the marking dots.

8. A method for identifying an embedded code, characterized in that: The method for identifying the embedded code comprises the following steps: Parsing an embedded code on at least one standard printed label, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area containing the identification code, and determining that a computer-readable character formed by a relative positional relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas containing the marking point is an anti-counterfeiting character of the standard embedded code, wherein the plurality of sub-areas are formed by dividing a predetermined area containing the marking point; Parsing an embedded code on at least one printed label to be identified, wherein the embedded code includes an identification code for identifying a target object and marking points with a predetermined shape randomly distributed in a contour area including the identification code, and determining that the computer-readable character formed by the relative positional relationship between at least one marking point located in a blank area of ​​the identification code and a plurality of sub-areas including the marking point is the anti-counterfeiting character of the embedded code to be identified, wherein the plurality of sub-areas are formed by dividing a predetermined area including the marking point; The anti-counterfeiting character corresponding to the embedded code to be identified is verified with the anti-counterfeiting character corresponding to the standard embedded code. When the difference is less than a preset threshold, the verification is successful; when the difference is greater than the preset threshold, the verification fails.

9. A computer device, characterized in that The computer device comprises: One or more processors and storage media, wherein the storage medium is communicatively connected to the processor, and the processor is configured to execute the embedded code random generation method described in any one of claims 1 to 7.

10. A computer device, characterized in that The computer device comprises: One or more processors and storage media, wherein the storage medium is communicatively connected to the processor, and the processor is configured to execute the embedded code recognition method of claim 8.