A preparation and verification method and device for anti-transfer label

By forming separate areas on the label display layer and printing preset patterns, the problem of label transfer to counterfeit products is solved, the anti-counterfeiting effect is improved, the authenticity and traceability of the label are ensured, and the interests of consumers and enterprises are protected.

CN116052526BActive Publication Date: 2024-12-13ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310127010.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2024-12-13
Estimated Expiration
2043-02-16

AI Technical Summary

Technical Problem

Existing label anti-counterfeiting technology is difficult to prevent labels from being transferred to counterfeit and shoddy products, causing harm to consumers, brands and e-commerce platforms.

Method used

The display layer of the label is formed to separate internal areas and main areas, and preset patterns are printed in these areas, so that the internal areas and main areas are separated from each other. If the label is transferred, the pattern correlation is destroyed and cannot be matched, thereby identifying the truth and fake labels.

Benefits of technology

Through this method, the anti-counterfeiting effect of the label is improved, the label is prevented from being transferred secondaryly, the authenticity and traceability of the label are ensured, and the interests of consumers and enterprises are protected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116052526B_ABST
    Figure CN116052526B_ABST
Patent Text Reader

Abstract

The present specification provides a method and device for preparing and verifying an anti-transfer label, and the preparation method may include: obtaining an original label, wherein the original label is formed by bonding a display layer and a removable paper layer; forming an inner area, a main area, and a to-be-removed area at at least one verification area of ​​the display layer, wherein the to-be-removed area is located between the inner area and the main area so that the inner area and the main area are separated from each other; and printing a preset pattern on the display layer, wherein a first part of the preset pattern is located in the inner area, and a second part of the preset pattern is located in the main area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of label anti-counterfeiting technology, and in particular to a method and device for preparing and verifying an anti-transfer label. Background Art

[0002] At present, with the development of information technology, the requirements for the anti-counterfeiting of product labels are getting higher and higher. Labels are printed materials used to mark the classification, content and other information of commodities and other items. Label anti-counterfeiting is to stick a label on the outer packaging of the product, and consumers can identify the information on the label through relevant equipment, so as to achieve the purpose of distinguishing the authenticity and tracing the source of the product. However, if the transferability of the label is used to peel off the real label from the genuine product and re-stick it to the counterfeit and shoddy goods, and then obtain illegal economic income, it will cause great harm to consumers, brand owners and e-commerce platforms. Summary of the invention

[0003] In view of this, the present invention provides a method and device for preparing and verifying an anti-transfer label to solve the deficiencies in the related art.

[0004] Specifically, this specification is implemented through the following technical solutions:

[0005] According to a first aspect of an embodiment of this specification, a method for preparing an anti-transfer label is provided, the method comprising:

[0006] Obtaining an original label, wherein the original label is formed by bonding a display layer and a removable paper layer;

[0007] forming an inner area, a main area and a to-be-removed area at at least one verification area of ​​the display layer, wherein the to-be-removed area is located between the inner area and the main area, so that the inner area and the main area are separated from each other;

[0008] A preset pattern is printed on the display layer, wherein a first portion of the preset pattern is located in the inner area, and a second portion of the preset pattern is located in the main body area.

[0009] According to a second aspect of the embodiments of this specification, an anti-transfer label is provided. The anti-transfer label is prepared by the method described in the first aspect.

[0010] According to a third aspect of the embodiments of this specification, a method for verifying an anti-transfer label is provided, the method comprising:

[0011] Capturing an image of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area separated from each other;

[0012] Acquire a first pattern to be verified contained in the internal area and a second pattern to be verified contained in the main area based on the collected image;

[0013] Verify whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label as described in the second aspect, and if the verification result is a match, determine that the label to be verified has passed the verification.

[0014] According to a fourth aspect of the embodiments of this specification, a verification device for an anti-transfer label is provided, the verification device comprising:

[0015] A collection module, used for collecting images of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area separated from each other;

[0016] An acquisition module, configured to acquire a first pattern to be verified contained in the internal area and a second pattern to be verified contained in the main area based on the collected image;

[0017] The verification module is used to verify whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label as described in the second aspect, and if the verification result is a match, determine that the label to be verified has passed the verification.

[0018] According to a fifth aspect of the embodiments of this specification, an electronic device is provided, including:

[0019] processor;

[0020] a memory for storing processor-executable instructions;

[0021] The processor implements the anti-transfer label verification method as described in the third aspect by running the executable instructions.

[0022] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the anti-transfer label verification method described in the third aspect are implemented.

[0023] In the technical solution provided in this specification, an anti-transfer label is prepared by forming an inner area and a main body area separated from each other on the display layer of the original label, and printing a preset pattern on the inner area and the main body area. Since the inner area and the main body area are separated from each other, and the preset pattern is associated with the inner area and the main body area, if the label is transferred, the inner area and the main body area need to be transferred separately. During the transfer process, it is easy to destroy the association between the patterns contained in the two areas, so that the patterns contained in the two areas on the transferred label cannot match the preset pattern. Therefore, it is possible to accurately identify the real label that has not been transferred and the false label that has been transferred, thereby effectively improving the anti-counterfeiting effect of the label and preventing the label from being transferred twice.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification, and for ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0026] Figure 1 is a schematic flow chart of a method for preparing an anti-transfer label shown in an exemplary embodiment of this specification;

