An anti-counterfeiting detection and traceability method and system for a packaging bottle

By setting multiple complementary related detection codes and verification codes on the packaging bottle, combined with database and hash mapping authentication, the forgery risks and identification accuracy of the packaging bottle are solved, and efficient anti-counterfeiting and traceability functions are achieved.

CN119671592BActive Publication Date: 2025-07-29TAIXING HONGYI GLASS PRODUCTS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411910810.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-07-29
Estimated Expiration
2044-12-24

AI Technical Summary

Technical Problem

In the prior art, the forgery of packaging bottles is high, the accuracy of anti-counterfeiting identification is insufficient, and effective traceability cannot be achieved.

Method used

The first detection code and the second detection code are set on the packaging bottle, representing the bottle body and production feature information, respectively presented in the form of QR codes, and the first and second databases are established to store the corresponding verification codes, obtain the verification codes by scanning the device, and use the hash mapping database to perform multiple authentication and comparison, and determine the authenticity of the packaging bottle.

Benefits of technology

It improves the complexity and security of anti-counterfeiting labels, realizes fast and accurate identification and traceability of packaging bottles, enhances the reliability and data confidentiality of anti-counterfeiting certification, and can effectively identify authenticity and record traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119671592B_ABST
    Figure CN119671592B_ABST
Patent Text Reader

Abstract

The present invention discloses an anti-counterfeiting detection and traceability method and system for packaging bottles, belonging to the field of anti-counterfeiting detection of packaging bottles. The method includes: scanning the first detection code and the second detection code on the packaging bottle to be inspected to obtain the first verification code and the second verification code; obtaining the first authentication result according to the first detection code and the second verification code, obtaining the second authentication result according to the first verification code and the second detection code, and obtaining the third authentication result according to the first verification code and the second verification code; when each authentication result points to the same genuine product authentication value, determining that the packaging bottle to be inspected is a genuine product and returning the traceability information of the packaging bottle to be inspected; when any one of the authentication results does not point to the same genuine product authentication value, determining it as a counterfeit product and returning the traceability information as empty. By setting multiple complementary and related detection codes and verification codes for the packaging bottle and performing multiple authentication comparisons, the technical effects of effectively improving the anti-counterfeiting performance, accurately identifying the authenticity, and realizing reliable traceability are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of anti-counterfeiting detection of packaging bottles, and particularly to an anti-counterfeiting detection and traceability method and system for packaging bottles. Background Art

[0002] With the development of the social economy and the consumer market, the demand for anti-counterfeiting and traceability of packaging bottles has become increasingly prominent. In the prior art, various anti-counterfeiting solutions for packaging bottles have emerged, such as adding special patterns such as watermarks, invisible printing, and fluorescent marks on the bottle body, or setting anti-counterfeiting signs, chips, etc. on the bottle caps and labels. These methods have improved the anti-counterfeiting performance of packaging bottles to a certain extent, but there are still some deficiencies. For example, although some anti-counterfeiting measures can prevent the packaging bottles from being counterfeited to a certain extent, there is still a risk of being cracked and bypassed; when some anti-counterfeiting technologies identify the authenticity, they are easily interfered by human factors, environmental conditions, etc., resulting in the need to improve the authentication accuracy; some anti-counterfeiting solutions focus on the identification of product authenticity, but there are still deficiencies in product information traceability. Therefore, there are technical problems in the prior art, such as high risk of packaging bottle forgery, insufficient anti-counterfeiting identification accuracy, and inability to achieve effective traceability. Summary of the Invention

[0003] This application provides an anti-counterfeiting detection and traceability method and system for packaging bottles, aiming to solve the technical problems of high risk of packaging bottle forgery, insufficient anti-counterfeiting identification accuracy, and inability to achieve effective traceability in the prior art.

[0004] In view of the above problems, this application provides an anti-counterfeiting detection and traceability method and system for packaging bottles.

[0005] In the first aspect disclosed by this application, a method for anti-counterfeiting detection and traceability of a packaging bottle is provided. The method includes: setting a first detection code and a second detection code on the bottle body of the packaging bottle, where the first detection code represents the first part of the bottle body feature information, the second detection code represents the first part of the production feature information, and the first detection code and the second detection code are respectively presented in the form of two-dimensional codes; establishing a first database and a second database, where the first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production feature information, and the second verification code represents the second part of the bottle body feature information; using a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected, obtaining the corresponding first verification code from the first database according to the first detection code, and obtaining the corresponding second verification code from the second database according to the second detection code; obtaining a first authentication result according to the first detection code and the second verification code, obtaining a second authentication result according to the first verification code and the second detection code, and obtaining a third authentication result according to the first verification code and the second verification code; judging whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine authentication value according to the hash mapping database. When each authentication result points to the same genuine authentication value, it is determined that the packaging bottle to be inspected is genuine, and the traceability information of the packaging bottle to be inspected is returned; when any one of the authentication results does not point to the same genuine authentication value, it is determined that the packaging bottle to be inspected is a counterfeit product, and the returned traceability information is empty.

[0006] Another aspect disclosed in the present application provides an anti-counterfeiting detection and traceability system for packaging bottles. The system includes: a multi-code setting module for setting a first detection code and a second detection code on the bottle body of the packaging bottle. The first detection code represents the first part of the bottle body characteristic information, and the second detection code represents the first part of the production characteristic information. The first detection code and the second detection code are presented in the form of two-dimensional codes respectively; a data storage module for establishing a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production characteristic information, and the second verification code represents the second part of the bottle body characteristic information; an information reading module for using a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected, obtaining the corresponding first verification code from the first database according to the first detection code, and obtaining the corresponding second verification code from the second database according to the second detection code; a cross-certification module for obtaining a first certification result according to the first detection code and the second verification code, obtaining a second certification result according to the first verification code and the second detection code, and obtaining a third certification result according to the first verification code and the second verification code; a genuine product confirmation module for judging whether the first certification result, the second certification result, and the third certification result all point to the same genuine product certification value according to the hash mapping database. When each certification result points to the same genuine product certification value, it is determined that the packaging bottle to be inspected is a genuine product, and the traceability information of the packaging bottle to be inspected is returned; a counterfeit product identification module for determining that the packaging bottle to be inspected is a counterfeit product and returning the traceability information as empty when any one of the certification results does not point to the same genuine product certification value.

[0007] One or more technical solutions provided in the present application have at least the following technical effects or advantages:

