Anti-counterfeiting traceability code generation method, anti-counterfeiting traceability method and related system
By generating and printing anti-counterfeiting traceability codes on commodities, the problem of circulation of counterfeit and shoddy commodities and merchant production transparency is solved, commodity authenticity verification and supervision are realized, and consumer safety and confidence are improved.
Patent Information
- Application Number
- CN202010952489.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-11
AI Technical Summary
Existing technology is difficult to effectively prevent the production and sale of counterfeit goods, which threatens consumer health. It also lacks transparency in the production process of merchants, making it difficult to supervise and verify the authenticity of goods.
By generating anti-counterfeiting traceability codes, the terminal and the backend server cooperate to capture product-related multimedia images and generate QR codes, passwords and detailed information. Combined with geographical location and time information, internal and external codes are generated and printed on the products and packaging. , consumers can check the traceability information to verify the authenticity of the product after scanning.
It achieves transparent supervision of merchants’ production processes, ensures that consumers can understand the true condition of goods, prevents the circulation of counterfeit and inferior goods, and improves product safety and consumer confidence.
Smart Images

Figure CN112085511B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of anti-counterfeiting and traceability technology, and in particular to a method for generating an anti-counterfeiting and traceability code, an anti-counterfeiting and traceability method and a related system. Background Art
[0002] With the continuous improvement of production levels, various commodities emerge in the market.
[0003] However, some unscrupulous merchants produce counterfeit goods to make profits and pass them off as regular goods. If consumers buy these counterfeit goods, it may have adverse effects on their health, ranging from discomfort to illness to death. Therefore, if the merchant's production process can be made public and transparent, it will not only help to supervise the merchant's production process, but also make it easier for consumers to understand the true situation of the purchased goods. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a method for generating an anti-counterfeiting traceability code, an anti-counterfeiting traceability method and a related system to make the process of merchant production of goods public and transparent, which is conducive to supervising the merchant's production process of goods and facilitating consumers to understand the true situation of the purchased goods.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] On the one hand, an embodiment of the present invention provides a method for generating an anti-counterfeiting traceability code, the method comprising:
[0007] During the operation of the application APP, the terminal obtains a multimedia image related to the product taken by the authenticated user, and generates a QR code, a secret code and multimedia image details corresponding to the multimedia image, and the QR code is set on the multimedia image as a watermark;
[0008] The backend server associates the corresponding two-dimensional code, secret code and multimedia image details with the authenticated multimedia image in the pre-established traceability seal set corresponding to the product;
[0009] The backend server associates the traceability print set with a batch code of the commodity;
[0010] The backend server obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code and binds them to the batch code, and the inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code;
[0011] The inner code is used to be printed inside the product, and the outer code is used to be printed on the outer packaging of the product. The inner code and the outer code are strings pre-generated based on preset rules, and consist of a head with an identifier and a tail with a distinguishing feature.
[0012] Optionally, the terminal obtains a multimedia image related to a commodity photographed by the authenticated user, and generates a QR code, a secret code, and multimedia image detail information corresponding to the multimedia image, including:
[0013] When the authenticated user triggers a shooting operation, the terminal obtains geographical location information of the shooting location related to the product, the shot multimedia image information, and the user information of the authenticated user;
[0014] Upload the user information to the background server and initiate a timing request, so that the background server generates a timing key based on the user information, the current timing code of the application APP and the actual shooting time using an irreversible encryption algorithm, and feeds it back to the terminal;
[0015] The terminal generates a QR code using the timing key, the geographical location information of the shooting location, the real shooting time, the user information and the shot multimedia image information;
[0016] The terminal selects the coordinates of the marked pixel points and the corresponding RGB color values in the multimedia image information to generate a secret code;
[0017] The terminal generates a multimedia image and multimedia image detail information based on the multimedia image information, wherein the multimedia image detail information includes at least a file name, a file storage size, geographical location information of the shooting location, and outline information of the multimedia image;
[0018] The terminal associates the multimedia image with the authentication information consisting of the two-dimensional code and the secret code, and sets the two-dimensional code, the geographical location information of the shooting location and the real shooting time as a watermark on the multimedia image.
[0019] Optionally, after the terminal acquires the multimedia image related to the commodity photographed by the authenticated user, the method further includes:
[0020] Acquire article information corresponding to the multimedia image input by the authenticated user, and associate the article information with the multimedia image;
[0021] The backend server associates the two-dimensional code, the secret code and the multimedia image detailed information with the authenticated multimedia image to a pre-established traceability seal set corresponding to the commodity, including:
[0022] The backend server associates the two-dimensional code, the secret code and the multimedia image details information with the authenticated multimedia image, and the article information associated with the multimedia image, in a pre-established traceability seal set corresponding to the commodity.
[0023] Optionally, the backend server associates the traceability print set with a batch code of the commodity, including:
[0024] The backend server obtains an association request sent by a user, wherein the association request includes a batch code of the commodity;
[0025] The backend server obtains a traceability seal set corresponding to the commodity, and associates the batch code with the traceability seal set.
[0026] On the other hand, an embodiment of the present invention provides an anti-counterfeiting traceability method, which performs anti-counterfeiting traceability based on the anti-counterfeiting traceability code generated by the anti-counterfeiting traceability code generation method provided by the above embodiment of the present invention, and the method includes:
[0027] The terminal scans the anti-counterfeiting traceability code and sends a query request to the backend server, wherein the query request includes the anti-counterfeiting traceability code;
[0028] The backend server obtains a batch code corresponding to the anti-counterfeiting traceability code based on the query request;
[0029] The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal;
[0030] The terminal displays the traceability print set and the batch code.
[0031] Optionally, the method further includes:
[0032] The backend server records the number of times the product is scanned for authenticity inquiry based on the inquiry request;
[0033] The backend server obtains a traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal, including:
[0034] The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set, the scan code query times and the batch code to the terminal;
[0035] The terminal displays the traceability print set and the batch code, including:
[0036] The terminal displays the traceability print set, the scan code query times and the batch code.
[0037] On the other hand, an embodiment of the present invention provides a system for generating an anti-counterfeiting traceability code, the system comprising:
[0038] The first terminal is used to run the application APP, and during the operation of the application APP, obtain a multimedia image related to the commodity taken by the authenticated user, generate a QR code, a secret code and detailed information of the multimedia image corresponding to the multimedia image, and upload the multimedia image, the QR code, the secret code and detailed information of the multimedia image corresponding to the multimedia image to a backend server, and the QR code is set on the multimedia image as a watermark;
[0039] A database for storing a pre-established traceability print set corresponding to the commodity;
[0040] The backend server is used to associate the corresponding two-dimensional code, secret code and multimedia image detailed information with the authenticated multimedia image to a pre-established traceability seal set corresponding to the commodity; associate the traceability seal set with a batch code of the commodity; based on the quantity of commodities in the batch corresponding to the batch code, obtain the same number of inner codes and outer codes to bind with the batch code, and the inner code and outer code bound with the batch code constitute an anti-counterfeiting traceability code, wherein the inner code is used to be printed on the inside of the commodity, and the outer code is used to be printed on the outer packaging of the commodity, and the inner code and outer code are strings pre-generated based on preset rules, and are composed of a head with an identification and a tail with a distinguishing degree.
[0041] Optionally, the first terminal is further configured to, after acquiring the multimedia image related to the commodity photographed by the authenticated user, acquire article information corresponding to the multimedia image input by the authenticated user, and associate the article information with the multimedia image;
[0042] The backend server is used to associate the multimedia image whose detailed information of the QR code, secret code and multimedia image has been authenticated with the pre-established traceability seal set corresponding to the commodity, specifically to associate the multimedia image whose detailed information of the QR code, secret code and multimedia image has been authenticated, and the article information associated with the multimedia image with the pre-established traceability seal set corresponding to the commodity.
[0043] On the other hand, an embodiment of the present invention provides an anti-counterfeiting traceability system, the system comprising:
[0044] The system for generating the anti-counterfeiting traceability code and the second terminal provided by the above-mentioned embodiment of the present invention;
[0045] The second terminal is used to scan the anti-counterfeiting traceability code generated by the anti-counterfeiting traceability code generation system, and send a query request to a backend server in the anti-counterfeiting traceability code generation system, wherein the query request includes the anti-counterfeiting traceability code;
[0046] The backend server is used to obtain the batch code corresponding to the anti-counterfeiting traceability code based on the query request; obtain the traceability seal set associated with the batch code, and feed back the traceability seal set and the batch code to the second terminal;
[0047] The second terminal is used to display the traceability print set and the batch code.
[0048] Optionally, the backend server is further configured to record the number of times the product is scanned to check its authenticity based on the query request; obtain a traceability seal set associated with the batch code, and feed back the traceability seal set, the number of times the product is scanned to check its authenticity, and the batch code to the second terminal;
[0049] The second terminal is also used to display the traceability print set, the code scanning query times and the batch code.
[0050] Based on the anti-counterfeiting traceability code generation method, anti-counterfeiting traceability method and related system provided by the above-mentioned embodiment of the present invention, during the operation of the application APP, the terminal obtains the multimedia image related to the commodity taken by the authenticated user, and generates the QR code, secret code and multimedia image details of the corresponding multimedia image; the backend server associates the corresponding QR code, secret code and multimedia image details with the pre-established traceability seal set of the corresponding commodity through the authenticated multimedia image, associates the traceability seal set with a batch code of the commodity, obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code, and binds them to the batch code. The inner code and outer code bound to the batch code constitute the anti-counterfeiting traceability code. The terminal scans the anti-counterfeiting traceability code and sends a query request to the backend server; the backend server obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request, obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal. In this solution, real image information related to the product is obtained based on the running APP, and is encrypted in batches to obtain an anti-counterfeiting traceability code composed of an inner code and an outer code, so that consumers can obtain real information about the product when scanning the inner code printed on the product and / or scanning the outer code printed on the outer packaging, which is conducive to making the merchant's product production process public and transparent, realizing the supervision of the merchant's product production process, and at the same time making it easier for consumers to understand the true situation of the purchased goods. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0052] Figure 1 An architecture diagram of an anti-counterfeiting and traceability application system provided by an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of a flow chart of a method for generating an anti-counterfeiting traceability code provided by an embodiment of the present invention;
[0054] Figure 3 A relationship diagram of a batch code of a commodity provided by an embodiment of the present invention and the internal code and external code of the commodity;
[0055] Figure 4 A schematic diagram of a flow chart of a method for generating an anti-counterfeiting traceability code provided by another embodiment of the present invention;
[0056] Figure 5 A schematic diagram of a process flow of an anti-counterfeiting and traceability method provided by an embodiment of the present invention;
[0057] Figure 6 A schematic diagram of a flow chart of an anti-counterfeiting and traceability method provided by another embodiment of the present invention;
[0058] Figure 7 A structural block diagram of a system for generating an anti-counterfeiting traceability code provided by an embodiment of the present invention;
[0059] Figure 8 A structural block diagram of an anti-counterfeiting and traceability system provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0062] As can be seen from the background technology, if consumers buy fake and inferior goods produced by illegal merchants, it may have adverse effects on consumers' health, causing discomfort or illness at the least, or even death at the most. Therefore, if the process of merchants producing goods can be made public and transparent, it will not only help to supervise the process of merchants producing goods, but also help consumers understand the true situation of the purchased goods.
[0063] like Figure 1 FIG. 2 is a diagram showing an architecture of an anti-counterfeiting and traceability application system provided by an embodiment of the present invention. The architecture includes: multiple terminals, a backend server 20 and a database 30 .
[0064] The multiple terminals are optional and may be smart phones with video, photo or scanning functions. The terminal held by the merchant is the first terminal 10 , and the terminal held by the consumer is the second terminal 40 .
[0065] The process of realizing anti-counterfeiting traceability based on this system architecture includes:
[0066] The merchant runs the application APP through the first terminal 10. The application APP has functions such as shooting and uploading to assist in generating the anti-counterfeiting traceability code. Specifically, the merchant uses the first terminal 10 to shoot multimedia images related to the product in the scenario where the application APP is running, generates a QR code, a secret code and multimedia image details corresponding to the multimedia image, and uploads them to the backend server 20.
[0067] The backend server 20 associates the corresponding two-dimensional code, secret code and multimedia image details with the traceability seal of the corresponding product through the authenticated multimedia image.
[0068] The traceability print set is specifically stored in the database 30 .
[0069] The backend server 20 associates the traceability print set with a batch code of the product, and based on the number of products in the batch corresponding to the batch code, obtains the same number of inner codes and outer codes to bind to the batch code. The inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code. The inner code is used to be printed on the inside of the product, and the outer code is used to be printed on the outer packaging of the product. The inner code and the outer code are strings pre-generated based on preset rules, and consist of a header with an identifier and a tail with a distinguishing feature.
[0070] The consumer uses the second terminal 40 to scan the anti-counterfeiting traceability code on the product, and the second terminal 40 sends a query request to the backend server 20. The second terminal 40 can also use the application APP disclosed in the embodiment of the present invention.
[0071] The backend server 20 obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request; obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the second terminal 40 .
[0072] The second terminal 40 displays the traceability print set and batch code fed back by the backend server 20 to the consumer.
[0073] In an embodiment of the present invention, the merchant generates an anti-counterfeiting traceability code consisting of an inner code and an outer code through the first terminal running the application APP and the backend server, and prints the inner code on the product and the outer code on the outer packaging of the product. The consumer obtains the real information of the product through the second terminal held by the merchant by scanning the inner code printed on the product and / or scanning the outer code printed on the outer packaging, which is conducive to making the process of the merchant producing the product public and transparent, realizing the supervision of the merchant's production process, and at the same time facilitating consumers to understand the true situation of the purchased product. The following is further explained in detail through specific embodiments.
[0074] Based on the application architecture disclosed in the above embodiments of the present invention, please refer to Figure 2 , shows a flow chart of a method for generating an anti-counterfeiting traceability code provided by an embodiment of the present invention. The method comprises the following steps:
[0075] S201: When the application APP is running, the terminal obtains multimedia images related to the product taken by the authenticated user, and generates a QR code, a secret code and detailed information of the multimedia image corresponding to the multimedia image.
[0076] In S201, the terminal refers to an electronic device used by the authenticated user to capture multimedia images related to the product, such as a smart phone, etc. The terminal can be Figure 1 The first terminal 10 disclosed in the embodiment of the present invention. In a specific implementation, the terminal obtains multimedia images related to the commodity shot by the authenticated user running the application APP on the terminal, or it can be understood that the authenticated user shoots multimedia images related to the commodity by running the application APP on the terminal, and the terminal obtains the multimedia images. It should be noted that the application APP provides a trigger button for entering the shooting.
[0077] Certified users refer to merchants who have passed the qualification review. The purpose of conducting qualification review on merchants is to ensure the reliability of merchants and the quality of the goods they produce.
[0078] Optionally, the process of conducting qualification review of merchants can be as follows: when a user (or merchant) registers and logs in to the application APP on the terminal for the first time, after obtaining the login verification code by entering the registered mobile phone number, the login verification code is entered into the application APP for verification, and after passing the verification code verification, the merchant qualification review materials are uploaded. While waiting for the merchant qualification review materials to pass the review, the user passes the authentication and becomes a authenticated user.
[0079] It should be noted that in S201, the multimedia image includes a picture and / or a video. Specifically, the terminal obtains the multimedia image related to the commodity taken by the authenticated user, including: obtaining the picture and / or video related to the commodity taken by the authenticated user.
[0080] In S201, a QR code may be generated based on user information of an authenticated user, a current timing code of an application APP, actual shooting time of the multimedia image, geographic location information of a shooting location of the multimedia image, and captured multimedia image information.
[0081] The two-dimensional code is set as a watermark on the multimedia image. Optionally, the two-dimensional code can be set at the upper left corner of the multimedia image, or at other positions of the multimedia image. In actual applications, it can be set according to actual scene requirements.
[0082] The secret code is a string of codes, which is generated based on the coordinates of the marked pixel points in the multimedia image and the corresponding RGB color values.
[0083] The multimedia image detail information refers to the detail information related to the multimedia image, and includes at least the multimedia image file name, file storage size, geographical location information of the shooting location of the multimedia image, and the outline information of the multimedia image.
[0084] In a possible implementation, after the terminal obtains a multimedia image related to the product taken by the authenticated user and generates a QR code, a secret code and multimedia image detail information corresponding to the multimedia image, the QR code, the secret code and the multimedia image detail information corresponding to the multimedia image are uploaded to a background server. The background server uses an irreversible encryption algorithm to process the QR code, the secret code and the multimedia image detail information corresponding to the multimedia image into a string of keys, performs chain processing on the blockchain platform, and saves the QR code, the secret code and the multimedia image detail information corresponding to the multimedia image as a stub.
[0085] It is understandable that in one possible situation, after the terminal obtains the multimedia image related to the product taken by the authenticated user, and generates the QR code, secret code and multimedia image details information of the corresponding multimedia image, the multimedia image is saved locally and is not directly uploaded to the backend server. When the authenticated user's upload operation for the multimedia image is received, the multimedia image is uploaded to the backend server.
[0086] When the backend server receives a request from a terminal to upload a multimedia image related to a product, it uses the information in the stub to authenticate the QR code, secret code and multimedia image details of the corresponding multimedia image in the upload request, and responds to the upload request after the authentication is passed.
[0087] Since the QR code, password and multimedia image details corresponding to the multimedia image in the stub are obtained by the background server through irreversible encryption algorithm and blockchain technology, if any information in the QR code, password and multimedia image details corresponding to the multimedia image is tampered with, the key finally generated will be inconsistent with the key stored in the blockchain platform. Therefore, the authenticity and credibility of the QR code, password and multimedia image details corresponding to the multimedia image in the stub can be guaranteed, and the tampering of the QR code, password and multimedia image details by bad users is prevented (for example, when the multimedia image is stored locally, the bad user tampers with the QR code, password and multimedia image details corresponding to the multimedia image, etc.). Furthermore, the background server uses the information in the stub to authenticate the QR code, password and multimedia image details corresponding to the multimedia image in the upload request, which can ensure the authenticity and reliability of the authentication process.
[0088] S202: The backend server associates the corresponding QR code, secret code and multimedia image details with the pre-established traceability seal set of the corresponding product through the authenticated multimedia image.
[0089] In S202, the background server refers to a server that processes the information obtained by the terminal in the background. The background server can be Figure 1 The backend server 20 disclosed in .
[0090] The traceability seal set refers to a seal set used for product traceability and showing the real production process information. It can include pictures related to the production process of the product, videos related to the production process of the product, or pictures and videos related to the production process of the product. In a specific implementation, the traceability seal set is stored in a database, which can be Figure 1 The database 30 disclosed in .
[0091] S203: The backend server associates the traceability print set with a batch code of the product.
[0092] In S203, the batch code is a string of codes used to associate the anti-counterfeiting traceability code with product information and traceability print set, which can be used to at least indicate the production batch, manufacturer name, product name, production date, expiration date, shelf life, batch number used internally by the manufacturer, specifications and origin of the product.
[0093] Optionally, there can be a one-to-many relationship between the traceability seal set and the batch code of the product, that is, the traceability seal set of the product can correspond to multiple batch codes of the product. For example, if the traceability seal set includes multiple production batches of products, the traceability seal set of the product can be associated with the multiple batch codes corresponding to the product, that is, the traceability seal set of the product can be used to associate with multiple production batches of the product.
[0094] In the specific implementation of S203, first, the background server obtains the association request sent by the user.
[0095] The association request includes a batch code of the product.
[0096] The association request sent by the user refers to a request initiated by the authentication user to associate the traceability seal set corresponding to the product with a batch code of the product.
[0097] Optionally, if S203 is executed for the backend server to associate the traceability seal set with multiple batch codes of the product, then the association request sent by the user may refer to a request initiated by the authenticated user to associate the traceability seal set corresponding to the product with multiple batch codes of the product.
[0098] Then, the backend server obtains the traceability seal set corresponding to the product and associates the batch code with the traceability seal set.
[0099] In a specific implementation, the backend server obtains the traceability seal set corresponding to the commodity based on the association request sent by the user, and associates the batch code in the association request with the obtained traceability seal set.
[0100] Optionally, after receiving the association request, the backend server may also establish association data, and after the establishment is completed, feed back to the terminal to provide a prompt that the association is completed. The association data includes the generation time of the association relationship, the expiration time of the association relationship, the associated commodity batch code, the internal code and external code corresponding to the commodity batch code, and the traceability seal set corresponding to the associated commodity.
[0101] S204: The backend server obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code and binds them to the batch code. The inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code.
[0102] In S204, the inner code is printed inside the product, and the outer code is printed on the outer packaging of the product. The inner code and the outer code are directly printed on the product without adding coating or other materials to the inner code and the outer code, which can reduce the production cost of the product.
[0103] The inner code and the outer code are strings generated in advance based on preset rules, and are composed of a head with identification and a tail with distinction. It should be noted that the tail is used to distinguish different inner codes or different outer codes.
[0104] To facilitate understanding of the above content, an example is given below. For example, if the internal code of a product is KKK anti-counterfeiting traceability XXXX, then KKK anti-counterfeiting traceability is the head of the anti-counterfeiting traceability code, and XXXX is the tail of the anti-counterfeiting traceability code, where KKK can be the merchant name or other name specified by the merchant.
[0105] In S204, the inner code and the outer code may be pre-produced, and the inner code and the outer code themselves have no relationship with the batch code of the product. When the backend server obtains the same number of inner codes and the same number of outer codes based on the number of products in the batch corresponding to the batch code of the product and binds them to the batch code, a relationship is established between the same number of inner codes and the same number of outer codes and the batch code of the product. It can be seen from the above execution of S203 that since the batch code of the product is associated with the traceability seal set of the product, after the obtained inner code and outer code are associated with the batch code of the product, an indirect association is also formed between the inner code and the outer code and the traceability seal set of the product. Therefore, the inner code and the outer code bound to the batch code constitute an anti-counterfeiting traceability code, and the anti-counterfeiting traceability information of the product can be obtained based on the anti-counterfeiting traceability code.
[0106] It should be noted that a batch code of a product can correspond to multiple products, and each product has a unique and definite internal code and external code. The internal code and external code corresponding to each product are in a unique relationship that exists in pairs, that is, the internal code of the product corresponds to a unique and definite external code, and vice versa, the external code of the product corresponds to a unique and definite internal code.
[0107] To understand the above content, please refer to Figure 3 , which shows a relationship diagram between a batch code of a commodity disclosed in an embodiment of the present invention and the internal code and external code of the commodity, such as Figure 3 As shown, a batch code of a commodity can correspond to multiple internal codes and multiple external codes of the commodity.
[0108] It should also be noted that in the specific implementation scenario, the following situation may exist: a product can be a complete packaged product entity or a large packaged product entity containing multiple small packaged product entities. Therefore, the merchant can set an anti-counterfeiting traceability code for the complete packaged product entity or set an anti-counterfeiting traceability code for each small packaged product entity.
[0109] For an intuitive understanding, here is an example. For example, a product is a box of mooncakes, which contains multiple mooncakes. The merchant can set an anti-counterfeiting traceability code for the mooncake box, or for each mooncake in the mooncake box. In the specific implementation, the merchant can make a choice based on comprehensive considerations.
[0110] In addition, in order to improve the user experience, in this solution, the designed internal code and external code can provide a variety of optional packaging forms, so that the designed internal code and external code can be recognized by the scan function of the application APP, the scan function of the WeChat applet corresponding to the application, and the scan function of the WeChat APP (for example, the internal code and external code are designed in the form of applet codes so that they can be recognized by the scan function of the WeChat APP).
[0111] Based on the method for generating the anti-counterfeiting traceability code provided by the above embodiment of the present invention, when the application APP is running, the terminal obtains the multimedia image related to the commodity taken by the authenticated user, and generates the QR code, secret code and multimedia image details of the corresponding multimedia image; the backend server associates the corresponding QR code, secret code and multimedia image details with the pre-established traceability seal set of the corresponding commodity through the authenticated multimedia image, associates the traceability seal set with a batch code of the commodity, obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code, and binds them to the batch code, and the inner code and outer code bound to the batch code constitute the anti-counterfeiting traceability code. In this scheme, the real image information related to the commodity is obtained based on the running APP, and it is encrypted in batches to obtain the anti-counterfeiting traceability code composed of the inner code and the outer code, so that the consumer can obtain the real information of the commodity when scanning the inner code printed on the commodity and / or scanning the outer code printed on the outer packaging, which is conducive to making the process of the merchant producing the commodity open and transparent, realizing the supervision of the merchant's production process, and at the same time facilitating consumers to understand the true situation of the purchased commodity. In addition, one product corresponds to an inner code and an outer code that exist in pairs, and the inner code and outer code corresponding to each product are uniquely designed, which can prevent illegal merchants from counterfeiting the anti-counterfeiting traceability codes of products in batches.
[0112] Based on the above Figure 2 The method for generating an anti-counterfeiting traceability code disclosed in an embodiment of the present invention specifically performs a process of obtaining a multimedia image related to a commodity photographed by an authenticated user by a terminal in step S201, and generating a QR code, a secret code and multimedia image detailed information corresponding to the multimedia image, including the following steps:
[0113] S11: When the authenticated user triggers a shooting operation, the terminal obtains geographical location information of the shooting location related to the commodity, the shot multimedia image information, and user information of the authenticated user.
[0114] It should be noted that in S11, the geographical location information includes latitude and longitude information and a geographical location description. The latitude and longitude information indicates the longitude and latitude of the location where the multimedia image of the product is taken, and the geographical location description indicates the geographical location where the multimedia image of the product is taken.
[0115] The multimedia image information includes multimedia images related to the commodity and text information related to the multimedia images, for example, the file size of the multimedia images.
[0116] S12: Upload user information to the background server and initiate a timing request, so that the background server generates a timing key based on the user information, the current timing code of the application APP and the actual shooting time using an irreversible encryption algorithm, and feeds it back to the terminal.
[0117] In S12, the user information may include information such as the user name of the authenticated user.
[0118] A timing request refers to a request initiated by a terminal to a backend server to obtain the real standard time of the Internet.
[0119] The current timing code of the application APP refers to the timing code returned to the application APP after the background server receives the timing request initiated by the terminal.
[0120] In the specific implementation, the background server uses random numbers and random characters to generate a different timing code every day according to certain irreversible rules. After receiving the timing request initiated by the terminal, the background server returns the timing code generated on that day to the application APP.
[0121] The real shooting time refers to the real standard time of the Internet, not the system time of the terminal where the application APP is located. The real shooting time uses the real standard time of the Internet instead of the system time of the terminal where the application APP is located, which is conducive to preventing the system time of the terminal where the application APP is located from being tampered with, causing the real shooting time to change accordingly, resulting in the real shooting time being not the real time corresponding to the current shooting moment.
[0122] S13: The terminal generates a QR code using the timing key, the geographical location information of the shooting location, the actual shooting time, the user information and the shot multimedia image information.
[0123] In S13, the geographical location information of the shooting location refers to the actual shooting location obtained by using the real-time positioning technology when shooting the multimedia image related to the product.
[0124] In the specific implementation, the QR code is generated based on the timing key, the geographic location information of the shooting location, the actual shooting time, the user information and the captured multimedia image information. Therefore, when the QR code is scanned, the geographic location information of the shooting location, the actual shooting time, the user information and the captured multimedia image information related to the product can be returned.
[0125] S14: The terminal selects the coordinates of the marked pixel points and the corresponding RGB color values in the multimedia image information to generate a secret code.
[0126] As can be seen from the foregoing, multimedia image information includes multimedia images related to commodities and text information related to the multimedia images. Multimedia images include pictures and / or videos.
[0127] In the specific implementation of S14, the terminal uniformly selects a certain proportion of pixels from the pixel matrix of the picture related to the product as marks in a random manner, obtains the coordinates of the marked pixels and the RGB color values corresponding to the coordinates, and generates a secret code based on the coordinates of the marked pixels and the corresponding RGB color values. And / or, the terminal uniformly selects a certain proportion of pixels from the pixel matrix of the first frame of the video related to the product as marks in a random manner, obtains the coordinates of the marked pixels and the RGB color values corresponding to the coordinates, and generates a secret code based on the coordinates of the marked pixels and the corresponding RGB color values.
[0128] S15: The terminal generates a multimedia image and multimedia image detail information based on the multimedia image information.
[0129] As can be seen from the above, the multimedia image information includes multimedia images related to the product and text information related to the multimedia images. The multimedia images include pictures and / or videos.
[0130] In S15, the multimedia image detailed information includes at least the file name, the file storage size, the geographical location information of the shooting location and the outline information of the multimedia image.
[0131] In the specific implementation of S15, the terminal generates pictures and picture details information related to the product based on the multimedia image information. The picture details information at least includes the picture name, the picture storage size, the geographical location information of the shooting location when the picture related to the product was shot, and the outline information of the picture. And / or, the terminal generates a video related to the product and video details information based on the multimedia image information. The video details information at least includes the video name, the video storage size, the geographical location information of the shooting location when the video related to the product was shot, and the outline information of the first frame of the video.
[0132] S16: The terminal associates the multimedia image with the authentication information consisting of the QR code and the secret code, and sets the QR code, the geographical location information of the shooting location and the real shooting time as a watermark on the multimedia image.
[0133] Optionally, the QR code, the geographical location information of the shooting location and the real shooting time can be set as watermarks at the upper left corner or lower right corner of the multimedia image, and of course can also be set at other positions of the multimedia image.
[0134] Optionally, the QR code, the geographical location information of the shooting location, and the real shooting time can be separated and set as watermarks in any combination at any position of the multimedia image. For example, the QR code is set as a watermark at the upper left corner of the multimedia image, and the geographical location information of the shooting location and the real shooting time are set as watermarks at the lower right corner of the multimedia image. Of course, it should be understood that the above are only partial examples.
[0135] In the embodiment of the present invention, the terminal uses the real shooting time, the real geographical location information of the shooting location and the timing key generated based on the irreversible rule timing code in the process of generating the QR code, the secret code and the multimedia image details information, and associates the authentication information composed of the QR code, the secret code and the multimedia image details information, and sets the QR code, the real shooting time and the real geographical location information of the shooting location as watermarks on the multimedia image related to the product, which is conducive to ensuring the authenticity and reliability of the multimedia image, preventing merchants from confusing the real with the fake in the process of producing the goods, and fabricating false multimedia images related to the goods to deceive consumers, and can play a role in supervising the merchant's production process.
[0136] Based on the above Figure 2 The method for generating an anti-counterfeiting traceability code disclosed in an embodiment of the present invention specifically performs a process in which the backend server associates the corresponding two-dimensional code, secret code and multimedia image detail information with the pre-established traceability seal set of the corresponding product through the authenticated multimedia image in S202, including the following steps:
[0137] S21: The backend server obtains the multimedia image to be uploaded and the file name, QR code, secret code and multimedia image detailed information corresponding to the multimedia image.
[0138] In S21, the multimedia image to be uploaded refers to the multimedia image to be uploaded which is obtained by the backend server based on the upload request after the authenticated user takes the multimedia image related to the commodity and initiates a request to upload the multimedia image to the backend server.
[0139] In the specific implementation of S21, the backend server obtains the product-related pictures to be uploaded, and obtains the picture name, QR code, password and picture details corresponding to the pictures. And / or, the backend server obtains the product-related videos to be uploaded, and obtains the video name, QR code, password and video details corresponding to the videos.
[0140] S22: The backend server searches the cloud database based on the file name and obtains a stub corresponding to the same file name in the cloud database;
[0141] In S22, the cloud database refers to a cloud database that can store multimedia image information related to the product.
[0142] In the specific implementation of S22, the backend server searches the cloud database based on the picture name to obtain a stub corresponding to the same picture name in the cloud database. And / or, the backend server searches the cloud database based on the video name to obtain a stub corresponding to the same video name in the cloud database.
[0143] S23: When the two-dimensional code, secret code and multimedia image details in the stub are consistent with the two-dimensional code, secret code and multimedia image details corresponding to the multimedia image, the multimedia image is authenticated and associated with the pre-established traceability seal set of the corresponding product.
[0144] In the specific implementation of S23, when the QR code, password and picture details in the stub corresponding to the same picture name are relatively consistent with the QR code, password and picture details corresponding to the picture, the picture is authenticated and associated with the pre-established traceability seal set of the corresponding product. And / or, when the QR code, password and video details in the stub corresponding to the same video name are relatively consistent with the QR code, password and video details corresponding to the video, the video is authenticated and associated with the pre-established traceability seal set of the corresponding product.
[0145] The following is a detailed introduction to the process of comparing whether the QR code, password and picture details corresponding to the image are consistent with the QR code, password and picture details in the stub, and the process of comparing whether the QR code, password and video details corresponding to the video are consistent with the QR code, password and video details in the stub.
[0146] The process of comparing whether the QR code, secret code and picture details information corresponding to the picture are consistent with the QR code, secret code and picture details information in the stub includes steps A1 to A3 (the execution order of A1 to A3 is not specific):
[0147] A1: Check whether the content of the QR code corresponding to the image is consistent with the content of the QR code corresponding to the image in the stub.
[0148] A2: Parse the code corresponding to the image to obtain the coordinates and corresponding RGB color values of the marked pixels in the image; parse the code corresponding to the image in the stub to obtain the coordinates and corresponding RGB color values of the marked pixels in the image in the stub; compare the coordinates and corresponding RGB color values of the marked pixels in the image in the stub with the coordinates and corresponding RGB color values of the marked pixels at the corresponding positions in the image one by one to check whether the comparison results are consistent.
[0149] A3: Check whether the image storage size, the geographical location information of the shooting location, and the image outline information in the image details information corresponding to the image are consistent with the image storage size, the geographical location information of the shooting location, and the image outline information in the image details information in the stub.
[0150] If the above A1 to A3 are executed and the check results are consistent, then it is considered that the QR code, password and picture details information corresponding to the image are consistent with the comparison results of the QR code, password and picture details information in the stub.
[0151] The process of comparing whether the QR code, secret code and video details information corresponding to the video are consistent with the QR code, secret code and video details information in the stub includes steps A4 to A6 (the execution order of A4 to A6 is not specific):
[0152] A4: Check whether the content contained in the QR code corresponding to the video is consistent with the content contained in the QR code in the stub.
[0153] A5: Parse the code corresponding to the first frame of the video to obtain the coordinates and corresponding RGB color values of the marked pixels in the first frame of the video; parse the code corresponding to the first frame of the video in the stub to obtain the coordinates and corresponding RGB color values of the marked pixels in the first frame of the video in the stub; compare the coordinates and corresponding RGB color values of the marked pixels in the first frame of the video in the stub with the coordinates and corresponding RGB color values of the marked pixels at corresponding positions in the first frame of the video one by one to check whether the comparison results are consistent.
[0154] A6: Check whether the video storage size, the geographical location information of the shooting location, and the outline information of the first frame of the video in the video details information corresponding to the video are consistent with the video storage size, the geographical location information of the shooting location, and the outline information of the first frame of the video in the video details information in the stub.
[0155] If the above A4 to A6 are executed and the check results are consistent, then it is considered that the QR code, password and video details information corresponding to the video are consistent with the comparison results of the QR code, password and video details information in the stub.
[0156] In an embodiment of the present invention, the backend server obtains the multimedia image to be uploaded and the file name, QR code, secret code and multimedia image details information corresponding to the multimedia image, searches the cloud database based on the file name, obtains the stub corresponding to the same file name in the cloud database, and when the QR code, secret code and multimedia image details information in the stub are relatively consistent with the QR code, secret code and multimedia image details information corresponding to the multimedia image, authenticates the multimedia image and associates the multimedia image with the previously established traceability seal set of the corresponding commodity. Since the multimedia image information of the commodity in the stub is processed by an irreversible encryption algorithm and blockchain technology, it has a high degree of authenticity and credibility, which provides reliability for comparing the stub with the multimedia image to be uploaded. Associating the multimedia image to be uploaded with the traceability seal set facilitates the subsequent acquisition of the anti-counterfeiting traceability code based on the traceability seal set, and can provide the anti-counterfeiting traceability code of the commodity to consumers who purchase the commodity, so that consumers can obtain the anti-counterfeiting traceability information related to the commodity based on scanning the anti-counterfeiting traceability code, which is beneficial for consumers to understand the true situation of the purchased commodity, and at the same time, it plays a supervisory role in the process of producing commodities by merchants.
[0157] Based on the method for generating an anti-counterfeiting traceability code disclosed in the above embodiment of the present invention, please refer to Figure 4 , is a flow chart of another method for generating an anti-counterfeiting traceability code provided by an embodiment of the present invention. The method comprises the following steps:
[0158] S401: When the application APP is running, the terminal obtains multimedia images related to the product taken by the authenticated user, and generates a QR code, a secret code and detailed information of the multimedia image corresponding to the multimedia image.
[0159] The specific implementation principle of S401 can be found in the relevant content of S201, which will not be repeated here.
[0160] S402: The terminal obtains the article information corresponding to the multimedia image input by the authenticated user, and associates the article information with the multimedia image.
[0161] It should be noted that S402 may also be executed after S401 is executed in which the terminal obtains the multimedia image related to the commodity photographed by the authenticated user.
[0162] In S402, the article information refers to the text description information related to the multimedia image edited by the authenticated user based on the running application APP. For example, the authenticated user can edit some information about the growth habits and efficacy of the product for the multimedia image.
[0163] It should also be noted that in S402, the multimedia image corresponding to the article information input by the authenticated user has been authenticated by the background server, that is, the authenticated user can select the authenticated multimedia image and input the article information corresponding to the authenticated multimedia image through the terminal.
[0164] S403: The backend server associates the multimedia image with the two-dimensional code, the secret code and the multimedia image details information through the authenticated multimedia image, and the article information associated with the multimedia image, with the previously established traceability seal set of the corresponding product.
[0165] The article information associated with the multimedia image is also associated with the pre-established traceability seal set of the corresponding product. When the traceability seal set of the product is fed back to the consumer, the article information associated with the multimedia image can help the consumer understand the true situation of the purchased product more easily.
[0166] S404: The backend server associates the traceability print set with a batch code of the product.
[0167] The specific implementation principle of S404 can be found in the relevant content of S203, which will not be repeated here.
[0168] In an embodiment of the present invention, the terminal obtains the article information of the corresponding multimedia image input by the authenticated user, associates the article information with the multimedia image, and the backend server associates the QR code, secret code and multimedia image details information through the authenticated multimedia image, as well as the article information associated with the multimedia image, with a pre-established traceability seal set of the corresponding commodity, and obtains an anti-counterfeiting traceability code based on the traceability seal set, which can provide the anti-counterfeiting traceability code of the commodity to consumers who purchase the commodity, so that consumers can obtain the anti-counterfeiting traceability information related to the commodity by scanning the anti-counterfeiting traceability code, which can not only play a role in supervising the commodity production process of the merchant, but also help consumers understand the true situation of the purchased commodities, and the article information about the commodity in the anti-counterfeiting traceability information helps consumers easily understand the true situation of the purchased commodities.
[0169] Based on the method for generating an anti-counterfeiting traceability code disclosed in the above embodiment of the present invention, the embodiment of the present invention also discloses an anti-counterfeiting traceability method, see Figure 5 , which is a flow chart of an anti-counterfeiting and traceability method provided in an embodiment of the present invention.
[0170] This method is based on the above Figure 2 or Figure 4 The anti-counterfeiting traceability code generated by the public anti-counterfeiting traceability code generation method is used for anti-counterfeiting traceability, including the following steps:
[0171] S501: The terminal scans the anti-counterfeiting traceability code and sends a query request to the backend server.
[0172] In S501, the query request includes the anti-counterfeiting traceability code. The query request refers to a request initiated by the terminal based on the user's need to obtain the traceability seal set and batch code of the product.
[0173] It should be noted that in S501, the terminal refers to an electronic device used by consumers to scan the product anti-counterfeiting and traceability code, such as a smart phone. The terminal can be Figure 1 The second terminal 40 disclosed in.
[0174] As can be seen from the foregoing, the anti-counterfeiting traceability code includes an inner code and an outer code. Specifically, the terminal scans the inner code and sends a query request containing the inner code to the backend server. Alternatively, the terminal scans the outer code and sends a query request containing the outer code to the backend server.
[0175] S502: The backend server obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request.
[0176] In the specific implementation of S502, the backend server obtains the batch code corresponding to the inner code based on the query request containing the inner code. Alternatively, the backend server obtains the batch code corresponding to the outer code based on the query request containing the outer code. It should be noted that the inner code and the outer code are both located on the same commodity, so the batch code corresponding to the inner code obtained by the backend server based on the query request containing the inner code is the same as the batch code corresponding to the outer code obtained by the backend server based on the query request containing the outer code.
[0177] S503: The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal.
[0178] S504: The terminal displays the traceability print set and batch code.
[0179] In the embodiment of the present invention, the consumer uses the terminal to scan the anti-counterfeiting traceability code and sends a query request containing the anti-counterfeiting traceability code to the backend server. The backend server obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request, and obtains the traceability seal set associated with the batch code, and displays the traceability seal set and batch code to the consumer through the terminal. This is helpful for consumers to understand the true situation of the purchased goods, and at the same time, it plays a supervisory role in the process of merchants producing goods.
[0180] Based on the anti-counterfeiting traceability method disclosed in the above embodiment of the present invention, please refer to Figure 6 , which is a flow chart of another anti-counterfeiting and traceability method provided by an embodiment of the present invention.
[0181] This method is based on the above Figure 2 or Figure 4 The anti-counterfeiting traceability code generated by the public anti-counterfeiting traceability code generation method is used for anti-counterfeiting traceability, including the following steps:
[0182] S601: The terminal scans the anti-counterfeiting traceability code and sends a query request to the backend server.
[0183] The specific implementation principle of S601 can refer to the relevant content in S501, which will not be repeated here.
[0184] S602: The backend server obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request.
[0185] The specific implementation principle of S602 can refer to the relevant content in S502, which will not be repeated here.
[0186] S603: The backend server records the number of times the product is scanned for authenticity inquiry based on the inquiry request.
[0187] It should be noted that there is no particular order in which S603 and S602 are executed.
[0188] In the specific implementation of S603, the backend server records the number of times the product is scanned for authenticity inquiry based on the query request containing the inner code. Alternatively, the backend server records the number of times the product is scanned for authenticity inquiry based on the query request containing the outer code.
[0189] Optionally, the backend server can record the number of times the product is scanned for authenticity inquiry based on the query request, and can also obtain the time and place where the product is scanned for authenticity inquiry and record it. This allows merchants to understand when and where the products are purchased more by consumers by analyzing the time and place where the products are scanned for authenticity inquiry recorded by the backend server.
[0190] S604: The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set, the scan code query times and the batch code to the terminal.
[0191] In the specific implementation of S604, the backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set, the number of internal code scanning queries and the batch code to the terminal. Alternatively, the backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set, the number of external code scanning queries and the batch code to the terminal.
[0192] S605: The terminal displays the traceability print set, scan code query times and batch code.
[0193] In the specific implementation of S605, the terminal displays the traceability seal set, the number of times the internal code is scanned and queried, and the batch code. Alternatively, the terminal displays the traceability seal set, the number of times the external code is scanned and queried, and the batch code.
[0194] It should be noted that if the anti-counterfeiting traceability code scanned by the terminal executing S601 is an external code, the terminal executing S605 can also display the traceability print set, the number of external code scan queries, the batch code and the number of internal code scan queries. In other words, when the terminal scans the external code, the background server can also obtain the number of internal code scan queries and display it by the terminal. It can be understood that the internal code is printed on the inside of the product, and the internal code can only be scanned when the product packaging is opened. Therefore, if the external code is scanned to obtain the number of internal code scan queries greater than zero, it can be known that the product packaging has been opened. Based on the linkage mechanism between the internal code and the external code, that is, scanning the external code can obtain the number of external code scan queries, and can also obtain the number of internal code scan queries. Consumers only need to scan the external code on the outer packaging of the purchased product to know the number of internal code scan queries, and know whether the product packaging has been opened based on the number of internal code scan queries.
[0195] In the embodiment of the present invention, the consumer uses the terminal to scan the anti-counterfeiting traceability code and sends a query request containing the anti-counterfeiting traceability code to the backend server. The backend server obtains the batch code corresponding to the anti-counterfeiting traceability code and the number of times the product is scanned to check the authenticity based on the query request, and obtains the traceability seal set associated with the batch code, and displays the traceability seal set, the number of scans and batch codes to the consumer through the terminal. This is helpful for consumers to understand the true situation of the purchased products, and at the same time, it plays a supervisory role in the process of the merchant producing the products.
[0196] Based on the method for generating an anti-counterfeiting traceability code disclosed in the above-mentioned embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a system for generating an anti-counterfeiting traceability code.
[0197] See also Figure 7 , is a structural block diagram of a system for generating an anti-counterfeiting traceability code provided by an embodiment of the present invention. The system includes: a first terminal 701, a database 702 and a backend server 703.
[0198] The first terminal 701 is used to run the application APP, and during the operation of the application APP, obtain multimedia images related to the product taken by the authenticated user, generate a QR code, a secret code and multimedia image details corresponding to the multimedia image, and upload the multimedia image, the QR code, the secret code and the multimedia image details corresponding to the multimedia image to the background server 703, and the QR code is set on the multimedia image as a watermark.
[0199] Database 702 is used to store the pre-established traceability print set of the corresponding commodity.
[0200] The backend server 703 is used to associate the corresponding two-dimensional code, secret code and multimedia image detail information with the pre-established traceability seal set of the corresponding product in the database 702 through the authenticated multimedia image; associate the traceability seal set with a batch code of the product; based on the number of products in the batch corresponding to the batch code, obtain the same number of inner codes and outer codes and bind them to the batch code, the inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code, the inner code is used to be printed on the inside of the product, and the outer code is used to be printed on the outer packaging of the product, the inner code and outer code are strings pre-generated based on preset rules, and are composed of a header with an identification and a tail with a distinguishing feature.
[0201] Optionally, the first terminal includes:
[0202] The first acquisition module is used to obtain the geographical location of the shooting location related to the product, the multimedia image information shot and the user information of the authenticated user when the authenticated user triggers the shooting operation; upload the user information to the background server and initiate a timing request, so that the background server generates a timing key based on the user information, the current timing code of the application APP and the actual shooting time using an irreversible encryption algorithm.
[0203] The receiving module is used to receive the timing key generated by the background server.
[0204] The first generation module is used to generate a QR code using a timing key, geographical location information of a shooting location, real shooting time, user information and shot multimedia image information; select coordinates of marked pixel points in the multimedia image information and corresponding RGB color values to generate a secret code; generate a multimedia image and multimedia image detail information based on the multimedia image information, wherein the multimedia image detail information at least includes a file name, a file storage size, the geographical location information of the shooting location and contour information of the multimedia image.
[0205] The association module is used to associate the multimedia image with the authentication information composed of the QR code and the secret code, and set the QR code, the geographical location information of the shooting location and the real shooting time as a watermark on the multimedia image.
[0206] Optionally, the first acquisition module is further used to acquire article information corresponding to the multimedia image input by the authenticated user after acquiring the multimedia image related to the commodity taken by the authenticated user.
[0207] The association module is further used to associate the article information acquired by the first acquisition module with the multimedia image.
[0208] Correspondingly, the corresponding QR code, secret code and multimedia image details information are associated with the authenticated multimedia image in the database through the backend server in the pre-established traceability seal set of the corresponding product, which is specifically used to: associate the QR code, secret code and multimedia image details information with the authenticated multimedia image, as well as the article information associated with the multimedia image with the pre-established traceability seal set of the corresponding product.
[0209] Optionally, the backend server that associates the traceability seal set with a batch code of the product is specifically used to obtain an association request sent by a user, wherein the association request includes a batch code of the product; obtain the traceability seal set corresponding to the product, and associate the batch code with the traceability seal set.
[0210] The specific implementation principles of the first terminal and the various modules in the first terminal, the background server and the database in the anti-counterfeiting traceability code generation system disclosed in the above embodiment of the present invention can be found in the corresponding content of the anti-counterfeiting traceability code generation method disclosed in the above embodiment of the present invention, which will not be repeated here.
[0211] Based on the anti-counterfeiting traceability code generation system provided by the above embodiment of the present invention, the first terminal runs the application APP, and during the operation of the application APP, obtains the multimedia image related to the commodity taken by the authenticated user, and generates the QR code, secret code and multimedia image details of the corresponding multimedia image; the backend server associates the corresponding QR code, secret code and multimedia image details with the pre-established traceability seal set of the corresponding commodity through the authenticated multimedia image, associates the traceability seal set with a batch code of the commodity, and obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code, and binds them to the batch code. The inner code and outer code bound to the batch code constitute the anti-counterfeiting traceability code. In this scheme, the real image information related to the commodity is obtained based on the running APP, and it is encrypted in batches to obtain the anti-counterfeiting traceability code composed of the inner code and the outer code, so that the consumer can obtain the real information of the commodity when scanning the inner code printed on the commodity and / or scanning the outer code printed on the outer packaging, which is conducive to making the process of the merchant producing the commodity open and transparent, realizing the supervision of the merchant's production process, and at the same time facilitating consumers to understand the true situation of the purchased commodity.
[0212] The above-mentioned embodiments of the present invention disclose a method for generating an anti-counterfeiting traceability code, an anti-counterfeiting tracing method for performing anti-counterfeiting tracing based on the anti-counterfeiting traceability code generated by the anti-counterfeiting traceability code generation method, and a system for generating an anti-counterfeiting traceability code. The embodiments of the present invention also provide an anti-counterfeiting traceability system.
[0213] See also Figure 8 , is a structural block diagram of an anti-counterfeiting traceability system provided by an embodiment of the present invention. The system includes: an anti-counterfeiting traceability code generation system 801 and a second terminal 802.
[0214] It should be noted that the anti-counterfeiting traceability code generation system 801 is Figure 7 A system for generating public anti-counterfeiting traceability codes.
[0215] The second terminal 802 is used to scan the anti-counterfeiting traceability code generated by the anti-counterfeiting traceability code generation system 801, and send a query request to the background server 703 in the anti-counterfeiting traceability code generation system, wherein the query request includes the anti-counterfeiting traceability code.
[0216] The backend server 703 is used to obtain the batch code corresponding to the anti-counterfeiting traceability code based on the query request; obtain the traceability seal set associated with the batch code, and feed back the traceability seal set and the batch code to the second terminal 802.
[0217] The second terminal 802 is also used to display the traceability print set and batch code.
[0218] Optionally, the backend server is further used to record the number of times the product is scanned to check its authenticity based on the query request; obtain the traceability seal set associated with the batch code, and feed back the traceability seal set, the number of scan queries and the batch code to the second terminal.
[0219] The second terminal is also used to display the traceability print set, scan code query times and batch code fed back by the background server.
[0220] The specific implementation principle of the anti-counterfeiting traceability code generation system in the anti-counterfeiting traceability system disclosed in the above embodiment of the present invention can refer to the corresponding contents of the anti-counterfeiting traceability code generation method and the anti-counterfeiting traceability method disclosed in the above embodiment of the present invention, and the embodiment of the present invention. Figure 7 The execution principle of a disclosed anti-counterfeiting traceability code generation system will not be elaborated here.
[0221] The specific implementation principle of the second terminal in the anti-counterfeiting and tracing system disclosed in the above embodiment of the present invention can refer to the corresponding content of the anti-counterfeiting and tracing system method disclosed in the above embodiment of the present invention, which will not be repeated here.
[0222] Based on the anti-counterfeiting traceability system provided by the above embodiment of the present invention, consumers use the second terminal to scan the anti-counterfeiting traceability code and send a query request containing the anti-counterfeiting traceability code to the background server. The background server obtains the batch code corresponding to the anti-counterfeiting traceability code based on the query request, and obtains the traceability seal set associated with the batch code, and displays the traceability seal set and the batch code to consumers through the second terminal. This is helpful for consumers to understand the true situation of the purchased goods, and at the same time, it plays a supervisory role in the process of merchants producing goods.
[0223] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0224] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0225] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating an anti-counterfeiting traceability code, characterized in that: The method comprises: During the operation of the application APP, the terminal obtains multimedia images related to the commodity taken by the authenticated user, and generates a QR code, a secret code and multimedia image details information corresponding to the multimedia image, wherein the QR code is set on the multimedia image as a watermark; and the QR code, the secret code and multimedia image details information corresponding to the multimedia image are uploaded to the backend server; wherein the multimedia image is a picture and / or video in the commodity production process; the multimedia image details information includes the file name of the multimedia image, the file storage size, the geographical location of the shooting and the contour information of the multimedia image; the secret code is a string of codes generated based on the coordinates of the marked pixel points in the multimedia image and the corresponding RGB color values; wherein the marked pixel points are a certain proportion of pixel points uniformly selected from the pixel matrix of the multimedia image in a random manner; After receiving the QR code, secret code and multimedia image details corresponding to the multimedia image uploaded by the application APP, the backend server uses an irreversible encryption algorithm to process the QR code, secret code and multimedia image details corresponding to the multimedia image into a string of keys and performs on-chain processing on the blockchain platform, and saves the QR code, secret code and multimedia image details corresponding to the multimedia image as a stub; The backend server obtains the multimedia image to be uploaded and the QR code, secret code and multimedia image details corresponding to the multimedia image to be uploaded; The backend server authenticates the multimedia image to be uploaded based on the QR code, secret code and multimedia image details in the stub, and associates the multimedia image whose corresponding QR code, secret code and multimedia image details are authenticated with the pre-established traceability seal set corresponding to the product; The backend server associates the traceability seal set with a batch code of the commodity; the batch code is used to indicate the production batch and production date; The backend server obtains the same number of inner codes and outer codes based on the number of commodities in the batch corresponding to the batch code and binds them to the batch code, and the inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code; The inner code is used to be printed inside the commodity, and the outer code is used to be printed on the outer packaging of the commodity. The inner code and the outer code are strings pre-generated based on preset rules, and are composed of a head with identification and a tail with distinction. The terminal obtains a multimedia image related to a commodity photographed by an authenticated user, and generates a QR code, a secret code and multimedia image details corresponding to the multimedia image, including: When the authenticated user triggers a shooting operation, the terminal obtains geographical location information of the shooting location related to the product, the shot multimedia image information, and the user information of the authenticated user; Upload the user information to the background server and initiate a timing request, so that the background server generates a timing key based on the user information, the current timing code of the application APP and the actual shooting time using an irreversible encryption algorithm, and feeds it back to the terminal; The terminal generates a QR code using the timing key, the geographical location information of the shooting location, the real shooting time, the user information and the shot multimedia image information; The terminal selects the coordinates of the marked pixel points and the corresponding RGB color values in the multimedia image information to generate a secret code; The terminal generates a multimedia image and multimedia image detail information based on the multimedia image information, wherein the multimedia image detail information includes at least a file name, a file storage size, geographical location information of the shooting location, and outline information of the multimedia image; The terminal associates the multimedia image with the authentication information consisting of the two-dimensional code and the secret code, and sets the two-dimensional code, the geographical location information of the shooting location and the real shooting time as a watermark on the multimedia image.
2. The method according to claim 1, characterized in that: After the terminal obtains the multimedia image related to the commodity taken by the authenticated user, the method further includes: Acquire article information corresponding to the multimedia image input by the authenticated user, and associate the article information with the multimedia image; The backend server associates the two-dimensional code, the secret code and the multimedia image detailed information with the authenticated multimedia image to a pre-established traceability seal set corresponding to the commodity, including: The backend server associates the two-dimensional code, the secret code and the multimedia image details information with the authenticated multimedia image, and the article information associated with the multimedia image, in a pre-established traceability seal set corresponding to the commodity.
3. The method according to claim 1, characterized in that The backend server associates the traceability print set with a batch code of the commodity, including: The backend server obtains an association request sent by a user, wherein the association request includes a batch code of the commodity; The backend server obtains a traceability seal set corresponding to the commodity, and associates the batch code with the traceability seal set.
4. An anti-counterfeiting and tracing method, characterized in that: Anti-counterfeiting traceability is performed based on the anti-counterfeiting traceability code generated by the method for generating an anti-counterfeiting traceability code according to any one of claims 1 to 3, the method comprising: The terminal scans the anti-counterfeiting traceability code and sends a query request to the backend server, wherein the query request includes the anti-counterfeiting traceability code; The backend server obtains a batch code corresponding to the anti-counterfeiting traceability code based on the query request; The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal; The terminal displays the traceability print set and the batch code.
5. The method according to claim 4, characterized in that Also includes: The backend server records the number of times the product is scanned for authenticity inquiry based on the inquiry request; The backend server obtains a traceability seal set associated with the batch code, and feeds back the traceability seal set and the batch code to the terminal, including: The backend server obtains the traceability seal set associated with the batch code, and feeds back the traceability seal set, the scan code query times and the batch code to the terminal; The terminal displays the traceability print set and the batch code, including: The terminal displays the traceability print set, the scan code query times and the batch code.
6. A system for generating an anti-counterfeiting traceability code, characterized in that: The system comprises: The first terminal is used to run an application APP, and during the operation of the application APP, obtain a multimedia image related to a commodity photographed by an authenticated user, generate a two-dimensional code, a secret code and multimedia image details information corresponding to the multimedia image, and upload the multimedia image, the two-dimensional code, the secret code and multimedia image details information corresponding to the multimedia image to a backend server, wherein the two-dimensional code is set on the multimedia image as a watermark; wherein the multimedia image is a picture and / or video in the production process of the commodity; the multimedia image details information includes the file name of the multimedia image, the file storage size, the geographical location where the image was taken and the contour information of the multimedia image; the secret code is a string of codes generated based on the coordinates of the marked pixel points in the multimedia image and the corresponding RGB color values; wherein the marked pixel points are a certain proportion of pixel points uniformly selected from the pixel matrix of the multimedia image in a random manner; A database for storing a pre-established traceability print set corresponding to the commodity; The backend server is used to, after receiving the QR code, secret code and multimedia image details information corresponding to the multimedia image uploaded by the application APP, use an irreversible encryption algorithm to process the QR code, secret code and multimedia image details information corresponding to the multimedia image into a string of keys and perform chain processing on the blockchain platform, and save the QR code, secret code and multimedia image details information corresponding to the multimedia image as a stub; obtain the multimedia image to be uploaded and the QR code, secret code and multimedia image details information corresponding to the multimedia image to be uploaded; authenticate the multimedia image to be uploaded based on the QR code, secret code and multimedia image details information in the stub, and The two-dimensional code, secret code and multimedia image detailed information are associated with the pre-established traceability seal set corresponding to the commodity through the authenticated multimedia image; the traceability seal set is associated with a batch code of the commodity; based on the number of commodities in the batch corresponding to the batch code, the same number of inner codes and outer codes are obtained and bound to the batch code, and the inner code and outer code bound to the batch code constitute an anti-counterfeiting traceability code, wherein the inner code is used to be printed on the inside of the commodity, and the outer code is used to be printed on the outer packaging of the commodity, and the inner code and outer code are strings pre-generated based on preset rules, and are composed of a head with identification and a tail with differentiation; the batch code is used to indicate the production batch and production date; The process of obtaining a multimedia image related to a commodity taken by an authenticated user and generating a QR code, a secret code and multimedia image details corresponding to the multimedia image includes: When the authenticated user triggers a shooting operation, the terminal obtains geographical location information of the shooting location related to the product, the shot multimedia image information, and the user information of the authenticated user; Upload the user information to the background server and initiate a timing request, so that the background server generates a timing key based on the user information, the current timing code of the application APP and the actual shooting time using an irreversible encryption algorithm, and feeds it back to the terminal; The terminal generates a QR code using the timing key, the geographical location information of the shooting location, the real shooting time, the user information and the shot multimedia image information; The terminal selects the coordinates of the marked pixel points and the corresponding RGB color values in the multimedia image information to generate a secret code; The terminal generates a multimedia image and multimedia image detail information based on the multimedia image information, wherein the multimedia image detail information includes at least a file name, a file storage size, geographical location information of the shooting location, and outline information of the multimedia image; The terminal associates the multimedia image with the authentication information consisting of the two-dimensional code and the secret code, and sets the two-dimensional code, the geographical location information of the shooting location and the real shooting time as a watermark on the multimedia image.
7. The system according to claim 6, characterized in that The first terminal is further configured to obtain, after obtaining a multimedia image related to a commodity photographed by an authenticated user, article information corresponding to the multimedia image input by the authenticated user, and associate the article information with the multimedia image; The backend server is used to associate the multimedia image whose detailed information of the QR code, secret code and multimedia image has been authenticated with the pre-established traceability seal set corresponding to the commodity, specifically to associate the multimedia image whose detailed information of the QR code, secret code and multimedia image has been authenticated, and the article information associated with the multimedia image with the pre-established traceability seal set corresponding to the commodity.
8. An anti-counterfeiting traceability system, characterized in that: include: The system for generating the anti-counterfeiting traceability code and the second terminal as claimed in claim 6 or 7; The second terminal is used to scan the anti-counterfeiting traceability code generated by the anti-counterfeiting traceability code generation system, and send a query request to a backend server in the anti-counterfeiting traceability code generation system, wherein the query request includes the anti-counterfeiting traceability code; The backend server is used to obtain the batch code corresponding to the anti-counterfeiting traceability code based on the query request; Acquire a traceability seal set associated with the batch code, and feed back the traceability seal set and the batch code to the second terminal; The second terminal is used to display the traceability print set and the batch code.
9. The system according to claim 8, characterized in that The backend server is further configured to record the number of times the product is scanned to check its authenticity based on the query request; obtain a traceability seal set associated with the batch code, and feed back the traceability seal set, the number of times the product is scanned to check its authenticity, and the batch code to the second terminal; The second terminal is also used to display the traceability print set, the code scanning query times and the batch code.
Citation Information
Patent Citations
Printing forgery prevention and information tracing method based on digital watermark and two-dimensional code combined together
CN107194449A
Product traceability system
CN108319998A
Anti-counterfeiting traceability method based on block chain
CN110675171A
Product traceability method and system and product traceability information processing method
CN111369261A
Agricultural product traceability information query method and system
CN111581541A
Cited By
Precious metal video evidence storage traceability system and method based on information kernel reconstruction and filter screen learning
CN122596089A