[0027] Figure 2 is a schematic diagram of a label display layer shown in an exemplary embodiment of this specification;

[0028] Figure 3 is a schematic diagram of the shapes of various internal closed indentations and external closed indentations shown in an exemplary embodiment of this specification;

[0029] Figure 4 is a schematic diagram of an internal area and a main body area of ​​various printed preset patterns shown in an exemplary embodiment of this specification;

[0030] Figure 5 is a schematic diagram of an anti-transfer label with a film attached, shown in an exemplary embodiment of this specification;

[0031] Figure 6 is a schematic diagram of an anti-transfer label after a film is removed, shown in an exemplary embodiment of this specification;

[0032] Figure 7 is a flowchart of a verification method of an anti-transfer label shown in an exemplary embodiment of this specification;

[0033] Figure 8 is a schematic diagram of a collected presentation layer image shown in an exemplary embodiment of this specification;

[0034] Fig. 9 is a schematic diagram of a corrected display layer image shown in an exemplary embodiment of this specification;

[0035] Fig.10 is a schematic diagram of a process of performing local verification on a tag to be verified according to an exemplary embodiment of this specification;

[0036] Fig.11 is a schematic structural diagram of an electronic device shown in an exemplary embodiment of this specification;

[0037] Fig.12 It is a structural schematic diagram of a verification device for an anti-transfer label shown in an exemplary embodiment of this specification. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification.

[0039] It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, the single step described in this specification may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in this specification may also be combined into a single step for description in other embodiments. It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0040] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0041] Next, the embodiments of this specification are described in detail.

[0042] Figure 1 The figure is a schematic flow chart of a method for preparing an anti-transfer label according to an exemplary embodiment of the present specification.

[0043] like Figure 1 As shown, the preparation method may include the following steps:

[0044] S102, obtaining an original label, wherein the original label is formed by bonding a display layer and a removable paper layer.

[0045] In this embodiment, the original label may include a physical label used in any field to indicate the name, weight, volume, purpose, etc. of an item, such as a commodity label, a chemical material label, etc. Usually, the original label is formed by bonding a display layer and a removable paper layer. When using the label, the label can be pasted on the item by tearing off the removable paper layer. The display layer may be printed with information such as the classification and content of the item.

[0046] S104, forming an inner area, a main area, and an area to be removed at at least one verification area of ​​the display layer, wherein the area to be removed is located between the inner area and the main area, so that the inner area and the main area are separated from each other.

[0047] In one embodiment, an internal area, a main area, and an area to be removed can be formed at at least one verification area of ​​the display layer by a die-cutting process. The die-cutting process can make a printed matter or other paper product into a die-cutting knife plate according to a pre-designed pattern for cutting. Through the action of pressure, the desired shape or cut can be rolled out on the printed matter or other sheet material, so that the rolled out shape or cut is no longer limited to straight edges and right angles. Of course, other process technologies can also be used to form a required internal area, main area, and area to be removed at at least one verification area of ​​the display layer, and this specification does not limit this.

[0048] Figure 2 FIG. 1 is a schematic diagram of a label display layer according to an exemplary embodiment. Figure 2As shown, the information of the display layer may include a label title, a label subtitle, a barcode graphic, and some prompt information. In this embodiment, any four areas on the display layer except the area where the barcode graphic is located can be selected as verification areas for subsequent label verification, and a die-cutting process is used to die-cut the four verification areas to form internal closed indentations and external closed indentations that are nested inside and outside. Among them, the area within the internal closed indentation is the internal area, and the area outside the external closed indentation is the main body area. An area to be removed is formed between the internal closed indentation and the external closed indentation, and the internal area and the main body area are separated from each other. The closed indentation can be of any shape, such as a circle, a triangle, an ellipse, or a combination of any shapes, etc., and the internal closed indentation and the external closed indentation can be of the same shape or of different shapes, which is not limited in this specification.

[0049] Figure 3 Schematic diagram of shapes of various internal closed indentations and external closed indentations according to an exemplary embodiment. Figure 3 The inner closed indentation in a is a circle, and the outer closed indentation is a combination of a circle and a rectangle. Figure 3 In b, the inner closed indentation is a circle, and the outer closed indentation is a triangle. Figure 3 The internal closed indentation of c is a regular polygon, and the external closed indentation is a rectangle. Figure 3 The inner closed indentation in d is a circle, and the outer closed indentation is a regular polygon. In order to improve the alignment cost of label transfer, the inner closed indentation is preferably a circle or a regular polygon. In the display layer of the same original label, the inner closed indentation and the outer closed indentation contained in different verification areas can be of different shapes and sizes. For example, in the four verification areas of the same display layer, the inner closed indentation and the outer closed indentation can be die-cut into different shapes and sizes. Figure 3 In a, b, c, and d, since the separated internal area and the main body area need to be transferred separately during the label transfer process, closed indentations of different shapes and sizes are die-cut in different verification areas, which can effectively increase the difficulty and cost of label transfer.