[0008] Since the first detection code and the second detection code are set on the bottle body of the packaging bottle, where the first detection code represents the first part of the bottle body feature information, the second detection code represents the first part of the production feature information, and both detection codes are presented in the form of two-dimensional codes. By encoding different types of feature information into two independent detection codes, the complexity and diversity of the anti-counterfeiting label are increased, and the difficulty of counterfeiting is increased; a first database and a second database are established, where the first database stores the first detection code and the first verification code of each genuine packaging bottle, and the first verification code represents the second part of the production feature information; the second database stores the second detection code and the second verification code of each genuine packaging bottle, and the second verification code represents the second part of the bottle body feature information. By splitting the complete feature information into two parts, the detection code and the verification code, and storing them in different databases, it is avoided that all feature information is directly exposed on the packaging bottle, and the security and confidentiality of the data are improved; in the detection stage, a scanning device is used to scan the first detection code and the second detection code on the packaging bottle to be inspected, and then the corresponding first verification code is obtained from the first database according to the first detection code, and the corresponding second verification code is obtained from the second database according to the second detection code. By scanning the detection code and extracting the verification code from the database, the automatic identification and information reading of the packaging bottle are realized, and the detection efficiency and accuracy are improved; a first authentication result is obtained according to the first detection code and the second verification code, a second authentication result is obtained according to the first verification code and the second detection code, and a third authentication result is obtained according to the first verification code and the second verification code. Through the cross-combination authentication of multiple detection codes and verification codes, the identity characteristics and production characteristics of the packaging bottle are comprehensively verified, and the reliability of the anti-counterfeiting authentication is effectively improved; a hash mapping database is used to judge whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine authentication value. If all the authentication results point to the same genuine value, the packaging bottle to be inspected is determined to be genuine, and the traceability information of the packaging bottle is returned. If any one of the authentication results does not point to the genuine value, the packaging bottle to be inspected is determined to be a counterfeit product, and the returned traceability information is empty. By setting the genuine authentication value and comparing multiple authentication results with it, the authenticity attribute of the packaging bottle is confirmed, the confirmation of genuine products and the identification of counterfeit products are realized, and at the same time, by returning the traceability information, the recording and query of information such as the source and flow of the packaging bottle are realized. The technical solution solves the technical problems of high risk of forgery of packaging bottles, insufficient accuracy of anti-counterfeiting identification, and inability to achieve effective traceability in the prior art. By setting multiple complementary and related detection codes and verification codes for the packaging bottle and performing multiple authentication comparisons, the technical effects of effectively improving the anti-counterfeiting performance, accurately identifying the authenticity, and realizing reliable traceability are achieved.

[0009] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the specific embodiments of the present application are hereinafter specifically exemplified. Brief Description of the Drawings

[0010] Figure 1 FIG. 1 is a schematic flow chart of a method for anti-counterfeiting detection and traceability of a packaging bottle provided by an embodiment of the present application.

[0011] Figure 2 FIG. 2 is a schematic structural diagram of an anti-counterfeiting detection and traceability system for a packaging bottle provided by an embodiment of the present application.

[0012] Description of the reference numerals: multi-code setting module 11, data storage module 12, information reading module 13, cross-certification module 14, genuine product confirmation module 15, counterfeit product identification module 16. Detailed Embodiments

[0013] The general idea of the technical solution provided by the present application is as follows:

[0014] An embodiment of the present application provides an anti-counterfeiting detection and traceability method and system for a packaging bottle. By setting multiple complementary and related feature codes on the packaging bottle, and establishing a supporting database system and authentication mechanism, a comprehensive, reliable and efficient anti-counterfeiting traceability technical solution is constructed.

[0015] Specifically, first, a first detection code and a second detection code representing different feature information are respectively set on the bottle body of the packaging bottle. The two-dimensional code technology is used to improve the storage capacity and reading convenience of the anti-counterfeiting label. At the same time, a first database and a second database are created. By splitting the complete feature information into two parts: a detection code and a verification code for storage, the security and confidentiality of the data are improved. In the detection stage, the detection code on the packaging bottle to be inspected is read by a scanning device, and the corresponding verification code information is extracted from the database. Multiple cross-certifications are implemented by using hash mapping to comprehensively verify the identity characteristics and production characteristics of the packaging bottle, and finally confirm its authenticity attribute, effectively improving the reliability of anti-counterfeiting certification. In addition, by returning traceability information, the recording and query of information such as the source and flow of the packaging bottle are realized.

[0016] After introducing the basic principle of the present application, various non-limiting embodiments of the present application will be specifically introduced below in conjunction with the accompanying drawings of the specification.

[0017] Embodiment 1, as Figure 1 shown, an embodiment of the present application provides an anti-counterfeiting detection and traceability method for a packaging bottle, the method comprising:

[0018] S1: Set a first detection code and a second detection code on the bottle body of the packaging bottle, the first detection code represents the first part of the bottle body feature information, the second detection code represents the first part of the production feature information, and the first detection code and the second detection code are respectively presented in the form of two-dimensional codes.

[0019] Specifically, first, set detection codes for anti-counterfeiting and traceability on the bottle body of the packaging bottle, including a first detection code and a second detection code. Among them, the first detection code is used to represent a part of the bottle body characteristic information of the packaging bottle, called the first part of the bottle body characteristic information, which can be one or a combination of the bottle body size, shape, material, color, logo, etc. Convert the first part of the bottle body characteristic information into forms such as numbers or strings to generate the first detection code; the second detection code is used to represent a part of the production characteristic information of the packaging bottle, called the first part of the production characteristic information, which can include one or a combination of the production date, batch number, production line number, product number, etc. Convert the first part of the production characteristic information into forms such as numbers or strings to generate the second detection code.

[0020] The first detection code and the second detection code are respectively presented on the bottle body of the packaging bottle in the form of two-dimensional codes. Two-dimensional codes have the advantages of large information capacity, fast reading speed, high reliability, etc., and are suitable for the display of detection codes. The first detection code and the second detection code are set in the same area or different areas of the bottle body. Obtain the detection code information by scanning the two-dimensional code for subsequent authenticity identification and information traceability.

[0021] S2: Establish a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production characteristic information, and the second verification code represents the second part of the bottle body characteristic information.

[0022] Specifically, the first database is used to store the first detection code of each genuine packaging bottle and the corresponding first verification code. Among them, the first detection code represents a part of the bottle body characteristics of the packaging bottle, and the first verification code represents another part of the production characteristics of the packaging bottle, which is the second part of the production characteristic information, and can include the production equipment number, raw material supplier information, quality inspection personnel information, etc. Store the first detection code and the first verification code in the first database in the form of key-value pairs. The second database is used to store the second detection code of each genuine packaging bottle and the corresponding second verification code. The second detection code represents a part of the production characteristics of the packaging bottle, and the second verification code represents another part of the bottle body characteristics of the packaging bottle, which is the second part of the bottle body characteristic information, including the pattern, texture, etc. of the bottle body. Similarly, store the second detection code and the second verification code in the second database in the form of key-value pairs.

[0023] By establishing the first database and the second database, storing the detection codes and verification codes of each genuine packaging bottle, the recording and management of the bottle body and production information of the packaging bottle are realized, providing a data basis for subsequent anti-counterfeiting detection and traceability.

