An irregular label generation method and system with anti-counterfeiting function

By generating and dividing the first pictures with several QR codes, and combining them with background pictures to form a personalized anti-counterfeiting special-shaped label, the existing QR code personalization methods are solved, and the satisfaction of personalized needs and the increase in the difficulty of forging is achieved.

CN114912558BActive Publication Date: 2025-07-01CN3WM XIAMEN NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210590079.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2025-07-01
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

The personalized method of existing QR codes requires manual design of multiple element module pictures, which leads to high cost and time-consuming production of color printing, which cannot meet the personalized needs of users.

Method used

By generating and dividing the first picture with several QR codes, a special-shaped label is obtained. The label outline is set by the user and combined with the background picture to form a personalized anti-counterfeiting special-shaped label.

Benefits of technology

It realizes personalized anti-counterfeiting label generation to meet the personalized needs of users. The solution is simple and easy to implement, and the printing requirements are low, which increases the difficulty of forgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114912558B_ABST
    Figure CN114912558B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for generating a special-shaped label with an anti-counterfeiting function, including: setting the label contour; generating a first picture on which a number of two-dimensional codes are arranged; and dividing the first picture according to the contour to obtain a special-shaped label. By generating and dividing the first picture arranged with a number of two-dimensional codes, the present invention obtains a special-shaped label. The label contour is set by the user himself, which can meet the personalized needs of the user. The solution is simple and easy to implement, and has low printing requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for generating special-shaped labels with anti-counterfeiting functions, belonging to the field of anti-counterfeiting. Background Art

[0002] The fast recognizability and relatively large information storage capacity of two-dimensional codes have made them an anti-counterfeiting identification technology and advertising means widely used. People only need to hold a mobile phone to scan a two-dimensional code to obtain the people, organizations, or APPs associated with the two-dimensional code or the information it identifies, and then carry out relevant activities and applications. There are various forms of two-dimensional codes, such as QR codes composed of black and white squares, Dotcodes composed of circular code points, dot matrix codes, etc. At present, the manifestation forms of two-dimensional codes are relatively single, and there is a need for a two-dimensional code that can meet people's personalized anti-counterfeiting needs.

[0003] Existing methods for personalizing two-dimensional codes, such as CN109558927 "A Method and Device for Generating Artistic Two-Dimensional Codes", disclose the following steps: Step 1, generate the original two-dimensional code array of the two-dimensional code; Step 2, set and store the picture of the constituent element module of the artistic two-dimensional code; Step 3, perform binarization processing on the picture of the constituent element module to obtain the two-dimensional code array style of each picture of the constituent element module, thereby establishing the mapping relationship between the picture of the constituent element module and the two-dimensional code array style; Step 4, according to the mapping relationship, replace the two-dimensional code array style in the original two-dimensional code array with the corresponding picture of the constituent element module to form an artistic two-dimensional code. The disadvantages are: it is necessary to manually design a variety of element module pictures to meet personalized needs, and the color printing production cost is high and the time consumption is long. Summary of the Invention

[0004] In order to overcome the problems existing in the prior art, the present invention designs a method and system for generating special-shaped labels with anti-counterfeiting functions. By generating and dividing the first picture arranged with several two-dimensional codes, a special-shaped label is obtained. The label outline is set by the user himself, which can meet the personalized needs of the user. The scheme is simple and easy to implement, and the printing requirements are low.

[0005] In order to achieve the above purpose, the present invention adopts the following technical solutions:

[0006] Technical Solution 1:

[0007] A method for generating a special-shaped label with anti-counterfeiting functions, comprising the following steps:

[0008] Set the label outline;

[0009] Generate a first picture, on which there are arranged a number of two-dimensional codes; wherein the two-dimensional codes store anti-counterfeiting data and include a number of code points, and the side length or diameter of the code points is less than or equal to 4 mil; different adjustment parameters are set in the code generation information of the number of two-dimensional codes;

[0010] The generation of the first picture specifically includes the following steps: obtaining anti-counterfeiting data; setting a number of different adjustment parameters; combining the anti-counterfeiting data with the number of adjustment parameters respectively to obtain a number of code generation information; generating a number of two-dimensional codes according to the number of code generation information; arranging the number of two-dimensional codes to obtain the first picture;

[0011] Segment the first picture according to the contour to obtain a special-shaped label:

[0012] Obtain a background picture; fuse the special-shaped label and the background picture; wherein the specific steps of fusing the special-shaped label and the background picture are as follows:

[0013] Determine the corner point coordinates, width and height of the background picture;

[0014] According to the corner point coordinates, width and height of the background picture, delimit an area; set the transparency of the background graphic to a within the area, and set the transparency of the special-shaped label to 1 - a;

[0015] Overlay the background graphic and the special-shaped label to obtain a fusion result.

[0016] Technical solution two:

[0017] An anti-counterfeiting special-shaped label generation system, characterized in that it includes:

[0018] An acquisition module, used to set the label contour;

[0019] Generate a first picture, on which there are arranged a number of two-dimensional codes; wherein the two-dimensional codes store anti-counterfeiting data and include a number of code points, and the side length or diameter of the code points is less than or equal to 4 mil; different adjustment parameters are set in the code generation information of the number of two-dimensional codes;

[0020] A code generation module, used to obtain anti-counterfeiting data; set a number of different adjustment parameters; combine the anti-counterfeiting data with the number of adjustment parameters respectively to obtain a number of code generation information; generate a number of two-dimensional codes according to the number of code generation information; arrange the number of two-dimensional codes to obtain the first picture;

[0021] A processing module, used to segment the first picture according to the contour to obtain a special-shaped label:

[0022] Obtain a background picture; fuse the special-shaped label and the background picture; wherein the specific steps of fusing the special-shaped label and the background picture are as follows:

[0023] Determine the corner coordinates, width, and height of the background image;

[0024] Define a region based on the corner coordinates, width, and height of the background image; set the transparency of the background graphic to a within the region, and set the transparency of the special-shaped label to 1 - a;

[0025] Overlay the background graphic and the special-shaped label to obtain a fusion result.

[0026] Compared with the prior art, the present invention has the following features and beneficial effects:

[0027] 1. By generating and dividing the first image arranged with a number of two-dimensional codes to obtain a special-shaped label, the label contour can be set by the user himself, which can meet the personalized needs of users. The solution is simple and easy to implement, and has low printing requirements.

[0028] 2. The present invention can set the label contour according to the commodity characteristics and store anti-counterfeiting data in the two-dimensional code to form a personalized anti-counterfeiting special-shaped label.

[0029] 3. The present invention sets the side length or diameter of the code points in the two-dimensional code to be less than or equal to 4 mil, further increasing the difficulty of forgery.

[0030] 4. The present invention sets different adjustment parameters in the code generation information, so that the generated two-dimensional code has different code point distribution patterns, further optimizing the visual effect of the special-shaped label. Brief Description of the Drawings

[0031] Figure 1 is the flow chart of the present invention;

[0032] Figure 2 is the schematic diagram of the first image of the present invention;

[0033] Figures 3 - 6 is the example diagram of the special-shaped label of the present invention;

[0034] Figure 7 is the schematic diagram of the special-shaped label fused with the background image of the present invention. Detailed Embodiments

[0035] The present invention will be described in more detail below with reference to the embodiments.

[0036] Embodiment 1

[0037] As Figure 1 shown, a method for generating a special-shaped label with anti-counterfeiting function includes the following steps:

[0038] S1. The special shape mentioned in this application refers to a label contour with an arbitrary shape that can be set by the user according to product features such as the product shape and trademark, as well as the user's usage requirements. In this embodiment, the radius of the circumscribed circle of the convex hull of the label contour is greater than 3 mm.

[0039] S2. Obtain anti-counterfeiting data, such as product code 12433, product anti-counterfeiting link, etc.

[0040] S3. Randomly generate several different adjustment parameters, such as fadgf, geffe, gergf.

[0041] S4. Combine the anti-counterfeiting data with several adjustment parameters respectively to obtain several code generation information. Such as 12433fadgf, 12433geffe, 12433gergf.

[0042] S5. Generate several two-dimensional codes respectively according to the several code generation information. In this embodiment, the two-dimensional code is a dot matrix code and the area of the dot matrix code is less than or equal to 3 mm * 3 mm, so as to ensure that at least one complete dot matrix code is included in the special-shaped label 。

[0043] S6. Arrange several two-dimensional codes closely to obtain a first picture, as shown in the first picture Figure 2 shown.

[0044] S7. Cut the first picture according to the label contour determined in step S1 to obtain a special-shaped label, as shown in Figures 3 - 6 shown.

[0045] The advantages of this embodiment are as follows:

[0046] 1. By generating and dividing the first picture arranged with several two-dimensional codes to obtain a special-shaped label, the label contour is set by the user himself, which can meet the personalized needs of the user. The scheme is simple and easy to implement, and the printing requirements are low.

[0047] 2. The label contour can be set according to product features and anti-counterfeiting data can be stored in the two-dimensional code to form a personalized anti-counterfeiting special-shaped label.

[0048] 3. Different adjustment parameters are set in the code generation information to make the two-dimensional codes in the first picture have different code point distribution patterns, further optimizing the visual effect of the special-shaped label.

[0049] Embodiment 2

[0050] Further, before printing the special-shaped label on the product packaging, the code points can be set to a specific color to better integrate with the product packaging, which specifically includes the following steps:

[0051] Select the color C1 of the surrounding environment of the printing position of the special-shaped label;

[0052] Take the color C2 that is closest to color C1 but whose brightness value difference from C1 is greater than 20 as the code point color; or, set the starting color of the code point to C1 and the ending color to C2, and perform a linear gradient between C1 and C2.