[0050] In addition, for the original labels of the same batch, the verification area selected on the display layer of each original label can be the same area, so that the same internal area, main body area and area to be removed are formed in the same verification area to improve the preparation efficiency of the anti-transfer labels.

[0051] S106, printing a preset pattern on the display layer, wherein a first portion of the preset pattern is located in the inner area, and a second portion of the preset pattern is located in the main body area.

[0052] Since the inner area and the main body area on the display layer are separated from each other, when printing the preset pattern, the first part of the preset pattern is located in the inner area and the second part is located in the main body area, so that the two associated parts of the pattern can be separated from each other. Therefore, in the subsequent label verification, the correlation between the pattern contained in the inner area and the pattern contained in the main body area can be verified to verify whether the patterns contained in the two areas match the preset pattern, thereby effectively improving the accuracy of label verification.

[0053] Figure 4 is a schematic diagram of the internal area and the main area of ​​various printed preset patterns according to an exemplary embodiment. In this embodiment, taking the example that both the internal closed indentation and the external closed indentation are circular, the preset pattern can be a discrete pattern that is independent of the first part and the second part. Figure 4 In a, the preset pattern is a combination of multiple scattered dots. The preset pattern is printed on the display layer. The first part of the scattered dot combination is located in the inner area, and the second part is located in the main body area. The two parts are independent of each other.

[0054] The preset pattern may also include a third portion, which is located in the area to be removed. In this case, the preset pattern may be a continuous pattern in which the first portion, the second portion, and the third portion are sequentially connected. Figure 4 In b, the preset pattern is parallel double oblique lines. The preset pattern is printed on the display layer. The first part of the parallel double oblique lines is located in the inner area, the second part is located in the main area, and the third part is located in the to-be-removed area. The three parts are connected in sequence.

[0055] The preset pattern may also include a first continuous pattern in which the first portion and a part of the third portion are connected, and a second continuous pattern in which the second portion and another part of the third portion are connected. Figure 4 In c, the preset pattern is similar triangles nested inside and outside. The preset pattern is printed on the display layer. The inner triangle is composed of the first part of the preset pattern and a part of the third part connected, and the outer triangle is composed of the second part of the preset pattern and another part of the third part connected.

[0056] The preset pattern can be at least one of a line segment, a curve, and a point. Figure 4 In d, the preset pattern is a combination of multiple curves. The preset pattern is printed on the display layer. The first part of the curve combination is located in the inner area, the second part of the curve combination is located in the main area, and the third part of the curve combination is located in the area to be removed. The three parts are connected in sequence. Figure 4 In e and f, the preset pattern may also be a group of single-center rays or a group of multi-center rays.

[0057] In one embodiment, different preset patterns can be printed on multiple verification areas on the same display layer to increase the difficulty of the label passing verification by increasing the complexity of the label, thereby further improving the anti-counterfeiting effect of the label. Even if the label is transferred, it will be judged as an invalid label because it is difficult to pass verification, thereby effectively safeguarding the interests of consumers and enterprises. Of course, for the original labels of the same batch, the same preset pattern can be printed on the display layer of each original label, thereby improving the printing efficiency in the preparation process of the anti-transfer label and reducing the printing cost.

[0058] An anti-transfer label can be obtained by the above-mentioned preparation method. Since the internal closed indentation and the external closed indentation obtained by die-cutting during the preparation process are easy to separate, when the user uses the anti-transfer label, the removable paper layer can be torn off first, the anti-transfer label can be pasted on the pasted object, and then the area to be removed of the display layer can be torn off along the internal closed indentation and the external closed indentation, so that the display layer pasted to the pasted object forms a plurality of hollow areas, and the plurality of hollow areas are located between the internal area and the main body area. Other process technologies can also be used to remove the area to be removed on the display layer, so that the display layer pasted to the pasted object forms the above-mentioned hollow effect, and this specification does not limit this. If the anti-transfer label is transferred, the internal area and the main body area need to be transferred respectively, which increases the difficulty of label transfer. In addition, the printed preset pattern has a correlation between the internal area and the main body area, and the correlation between the patterns contained in the internal area and the main body area can be easily destroyed during the label transfer process, so the anti-transfer label obtained by the above-mentioned preparation method has a good anti-counterfeiting effect.

[0059] In one embodiment, a film may be adhered to the display layer on which a preset pattern has been printed, and the adhesion between the film and the area to be removed needs to be greater than the adhesion between the pasted object and the area to be removed, while the adhesion between the film and the inner area and the main area is less than the adhesion between the pasted object and the inner area and the main area, so that the user can tear off the area to be removed from the display layer by tearing off the film, while keeping the inner area and the main area on the pasted object. Figure 5 and Figure 6 .