[0024] S3: Use a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected, obtain the corresponding first verification code from the first database according to the first detection code, and obtain the corresponding second verification code from the second database according to the second detection code.

[0025] Specifically, use a scanning device to scan the first detection code and the second detection code on the body of the packaging bottle to be inspected. The scanning device can be a dedicated authenticity detector. The authenticity detection instrument has a two-dimensional code scanning module, or it can be a general device such as a smartphone or a tablet computer with a camera and scanning software.

[0026] After obtaining the first detection code and the second detection code by scanning, use the first detection code as the retrieval condition to search for the corresponding first verification code in the first database; use the second detection code as the retrieval condition to search for the corresponding second verification code in the second database. During the process of retrieving the verification code, if it is found that the detection code does not exist in the database, it is determined that the packaging bottle to be inspected is a counterfeit product, and its detection code does not have a corresponding genuine verification code. By scanning the detection code of the packaging bottle to be inspected and obtaining the verification code, it prepares for the subsequent authenticity determination.

[0027] S4: Obtain a first authentication result according to the first detection code and the second verification code, obtain a second authentication result according to the first verification code and the second detection code, and obtain a third authentication result according to the first verification code and the second verification code.

[0028] Specifically, the first detection code represents a part of the characteristics of the packaging bottle body, and the second verification code represents another part of the characteristics of the packaging bottle body. Combine these two parts of the bottle body characteristics to obtain a composite characteristic reflecting the identity of the packaging bottle, and obtain the first authentication result. For example, splice the first part of the bottle body characteristic information of the first detection code and the second part of the bottle body characteristic information of the second verification code to form a composite bottle body characteristic. For example, use the first part of the bottle body characteristic information as the first half of the composite bottle body characteristic, and the second part of the bottle body characteristic information as the second half of the composite bottle body characteristic, and perform a hashing operation on this composite bottle body characteristic to obtain a hash value as the first authentication result. At the same time, similar to obtaining the first authentication result, the first verification code represents a part of the production characteristics of the packaging bottle, and the second detection code represents another part of the production characteristics of the packaging bottle. Obtain the second authentication result through the first part of the production characteristic information and the second part of the bottle body characteristic information. Similarly, according to the first verification code and the second verification code, through composite characteristics and hashing operations, obtain the third authentication result.

[0029] By authenticating the authenticity of the packaging bottle to be inspected from different dimensions, the three authentication results complement and corroborate each other, improving the accuracy and reliability of authenticity identification.

[0030] S5: Determine whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine authentication value according to the hash mapping database. When each authentication result points to the same genuine authentication value, determine that the packaging bottle to be inspected is genuine, and return the traceability information of the packaging bottle to be inspected.

[0031] Specifically, a hash mapping database is introduced to establish the mapping relationship between the genuine authentication value and various characteristic values. This database pre-stores the unique identification code of each genuine packaging bottle, that is, the genuine authentication value, as well as the hash mapping between the genuine authentication value and the bottle body characteristics, production characteristics, and the mixed characteristics of the bottle body production.

[0032] First, query the obtained first authentication result in the hash mapping database. The first authentication result is obtained by performing a hash operation on the combination of the first part of the bottle body characteristic information of the first detection code and the second part of the bottle body characteristic information of the second verification code. Therefore, it corresponds to the hash value of the composite bottle body characteristics. Compare this hash value with the hash value of the genuine bottle body characteristics stored in the hash mapping database. If the match is successful, it means that the first authentication result points to a certain genuine authentication value. Similarly, query the second authentication result in the hash mapping database. The second authentication result is obtained by performing a hash operation on the combination of the first part of the production characteristic information of the first verification code and the second part of the production characteristic information of the second detection code. Therefore, it corresponds to the hash value of the composite production characteristics. Compare this hash value with the hash value of the genuine production characteristics stored in the hash mapping database. If the match is successful, it means that the second authentication result also points to a certain genuine authentication value. At the same time, query the third authentication result in the hash mapping database. The third authentication result is obtained by performing a hash operation on the combination of the second part of the production characteristic information of the first verification code and the second part of the bottle body characteristic information of the second verification code. Therefore, it corresponds to the hash value of the mixed characteristics. Compare this hash value with the hash value of the genuine mixed characteristics stored in the hash mapping database. If the match is successful, it means that the third authentication result also points to a certain genuine authentication value.

[0033] Since the identity of the genuine packaging bottle is unique and consistent, if the packaging bottle to be inspected is indeed genuine, the three obtained authentication results should point to the same genuine authentication value. On the contrary, if the three authentication results point to different genuine authentication values respectively, or some authentication results fail to find a matching genuine authentication value, it indicates that the packaging bottle to be inspected is a counterfeit product.

[0034] By using the hash mapping database to verify and confirm the three authentication results, determine whether the three authentication results consistently point to the same genuine authentication value, and obtain the final identification conclusion of the authenticity of the packaging bottle to be inspected. Once it is confirmed that the packaging bottle to be inspected is genuine, according to the genuine authentication value, return the traceability information related to this packaging bottle to achieve the anti-counterfeiting and traceability management of the packaging bottle.

[0035] S6: When any one of the authentication results does not point to the same genuine product authentication value, determine that the packaging bottle to be inspected is a counterfeit product, and return that the traceability information is empty.

[0036] Specifically, if it is found that the three obtained authentication results do not consistently point to the same genuine product authentication value, or some of the authentication results fail to find a matching genuine product authentication value, determine that the packaging bottle to be inspected is a counterfeit product. When determining that the packaging bottle to be inspected is a counterfeit product, no traceability information is returned. Instead, an empty traceability information object or a specific null value marker is used as a substitute to distinguish it from the query result of the genuine product packaging bottle, indicating in a way without information that the packaging bottle is not genuine and does not have a credible traceability value.

[0037] Furthermore, the embodiments of the present application further include:

[0038] Collect the complete bottle body feature information and complete production feature information of the anti-counterfeiting packaging bottle to be inspected;

[0039] Randomly select a part of the information from the complete bottle body feature information as the first part of the bottle body feature information, generate the first detection code according to the first part of the bottle body feature information, and use the remaining part as the second part of the bottle body feature information, and generate the second verification code according to the second part of the bottle body feature information;

[0040] Randomly select a part of the information from the complete production feature information as the first part of the production feature information, generate the second detection code according to the first part of the production feature information, and use the remaining part as the second part of the production feature information, and generate the first verification code according to the second part of the production feature information;

[0041] Establish a mapping relationship between the first detection code and the first verification code, and store it in the first database;

[0042] Establish a mapping relationship between the second detection code and the second verification code, and store it in the second database.