[0053] Example Three

[0054] Furthermore, fusing the special-shaped label with the background image specifically includes the following steps:

[0055] Determine the upper left corner position coordinates (X, Y) of the background image;

[0056] Determine the width W and height H of the background image;

[0057] Take the special-shaped label as the base map, start from the point (X, Y) in the base map, and set the transparency of the background graphic to 0 and the transparency of the base map to 1 within a rectangle with a width of W and a height of H. In this example, the value of a is 0.

[0058] P(x,y) = aM(x,y) + (1 - a)N(x,y)

[0059] Wherein, P(x, y) is the color value of the point (x, y) in the final special-shaped label image, a is the transparency of the base map, a < 1, M(x, y) is the color value of the point (x, y) in the base map, and N(x, y) is the color value of the point (x, y) in the background image.

[0060] Overlay the background graphic and the special-shaped label to obtain the fusion result, as Figure 7 shown.

[0061] Example Four

[0062] A special-shaped label generation system with an anti-counterfeiting function, comprising:

[0063] An acquisition module for setting the label contour;

[0064] Generate a first picture on which a number of two-dimensional codes are arranged; wherein the two-dimensional codes store anti-counterfeiting data and include a number of code points, and the side length or diameter of the code points is less than or equal to 4 mil; different adjustment parameters are set in the code generation information of the number of two-dimensional codes;

[0065] A code generation module for acquiring anti-counterfeiting data; setting a number of different adjustment parameters; combining the anti-counterfeiting data with the number of adjustment parameters respectively to obtain a number of code generation information; generating a number of two-dimensional codes according to the number of code generation information; arranging the number of two-dimensional codes to obtain a first picture;

[0066] A processing module for splitting the first picture according to the contour to obtain a special-shaped label:

[0067] Obtain a background image; fuse the special-shaped label and the background image; the specific steps of fusing the special-shaped label and the background image are as follows:

[0068] Determine the corner coordinates, width, and height of the background image;

[0069] According to the corner coordinates, width, and height of the background image, delimit a region; set the transparency of the background graphic to a within the region, and set the transparency of the special-shaped label to 1 - a;

[0070] Overlay the background graphic and the special-shaped label to obtain the fusion result.

[0071] Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

Claims

1. A method for generating a special-shaped label with anti-counterfeiting function, characterized in that, Including the following steps: Set the label contour; Generate a first picture, on which several two-dimensional codes are arranged; wherein the two-dimensional codes store anti-counterfeiting data and include several code points, and the side length or diameter of the code points is less than or equal to 4 mil; different adjustment parameters are set in the code generation information of the several two-dimensional codes; The generating of the first picture specifically includes the following steps: obtain anti-counterfeiting data; set several different adjustment parameters; combine the anti-counterfeiting data with the several adjustment parameters respectively to obtain several code generation information; generate several two-dimensional codes according to the several code generation information; arrange the several two-dimensional codes to obtain the first picture; Cut the first picture according to the contour to obtain a special-shaped label: Obtain a background picture; fuse the special-shaped label and the background picture; wherein the specific steps of fusing the special-shaped label and the background picture are as follows: Determine the corner coordinates, width and height of the background picture; According to the corner coordinates, width and height of the background picture, delimit an area; set the transparency of the background graphic to a within the area, and set the transparency of the special-shaped label to 1 - a; Overlay the background graphic and the special-shaped label to obtain a fusion result.

2. A special-shaped label generation system with an anti-counterfeiting function, characterized in that, Including: An acquisition module, used to set the label contour; Generate a first picture, on which several two-dimensional codes are arranged; wherein the two-dimensional codes store anti-counterfeiting data and include several code points, and the side length or diameter of the code points is less than or equal to 4 mil; different adjustment parameters are set in the code generation information of the several two-dimensional codes; A code generation module, used to obtain anti-counterfeiting data; set several different adjustment parameters; combine the anti-counterfeiting data with the several adjustment parameters respectively to obtain several code generation information; generate several two-dimensional codes according to the several code generation information; arrange the several two-dimensional codes to obtain the first picture; A processing module, used to cut the first picture according to the contour to obtain a special-shaped label: Obtain a background picture; fuse the special-shaped label and the background picture; wherein the specific steps of fusing the special-shaped label and the background picture are as follows: Determine the corner coordinates, width and height of the background picture; According to the corner coordinates, width and height of the background picture, delimit an area; set the transparency of the background graphic to a within the area, and set the transparency of the special-shaped label to 1 - a; Overlay the background graphic and the special-shaped label to obtain a fusion result.

3. A storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the method for generating a special-shaped label with anti-counterfeiting function described in any one of claims 1.

Citation Information

Patent Citations

  • Method for generating two-dimensional code

    CN105930891A

  • Method of manufacturing anti-counterfeit card label

    US20030024636A1

  • Method of individualizing labels

    US20090160177A1