[0060] Figure 5 This is a schematic diagram of an exemplary embodiment showing an anti-transfer label with a film attached. Figure 5 When applying the anti-transfer label shown in the figure, first tear off the removable paper layer, stick the anti-transfer label to the object to be pasted, and then tear off the area to be removed by tearing off the film, so that the display layer pasted to the object to be pasted forms a plurality of hollow areas, such as Figure 6This removal method can remove all the areas to be removed at the same time by removing the film, without removing the areas to be removed in multiple verification areas one by one, and the operation is simple.

[0061] The display layer of the prepared anti-transfer label is photographed, and the photographed display layer image is stored in a non-volatile memory such as a disk. When storing the display layer image, the label code corresponding to the image can be marked, so that the display layer image of the corresponding anti-transfer label can be found by the label code during subsequent label verification. The display layer image can also be temporarily stored locally, and then stored in the verification server through a network connection.

[0062] When a user has doubts about the authenticity of an item with a label on its surface, the user can verify the authenticity of the item by verifying the authenticity of the label. Figure 7 FIG. 1 is a flow chart of a verification method of an anti-transfer label shown in an exemplary embodiment of this specification. Figure 7 As shown, the verification method may include the following steps:

[0063] S702, collecting images of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area which are separated from each other.

[0064] When verifying the authenticity of a label, the object to be verified is a label that has been pasted on the surface of an object and whose display layer has formed a hollow area. First, an image of the display layer of the label to be verified needs to be captured, and the verification area of ​​the display layer includes an internal area and a main body area that are separated from each other.

[0065] The user can use the mobile phone camera or other devices to shoot the display layer of the label to be verified to complete the collection of the display layer image. Among them, mobile phone shooting can be done through a specific shooting APP, WeChat or Alipay applet. Other shooting devices can be shot through corresponding shooting software, and this manual does not limit this. The collected display layer image needs to include all verification areas so that all verification areas can be verified later to improve the accuracy of label verification.

[0066] S704: Acquire a first pattern to be verified contained in the inner area and a second pattern to be verified contained in the main area based on the collected image.

[0067] Since the label is pasted on the surface of objects of different shapes, the display layer in the captured image is not necessarily in a flat plane, but may be in a curved, tilted or wrinkled state. For example, when the label is pasted on the surface of a cylindrical object, the display layer in the captured image will be in a curved state. When the label is wrinkled for some reason during transportation, the display layer in the captured image will be in a wrinkled state. Since the flatness of the display layer will affect the shape of the first pattern to be verified and the second pattern to be verified contained in the display layer, and thus will affect the verification result of the label, it is necessary to first correct the captured image so that the display layer is on a flat plane.

[0068] There are many ways to correct an image, such as using TPS transformation (Thin Plate Spline, Thin Plate Spline Interpolation), perspective transformation, etc., which are not limited in this manual. Taking perspective transformation as an example, perspective transformation is to transform the spatial coordinates of objects in an image so that the transformation result satisfies a certain perspective relationship. Its essence is to project the image onto a new viewing plane. Figure 8 FIG. 1 is a schematic diagram of a collected display layer image shown in an exemplary embodiment. Figure 8 As shown in the figure, the display layer in the image is in a tilted state, and the first pattern to be verified and the second pattern to be verified contained in the display layer are severely deformed, which will affect the accuracy of the verification result. Figure 8 Perform perspective transformation to obtain the corrected display layer image, such as Fig. 9 shown.

[0069] Based on the corrected display layer image, the first pattern to be verified contained in the inner region and the second pattern to be verified contained in the main region are obtained. The verification region can be searched at the corresponding position of the display layer image by pre-storing the fixed position of the verification region in the preparation process, and then the inner region and the main region separated from each other in the verification region can be searched. Figure 6 When the preparation process is completed, the verification areas included in the anti-transfer label are located at the upper left, upper right, lower left and lower right positions of the barcode graphic, and the positions of these four verification areas are stored. Fig. 9 When verifying the tag to be verified as shown, the verification area can be directly searched at the upper left, upper right, lower left and lower right positions of the collected display layer image, and then the first pattern to be verified and the second pattern to be verified respectively contained in these four verification areas can be quickly obtained, thereby improving efficiency.

[0070] S706, verifying whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label, and if the verification result is a match, determining that the label to be verified has passed the verification.

[0071] Verify whether the first pattern to be verified and the second pattern to be verified contained in each verification area match the preset pattern printed on the anti-transfer label. If the verification result is a match, the label to be verified is determined to have passed the verification and is a genuine label. Otherwise, if the verification result is a mismatch, the label to be verified is determined to have failed the verification and is a fake label.

[0072] In one embodiment, the first pattern to be verified and the second pattern to be verified may be locally verified to determine whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label.

[0073] Local verification refers to verifying the first pattern to be verified and the second pattern to be verified on the client. When the first pattern to be verified and the second pattern to be verified meet the preset verification conditions, it indicates that the first pattern to be verified and the second pattern to be verified match the preset pattern, and the local verification is determined to be passed. When the first pattern to be verified and the second pattern to be verified do not meet the preset verification conditions, it indicates that the first pattern to be verified and the second pattern to be verified do not match the preset pattern, and the local verification is determined to be failed. This verification method does not require comparing the first pattern to be verified and the second pattern to be verified with the preset pattern, and can realize rapid verification of labels, and screen and filter out some obviously mismatched false labels.