[0043] In a feasible implementation, for each anti-counterfeiting packaging bottle to be processed, first, the complete bottle body feature information and the complete production feature information are comprehensively collected. The complete bottle body feature information includes, but is not limited to, physical attributes such as the size, shape, material, color, weight, capacity, surface texture, label design, etc. of the bottle body; the complete production feature information includes, but is not limited to, information related to the production process such as the production date, batch number, production line number, production factory, raw material information, quality inspection information, etc. Then, a random algorithm is used to select a part of the information from the complete bottle body feature information to form the first part of the bottle body feature information. Random selection increases security, making the first part of the bottle body feature information of different packaging bottles have uncertainty and diversity. Subsequently, the first part of the bottle body feature information is converted into the first detection code through encoding, and the remaining bottle body feature information forms the second part of the bottle body feature information, which is also encoded to generate the second verification code. Through information segmentation and encoding methods, the bottle body feature information is stored dispersedly, improving the security of anti-counterfeiting. At the same time, the complete production feature information is randomly segmented and encoded. The randomly selected first part of the production feature information is encoded as the second detection code, and the remaining second part of the production feature information is encoded as the first verification code.

[0044] After that, a data table is created in the first database. Using the first detection code as the primary key and the corresponding first verification code as the associated value, a one-to-one correspondence between the two is established, providing a data basis for subsequent anti-counterfeiting verification. Similarly, a data table is created in the second database to establish the mapping relationship between the second detection code and the second verification code. By storing the detection code and the verification code in two independent databases respectively, the security of the data is increased, and the risk of data leakage is reduced.

[0045] Through the random segmentation, cross-encoding, and dispersed storage of the packaging bottle feature information, a secure and reliable anti-counterfeiting detection and traceability data system is constructed, laying a foundation for subsequent authenticity identification and information traceability.

[0046] Furthermore, the embodiments of the present application further include:

[0047] The complete bottle body feature information and the complete production feature information are stored in list form respectively, with each list element corresponding to a feature information, obtaining the complete bottle body feature information list and the complete production feature information list;

[0048] Determine the first random selection quantity, where the first random selection quantity is equal to half of the total number of elements in the complete bottle body feature information list;

[0049] Determine the second random selection quantity, where the second random selection quantity is equal to half of the total number of elements in the complete production feature information list;

[0050] Generate a first set of random numbers, where the number of the first set of random numbers is equal to the first randomly selected quantity, and the value range of each random number in the first set of random numbers corresponds to the index range of the complete bottle body feature information list;

[0051] Generate a second set of random numbers, where the number of the second set of random numbers is equal to the second randomly selected quantity, and the value range of each random number in the second set of random numbers corresponds to the index range of the complete production feature information list;

[0052] Select corresponding elements from the complete bottle body feature information list according to the first set of random numbers to form the first part of the bottle body feature information;

[0053] Select corresponding elements from the complete production feature information list according to the second set of random numbers to form the first part of the production feature information;

[0054] The elements in the complete bottle body feature information list that are not selected form the second part of the bottle body feature information;

[0055] The elements in the complete production feature information list that are not selected form the second part of the production feature information.

[0056] In a feasible implementation manner, first, convert the complete bottle body feature information and the complete production feature information into a structured list form. Each independent feature information in the complete bottle body feature information is used as an element in the list, such as bottle body height, diameter, weight, etc., to form the complete bottle body feature information list; each independent feature information in the complete production feature information is used as an element in the list, such as production date, batch number, production line number, etc., to form the complete production feature information list. Through the list processing, it lays a foundation for subsequent random selection and makes the feature information easier to manage and operate. To ensure the balance of feature information segmentation, determine the first randomly selected quantity and the second randomly selected quantity according to the complete bottle body feature information list and the complete production feature information list. Both of these quantities are half of the total number of elements in their respective lists, that is, the first randomly selected quantity is equal to half of the total number of elements in the complete bottle body feature information list, and the second randomly selected quantity is equal to half of the total number of elements in the complete production feature information list. Through the equal segmentation strategy, it not only ensures the sufficiency of the selected information but also ensures the effectiveness of the remaining information, thereby enhancing the security and reliability of anti-counterfeiting.

[0057] Then, two sets of random indices were created through a random number generation algorithm, obtaining the first set of random numbers and the second set of random numbers. Among them, the number of the first set of random numbers is equal to the first randomly selected quantity, the number of the second set of random numbers is equal to the second randomly selected quantity, and the value range of the random numbers is strictly limited within the index range of their respective characteristic information lists. Through randomization, the unpredictability of the characteristic information segmentation is increased, and the security level of anti-counterfeiting is improved. Then, using the first set of random numbers as indices, the corresponding elements were extracted from the complete bottle body characteristic information list to form the first part of the bottle body characteristic information; similarly, using the second set of random numbers, elements were selected from the complete production characteristic information list to form the first part of the production characteristic information. After that, the bottle body characteristic information elements not randomly selected were classified as the second part of the bottle body characteristic information, and the production characteristic information elements not selected were classified as the second part of the production characteristic information, providing the necessary data support for subsequent cross-verification.

[0058] Through the precise, random, and balanced segmentation of the packaging bottle characteristic information, not only the security and reliability of anti-counterfeiting are improved, but also the flexibility and scalability of anti-counterfeiting are enhanced. The characteristic information segmentation result of each packaging bottle is unique, increasing the difficulty of counterfeiting.

[0059] Furthermore, the embodiments of the present application further include:

[0060] Set the value range of the random perturbation numbers, and generate the first random perturbation number and the second random perturbation number according to the value range, where the value range includes a preset positive integer and a preset negative integer;

[0061] Add the first randomly selected quantity to the first random perturbation number to obtain the first adjusted randomly selected quantity;

[0062] Add the second randomly selected quantity to the second random perturbation number to obtain the second adjusted randomly selected quantity;

[0063] Use the first adjusted randomly selected quantity to generate the first set of random numbers;

[0064] Use the second adjusted randomly selected quantity to generate the second set of random numbers;

[0065] Among them, both the first adjusted randomly selected quantity and the second adjusted randomly selected quantity are not less than the preset minimum selection quantity and not greater than the total number of elements of their respective corresponding complete characteristic information lists.

[0066] In a preferred embodiment, first, a value range including positive integers and negative integers is determined, for example, [-3, 3]. Then, using a random number generation algorithm, a first random perturbation number and a second random perturbation number are respectively generated within this range to adjust the original first randomly selected quantity and the second randomly selected quantity, further increasing unpredictability. Next, the previously determined first randomly selected quantity is added to the generated first random perturbation number to obtain a first adjusted randomly selected quantity, such that the actually selected quantity of feature information fluctuates around the original quantity, increasing the randomness of the selection process. At the same time, the original second randomly selected quantity is added to the second random perturbation number to obtain a second adjusted randomly selected quantity, ensuring that the selection process of production feature information also has additional randomness.

