Anti-counterfeiting detection tracing method and system for packaging bottle
By setting up QR code detection codes representing the bottle body and production characteristics on the packaging bottle, and establishing corresponding databases and multiple authentication mechanisms, the problem of high risk of forgery of packaging bottles and insufficient accuracy of anti-counterfeiting identification is solved, and efficient anti-counterfeiting and traceability functions are achieved.
Patent Information
- Application Number
- CN202411910810.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-24
AI Technical Summary
In the prior art, packaging bottles have high risk of forgery, insufficient accuracy in anti-counterfeiting identification, and inability to achieve effective traceability.
By setting the first detection code and the second detection code on the packaging bottle, it represents the bottle body characteristic information and the production characteristic information, and presents it in the form of a QR code. Establish a first database and a second database to store the detection code and verification code of genuine packaging bottles. Use the scanning device to scan the inspection code of the packaging bottle to be inspected, obtain the corresponding verification code, and judge its authenticity through the multiple cross-authentication mechanism, and return traceability information.
It improves the anti-counterfeiting performance of the packaging bottle, enhances the accuracy and reliability of authenticity identification, and realizes effective traceability of the packaging bottle.
Smart Images

Figure CN119671592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of anti-counterfeiting detection of packaging bottles, and in particular to an anti-counterfeiting detection and tracing method and system for packaging bottles. Background Art
[0002] With the development of social economy and consumer market, the demand for anti-counterfeiting and traceability of packaging bottles has become increasingly prominent. In the prior art, there have been a variety of anti-counterfeiting solutions for packaging bottles, such as adding special patterns such as watermarks, invisible printing, fluorescent markings, etc. on the bottle body, or setting anti-counterfeiting marks, 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 shortcomings. For example, although some anti-counterfeiting measures can prevent packaging bottles from being imitated to a certain extent, there is still a risk of being cracked and bypassed; some anti-counterfeiting technologies are easily interfered by human factors, environmental conditions, etc. when identifying authenticity, resulting in the need to improve the accuracy of authentication; some anti-counterfeiting solutions focus on the identification of product authenticity, but are still lacking in product information traceability. Therefore, there are technical problems in the prior art that the risk of counterfeiting of packaging bottles is high, the accuracy of anti-counterfeiting identification is insufficient, and effective traceability cannot be achieved. Summary of the invention
[0003] The present application provides an anti-counterfeiting detection and tracing method and system for packaging bottles, aiming to solve the technical problems in the prior art of high risk of counterfeiting of packaging bottles, insufficient accuracy of anti-counterfeiting identification, and inability to achieve effective traceability.
[0004] In view of the above problems, the present application provides a method and system for anti-counterfeiting detection and tracing of packaging bottles.
[0005] In a first aspect disclosed in the present application, a method for anti-counterfeiting detection and tracing of packaging bottles is provided, the method comprising: setting a first detection code and a second detection code on the body of the packaging bottle, the first detection code representing a first part of bottle body characteristic information, the second detection code representing a first part of production characteristic information, the first detection code and the second detection code being presented in the form of two-dimensional codes respectively; establishing a first database and a second database, the first database storing the first detection code and the first verification code of each genuine packaging bottle, the second database storing the second detection code and the second verification code of each genuine packaging bottle, wherein the first verification code represents the second part of production characteristic information, and the second verification code represents the second part of bottle body characteristic information; using a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected According to the first detection code, the corresponding first verification code is obtained from the first database, and according to the second detection code, the corresponding second verification code is obtained from the second database; according to the first detection code and the second verification code, a first authentication result is obtained, according to the first verification code and the second detection code, a second authentication result is obtained, and according to the first verification code and the second verification code, a third authentication result is obtained; according to the hash mapping database, it is determined whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value. When all authentication results point to the same authenticity authentication value, it is determined that the packaging bottle to be inspected is authentic, and the traceability information of the packaging bottle to be inspected is returned; when any authentication result does not point to the same authenticity authentication value, it is determined that the packaging bottle to be inspected is a counterfeit product, and the traceability information returned is empty.
[0006] Another aspect disclosed in the present application provides an anti-counterfeiting detection and tracing system for packaging bottles, the system comprising: a multi-code setting module, used to set a first detection code and a second detection code on the body of the packaging bottle, the first detection code represents a first part of the bottle body characteristic information, the second detection code represents a first part of the production characteristic information, and the first detection code and the second detection code are respectively presented in the form of a two-dimensional code; a data storage module, used to 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, wherein 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, used to use a scanning device to scan the first detection code and the second detection code on the packaging bottle to be inspected A code is used to obtain the corresponding first verification code from the first database according to the first detection code, and to obtain the corresponding second verification code from the second database according to the second detection code; a cross-authentication module is used to 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; an authenticity confirmation module is used to determine whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value according to the hash mapping database, and when each authentication result points to the same authenticity authentication value, it is determined that the packaging bottle to be inspected is authentic and the traceability information of the packaging bottle to be inspected is returned; a counterfeit identification module is used to determine that the packaging bottle to be inspected is a counterfeit product when any authentication result does not point to the same authenticity authentication value, and return the traceability information as empty.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: Since the first detection code and the second detection code are set on the body of the packaging bottle, wherein 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, and both detection codes are presented in the form of a two-dimensional code, by encoding different types of characteristic information into two independent detection codes, the complexity and diversity of the anti-counterfeiting mark are improved, and the difficulty of counterfeiting is increased; a first database and a second database are established, wherein the first database stores the first detection code and the first verification code of each authentic packaging bottle, and the first verification code represents the second part of the production characteristic information; the second database stores the second detection code and the second verification code of each authentic packaging bottle, The second verification code represents the second part of the bottle 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 the feature information is directly exposed on the packaging bottle, thereby improving the security and confidentiality of the data; 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 packaging bottle is automatically identified and the information is read, thereby improving the detection efficiency and accuracy; The first authentication result is obtained according to the first detection code and the second verification code, the second authentication result is obtained according to the first verification code and the second detection code, and the 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 fully verified, and the reliability of anti-counterfeiting authentication is effectively improved; the hash mapping database is used to determine whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value. If all authentication results point to the same authenticity value, the packaging bottle to be inspected is determined to be authentic, and the traceability information of the packaging bottle is returned. If any authentication result does not point to the authentic value, the packaging bottle to be inspected is determined to be a counterfeit product, and the returned traceability information is empty. By setting the authenticity authentication value and comparing multiple authentication results with it, the authenticity of the packaging bottle is confirmed, and the confirmation of genuine products and the identification of counterfeits are realized. At the same time, by returning the traceability information, the technical solution of recording and querying the source, flow direction and other information of the packaging bottle is realized, which solves the technical problems in the prior art of high counterfeiting risk of packaging bottles, insufficient accuracy of anti-counterfeiting identification, and inability to achieve effective traceability. By setting multiple complementary detection codes and verification codes for the packaging bottles and performing multiple authentication comparisons, the technical effects of effectively improving anti-counterfeiting performance, accurately identifying authenticity, and achieving reliable traceability are achieved.
[0008] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flow chart of a method for anti-counterfeiting detection and tracing of a packaging bottle is provided for an embodiment of the present application.
[0010] Figure 2 A structural schematic diagram of an anti-counterfeiting detection and tracing system for a packaging bottle is provided for an embodiment of the present application.
[0011] Explanation of the reference numerals: multi-code setting module 11 , data storage module 12 , information reading module 13 , cross-certification module 14 , authenticity confirmation module 15 , counterfeit identification module 16 . DETAILED DESCRIPTION
[0012] The overall idea of the technical solution provided by this application is as follows: The embodiment of the present application provides a method and system for anti-counterfeiting detection and tracing of packaging bottles. By setting multiple complementary and associated feature codes on the packaging bottles and establishing a matching database system and authentication mechanism, a comprehensive, reliable and efficient anti-counterfeiting and tracing technical solution is constructed.
[0013] Specifically, first, the first detection code and the second detection code representing different characteristic information are set on the body of the packaging bottle, and the two-dimensional code technology is used to improve the storage capacity and reading convenience of the anti-counterfeiting mark. At the same time, the first database and the second database are created, and the complete characteristic information is split into two parts, the detection code and the verification code, for storage, to improve the security and confidentiality of the data. During the inspection 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. Hash mapping is used to achieve multiple cross-certifications, and the identity characteristics and production characteristics of the packaging bottle are fully verified. Finally, its authenticity is confirmed, and the reliability of anti-counterfeiting authentication is effectively improved. In addition, by returning traceability information, the source, flow direction and other information of the packaging bottle can be recorded and queried.
[0014] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0015] Embodiment 1, as Figure 1 As shown, the embodiment of the present application provides an anti-counterfeiting detection and tracing method for packaging bottles, the method comprising: S1: a first detection code and a second detection code are set on the body of the packaging bottle, wherein the first detection code represents a first part of bottle body characteristic information, and the second detection code represents a first part of production characteristic information, and the first detection code and the second detection code are respectively presented in the form of a QR code.
[0016] Specifically, first, a detection code for anti-counterfeiting and traceability is set on the 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 characteristic information of the bottle body of the packaging bottle, called the first part of the bottle body characteristic information, which can be one or more combinations of the size, shape, material, color, logo, etc. of the bottle body. The first part of the bottle body characteristic information is converted into a form such as a number or a string 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 more combinations of the production date, batch number, production line number, product number, etc. The first part of the production characteristic information is converted into a form such as a number or a string to generate the second detection code.
[0017] The first detection code and the second detection code are presented on the packaging bottle in the form of a QR code. The QR code has the advantages of large information capacity, fast reading speed, and high reliability, and is suitable for displaying the detection code. The first detection code and the second detection code are set in the same area or different areas of the bottle body. The detection code information is obtained by scanning the QR code for subsequent authenticity identification and information tracing.
[0018] S2: Establish a first database and a second database, wherein the first database stores a first detection code and a first verification code of each authentic packaging bottle, and the second database stores a second detection code and a second verification code of each authentic packaging bottle, wherein 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 characteristic information.
[0019] Specifically, the first database is used to store the first detection code of each genuine packaging bottle and the corresponding first verification code. The first detection code represents a part of the characteristics of the packaging bottle body, 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 may include the production equipment number, raw material supplier information, quality inspection personnel information, etc. The first detection code and the first verification code are stored in the first database in the form of a key-value pair. 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 characteristics of the packaging bottle body, which is the second part of the bottle body characteristic information, including the pattern and texture of the bottle body, etc. Similarly, the second detection code and the second verification code are stored in the second database in the form of a key-value pair.
[0020] By establishing the first database and the second database to store the detection code and verification code of each authentic packaging bottle, the bottle body and production information can be recorded and managed, providing a data basis for subsequent anti-counterfeiting detection and traceability.
[0021] 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.
[0022] Specifically, a scanning device is used to scan the first detection code and the second detection code on the bottle of the packaging bottle to be inspected. The scanning device can be a dedicated authenticity detector with a QR code scanning module, or a general device such as a smart phone or tablet computer with a camera and scanning software.
[0023] After scanning and obtaining the first detection code and the second detection code, the first detection code is used as the search condition to search for the corresponding first verification code in the first database; the second detection code is used as the search condition to search for the corresponding second verification code in the second database. In the process of retrieving the verification code, if the detection code does not exist in the database, the packaging bottle to be inspected is determined to be 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, preparations are made for the subsequent authenticity determination.
[0024] 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.
[0025] Specifically, the first detection code represents a part of the bottle characteristics of the packaging bottle, and the second verification code represents another part of the bottle characteristics of the packaging bottle. The two parts of the bottle characteristics are combined to obtain a composite feature reflecting the identity of the packaging bottle, and the first authentication result is obtained. For example, the first part of the bottle characteristic information of the first detection code and the second part of the bottle characteristic information of the second verification code are spliced to form a composite bottle characteristic, such as taking the first part of the bottle characteristic information as the first half of the composite bottle characteristic, and the second part of the bottle characteristic information as the second half of the composite bottle characteristic, and performing a hash operation on the composite bottle 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. The second authentication result is obtained through the first part of the production characteristic information and the second part of the bottle characteristic information. Similarly, according to the first verification code and the second verification code, the third authentication result is obtained through the composite characteristics and hash operation.
[0026] By authenticating the authenticity of the packaging bottles to be inspected from different dimensions, the three authentication results complement and verify each other, improving the accuracy and reliability of authenticity identification.
[0027] S5: Determine whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value according to the hash mapping database; when all authentication results point to the same authenticity authentication value, determine that the packaging bottle to be inspected is authentic, and return the traceability information of the packaging bottle to be inspected.
[0028] Specifically, a hash mapping database is introduced to establish a mapping relationship between the authenticity authentication value and various feature values. The database pre-stores the unique identification code of each authentic packaging bottle, that is, the authenticity authentication value, and the hash mapping of the authenticity authentication value with the bottle characteristics, production characteristics and bottle production mixed characteristics.
[0029] First, the first authentication result is queried in the hash mapping database. The first authentication result is obtained by hashing the combination of the first part of the bottle feature information of the first detection code and the second part of the bottle feature information of the second verification code. Therefore, the hash value corresponding to the composite bottle feature is compared with the hash value of the authentic bottle feature stored in the hash mapping database. If the match is successful, it means that the first authentication result points to a certain authentic authentication value. Similarly, the second authentication result is queried in the hash mapping database. The second authentication result is obtained by hashing the combination of the first part of the production feature information of the first verification code and the second part of the production feature information of the second detection code. Therefore, the hash value corresponding to the composite production feature is compared with the hash value of the authentic production feature stored in the hash mapping database. If the match is successful, it means that the second authentication result also points to a certain authentic authentication value. At the same time, the third authentication result is queried in the hash mapping database. The third authentication result is obtained by hashing the combination of the second part of the production feature information of the first verification code and the second part of the bottle feature information of the second verification code. Therefore, the hash value corresponding to the mixed feature is compared with the authentic mixed feature hash value stored in the hash mapping database. If the match is successful, it means that the third authentication result also points to a certain authentic authentication value.
[0030] Since the identity of the genuine packaging bottle is unique and consistent, if the packaging bottle to be inspected is indeed genuine, then the three authentication results should point to the same authenticity authentication value. On the contrary, if the three authentication results point to different authenticity authentication values, or some authentication results fail to find a matching authenticity authentication value, it means that the packaging bottle to be inspected is a counterfeit product.
[0031] By using the hash mapping database, the three authentication results are verified and confirmed to determine whether the three authentication results consistently point to the same authenticity authentication value, and the final authenticity conclusion of the packaging bottle to be inspected is obtained. Once the packaging bottle to be inspected is confirmed to be authentic, the traceability information related to the packaging bottle is returned based on the authenticity authentication value to achieve anti-counterfeiting and tracking management of the packaging bottle.
[0032] S6: When any authentication result does not point to the same authentic authentication value, the packaging bottle to be inspected is determined to be a counterfeit product, and the traceability information is returned as empty.
[0033] Specifically, if it is found that the three authentication results obtained do not consistently point to the same authentic authentication value, or some authentication results fail to find a matching authentic authentication value, the bottle to be inspected is determined to be a counterfeit product. When the bottle to be inspected is determined to be a counterfeit product, no traceability information is returned, but an empty traceability information object or a specific empty value tag is used as a substitute to distinguish it from the query result of the authentic bottle, indicating in a non-informative way that the bottle is not authentic and has no credible traceability value.
[0034] Furthermore, the embodiment of the present application also includes: Collect complete bottle characteristic information and complete production characteristic information of the anti-counterfeiting packaging bottle; Randomly select a portion of the complete bottle feature information as the first portion of the bottle feature information, generate the first detection code according to the first portion of the bottle feature information, and use the remaining portion as the second portion of the bottle feature information, and generate the second verification code according to the second portion of the bottle feature information; Randomly select a portion of the complete production feature information as the first portion of production feature information, generate the second detection code according to the first portion of production feature information, and use the remaining portion as the second portion of production feature information, and generate the first verification code according to the second portion of production feature information; Establishing a mapping relationship between the first detection code and the first verification code, and storing them in the first database; A mapping relationship is established between the second detection code and the second verification code, and the codes are stored in the second database.
[0035] In a feasible implementation, for each anti-counterfeiting packaging bottle, first, its complete bottle characteristic information and complete production characteristic information are comprehensively collected. The complete bottle characteristic information includes but is not limited to the physical properties of the bottle such as size, shape, material, color, weight, capacity, surface texture, label design, etc.; the complete production characteristic information includes but is not limited to information related to the production process such as production date, batch number, production line number, production factory, raw material information, quality inspection information, etc. Then, a part of the information is selected from the complete bottle characteristic information by a random algorithm to form the first part of the bottle characteristic information. Random selection increases security, so that the first part of the bottle characteristic information of different packaging bottles has uncertainty and diversity. Subsequently, the first part of the bottle characteristic information is converted into a first detection code through encoding, and the remaining bottle characteristic information constitutes the second part of the bottle characteristic information, and the second verification code is also generated through encoding. The bottle characteristic information is stored in a dispersed manner through information segmentation and encoding, thereby improving the security of anti-counterfeiting. At the same time, the complete production characteristic information is randomly segmented and encoded, and the randomly selected first part of the production characteristic information is encoded as the second detection code, and the remaining second part of the production characteristic information is encoded as the first verification code.
[0036] Afterwards, a data table is created in the first database, with the first detection code as the primary key and the corresponding first verification code as the associated value, to establish a one-to-one correspondence between the two, providing a data basis for subsequent anti-counterfeiting verification. Similarly, a data table is created in the second database to establish a mapping relationship between the second detection code and the second verification code. By storing the detection code and verification code in two independent databases, data security is increased and the risk of data leakage is reduced.
[0037] Through the random segmentation, cross-coding and decentralized storage of the characteristic information of the packaging bottles, a safe and reliable anti-counterfeiting detection and traceability data system has been built, laying the foundation for subsequent authenticity identification and information traceability.
[0038] Furthermore, the embodiment of the present application also includes: The complete bottle characteristic information and the complete production characteristic information are stored in a list form respectively, each list element corresponds to a characteristic information, and a complete bottle characteristic information list and a complete production characteristic information list are obtained; Determine a first randomly selected number, where the first randomly selected number is equal to half of the total number of elements in the complete bottle body characteristic information list; Determining a second randomly selected number, the second randomly selected number being equal to half of the total number of elements in the complete production characteristic information list; Generate a first group of random numbers, the number of the first group of random numbers is equal to the first randomly selected number, and the value range of each random number in the first group of random numbers corresponds to the index range of the complete bottle body feature information list; Generate a second set of random numbers, the number of the second set of random numbers is equal to the second randomly selected number, 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; Selecting corresponding elements from the complete bottle feature information list according to the first group of random numbers to form the first part of the bottle feature information; Select corresponding elements from the complete production feature information list according to the second group of random numbers to form the first part of the production feature information; The elements in the complete bottle feature information list that are not selected constitute the second part of the bottle feature information; The elements in the complete production feature information list that are not selected constitute the second part of the production feature information.
[0039] In a feasible implementation, first, the complete bottle feature information and the complete production feature information are converted into a structured list form. Each independent feature information in the complete bottle feature information is taken as an element in the list, such as bottle height, diameter, weight, etc., to form a complete bottle feature information list; each independent feature information in the complete production feature information is taken as an element in the list, such as production date, batch number, production line number, etc., to form a complete production feature information list. Through the list processing, the foundation is laid for the subsequent random selection, making the feature information easier to manage and operate. In order to ensure the balance of feature information segmentation, the first random selection number and the second random selection number are determined according to the complete bottle feature information list and the complete production feature information list. Both numbers are half of the total number of elements in their respective lists, that is, the first random selection number is equal to half of the total number of elements in the complete bottle feature information list, and the second random selection number is equal to half of the total number of elements in the complete production feature information list. Through the equal segmentation strategy, not only the sufficiency of the selected information is guaranteed, but also the validity of the remaining information is guaranteed, thereby enhancing the security and reliability of anti-counterfeiting.
[0040] Then, two groups of random indexes were created through the random number generation algorithm to obtain the first group of random numbers and the second group of random numbers. Among them, the number of the first group of random numbers is equal to the first random selection number, the number of the second group of random numbers is equal to the second random selection number, and the value range of the random numbers is strictly limited to the index range of the respective feature information lists. Through randomization, the unpredictability of feature information segmentation is increased, and the security level of anti-counterfeiting is improved. Then, using the first group of random numbers as indexes, the corresponding elements are extracted from the complete bottle feature information list to form the first part of the bottle feature information; similarly, the second group of random numbers are used to select elements from the complete production feature information list to form the first part of the production feature information. Afterwards, the bottle feature information elements that are not randomly selected are classified as the second part of the bottle feature information, and the production feature information elements that are not selected are classified as the second part of the production feature information, which provides necessary data support for subsequent cross-validation.
[0041] By accurately, randomly and evenly segmenting the characteristic information of packaging bottles, 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 results of each packaging bottle are unique, which increases the difficulty of counterfeiting.
[0042] Furthermore, the embodiment of the present application also includes: Setting a value range of the random disturbance number, generating a first random disturbance number and a second random disturbance number according to the value range, wherein the value range includes a preset positive integer and a preset negative integer; Adding the first randomly selected number to the first randomly disturbed number to obtain a first adjusted randomly selected number; Adding the second randomly selected number to the second randomly disturbed number to obtain a second adjusted randomly selected number; Generate a first set of random numbers using the first adjusted random selection quantity; Generate a second set of random numbers using the second adjusted random selection quantity; Among them, the first adjusted random selection number and the second adjusted random selection number are not less than a preset minimum selection number, and are not greater than the total number of elements in the corresponding complete feature information lists.
[0043] In a preferred embodiment, first, a range of values including positive integers and negative integers is determined, such as [-3, 3]. Then, a first random perturbation number and a second random perturbation number are generated within this range using a random number generation algorithm, respectively, to adjust the original first random selection number and the second random selection number, further increasing unpredictability. Next, the previously determined first random selection number is added to the generated first random perturbation number to obtain a first adjusted random selection number, so that the number of feature information actually selected fluctuates around the original number, increasing the randomness of the selection process. At the same time, the original second random selection number is added to the second random perturbation number to obtain a second adjusted random selection number, ensuring that the production feature information selection process also has additional randomness.
[0044] Afterwards, the adjusted first random selection number, i.e., the first adjusted random selection number, is used to generate a random array for selecting bottle body characteristic information, thereby increasing the flexibility and unpredictability of characteristic information selection. Similarly, the adjusted second random selection number, i.e., the second adjusted random selection number, is used to generate a random array for selecting production characteristic information, thereby ensuring that the selection process of production characteristic information is also random and unpredictable. At the same time, constraints on the adjusted random selection number are set to ensure the effectiveness and security of the selection process. Specifically, a minimum selection number is set to ensure that even after random perturbations, the number of selected characteristic information can still meet the minimum requirements of anti-counterfeiting needs, and the maximum selection number is limited to not exceed the total number of elements in the original characteristic information list to avoid the number of selections exceeding the valid range due to random perturbations.
[0045] By introducing random perturbation numbers, the randomness and security of feature information selection are further enhanced on the original basis, making the number of feature information selected each time more unpredictable. The effectiveness of the selection process is ensured by setting constraints, thereby improving the security level of the entire anti-counterfeiting detection and traceability, making it more difficult for potential counterfeiters to crack anti-counterfeiting measures by analyzing the selection patterns, providing stronger technical support for the anti-counterfeiting and traceability of packaging bottles.
[0046] Furthermore, the embodiment of the present application also includes: Set a unique authenticity authentication value for the anti-counterfeiting packaging bottle; Performing a hash operation on the complete bottle feature information to obtain a complete bottle feature hash value, establishing a mapping relationship with the authenticity authentication value, and storing it in a first hash mapping database; Performing a hash operation on the complete production feature information to obtain a complete production feature hash value, establishing a mapping relationship with the authenticity authentication value, and storing it in a second hash mapping database; Combine the second part of the bottle characteristic information and the second part of the production characteristic information, perform a hash operation on the combination result to obtain a characteristic mixed hash value, establish a mapping relationship with the authenticity authentication value, and store it in a third hash mapping database; The first hash mapping database, the second hash mapping database, and the third hash mapping database are aggregated to form a hash mapping database.
[0047] In a feasible implementation, a unique identifier is assigned to each packaging bottle to be protected from counterfeiting as the authenticity authentication value to ensure its uniqueness. Then, a hash operation is performed on the complete bottle feature information of the packaging bottle. The hash operation can use commonly used hash algorithms such as MD5 and SHA-256 to convert the variable-length bottle feature information into a fixed-length hash value to obtain a complete bottle feature hash value. Then, a mapping relationship is established between the obtained complete bottle feature hash value and the set authenticity authentication value, and this mapping relationship is stored in the first hash mapping database. Similarly, a hash operation is performed on the complete production feature information of the packaging bottle to obtain a complete production feature hash value, and a mapping relationship is established between the complete production feature hash value and the authenticity authentication value, and stored in the second hash mapping database.
[0048] At the same time, the unselected second bottle characteristic information and the second production characteristic information are combined, and the combined result is hashed to obtain a characteristic mixed hash value. Then, a mapping relationship is established between the characteristic mixed hash value and the authenticity authentication value, and stored in a third hash mapping database. The anti-counterfeiting security is further enhanced by mixed hashing, making it more difficult for counterfeiters to crack the anti-counterfeiting means by copying a single characteristic information. Subsequently, the three independent hash mapping databases, namely the first hash mapping database, the second hash mapping database, and the third hash mapping database, are integrated to form a comprehensive hash mapping database.
[0049] Furthermore, the embodiment of the present application also includes: Parsing the first detection code and the second verification code to generate feature information of the bottle to be tested, performing a hash operation on the feature information of the bottle to be tested, and obtaining a first hash value as a first authentication result; Parsing the first verification code and the second detection code to generate production feature information to be tested, performing a hash operation on the production feature information to be tested, and obtaining a second hash value as a second authentication result; Parsing the first verification code and the second verification code to generate mixed feature information to be tested, performing a hash operation on the mixed feature information to be tested, and obtaining a third hash value as a third authentication result; Querying 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 authenticity authentication value; If and only if the first authentication result, the second authentication result and the third authentication result are all mapped to the same authenticity authentication value, the packaging bottle to be inspected is determined to be authentic, and traceability information associated with the same authenticity authentication value is returned; Otherwise, the packaging bottle to be inspected is determined to be a counterfeit product, and empty traceability information is returned.
[0050] In a feasible implementation, highly reliable authenticity identification is achieved by comparing the hash values of multiple feature information. By parsing the obtained detection code and verification code, the bottle feature information, production feature information and mixed feature information to be tested are generated, and hash operations are performed on these three types of information respectively to obtain three hash values as authentication results.
[0051] First, parse the first detection code and the second verification code, combine them to generate the complete bottle feature information to be tested, and use the same hash algorithm as that used to generate the complete bottle feature hash value based on the complete bottle feature information to perform a hash operation to obtain a first hash value as the first authentication result. Similarly, parse the first verification code and the second detection code, combine them to generate the complete production feature information to be tested, and use the same hash algorithm as that used to generate the complete production feature hash value based on the complete production feature information to perform a hash operation to obtain a 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 tested, and use the same hash algorithm as that used to generate the feature mixed hash value to perform a hash operation to obtain a third hash value as the third authentication result. These three hash values represent the bottle features, production features, and mixed features of the packaging bottle to be tested, respectively.
[0052] Then, the first hash value, the second hash value, and the third hash value are queried in three hash mapping databases respectively to find the authenticity authentication values corresponding to these three hash values. The reliability and security of verification are significantly increased through the multi-database query mechanism. Only when the three authentication results all point to the same authenticity authentication value, the packaging bottle to be inspected is determined to be authentic, and the relevant traceability information is returned. If any of the above authentication results fails to point to the same authenticity authentication value as other results, or a certain authentication result does not find a match in the corresponding hash mapping database, the packaging bottle to be inspected is determined to be a counterfeit product, and empty traceability information is returned.
[0053] By taking into account bottle characteristics, production characteristics and mixed characteristics at the same time, it provides comprehensive verification and effectively identifies counterfeit products with multiple verification mechanisms, providing a highly reliable solution for anti-counterfeiting detection and traceability of packaging bottles, and improving the overall performance and reliability of anti-counterfeiting.
[0054] Furthermore, the embodiment of the present application also includes: Using a mobile phone as the scanning device, scanning and acquiring the first detection code and the second detection code through the camera of the mobile phone; transmitting the first detection code and the second detection code to a cloud server via a dedicated application installed on the mobile phone; Wherein, the first database, the second database and the hash map database are all deployed in the cloud server.
[0055] In a preferred embodiment, first, a mobile phone is used as a 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 code 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 in the cloud, thereby achieving data isolation, reducing the risk of data leakage, and facilitating centralized management and maintenance.
[0056] 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 completing all processing, the cloud server 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 cloud computing method has extremely high security, encapsulating sensitive data and processing logic in the cloud, greatly reducing the risk of data leakage and tampering. At the same time, the client's functions are simplified, and the mobile application is only responsible for scanning and displaying the results, reducing the burden and security risks of the terminal device.
[0057] Through the combination of terminal scanning and cloud processing, the data transmission links are minimized and the core operations are encapsulated in the cloud, providing a highly secure solution for the anti-counterfeiting and traceability of packaging bottles. It can effectively respond to security challenges and has good scalability.
[0058] In summary, the anti-counterfeiting detection and tracing method for packaging bottles provided in the embodiments of the present application has the following technical effects: A first detection code and a second detection code are set on the 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. By setting two different detection codes on the packaging bottle, the complete characteristic information is divided into two parts for storage and identification, thereby improving the complexity and security of the anti-counterfeiting mark; the use of the two-dimensional code form facilitates the rapid reading and automatic processing of information. A first database and a second database are established. 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, wherein 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. By establishing two independent databases and splitting the complete characteristic information into two parts, the detection code and the verification code, for storage, it is avoided that all characteristic information is directly exposed on the packaging bottle, thereby 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. The scanning device automatically reads the detection code on the packaging bottle, and can quickly and accurately obtain anti-counterfeiting feature information to improve the detection efficiency. At the same time, the verification code corresponding to the detection code is extracted from the database to provide necessary data support for subsequent cross-certification. According to the first detection code and the second verification code, the first authentication result is obtained, according to the first verification code and the second detection code, the second authentication result is obtained, and according to the first verification code and the second verification code, the third authentication result is obtained. 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, and its authenticity is comprehensively evaluated, which effectively improves the reliability of anti-counterfeiting authentication. According to the hash mapping database, it is determined whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value. When all authentication results point to the same authenticity authentication value, the packaging bottle to be inspected is determined to be authentic, and the traceability information of the packaging bottle to be inspected is returned. By introducing the authenticity authentication value and comparing multiple authentication results with it, the authenticity of the packaging bottle is confirmed. At the same time, by returning the traceability information, the source and flow of the packaging bottle can be recorded and queried, which is conducive to the identification and traceability of counterfeit products. When any authentication result does not point to the same authenticity authentication value, the packaging bottle to be inspected is determined to be a counterfeit product, and the traceability information is returned as empty, which minimizes the risk of missed detection of counterfeit products, improves the anti-counterfeiting effect, and effectively improves the anti-counterfeiting performance, accurately identifies the authenticity, and reliably traces.
[0059] Embodiment 2 is based on the same inventive concept as the anti-counterfeiting detection and tracing method of a packaging bottle in the above embodiment. Figure 2As shown, the embodiment of the present application provides an anti-counterfeiting detection and tracing system for packaging bottles, the system comprising: The multi-code setting module 11 is used to set a first detection code and a second detection code on the bottle of the packaging bottle, wherein the first detection code represents a first part of the bottle characteristic information, and the second detection code represents a first part of the production characteristic information, and the first detection code and the second detection code are respectively presented in the form of a two-dimensional code; The data storage module 12 is used to establish a first database and a second database, wherein the first database stores a first detection code and a first verification code of each genuine packaging bottle, and the second database stores a second detection code and a second verification code of each genuine packaging bottle, wherein 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 characteristic information; An information reading module 13 is used to 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; A cross-authentication module 14, configured to 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; The authenticity confirmation module 15 is used to determine whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value according to the hash mapping database. When all the authentication results point to the same authenticity authentication value, it is determined that the packaging bottle to be inspected is authentic, and the traceability information of the packaging bottle to be inspected is returned; The counterfeit identification module 16 is used to determine that the packaging bottle to be inspected is a counterfeit product when any authentication result does not point to the same genuine authentication value, and return the traceability information as empty.
[0060] Furthermore, the data storage module 12 includes the following execution steps: Collect complete bottle characteristic information and complete production characteristic information of the anti-counterfeiting packaging bottle; Randomly select a portion of the complete bottle feature information as the first portion of the bottle feature information, generate the first detection code according to the first portion of the bottle feature information, and use the remaining portion as the second portion of the bottle feature information, and generate the second verification code according to the second portion of the bottle feature information; Randomly select a portion of the complete production feature information as the first portion of production feature information, generate the second detection code according to the first portion of production feature information, and use the remaining portion as the second portion of production feature information, and generate the first verification code according to the second portion of production feature information; Establishing a mapping relationship between the first detection code and the first verification code, and storing them in the first database; A mapping relationship is established between the second detection code and the second verification code, and the codes are stored in the second database.
[0061] Furthermore, the data storage module 12 further includes the following execution steps: The complete bottle characteristic information and the complete production characteristic information are stored in a list form respectively, each list element corresponds to a characteristic information, and a complete bottle characteristic information list and a complete production characteristic information list are obtained; Determine a first randomly selected number, where the first randomly selected number is equal to half of the total number of elements in the complete bottle body characteristic information list; Determining a second randomly selected number, the second randomly selected number being equal to half of the total number of elements in the complete production characteristic information list; Generate a first group of random numbers, the number of the first group of random numbers is equal to the first randomly selected number, and the value range of each random number in the first group of random numbers corresponds to the index range of the complete bottle body feature information list; Generate a second set of random numbers, the number of the second set of random numbers is equal to the second randomly selected number, 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; Selecting corresponding elements from the complete bottle feature information list according to the first group of random numbers to form the first part of the bottle feature information; Select corresponding elements from the complete production feature information list according to the second group of random numbers to form the first part of the production feature information; The elements in the complete bottle feature information list that are not selected constitute the second part of the bottle feature information; The elements in the complete production feature information list that are not selected constitute the second part of the production feature information.
[0062] Furthermore, the data storage module 12 further includes the following execution steps: Setting a value range of the random disturbance number, generating a first random disturbance number and a second random disturbance number according to the value range, wherein the value range includes a preset positive integer and a preset negative integer; Adding the first randomly selected number to the first randomly disturbed number to obtain a first adjusted randomly selected number; Adding the second randomly selected number to the second randomly disturbed number to obtain a second adjusted randomly selected number; Generate a first set of random numbers using the first adjusted random selection quantity; Generate a second set of random numbers using the second adjusted random selection quantity; Among them, the first adjusted random selection number and the second adjusted random selection number are not less than a preset minimum selection number, and are not greater than the total number of elements in the corresponding complete feature information lists.
[0063] Furthermore, the embodiment of the present application also includes a hash mapping module, which includes the following execution steps: Set a unique authenticity authentication value for the anti-counterfeiting packaging bottle; Performing a hash operation on the complete bottle feature information to obtain a complete bottle feature hash value, establishing a mapping relationship with the authenticity authentication value, and storing it in a first hash mapping database; Performing a hash operation on the complete production feature information to obtain a complete production feature hash value, establishing a mapping relationship with the authenticity authentication value, and storing it in a second hash mapping database; Combine the second part of the bottle characteristic information and the second part of the production characteristic information, perform a hash operation on the combination result to obtain a characteristic mixed hash value, establish a mapping relationship with the authenticity authentication value, and store it in a third hash mapping database; The first hash mapping database, the second hash mapping database, and the third hash mapping database are aggregated to form a hash mapping database.
[0064] Furthermore, the cross-certification module 14 includes the following execution steps: Parsing the first detection code and the second verification code to generate feature information of the bottle to be tested, performing a hash operation on the feature information of the bottle to be tested, and obtaining a first hash value as a first authentication result; Parsing the first verification code and the second detection code to generate production feature information to be tested, performing a hash operation on the production feature information to be tested, and obtaining a second hash value as a second authentication result; Parsing the first verification code and the second verification code to generate mixed feature information to be tested, performing a hash operation on the mixed feature information to be tested, and obtaining a third hash value as a third authentication result; Querying 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 authenticity authentication value; If and only if the first authentication result, the second authentication result and the third authentication result are all mapped to the same authenticity authentication value, the packaging bottle to be inspected is determined to be authentic, and traceability information associated with the same authenticity authentication value is returned; Otherwise, the packaging bottle to be inspected is determined to be a counterfeit product, and empty traceability information is returned.
[0065] Furthermore, the embodiment of the present application also includes a mobile terminal scanning module, which includes the following execution steps: Using a mobile phone as the scanning device, scanning and acquiring the first detection code and the second detection code through the camera of the mobile phone; transmitting the first detection code and the second detection code to a cloud server via a dedicated application installed on the mobile phone; Wherein, the first database, the second database and the hash map database are all deployed in the cloud server.
[0066] Any step of the method described above can be stored as a computer instruction or program in an unlimited computer memory, and can be called and recognized by an unlimited computer processor to implement any method in the embodiments of the present application, without any unnecessary restrictions.
[0067] Furthermore, the first or second mentioned above may not only represent an order relationship, but may also represent a specific concept, and / or refer to multiple elements that can be selected individually or in full. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these changes and variations.
Claims
1. A method for anti-counterfeiting detection and tracing of packaging bottles, characterized in that: The method comprises: A first detection code and a second detection code are set on the bottle of the packaging bottle, wherein the first detection code represents the first part of the bottle characteristic information, and the second detection code represents the first part of the production characteristic information, and the first detection code and the second detection code are respectively presented in the form of a QR code; Establishing a first database and a second database, wherein the first database stores a first detection code and a first verification code of each genuine packaging bottle, and the second database stores a second detection code and a second verification code of each genuine packaging bottle, wherein 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 characteristic 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; Determine whether the first authentication result, the second authentication result, and the third authentication result all point to the same authenticity authentication value according to the hash mapping database; when all authentication results point to the same authenticity authentication value, determine that the packaging bottle to be inspected is authentic, and return the traceability information of the packaging bottle to be inspected; When any authentication result does not point to the same authentic authentication value, the packaging bottle to be inspected is determined to be a counterfeit product, and the traceability information is returned as empty.
2. The anti-counterfeiting detection and tracing method of packaging bottles according to claim 1, characterized in that: Establishing a first database and a second database includes: Collect complete bottle characteristic information and complete production characteristic information of the anti-counterfeiting packaging bottle; Randomly select a portion of the complete bottle feature information as the first portion of the bottle feature information, generate the first detection code according to the first portion of the bottle feature information, and use the remaining portion as the second portion of the bottle feature information, and generate the second verification code according to the second portion of the bottle feature information; Randomly select a portion of the complete production feature information as the first portion of production feature information, generate the second detection code according to the first portion of production feature information, and use the remaining portion as the second portion of production feature information, and generate the first verification code according to the second portion of production feature information; Establishing a mapping relationship between the first detection code and the first verification code, and storing them in the first database; A mapping relationship is established between the second detection code and the second verification code, and the codes are stored in the second database.
3. The anti-counterfeiting detection and tracing method of packaging bottles according to claim 2, characterized in that: The method further comprises: The complete bottle characteristic information and the complete production characteristic information are stored in a list form respectively, each list element corresponds to a characteristic information, and a complete bottle characteristic information list and a complete production characteristic information list are obtained; Determine a first randomly selected number, where the first randomly selected number is equal to half of the total number of elements in the complete bottle body characteristic information list; Determining a second randomly selected number, the second randomly selected number being equal to half of the total number of elements in the complete production characteristic information list; Generate a first group of random numbers, the number of the first group of random numbers is equal to the first randomly selected number, and the value range of each random number in the first group of random numbers corresponds to the index range of the complete bottle body feature information list; Generate a second set of random numbers, the number of the second set of random numbers is equal to the second randomly selected number, 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; Selecting corresponding elements from the complete bottle feature information list according to the first group of random numbers to form the first part of the bottle feature information; Select corresponding elements from the complete production feature information list according to the second group of random numbers to form the first part of the production feature information; The elements in the complete bottle feature information list that are not selected constitute the second part of the bottle feature information; The elements in the complete production feature information list that are not selected constitute the second part of the production feature information.
4. The anti-counterfeiting detection and tracing method of packaging bottles according to claim 3, characterized in that: The method further comprises: Setting a value range of the random disturbance number, generating a first random disturbance number and a second random disturbance number according to the value range, wherein the value range includes a preset positive integer and a preset negative integer; Adding the first randomly selected number to the first randomly disturbed number to obtain a first adjusted randomly selected number; Adding the second randomly selected number to the second randomly disturbed number to obtain a second adjusted randomly selected number; Generate a first set of random numbers using the first adjusted random selection quantity; Generate a second set of random numbers using the second adjusted random selection quantity; Among them, the first adjusted random selection number and the second adjusted random selection number are not less than a preset minimum selection number, and are not greater than the total number of elements in the corresponding complete feature information lists.
5. The anti-counterfeiting detection and tracing method of a packaging bottle according to claim 2, characterized in that: The method further comprises: Set a unique authenticity authentication value for the anti-counterfeiting packaging bottle; Performing a hash operation on the complete bottle feature information to obtain a complete bottle feature hash value, establishing a mapping relationship between the complete bottle feature hash value and the authenticity authentication value, and storing the hash value in a first hash mapping database; Performing a hash operation on the complete production feature information to obtain a complete production feature hash value, establishing a mapping relationship between the complete production feature hash value and the authenticity authentication value, and storing the result in a second hash mapping database; Combine the second part of the bottle characteristic information and the second part of the production characteristic information, perform a hash operation on the combination result to obtain a characteristic mixed hash value, establish a mapping relationship with the authenticity authentication value, and store it in a third hash mapping database; The first hash mapping database, the second hash mapping database, and the third hash mapping database are aggregated to form a hash mapping database.
6. The anti-counterfeiting detection and tracing method of packaging bottles according to claim 5, characterized in that: Determining whether the first authentication result, the second authentication result, and the third authentication result all point to the same authenticity authentication value includes: Parsing the first detection code and the second verification code to generate feature information of the bottle to be tested, performing a hash operation on the feature information of the bottle to be tested, and obtaining a first hash value as a first authentication result; Parsing the first verification code and the second detection code to generate production feature information to be tested, performing a hash operation on the production feature information to be tested, and obtaining a second hash value as a second authentication result; Parsing the first verification code and the second verification code to generate mixed feature information to be tested, performing a hash operation on the mixed feature information to be tested, and obtaining a third hash value as a third authentication result; Querying 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 authenticity authentication value; If and only if the first authentication result, the second authentication result and the third authentication result are all mapped to the same authenticity authentication value, the packaging bottle to be inspected is determined to be authentic, and traceability information associated with the same authenticity authentication value is returned; Otherwise, the packaging bottle to be inspected is determined to be a counterfeit product, and empty traceability information is returned.
7. The anti-counterfeiting detection and tracing method of packaging bottles according to claim 1, characterized in that: The method further comprises: Using a mobile phone as the scanning device, scanning and acquiring the first detection code and the second detection code through the camera of the mobile phone; transmitting the first detection code and the second detection code to a cloud server via a dedicated application installed on the mobile phone; Wherein, the first database, the second database and the hash map database are all deployed in the cloud server.
8. An anti-counterfeiting detection and tracing system for packaging bottles, characterized in that: A method for anti-counterfeiting detection and tracing of a packaging bottle according to any one of claims 1 to 7, the system comprising: A multi-code setting module, the multi-code setting module is used to set a first detection code and a second detection code on the bottle of the packaging bottle, the first detection code represents a first part of the bottle characteristic information, the second detection code represents a first part of the production characteristic information, and the first detection code and the second detection code are respectively presented in the form of a two-dimensional code; A data storage module, the data storage module is used to establish a first database and a second database, the first database stores a first detection code and a first verification code of each genuine packaging bottle, and the second database stores a second detection code and a second verification code of each genuine packaging bottle, wherein 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 characteristic information; An information reading module, the information reading module is used to 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; A cross-authentication module, the cross-authentication module is used to 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; An authenticity confirmation module, the authenticity confirmation module is used to determine whether the first authentication result, the second authentication result and the third authentication result all point to the same authenticity authentication value according to the hash mapping database, and when each authentication result points to the same authenticity authentication value, determine that the packaging bottle to be inspected is authentic, and return the traceability information of the packaging bottle to be inspected; The counterfeit identification module is used to determine that the packaging bottle to be inspected is a counterfeit product when any authentication result does not point to the same genuine authentication value, and return the traceability information as empty.
Citation Information
Patent Citations
Random texture anti-fake product, anti-fake method and mobile phone distinguishing method
CN101577069A
Anti-counterfeiting method
CN102982461A
Identity-based product tracing system and method
CN104680392A
Anti-counterfeiting verification method, device, apparatus and system based on two-dimensional code
CN111951026A
Anti-counterfeiting verification method and device and electronic equipment
CN115511030A