[0074] In one embodiment, when the preset pattern printed on the anti-transfer label includes at least one line segment, local verification can be performed by verifying the straight lines contained in the first pattern to be verified and the straight lines contained in the second pattern to be verified in each verification area on the label to be verified. First, it is necessary to detect whether the collected display layer image of the label to be verified contains a straight line, and a straight line detection algorithm can be used to detect the display layer image. For example, straight line detection algorithms such as HoughLine, LSD, FLD, EDLines, etc. can be used, and this specification does not limit this. When the detection result shows that only the first pattern to be verified contains a straight line or only the second pattern to be verified contains a straight line in a certain verification area, or neither the first pattern to be verified nor the second pattern to be verified contains a straight line, it indicates that local verification cannot be implemented in the verification area. When local verification cannot be implemented in all verification areas of the display layer, the collected display layer image needs to be uploaded to the server for verification. The server verification will be described in detail in the subsequent embodiments of this specification.

[0075] When the detection result shows that the first pattern to be verified and the second pattern to be verified in a certain verification area both contain straight lines, the slopes of the straight lines in the first pattern to be verified and the slopes of the straight lines in the second pattern to be verified in the verification area are calculated respectively, and the first slope set K of the first pattern to be verified can be obtained. (1) ,k (2) ,…,k (n)}, and the second slope set H of the second pattern to be verified = {h (1) ,h (2) ,…,h (n) Then calculate the similarity of each slope value in the first slope set K and the second slope set H. When a slope value k in the first slope set (i) and a slope value h in the second slope set (x) When they are similar, it means that there is consistency between the two straight lines represented by the two slopes. When the number of straight line pairs with similar slopes in the verification area is greater than the preset threshold, it indicates that the first pattern to be verified and the second pattern to be verified in the verification area match the preset pattern, and it can be determined that the verification area has passed the local verification. Of course, if any slope value in the first slope set can find a similar slope value in the second slope set, and any slope value in the second slope set can find a similar slope value in the first slope set, it can also be determined that the verification area has passed the local verification.

[0076] Combination Fig. 9 In the embodiment shown, when Fig. 9 When performing straight line detection on the display layer image shown in the figure, it is detected that both the first pattern to be verified and the second pattern to be verified contained in the verification area a and c have straight lines, while the first pattern to be verified and the second pattern to be verified contained in the verification area b and d do not have straight lines, so the verification area b and d cannot be verified locally. Then, the slopes of the straight lines in the first pattern to be verified and the second pattern to be verified contained in the verification area a and c are calculated respectively. Fig. 9 As shown, the first pattern to be verified in the verification area a includes 3 straight lines, and the second pattern to be verified includes 6 straight lines. Therefore, the first slope set K1 of the verification area a can be calculated to be K2={k (1) ,k (2) ,k (3)} and the second slope set H1 = {h (1) ,h (2) ,h (3) ,h (4) ,h (5) ,h (6) Similarly, we can get the first slope set J2 of the verification area c = {j (1) ,j (2)} and the second slope set L2 = {l (1) ,l (2),l (3) ,l (4)}. Calculate the similarity of each slope value in the first slope set K1 and the second slope set H1 of the verification area a, and the similarity of each slope value in the first slope set J2 and the second slope set L2 of the verification area c. Fig. 9 In the example, assuming that the preset threshold of straight line pairs with similar slopes is 3 pairs, there are 6 straight line pairs with similar slopes in verification area a, and there is 1 straight line pair with similar slopes in verification area c. It can be determined that verification area a passes local verification, while verification area c fails local verification.

[0077] When there are multiple verification areas in the collected display layer image, if there is a verification area that passes the local verification, then the tag to be verified is determined to have passed the local verification. If there is no verification area that passes the local verification, then the tag to be verified is determined to have failed the local verification and is a false tag. Fig. 9 The tag to be verified shown has passed the local verification. The above local verification by verifying the straight line can accurately and quickly identify and verify the simple pattern containing the straight line, thereby improving the efficiency of tag verification.

[0078] In another embodiment, when the display layer image of the verification label is locally verified, the center of the figure formed by the outer edge of the inner area in each verification area on the verification label and the center of the figure formed by the inner edge of the main body area can be verified, wherein the outer edge of the inner area is nested inside the inner edge of the main body area. If the distance between the centers of the two figures is less than a preset distance threshold, it is determined that the verification area has passed the local verification.

[0079] In some prepared anti-transfer labels, the following situation may occur: the center of the pattern formed by the outer edge of the inner area (hereinafter referred to as the inner closed indentation) coincides with the center of the pattern formed by the inner edge of the main area (hereinafter referred to as the outer closed indentation). Figure 3 Taking d in the figure as an example, the inner closed indentation on the anti-transfer label is a circle, the outer closed indentation is a regular polygon, and the dotted line is the circumscribed circle of the regular polygon. The center of the circumscribed circle of the figure is the center of the figure. Figure 3 As shown in d, the center of the circle coincides with the center of the regular polygon.

[0080] Therefore, when the verification label is locally verified, the graphics formed by the outer edges of the inner areas in each verification area on the display layer and the graphics formed by the edges in the main area can be first identified by the target detection algorithm (such as Yolo, SSD and other algorithms). Then the center of the two graphics in each verification area is determined by detecting the center of the circumscribed circle. For example, the convex hull algorithm is used to calculate the center of the circumscribed circle of the two graphics. Then the distance between the centers of the circumscribed circles of the two graphics is calculated. When the calculated distance is less than the preset distance threshold, it means that the relative position relationship between the inner area and the main area in the verification area conforms to the preset relative position relationship on the anti-transfer label, and it can be determined that the verification area has passed the local verification. Similarly, when there are multiple verification areas in the collected display layer image, if one verification area passes the local verification, then the verification label is determined to have passed the local verification. If there is no verification area that passes the local verification, then it is determined that the verification label has not passed the local verification, and the verification label is a false label.

[0081] Fig.10 FIG. 1 is a flow chart showing a process of performing local verification on a tag to be verified according to an exemplary embodiment. Fig.10 As shown:

[0082] S1001: Capturing an image of a display layer of a pasted label to be verified, wherein a verification area of ​​the display layer includes an inner area and a main body area that are separated from each other.

[0083] S1002: Perform perspective transformation on the collected presentation layer image to correct the presentation layer image so that the presentation layer in the corrected image is on a flat plane.

[0084] S1003: Detect whether the center of the figure formed by the outer edge of the inner area in each verification area and the center of the figure formed by the inner edge of the main area are less than a preset distance threshold. If so, jump to S1004; if not, jump to S1010.

[0085] S1004: Detect whether the first pattern to be verified contained in the inner area of ​​each verification area and the second pattern to be verified contained in the main area both contain straight lines. If both the first pattern to be verified and the second pattern to be verified contain straight lines, jump to S1005; if neither the first pattern to be verified nor the second pattern to be verified contains a straight line, jump to S1009.

[0086] S1005: Calculate the slope of each straight line in the first pattern to be verified and the slope of each straight line in the second pattern to be verified. Obtain the first slope set K corresponding to the first pattern to be verified = {k (1) ,k (2) ,…,k (n)}, and the second slope set H corresponding to the second pattern to be verified = {h (1) ,h (2) ,…,h (n)}.

[0087] S1006: Calculate the similarity of each slope value in the first slope set K and the second slope set H.

[0088] S1007: Determine whether the number of straight line pairs with similar slopes is greater than a preset threshold. If yes, jump to S1008; if no, jump to S1010.

[0089] S1008: Determine whether the verification area has passed the local verification.

[0090] S1009: Determine that local authentication cannot be performed in the authentication area.

[0091] S1010: Determine that the verification area has not passed local verification.

[0092] S1011: Determine whether at least one verification area has passed the local verification. If yes, jump to S1013; if no, jump to S1012.

[0093] S1012: Determine that the tag to be verified has not passed the local verification.

[0094] S1013: Determine whether the tag to be verified has passed the local verification.

[0095] Fig.10 In the illustrated embodiment, local verification is performed by combining straight line verification and graphic center verification, which can effectively improve the accuracy of local verification. Of course, straight line verification and graphic center verification can be performed in parallel or in series. When performed in series, straight line verification can be performed first and then graphic center verification, or graphic center verification can be performed first and then straight line verification, which is not limited in this specification.

[0096] When the tag to be verified passes local verification or local verification cannot be implemented, the first pattern to be verified and the second pattern to be verified contained in the tag to be verified can be uploaded to the verification server, so that the verification server can further perform a detailed comparison between the first pattern to be verified, the second pattern to be verified and the preset pattern.

[0097] First, the barcode graphics contained in the display layer image are parsed to access the verification server, and then a verification request is initiated to the verification server, the verification request includes the first pattern to be verified and the second pattern to be verified, so that the verification server verifies whether the first pattern to be verified and the second pattern to be verified match the preset pattern in response to the verification request. This verification method can effectively improve the accuracy of label verification by uploading the first pattern to be verified and the second pattern to be verified to the verification server and performing a fine comparison with the preset pattern stored in the verification server. And because the preset pattern is stored in the verification server, the preset pattern can be prevented from being stolen by an attacker, thereby improving the security of label verification.

[0098] In one embodiment, the barcode graphics can be parsed by ZXing and other technologies, so that the verification server can obtain the pre-stored preset pattern according to the parsing result. Then, in response to the verification request, the verification server inputs the first pattern to be verified, the second pattern to be verified and the preset pattern into the pre-trained pattern verification model, and obtains the verification result output by the pattern verification model, and then the verification server returns the verification result to the client to inform the user of the authenticity of the label to be verified. The pattern verification model is used to determine whether there is content in the preset pattern that is consistent with the first pattern to be verified and the second pattern to be verified. A deep learning model is usually used as a pattern verification model, for example, a Siamese neural network, a graph neural network (GNN), etc. The pattern verification model can be trained in advance based on a contrastive learning strategy so that the pattern verification model can achieve a preset verification effect. The receptive field (Receptive Field) of each layer of the neural network in the pattern verification model is different. The receptive field refers to the area of ​​the input image that a certain point on the feature map can see. The larger the scale of the receptive field, the larger the range of the original image that the layer of the network contacts, which means that the semantic level of the features extracted by the layer of the network is higher and more global. The smaller the receptive field size, the more local and detailed the features extracted by the layer are. Therefore, the pattern verification model can output comprehensive comparison results of different receptive field sizes, thereby improving the accuracy of pattern comparison.

[0099] Combination Figure 6 and Fig. 9 , Fig. 9 is the display layer image of the pasted label to be verified. Figure 6 For Fig. 9 The display layer image of the corresponding anti-transfer label. When the verification label is verified by the server, the verification server can respond to the verification request sent by the client. Fig. 9 The first pattern to be verified contained in each internal area of ​​the , the second pattern to be verified contained in the main area, and Figure 6The preset patterns contained in each verification area are input into the pattern verification model. Obviously, Fig. 9 The patterns contained in verification area b and verification area c cannot be combined with Figure 6 The corresponding preset pattern in the pattern verification model does not match, so the verification result output by the pattern verification model is not matched. The server returns this verification result to the client to inform the user that the tag to be verified has not passed the verification, thereby indicating that the tag to be verified is a false tag that has been transferred.

[0100] Fig.11 is a schematic structural diagram of an electronic device shown in an exemplary embodiment. Fig.11 At the hardware level, the electronic device includes a processor 1102, an internal bus 1104, a network interface 1106, a memory 1108, and a non-volatile memory 1110, and may also include other required hardware. One or more embodiments of this specification may be implemented based on software, such as the processor 1102 reading the corresponding computer program from the non-volatile memory 1110 into the memory 1108 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or logic devices.

[0101] Corresponding to the above-mentioned embodiment of the verification method of the anti-transfer label, this specification also provides an embodiment of the verification device of the anti-transfer label.

[0102] Please refer to Fig.12 , Fig.12 FIG. 1 is a schematic diagram of a structure of a verification device for an anti-transfer label according to an exemplary embodiment. Fig.12 As shown, in a software implementation, the device may include: a collection module 1202, an acquisition module 1204 and a verification module 1206, wherein:

[0103] The acquisition module 1202 is configured to acquire an image of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area separated from each other;

[0104] The acquisition module 1204 is configured to acquire the first pattern to be verified contained in the internal area and the second pattern to be verified contained in the main area based on the collected image;

[0105] The verification module 1206 is configured to verify whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label, and if the verification result is a match, determine that the label to be verified has passed the verification.

[0106] Optionally, the display layer of the label to be verified includes a pre-printed barcode graphic, and the verification module Y06 is specifically used to: perform local verification on the first pattern to be verified and the second pattern to be verified to determine whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label; when the local verification passes or cannot be implemented, parse the barcode graphic to access the verification server, and initiate a verification request to the verification server to instruct the verification server to verify whether the first pattern to be verified and the second pattern to be verified included in the verification request match the preset pattern; wherein, when the local verification fails, it is determined that the first pattern to be verified and the second pattern to be verified do not match the preset pattern.

[0107] Optionally, the local verification of the first pattern to be verified and the second pattern to be verified includes: when the preset pattern includes at least one line segment, detecting the first pattern to be verified and the second pattern to be verified, and when it is detected that the first pattern to be verified and the second pattern to be verified both contain straight lines, respectively calculating the slopes of the straight lines contained in the first pattern to be verified and the slopes of the straight lines contained in the second pattern to be verified; calculating the similarity between the slopes of the straight lines contained in the first pattern to be verified and the slopes of the straight lines contained in the second pattern to be verified; and when the calculation result shows that the number of pairs of straight lines with similar slopes is greater than a preset threshold, determining that the local verification is passed.

[0108] Optionally, the outer edge of the inner area of ​​the display layer is nested inside the inner edge of the main area, and the local verification of the first pattern to be verified and the second pattern to be verified includes: when the center of the figure formed by the outer edge of the inner area on the anti-transfer label coincides with the center of the figure formed by the inner edge of the main area, respectively detecting the center of the figure formed by the outer edge of the inner area of ​​the display layer and the center of the figure formed by the inner edge of the main area; when the distance between the centers of the two figures is less than a preset distance threshold, determining that the local verification is passed.

[0109] Optionally, the verification server verifies whether the first pattern to be verified and the second pattern to be verified included in the verification request match the preset pattern, including: inputting the first pattern to be verified, the second pattern to be verified and the preset pattern into a pre-trained pattern verification model, so that the pattern verification model determines whether there is content in the preset pattern that is respectively consistent with the first pattern to be verified and the second pattern to be verified, and obtains the verification result output by the pattern verification model.

[0110] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0111] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0112] The devices or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0113] In a typical configuration, a computer includes one or more processors, including a central processing unit (CPU) and a graphics processing unit (GPU), an input / output interface, a network interface, and a memory. The CPU is used for computing simulations, and the GPU is used for outputting high-quality 3D images.