[0067] After that, the adjusted first randomly selected quantity, that is, the first adjusted randomly selected quantity, is used to generate a random array for selecting bottle body feature information, increasing the flexibility and unpredictability of feature information selection. Similarly, the adjusted second randomly selected quantity, that is, the second adjusted randomly selected quantity, is used to generate a random array for selecting production feature information, ensuring that the selection process of production feature information also has randomness and unpredictability. At the same time, constraint conditions for the adjusted randomly selected quantity are set to ensure the effectiveness and security of the selection process. Specifically, a minimum selection quantity is set to ensure that even after random perturbation, the quantity of selected feature information can still meet the minimum requirements for anti-counterfeiting needs, and the maximum selection quantity is restricted not to exceed the total number of elements in the original feature information list, avoiding the selection quantity exceeding the valid range due to random perturbation.

[0068] By introducing random perturbation numbers, the randomness and security of feature information selection are further enhanced on the original basis, making the quantity of feature information selected each time more unpredictable, and ensuring the effectiveness of the selection process by setting constraint conditions, improving the security level of the entire anti-counterfeiting detection and traceability, making it more difficult for potential counterfeiting behaviors to crack anti-counterfeiting means by analyzing the selection pattern, and providing stronger technical support for the anti-counterfeiting and traceability of packaging bottles.

[0069] Furthermore, the embodiment of the present application further includes:

[0070] Setting a unique genuine product authentication value for the packaging bottle to be anti-counterfeited;

[0071] Performing a hash operation on the complete bottle body feature information to obtain a complete bottle body feature hash value, establishing a mapping relationship with the genuine product authentication value, and storing it in the first hash mapping database;

[0072] Performing a hash operation on the complete production feature information to obtain a complete production feature hash value, establishing a mapping relationship with the genuine product authentication value, and storing it in the second hash mapping database;

[0073] Combine the second part of the bottle body feature information and the second part of the production feature information, perform a hash operation on the combination result to obtain a feature mixed hash value, establish a mapping relationship with the genuine product authentication value, and store it in the third hash mapping database;

[0074] Summarize the first hash mapping database, the second hash mapping database, and the third hash mapping database to form a hash mapping database.

[0075] In a feasible implementation, assign a unique identifier to each packaging bottle to be anti-counterfeited as the genuine product authentication value to ensure its uniqueness. Then, perform a hash operation on the complete bottle body feature information of the packaging bottle. Among them, the hash operation can use common hash algorithms such as MD5 and SHA-256 to convert the variable-length bottle body feature information into a fixed-length hash value to obtain the complete bottle body feature hash value. Then, establish a mapping relationship between the obtained complete bottle body feature hash value and the set genuine product authentication value, and store this mapping relationship in the first hash mapping database. Similarly, perform a hash operation on the complete production feature information of the packaging bottle to obtain the complete production feature hash value, establish a mapping relationship between the complete production feature hash value and the genuine product authentication value, and store it in the second hash mapping database.

[0076] At the same time, combine the unselected second bottle body feature information and the second production feature information, perform a hash operation on the combined result to obtain a feature mixed hash value. Then, establish a mapping relationship between the feature mixed hash value and the genuine product authentication value and store it in the third hash mapping database. The anti-counterfeiting security is further enhanced through the mixed hash, making it more difficult for counterfeiters to crack the anti-counterfeiting means by copying single feature information. Subsequently, integrate the three independent hash mapping databases, namely the first hash mapping database, the second hash mapping database, and the third hash mapping database, to form a comprehensive hash mapping database.

[0077] Furthermore, the embodiments of the present application further include:

[0078] Analyze the first detection code and the second verification code to generate the to-be-detected bottle body feature information, perform a hash operation on the to-be-detected bottle body feature information to obtain a first hash value as the first authentication result;

[0079] Analyze the first verification code and the second detection code to generate the to-be-detected production feature information, perform a hash operation on the to-be-detected production feature information to obtain a second hash value as the second authentication result;

[0080] Analyze the first verification code and the second verification code to generate the to-be-detected mixed feature information, perform a hash operation on the to-be-detected mixed feature information to obtain a third hash value as the third authentication result;

[0081] Query whether the first authentication result, the second authentication result, and the third authentication result are mapped to the same genuine product authentication value in the first hash mapping database, the second hash mapping database, and the third hash mapping database respectively;

[0082] Determine that the packaging bottle to be inspected is a genuine product if and only if the first authentication result, the second authentication result, and the third authentication result are all mapped to the same genuine product authentication value, and return the traceability information associated with the same genuine product authentication value;

[0083] Otherwise, determine that the packaging bottle to be inspected is a counterfeit product and return empty traceability information.

[0084] In a feasible implementation, highly reliable authenticity verification is achieved by comparing the hash values of multiple feature information. By parsing the obtained detection code and verification code, the bottle body feature information, production feature information, and mixed feature information to be measured are generated, and hash operations are performed on these three types of information respectively to obtain three hash values as the authentication results.

[0085] First, parse the first detection code and the second verification code to combine and generate the complete bottle body feature information to be measured, and perform a hash operation using the same hash algorithm as that for generating the complete bottle body feature hash value based on the complete bottle body feature information to obtain the first hash value as the first authentication result. Similarly, parse the first verification code and the second detection code to combine and generate the complete production feature information to be measured, and perform a hash operation using the same hash algorithm as that for generating the complete production feature hash value based on the complete production feature information to obtain the second hash value as the second authentication result. At the same time, by parsing the first verification code and the second verification code, generate the mixed feature information to be measured, and perform a hash operation using the same hash algorithm as that for generating the feature mixed hash value to obtain the third hash value as the third authentication result. These three hash values respectively represent the bottle body feature, production feature, and mixed feature of the packaging bottle to be inspected.

[0086] Then, query the obtained first hash value, second hash value, and third hash value in three hash mapping databases respectively to find the genuine product authentication values corresponding to these three hash values. The multi-database query mechanism significantly increases the reliability and security of verification. Only when the three authentication results all point to the same genuine product authentication value will it be determined that the packaging bottle to be inspected is a genuine product and the relevant traceability information will be returned. If any of the above authentication results fails to point to the same genuine product authentication value as the other results, or a certain authentication result cannot find a matching item in the corresponding hash mapping database, it is determined that the packaging bottle to be inspected is a counterfeit product and empty traceability information is returned.

[0087] By simultaneously considering the bottle body characteristics, production characteristics, and mixing characteristics, it provides comprehensive verification. With a multiple verification mechanism, it can effectively identify counterfeit products, providing a highly reliable solution for the anti-counterfeiting detection and traceability of packaging bottles, and enhancing the overall performance and reliability of anti-counterfeiting.

[0088] Furthermore, the embodiments of the present application further include:

[0089] Using a mobile phone as the scanning device, the first detection code and the second detection code are obtained by scanning through the camera of the mobile phone;

[0090] The first detection code and the second detection code are transmitted to the cloud server through a dedicated application installed on the mobile phone;

[0091] Among them, the first database, the second database, and the hash mapping database are all deployed in the cloud server.

[0092] In a preferred implementation, first, using a mobile phone as the scanning device, through the built-in camera of the mobile phone, the user can quickly scan the first detection code and the second detection code on the packaging bottle. Subsequently, the user transmits the captured detection codes to the cloud server through a dedicated application installed on the mobile phone. At the same time, all data storage and processing operations are deployed in the cloud server. The first database, the second database, and the hash mapping database are all located in the cloud, and all verification, comparison, and information retrieval operations are also completed entirely in the cloud, thereby achieving data isolation, reducing the risk of data leakage, and facilitating centralized management and maintenance.

[0093] Among them, the verification process is completely carried out in the cloud, including steps such as parsing the detection code, querying the database, and comparing information. After the cloud server completes all processing, it returns the final verification result to the user's mobile device, minimizing the amount of data transmitted in the network and further reducing the risk of information leakage. Therefore, the method of cloud computing has extremely high security, encapsulating sensitive data and processing logic in the cloud, greatly reducing the risks of data leakage and tampering. At the same time, it simplifies the functions of the client, and the mobile application only needs to be responsible for scanning and displaying the results, reducing the burden and security risks of the terminal device.

[0094] Through the combination of terminal scanning and cloud processing, it minimizes the data transmission link, encapsulates the core operations in the cloud, provides a highly secure solution for the anti-counterfeiting and traceability of packaging bottles, can effectively address security challenges, and has good scalability at the same time.

[0095] In summary, the anti-counterfeiting detection and traceability method for a packaging bottle provided by the embodiments of the present application has the following technical effects:

[0096] Set a first detection code and a second detection code on the bottle body of the packaging bottle. The first detection code represents the first part of the bottle body feature information, and the second detection code represents the first part of the production feature information. The first detection code and the second detection code are presented in the form of two-dimensional codes respectively. By setting two different detection codes on the packaging bottle, the complete feature information is divided into two parts for storage and identification, which improves the complexity and security of the anti-counterfeiting label. Using the two-dimensional code form facilitates the rapid reading and automated processing of information. Establish a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production feature information, and the second verification code represents the second part of the bottle body feature information. By establishing two independent databases and splitting the complete feature information into two parts, namely the detection code and the verification code, for storage, it avoids directly exposing all the feature information on the packaging bottle, thus improving the confidentiality and security of the data. Use a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected. Obtain the corresponding first verification code from the first database according to the first detection code, and obtain the corresponding second verification code from the second database according to the second detection code. By automatically reading the detection codes on the packaging bottle through the scanning device, the anti-counterfeiting feature information can be quickly and accurately obtained, improving the detection efficiency. At the same time, extract the verification code corresponding to the detection code from the database to provide the necessary data support for subsequent cross-verification. Obtain a first authentication result according to the first detection code and the second verification code, obtain a second authentication result according to the first verification code and the second detection code, and obtain a third authentication result according to the first verification code and the second verification code. Through the cross-combination authentication of multiple detection codes and verification codes, the identity characteristics and production characteristics of the packaging bottle are verified from different angles, comprehensively evaluating its authenticity and effectively improving the reliability of the anti-counterfeiting authentication. Judge whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine authentication value according to the hash mapping database. When each authentication result points to the same genuine authentication value, determine that the packaging bottle to be inspected is genuine and return the traceability information of the packaging bottle to be inspected. By introducing the genuine authentication value and comparing multiple authentication results with it, the authenticity attribute of the packaging bottle is confirmed. At the same time, by returning the traceability information, the recording and query of information such as the source and flow of the packaging bottle are realized, which is conducive to the identification and traceability of counterfeit products. When any one of the authentication results does not point to the same genuine authentication value, determine that the packaging bottle to be inspected is a counterfeit product and return the traceability information as empty, minimizing the risk of undetected counterfeit products, improving the anti-counterfeiting effect, and effectively improving the anti-counterfeiting performance, accurately identifying the authenticity, and reliably tracing.

[0097] Embodiment 2, based on the same inventive concept as the anti-counterfeiting detection and traceability method of a packaging bottle in the foregoing embodiment, as Figure 2As shown in the figure, an anti-counterfeiting detection and traceability system for a packaging bottle is provided in an embodiment of the present application. The system includes:

[0098] A multi-code setting module 11 for setting a first detection code and a second detection code on the bottle body of the packaging bottle. The first detection code represents a first part of the bottle body feature information, and the second detection code represents a first part of the production feature information. The first detection code and the second detection code are presented in the form of two-dimensional codes respectively;

[0099] A data storage module 12 for establishing a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents a second part of the production feature information, and the second verification code represents a second part of the bottle body feature information;

[0100] An information reading module 13 for using a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected, obtaining the corresponding first verification code from the first database according to the first detection code, and obtaining the corresponding second verification code from the second database according to the second detection code;

[0101] A cross-certification module 14 for obtaining a first certification result according to the first detection code and the second verification code, obtaining a second certification result according to the first verification code and the second detection code, and obtaining a third certification result according to the first verification code and the second verification code;

[0102] A genuine product confirmation module 15 for judging whether the first certification result, the second certification result, and the third certification result all point to the same genuine product certification value according to the hash mapping database. When each certification result points to the same genuine product certification value, it is determined that the packaging bottle to be inspected is a genuine product, and the traceability information of the packaging bottle to be inspected is returned;

[0103] A fake product identification module 16 for determining that the packaging bottle to be inspected is a counterfeit product when any one of the certification results does not point to the same genuine product certification value, and returning that the traceability information is empty.

[0104] Further, the data storage module 12 includes the following execution steps:

[0105] Collect the complete bottle body feature information and the complete production feature information of the packaging bottle to be anti-counterfeited;

[0106] Randomly select a part of the information from the complete bottle body feature information as the first part of the bottle body feature information, generate the first detection code according to the first part of the bottle body feature information, and use the remaining part as the second part of the bottle body feature information, and generate the second verification code according to the second part of the bottle body feature information;

[0107] Randomly select a part of the complete production feature information as the first part of the production feature information, generate the second detection code according to the first part of the production feature information, and use the remaining part as the second part of the production feature information, and generate the first verification code according to the second part of the production feature information;

[0108] Establish a mapping relationship between the first detection code and the first verification code, and store it in the first database;

[0109] Establish a mapping relationship between the second detection code and the second verification code, and store it in the second database.

[0110] Further, the data storage module 12 further includes the following execution steps:

[0111] Store the complete bottle body feature information and the complete production feature information in the form of lists respectively, each list element corresponds to a feature information, and obtain the complete bottle body feature information list and the complete production feature information list;

[0112] Determine the first random selection quantity, and the first random selection quantity is equal to half of the total number of elements in the complete bottle body feature information list;

[0113] Determine the second random selection quantity, and the second random selection quantity is equal to half of the total number of elements in the complete production feature information list;