[0114] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0115] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0116] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

[0117] Thus, specific embodiments of the subject matter have been described. Furthermore, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0118] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for preparing an anti-transfer label, the method comprising: Obtaining an original label, wherein the original label is formed by bonding a display layer and a removable paper layer; forming an inner area, a main area and a to-be-removed area at at least one verification area of ​​the display layer, wherein the to-be-removed area is located between the inner area and the main area, so that the inner area and the main area are separated from each other; A preset pattern is printed on the display layer, wherein a first portion of the preset pattern is located in the inner area, and a second portion of the preset pattern is located in the main body area.

2. The method according to claim 1, In the case where the third part of the preset pattern is located in the area to be removed, the preset pattern includes: A continuous pattern in which the first portion, the second portion and the third portion are connected in sequence; and / or a first continuous pattern in which the first portion and a part of the third portion are connected, and a second continuous pattern in which the second portion and another part of the third portion are connected; And / or, the preset pattern includes: discrete patterns that are independent of each other in the first part and the second part.

3. The method according to claim 1, wherein the preset pattern comprises at least one of the following: Line segments, curves, points.

4. The method according to claim 1, further comprising: Adhere a film on the display layer after printing the preset pattern; The adhesion between the film and the area to be removed is greater than the adhesion between the pasted object and the area to be removed, and the adhesion between the film and the inner area and the main area is less than the adhesion between the pasted object and the inner area and the main area.