[0114] Generate a first set of random numbers, the number of the first set of random numbers is equal to the first random selection quantity, and the value range of each random number in the first set of random numbers corresponds to the index range of the complete bottle body feature information list;

[0115] Generate a second set of random numbers, the number of the second set of random numbers is equal to the second random selection quantity, and the value range of each random number in the second set of random numbers corresponds to the index range of the complete production feature information list;

[0116] Select the corresponding elements from the complete bottle body feature information list according to the first set of random numbers to form the first part of the bottle body feature information;

[0117] Select the corresponding elements from the complete production feature information list according to the second set of random numbers to form the first part of the production feature information;

[0118] The elements in the complete bottle body feature information list that are not selected form the second part of the bottle body feature information;

[0119] The elements in the complete production feature information list that are not selected form the second part of the production feature information.

[0120] Further, the data storage module 12 further includes the following execution steps:

[0121] Set the value range of the random perturbation number, and generate a first random perturbation number and a second random perturbation number according to the value range, where the value range includes a preset positive integer and a preset negative integer;

[0122] Add the first randomly selected quantity to the first random perturbation number to obtain a first adjusted randomly selected quantity;

[0123] Add the second randomly selected quantity to the second random perturbation number to obtain a second adjusted randomly selected quantity;

[0124] Generate a first set of random numbers using the first adjusted randomly selected quantity;

[0125] Generate a second set of random numbers using the second adjusted randomly selected quantity;

[0126] Wherein, both the first adjusted randomly selected quantity and the second adjusted randomly selected quantity are not less than a preset minimum selection quantity and not greater than the total number of elements in their respective complete feature information lists.

[0127] Further, the embodiment of the present application further includes a hash mapping module, and this module includes the following execution steps:

[0128] Set a unique genuine product authentication value for the anti-counterfeiting packaging bottle to be authenticated;

[0129] Perform a hash operation on the complete bottle body feature information to obtain a complete bottle body feature hash value, establish a mapping relationship with the genuine product authentication value, and store it in the first hash mapping database;

[0130] Perform a hash operation on the complete production feature information to obtain a complete production feature hash value, establish a mapping relationship with the genuine product authentication value, and store it in the second hash mapping database;

[0131] Combine the second part of the bottle body feature information and the second part of the production feature information, perform a hash operation on the combination result to obtain a feature mixed hash value, establish a mapping relationship with the genuine product authentication value, and store it in the third hash mapping database;

[0132] Summarize the first hash mapping database, the second hash mapping database, and the third hash mapping database to form a hash mapping database.

[0133] Further, the cross-certification module 14 includes the following execution steps:

[0134] Analyze the first detection code and the second verification code to generate the characteristic information of the bottle to be tested, perform a hashing operation on the characteristic information of the bottle to be tested to obtain a first hash value as the first authentication result;

[0135] Analyze the first verification code and the second detection code to generate the characteristic information of the production to be tested, perform a hashing operation on the characteristic information of the production to be tested to obtain a second hash value as the second authentication result;

[0136] Analyze the first verification code and the second verification code to generate the mixed characteristic information to be tested, perform a hashing operation on the mixed characteristic information to be tested to obtain a third hash value as the third authentication result;

[0137] Query in the first hash mapping database, the second hash mapping database, and the third hash mapping database respectively whether the first authentication result, the second authentication result, and the third authentication result are mapped to the same genuine product authentication value;

[0138] When and only when the first authentication result, the second authentication result, and the third authentication result are all mapped to the same genuine product authentication value, determine that the packaging bottle to be inspected is a genuine product and return the traceability information associated with the same genuine product authentication value;

[0139] Otherwise, determine that the packaging bottle to be inspected is a counterfeit product and return empty traceability information.

[0140] Further, the embodiment of the present application further includes a mobile terminal scanning module, and this module includes the following execution steps:

[0141] Use the mobile phone as the scanning device, and scan and obtain the first detection code and the second detection code through the camera of the mobile phone;

[0142] Transmit the first detection code and the second detection code to the cloud server through a dedicated application installed on the mobile phone;

[0143] Wherein, the first database, the second database, and the hash mapping database are all deployed in the cloud server.

[0144] Any step of the above-mentioned method can be stored as computer instructions or programs in an unrestricted computer memory and can be called and recognized by an unrestricted computer processor to implement any method in the embodiment of the present application, and no redundant restrictions are imposed here.

[0145] Furthermore, the first or second as described above may not only represent an order relationship, but may also represent a certain specific concept, and / or refer to the selection of multiple elements individually or in whole. Obviously, those skilled in the art can make various changes and modifications to this application without departing from the scope of this application. Thus, if these modifications and variations of this application fall within the scope of this application and its equivalent technologies, this application is intended to include these changes and variations.

Claims

1. A method for anti-counterfeiting detection and traceability of a packaging bottle, characterized in that, The method includes: Set a first detection code and a second detection code on the bottle body of the packaging bottle. The first detection code represents the first part of the bottle body feature information, and the second detection code represents the first part of the production feature information. The first detection code and the second detection code are presented in the form of two-dimensional codes respectively; Establish a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production feature information, and the second verification code represents the second part of the bottle body feature information; Use a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected, obtain the corresponding first verification code from the first database according to the first detection code, and obtain the corresponding second verification code from the second database according to the second detection code; Obtain a first authentication result according to the first detection code and the second verification code, obtain a second authentication result according to the first verification code and the second detection code, and obtain a third authentication result according to the first verification code and the second verification code; Judge whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine authentication value according to the hash mapping database. When each authentication result points to the same genuine authentication value, determine that the packaging bottle to be inspected is genuine, and return the traceability information of the packaging bottle to be inspected; When any one of the authentication results does not point to the same genuine authentication value, determine that the packaging bottle to be inspected is a counterfeit product, and return that the traceability information is empty; Establishing the first database and the second database includes: Collect the complete bottle body feature information and the complete production feature information of the packaging bottle to be anti-counterfeited; Randomly select a part of the information from the complete bottle body feature information as the first part of the bottle body feature information, generate the first detection code according to the first part of the bottle body feature information, and use the remaining part as the second part of the bottle body feature information, and generate the second verification code according to the second part of the bottle body feature information; Randomly select a part of the information from the complete production feature information as the first part of the production feature information, generate the second detection code according to the first part of the production feature information, and use the remaining part as the second part of the production feature information, and generate the first verification code according to the second part of the production feature information; Establish a mapping relationship between the first detection code and the first verification code, and store it in the first database; Establish a mapping relationship between the second detection code and the second verification code, and store it in the second database.

2. The anti-counterfeiting detection and traceability method of a packaging bottle according to claim 1, characterized in that, The method further includes: Store the complete bottle body feature information and the complete production feature information in the form of lists respectively. Each list element corresponds to a feature information, and obtain the complete bottle body feature information list and the complete production feature information list; Determine the first random selection quantity, and the first random selection quantity is equal to half of the total number of elements in the complete bottle body feature information list; Determine the second random selection quantity, and the second random selection quantity is equal to half of the total number of elements in the complete production feature information list; Generate a first set of random numbers, where the number of the first set of random numbers is equal to the first randomly selected quantity, and the value range of each random number in the first set of random numbers corresponds to the index range of the complete bottle body feature information list; Generate a second set of random numbers, where the number of the second set of random numbers is equal to the second randomly selected quantity, and the value range of each random number in the second set of random numbers corresponds to the index range of the complete production feature information list; Select corresponding elements from the complete bottle body feature information list according to the first set of random numbers to form the first part of the bottle body feature information; Select corresponding elements from the complete production feature information list according to the second set of random numbers to form the first part of the production feature information; The elements in the complete bottle body feature information list that are not selected form the second part of the bottle body feature information; The elements in the complete production feature information list that are not selected form the second part of the production feature information.

3. The anti-counterfeiting detection and traceability method for a packaging bottle according to claim 2, characterized in that, The method further includes: Set the value range of the random perturbation number, and generate a first random perturbation number and a second random perturbation number according to the value range, where the value range includes a preset positive integer and a preset negative integer; Add the first randomly selected quantity and the first random perturbation number to obtain a first adjusted randomly selected quantity; Add the second randomly selected quantity and the second random perturbation number to obtain a second adjusted randomly selected quantity; Generate a first set of random numbers using the first adjusted randomly selected quantity; Generate a second set of random numbers using the second adjusted randomly selected quantity; Wherein, both the first adjusted randomly selected quantity and the second adjusted randomly selected quantity are not less than a preset minimum selection quantity and not greater than the total number of elements in their respective complete feature information lists.

4. The anti-counterfeiting detection and traceability method for a packaging bottle according to claim 1, wherein The method further includes: Set a unique genuine product authentication value for the anti-counterfeiting packaging bottle to be tested; Perform a hash operation on the complete bottle body feature information to obtain a complete bottle body feature hash value, establish a mapping relationship with the genuine product authentication value, and store it in the first hash mapping database; Perform a hash operation on the complete production feature information to obtain a complete production feature hash value, establish a mapping relationship with the genuine product authentication value, and store it in the second hash mapping database; Combine the second part of the bottle body feature information and the second part of the production feature information, perform a hash operation on the combination result to obtain a feature mixed hash value, establish a mapping relationship with the genuine product authentication value, and store it in the third hash mapping database; Summarize the first hash mapping database, the second hash mapping database, and the third hash mapping database to form a hash mapping database.

5. The anti-counterfeiting detection and traceability method for a packaging bottle according to claim 4, characterized in that, Determine whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine product authentication value, including: Parse the first detection code and the second verification code to generate the to-be-tested bottle body feature information, perform a hash operation on the to-be-tested bottle body feature information to obtain a first hash value, which is used as the first authentication result; Parse the first verification code and the second detection code to generate the to-be-tested production feature information, perform a hash operation on the to-be-tested production feature information to obtain a second hash value, which is used as the second authentication result; Analyze the first verification code and the second verification code to generate the to-be-tested mixed feature information, perform a hashing operation on the to-be-tested mixed feature information to obtain a third hash value as the third authentication result; Query in the first hash mapping database, the second hash mapping database, and the third hash mapping database respectively whether the first authentication result, the second authentication result, and the third authentication result have established a mapping relationship with the same genuine product authentication value; When and only when the first authentication result, the second authentication result, and the third authentication result have all established a mapping relationship with the same genuine product authentication value, determine that the to-be-inspected packaging bottle is a genuine product, and return the traceability information associated with the same genuine product authentication value; Otherwise, determine that the to-be-inspected packaging bottle is a counterfeit product, and return empty traceability information.

6. The anti-counterfeiting detection and traceability method for a packaging bottle according to claim 1, wherein, The method further includes: Use a mobile phone as the scanning device, and scan and obtain the first detection code and the second detection code through the camera of the mobile phone; Transmit the first detection code and the second detection code to the cloud server through a dedicated application installed on the mobile phone; Wherein, the first database, the second database, and the hash mapping database are all deployed in the cloud server.

7. An anti-counterfeiting detection and traceability system for a packaging bottle, characterized in that, For implementing the anti-counterfeiting detection and traceability method of a packaging bottle according to any one of claims 1-6, the system includes: A multi-code setting module for setting a first detection code and a second detection code on the bottle body of the packaging bottle. The first detection code represents the first part of the bottle body feature information, and the second detection code represents the first part of the production feature information. The first detection code and the second detection code are presented in the form of two-dimensional codes respectively; A data storage module for establishing a first database and a second database. The first database stores the first detection code and the first verification code of each genuine packaging bottle, and the second database stores the second detection code and the second verification code of each genuine packaging bottle. Among them, the first verification code represents the second part of the production feature information, and the second verification code represents the second part of the bottle body feature information; An information reading module for using a scanning device to scan the first detection code and the second detection code on the to-be-inspected packaging bottle, obtaining the corresponding first verification code from the first database according to the first detection code, and obtaining the corresponding second verification code from the second database according to the second detection code; A cross-authentication module for obtaining a first authentication result according to the first detection code and the second verification code, obtaining a second authentication result according to the first verification code and the second detection code, and obtaining a third authentication result according to the first verification code and the second verification code; A genuine product confirmation module for judging whether the first authentication result, the second authentication result, and the third authentication result all point to the same genuine product authentication value according to the hash mapping database. When each authentication result points to the same genuine product authentication value, determine that the to-be-inspected packaging bottle is a genuine product, and return the traceability information of the to-be-inspected packaging bottle; A fake product identification module, which is used to determine that the packaging bottle to be inspected is a counterfeit product and return that the traceability information is empty when any one of the authentication results does not point to the same genuine product authentication value; The data storage module includes the following execution steps: Collect the complete bottle body feature information and complete production feature information of the packaging bottle to be anti-counterfeited; Randomly select a part of the information from the complete bottle body feature information as the first part of the bottle body feature information, generate the first detection code according to the first part of the bottle body feature information, and use the remaining part as the second part of the bottle body feature information, and generate the second verification code according to the second part of the bottle body feature information; Randomly select a part of the information from the complete production feature information as the first part of the production feature information, generate the second detection code according to the first part of the production feature information, and use the remaining part as the second part of the production feature information, and generate the first verification code according to the second part of the production feature information; Establish a mapping relationship between the first detection code and the first verification code, and store it in the first database; Establish a mapping relationship between the second detection code and the second verification code, and store it in the second database.

Citation Information

Patent Citations

  • Product inner package anti-counterfeiting method and anti-counterfeiting label code thereof

    CN118364840A

  • Product having dual layer identification codes, product traceability and Anti-counterfeit authentication method and apparatus

    US20210004840A1