5. An anti-transfer label, which is prepared by the method according to any one of claims 1 to 4.

6. A method for verifying an anti-transfer label, the method comprising: Capturing an image of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area separated from each other; Acquire a first pattern to be verified contained in the internal area and a second pattern to be verified contained in the main area based on the collected image; Verify whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label according to claim 5, and if the verification result is a match, determine that the label to be verified has passed the verification.

7. The method according to claim 6, wherein the display layer of the label to be verified includes a pre-printed barcode pattern, and the step of verifying whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label comprises: Performing local verification on the first pattern to be verified and the second pattern to be verified to determine whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label; In the case where the local verification passes or cannot be implemented, parsing the barcode graphic to access the verification server, and initiating a verification request to the verification server to instruct the verification server to verify whether the first pattern to be verified and the second pattern to be verified included in the verification request match the preset pattern; Wherein, when the local verification fails, it is determined that the first pattern to be verified, the second pattern to be verified and the preset pattern do not match.

8. The method according to claim 7, wherein the locally verifying the first pattern to be verified and the second pattern to be verified comprises: In the case where the preset pattern includes at least one line segment, the first pattern to be verified and the second pattern to be verified are detected, and in the case where it is detected that both the first pattern to be verified and the second pattern to be verified contain straight lines, the slopes of the straight lines contained in the first pattern to be verified and the slopes of the straight lines contained in the second pattern to be verified are calculated respectively; Calculating the similarity between the slope of each straight line contained in the first pattern to be verified and the slope of each straight line contained in the second pattern to be verified; When the calculation result shows that the number of straight line pairs with similar slopes is greater than a preset threshold, it is determined that the local verification is passed.

9. The method according to claim 7, wherein the outer edge of the inner area of ​​the display layer is nested inside the inner edge of the main area, and the locally verifying the first pattern to be verified and the second pattern to be verified comprises: When the center of the figure formed by the outer edge of the inner area of ​​the anti-transfer label coincides with the center of the figure formed by the inner edge of the main body area, the center of the figure formed by the outer edge of the inner area of ​​the display layer and the center of the figure formed by the inner edge of the main body area are detected respectively; When the distance between the centers of the two graphics is less than a preset distance threshold, it is determined that the local verification is passed.

10. The method according to claim 7, wherein the verification server verifies whether the first pattern to be verified and the second pattern to be verified included in the verification request match the preset pattern, comprising: The first pattern to be verified, the second pattern to be verified and the preset pattern are input into a pre-trained pattern verification model, so that the pattern verification model determines whether there is content in the preset pattern that matches the first pattern to be verified and the second pattern to be verified respectively, and obtains the verification result output by the pattern verification model.

11. A verification device for an anti-transfer label, the verification device comprising: A collection module, used for collecting images of the display layer of the attached label to be verified, wherein the verification area of ​​the display layer includes an inner area and a main body area separated from each other; An acquisition module, configured to acquire a first pattern to be verified contained in the internal area and a second pattern to be verified contained in the main area based on the collected image; The verification module is used to verify whether the first pattern to be verified and the second pattern to be verified match the preset pattern printed on the anti-transfer label according to claim 5, and if the verification result is a match, determine that the label to be verified has passed the verification.

12. An electronic device comprising: processor; a memory for storing processor-executable instructions; The processor implements the anti-transfer label verification method as described in any one of claims 6-10 by running the executable instructions.

13. A computer-readable storage medium having computer instructions stored thereon, wherein when the instructions are executed by a processor, the steps of the anti-transfer label verification method according to any one of claims 6 to 10 are implemented.