Dynamic QR code generation method, system and server
By receiving and verifying commodity transaction site information and static QR code information, dynamic commodity information is generated and dynamic QR codes are generated, which solves the problem that static QR codes are easy to forge in food traceability, and realizes the basis and QR code for commodity traceability. The authenticity and security of QR code.
Patent Information
- Application Number
- CN202010111361.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-02-24
AI Technical Summary
Existing static QR codes are easy to forge in food traceability, and dynamic QR code generation technology cannot effectively solve the authenticity problem.
By receiving the commodity transaction site information and the commodity image containing the static QR code information of the commodity, it performs verification and identification, generates dynamic commodity information, and sends it to the QR code generation device to generate the dynamic QR code, realizing two-way verification and Encryption processing to ensure the legality and authenticity of the QR code.
It effectively solves the problem that static QR codes are easy to forge, provides a basis for product traceability, enhances the authenticity and security of QR codes, and reduces the possibility of forgery.
Smart Images

Figure CN113298209B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of two-dimensional codes, and in particular to a method, system and server for generating a dynamic two-dimensional code. Background Art
[0002] QR code technology has been widely used in many fields due to its large information storage capacity and easy identification and analysis. Especially in the field of food traceability, QR code technology provides consumers with a simple and easy way to trace the source of food. However, the traceability QR code generated based on static information has the problem of easy information forgery, and the existing dynamic QR code generation technology solution mainly dynamically encrypts the QR code data during transmission, or dynamically adjusts the QR code during the generation process, but it still cannot solve the authenticity problem of food traceability. Summary of the invention
[0003] A technical problem to be solved by the present disclosure is to provide a method, system and server for generating a dynamic QR code, which can solve the problem that static QR codes are easy to forge, thereby providing a basis for product traceability.
[0004] According to one aspect of the present disclosure, a dynamic QR code generation method is proposed, including: receiving commodity transaction site information and a commodity image containing static QR code information of the commodity sent by a QR code generation device; verifying the commodity transaction site information; if the commodity transaction site information verification passes, identifying the static QR code information of the commodity in the commodity image; superimposing the commodity transaction site information and the static QR code information of the commodity to generate dynamic commodity information; and sending the dynamic commodity information to the QR code generation device so that the QR code generation device generates a dynamic QR code according to the dynamic commodity information.
[0005] In some embodiments, the commodity transaction site information includes identification information of a QR code generating device, and verifying the commodity transaction site information includes: judging whether the QR code generating device is legal based on the identification information of the QR code generating device; if the QR code generating device is legal, it is determined that the commodity transaction site information verification has passed.
[0006] In some embodiments, the commodity transaction site information includes identification information of a QR code generating device and image information of a commodity salesperson, and verifying the commodity transaction site information includes: judging whether the QR code generating device is legal based on the identification information of the QR code generating device; performing image recognition on the image information of the commodity salesperson to judge whether the commodity salesperson in the image information of the commodity salesperson is a legal salesperson; if the QR code generating device is legal and the commodity salesperson is a legal salesperson, it is determined that the commodity transaction site information verification has passed.
[0007] In some embodiments, the commodity transaction site information also includes one or more of commodity purchaser image information, commodity weight information, commodity quantity information, commodity transaction time information, and commodity transaction location information.
[0008] In some embodiments, identifying the static QR code information of the product in the product image includes: identifying the static QR code of the product in the product image based on image recognition technology; decrypting the static QR code of the product to obtain the static QR code information of the product.
[0009] In some embodiments, the commodity transaction site information and the commodity image are encrypted data. After the encrypted data is decrypted, the commodity transaction site information is verified, and the static QR code information of the commodity in the commodity image is identified.
[0010] In some embodiments, the dynamic product information is encrypted and sent to a QR code generating device.
[0011] According to another aspect of the present disclosure, a server is also proposed, including: a first information receiving unit, configured to receive commodity transaction site information and a commodity image containing static QR code information of the commodity sent by a QR code generating device; an information verification unit, configured to verify the commodity transaction site information; an information identification unit, configured to identify the static QR code information of the commodity in the commodity image if the commodity transaction site information verification passes; an information superposition unit, configured to superimpose the commodity transaction site information and the static QR code information of the commodity to generate dynamic commodity information; a first information sending unit, configured to send the dynamic commodity information to the QR code generating device, so that the QR code generating device generates a dynamic QR code according to the dynamic commodity information.
[0012] According to another aspect of the present disclosure, a server is further proposed, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the dynamic two-dimensional code generation method as described above based on instructions stored in the memory.
[0013] According to another aspect of the present disclosure, a dynamic QR code generation system is also proposed, including: the above-mentioned server; and a QR code generation device, which is configured to send commodity transaction site information and commodity images containing static QR code information of the commodity to the server, and receive dynamic commodity information sent by the server, and generate a dynamic QR code based on the dynamic commodity information.
[0014] In some embodiments, the QR code generating device is also configured to send encrypted commodity transaction site information and encrypted commodity images containing commodity static QR code information to a server, and to receive encrypted dynamic commodity information sent by the server, decrypt the encrypted dynamic commodity information, and generate a dynamic QR code based on the dynamic commodity information.
[0015] In some embodiments, the two-dimensional code generating device is further configured to display the generated dynamic two-dimensional code on the screen or print it out.
[0016] According to another aspect of the present disclosure, a computer-readable storage medium is also proposed, on which computer program instructions are stored, and when the instructions are executed by a processor, the dynamic two-dimensional code generation method of any one of claims 1 to 7 is implemented.
[0017] In the disclosed embodiment, by verifying the commodity transaction site information and using image recognition technology to identify the static QR code information of the commodity, and then using the commodity transaction site information and the static QR code information of the commodity to generate a dynamic QR code, the problem of static QR codes being easy to forge can be solved, thereby providing a basis for commodity traceability.
[0018] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0021] Figure 1 The present invention is a flowchart of some embodiments of the method for generating a dynamic two-dimensional code according to the present invention.
[0022] Figure 2 Schematic diagram of the flow chart of other embodiments of the dynamic two-dimensional code generation method disclosed in the present invention.
[0023] Figure 3 Schematic diagram of the flow chart of other embodiments of the dynamic two-dimensional code generation method disclosed in the present invention.
[0024] Figure 4 The following is a schematic diagram of the structure of some embodiments of the server disclosed in the present invention.
[0025] Figure 5 Schematic diagram of the structure of other embodiments of the server disclosed in the present invention.
[0026] Figure 6 Schematic diagrams of the structures of other embodiments of the server disclosed herein.
[0027] Figure 7 It is a schematic diagram of the structure of some embodiments of the dynamic two-dimensional code generation system disclosed in the present invention.
[0028] Figure 8 It is a schematic diagram of the structure of some embodiments of the two-dimensional code generating device disclosed in the present invention.
[0029] Fig. 9 Schematic diagram of the structure of some other embodiments of the two-dimensional code generating device disclosed in the present invention. DETAILED DESCRIPTION
[0030] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0031] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0032] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0033] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0034] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0035] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0036] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0037] Figure 1 The following is a flowchart of some embodiments of the method for generating a dynamic two-dimensional code disclosed in the present invention. The steps of this embodiment are executed by a server, which is, for example, a cloud server.
[0038] In step 110, the commodity transaction site information and the commodity image including the static QR code information of the commodity sent by the QR code generating device are received.
[0039] In some embodiments, the server and the QR code generating device communicate via a 5G network, that is, the QR code generating device sends commodity transaction site information and commodity images to the server via the 5G network. It should be understood by those skilled in the art that the 5G network is only used as an example, and communication can also be performed via other networks. The commodity image can be a single frame of image or video data composed of multiple images.
[0040] In some embodiments, the commodity transaction site information includes identification information of a QR code generating device, image information of a commodity salesperson, image information of a commodity purchaser, commodity weight information, commodity quantity information, commodity transaction time information, commodity transaction location information, etc. The commodity salesperson image information and the commodity purchaser image information may also be a frame of image, or may be video data composed of multiple images.
[0041] In some embodiments, the static QR code information of a product includes general information about the product, such as the product's origin, production and packaging time, and an introduction to product features.
[0042] In some embodiments, the static QR code of the product is a preset QR code, for example, a QR code pre-generated by a server for the target product, and encrypted using a pre-agreed encryption algorithm and key. After the static QR code of the product is attached to the target product, when the product is purchased, the product is placed in a specific area, and the area detects that the product is placed, and then starts shooting, for example, shooting a 1-2s high-definition video of a specific part of the target product with the static QR code attached.
[0043] In some embodiments, the QR code generating device encrypts the commodity transaction site information and commodity image and sends them to the server. The server decrypts the received encrypted data according to the algorithm and key pre-agreed with the QR code generating device.
[0044] In step 120, the commodity transaction site information is verified.
[0045] In some embodiments, whether the QR code generating device is legal can be determined based on the identification information of the QR code generating device; if the QR code generating device is legal, it is determined that the commodity transaction site information verification has passed.
[0046] For example, an identity identifier is pre-assigned to each two-dimensional code generating device to uniquely identify the legitimacy of the two-dimensional code generating device. The identification information is pre-stored in the server for comparison and verification.
[0047] In step 130, if the commodity transaction site information verification is passed, the static QR code information of the commodity in the commodity image is identified.
[0048] With the development of video image recognition technology, artificial intelligence technology based on computer vision has developed rapidly, especially the evolution of various deep learning algorithms based on convolutional neural network technology, which can quickly identify static QR codes in commodity video images. In some embodiments, after the static QR code of the commodity is identified in the commodity image, the static QR code of the commodity needs to be decrypted to obtain specific static QR code information of the commodity.
[0049] In step 140, the commodity transaction site information and the commodity static QR code information are superimposed to generate dynamic commodity information. Information superposition refers to superimposing in a manner that is convenient for consumers to browse. Since the commodity transaction site information changes each time, the generated commodity information also changes dynamically.
[0050] In step 150, the dynamic product information is sent to a two-dimensional code generating device so that the two-dimensional code generating device generates a dynamic two-dimensional code according to the dynamic product information.
[0051] In some embodiments, the dynamic commodity information may be encrypted and then sent to a QR code generating device, which first decrypts the dynamic commodity information and then generates a dynamic QR code.
[0052] In some embodiments, the QR code generating device generates a dynamic QR code according to a QR code generation protocol, where the protocol may be QR Code, PDF417, Code 49, Code 16K, Code One, etc.
[0053] In this embodiment, by verifying the commodity transaction site information and using image recognition technology to identify the static QR code information of the commodity, and then using the commodity transaction site information and the static QR code information of the commodity to generate a dynamic QR code, the problem of static QR codes being easy to forge can be solved, thereby providing a basis for commodity traceability.
[0054] Figure 2 The following is a flow chart of some other embodiments of the method for generating a dynamic two-dimensional code according to the present disclosure. The steps of this embodiment are executed by a server.
[0055] In step 210, the encrypted commodity transaction site information and the encrypted commodity image containing the commodity static QR code information sent by the QR code generating device are received.
[0056] In step 220, the commodity transaction site information and commodity image are decrypted using a pre-agreed algorithm and key.
[0057] In step 230, the legality of the two-dimensional code generating device is determined based on the identification information of the two-dimensional code generating device. For example, the server has previously saved the identification information of the two-dimensional code generating device, and after receiving the identification information sent by the two-dimensional code generating device, the received identification information is compared with the saved identification information. If the comparison is successful, it is determined that the two-dimensional code generating device is legal.
[0058] In step 240, image recognition is performed on the image information of the commodity salesperson to determine whether the commodity salesperson in the image information of the commodity salesperson is a legitimate salesperson.
[0059] In some embodiments, for commodities that require a legitimate salesperson to sell, the seller's identity is verified to be legitimate by identifying the captured seller's facial video data. For example, the seller's facial feature video information after identification is compared with a pre-stored seller's facial feature image to confirm whether the seller is a legitimate salesperson. If so, the seller's identity is determined through the pre-stored seller image.
[0060] In step 250, if the QR code generating device is legal and the product salesperson is a legal salesperson, the product static QR code in the product image is identified and decrypted to obtain the product static QR code information.
[0061] In step 260, the commodity transaction site information and the commodity static QR code information are superimposed to generate dynamic commodity information.
[0062] For example, the identification information of the QR code generating device, the image information of the product purchaser, the product weight information, the product quantity information, the product transaction time information and the product transaction location information, the seller's identity identification, etc. are superimposed with information such as the product origin, production and packaging time, and product characteristics introduction to generate dynamic product information.
[0063] In step 270, the dynamic commodity information is encrypted.
[0064] In step 280, the encrypted dynamic product information is sent to the QR code generating device in the form of dynamic page link information, so that the QR code generating device decrypts the encrypted dynamic product information and generates a dynamic QR code according to the dynamic product information.
[0065] In the above embodiment, the QR code generating device instantly encrypts and uploads the commodity transaction site information and the commodity image containing the commodity static QR code information. After the server decrypts, identifies and verifies, it synthesizes the commodity transaction site information and the commodity static QR code information, generates dynamic commodity information and encrypts it, and then sends the encrypted dynamic commodity information to the QR code generating device. After the QR code generating device decrypts the dynamic commodity information, it generates a dynamic QR code based on the dynamic commodity information. This embodiment has two-way verification interaction, which ensures the instant generation and counterfeiting of the QR code, and because the generated QR code is related to the real-time on-site transaction information, the probability of QR code counterfeiting is reduced.
[0066] Figure 3 Schematic diagram of the flow chart of other embodiments of the dynamic two-dimensional code generation method disclosed in the present invention.
[0067] In step 310, when the QR code generating device detects a commodity in a specific area, it starts shooting, obtains a video of the commodity, a video of the commodity salesperson, and a video of the commodity purchaser, and obtains identification information of the QR code generating device, one of commodity weight information and commodity quantity information, commodity transaction time information, and commodity transaction location information. The commodity video contains the static QR code information of the commodity.
[0068] In some embodiments, whether a product enters a specific area can be detected by using gravity perception, or by using moving object video perception, or both.
[0069] In some embodiments, shooting a product video means shooting a high-definition video of a specific part of the target product with an encrypted static QR code. The static QR code is a QR code pre-generated by a cloud server for the target product. The QR code mainly contains general information about the product, such as the product's origin, production and packaging time, product characteristics, etc., and is encrypted using a pre-agreed encryption algorithm and key.
[0070] In some embodiments, the facial video of the salesperson is taken for 1-2 seconds as needed. For example, for some products that require a designated legal salesperson, the salesperson's facial feature information needs to be pre-stored in the cloud server and given an identity code SID for comparison and verification.
[0071] In some embodiments, the buyer's facial video is shot for 1-2 seconds according to the buyer's wishes. For example, the buyer's facial features are shot according to the buyer's wishes to provide a clearer basis for product purchase retrospection.
[0072] In some embodiments, some commodities are sold by weight, and some commodities are sold by quantity. Therefore, commodity weight information or commodity quantity information can be selected according to the sales attribute. The transaction time refers to the latest time when the commodity is photographed and uploaded. The transaction location information refers to the location information of the QR code generating device, which can be obtained through the built-in A-GPS module.
[0073] In step 320, the QR code generating device encrypts the product video, the product salesperson video, the product purchaser video, the identification information of the QR code generating device, the product weight information, the product quantity information, the product transaction time information, and the product transaction location information. The QR code generating device needs to pre-negotiate the encryption method with the cloud server, such as symmetric encryption, asymmetric encryption, etc.
[0074] In step 330, the QR code generating device sends the encrypted data to the cloud server via 5G access and broadband network.
[0075] In some embodiments, 5G access and broadband network refers to the deployment of a 5G access network in a commodity sales environment for fast uploading of data such as high-definition video, and ultimately transferring the data to a cloud server through cellular network-data gateway conversion.
[0076] In step 340, after receiving the encrypted data, the cloud server decrypts the data using a pre-agreed algorithm and key, i.e., obtains the product video, product salesperson video, product buyer video, product weight information, product quantity information, product transaction time information, and product transaction location information.
[0077] In step 350 , the cloud server determines whether the QR code generating device is legal based on the identification information of the QR code generating device. If it is legal, step 360 is executed; otherwise, step 3130 is executed.
[0078] In step 360 , the cloud server performs image recognition on the video of the merchandise salesperson to determine whether the merchandise salesperson in the video is a legitimate salesperson. If so, execute step 370 ; otherwise, execute step 3130 .
[0079] In step 370 , the cloud server identifies the static QR code of the product in the product video and determines whether the static QR code information of the product can be decrypted. If so, step 380 is executed; otherwise, step 3130 is executed.
[0080] In some embodiments, after the encrypted data is encrypted in step 340, a product video is obtained. Since the static QR code information of the product is encrypted QR code information, the encrypted static QR code information of the product needs to be further decrypted. If it can be decrypted, it means that the static QR code information of the product is a traceable product encrypted by the cloud server.
[0081] In step 380, the cloud server superimposes the static QR code information of the product with the video of the product salesperson, the video of the product purchaser, and the product weight information, product quantity information, product transaction time information, and product transaction location information to generate dynamic product information.
[0082] In step 390, the cloud server encrypts the dynamic product information.
[0083] In step 3100, the cloud server transmits the encrypted dynamic product information to the QR code generating device via broadband and 5G networks.
[0084] In step 3110, after receiving the encrypted dynamic commodity information, the QR code generating device decrypts it according to the pre-agreed algorithm and key, and generates a dynamic QR code that can be recognized by a common QR code recognition device. The QR code generation protocol can be one of QR Code, PDF417, Code49, Code 16K, Code One, etc.
[0085] The dynamic QR code can be displayed on a screen or printed out so that the dynamic QR code can be attached to the goods for sale.
[0086] In step 3120, the consumer scans and identifies the dynamic QR code information on the product and checks the traceability information of the product.
[0087] In step 3130, the cloud server feeds back warning information to the QR code generating device, for example, instructing the QR code generating device to print or display a warning message, such as "If the product traceability information cannot be verified, please be careful when purchasing."
[0088] In the above embodiment, the characteristics of 5G, high-definition video and artificial intelligence are used to realize two-way authentication between the QR code generation device and the cloud server, and the on-site commodity data is verified and generated in real time, avoiding the problem of fixed generation and easy counterfeiting of QR codes; by taking videos of the scene and intelligently identifying them at the back end, on the one hand, the deterrent to counterfeiters is increased, and on the other hand, the difficulty of counterfeiting is increased. This solution organically integrates the characteristics of 5G, high-definition video and artificial intelligence, realizes efficient transmission of high-definition video data and intelligent identification of sellers, which is both fast and convenient.
[0089] Figure 4The server of the present disclosure includes a first information receiving unit 410 , an information checking unit 420 , an information identifying unit 430 , an information superimposing unit 440 and a first information sending unit 450 .
[0090] The first information receiving unit 410 is configured to receive commodity transaction site information and commodity images containing static QR code information of the commodity sent by the QR code generating device.
[0091] The commodity transaction site information includes the identification information of the QR code generating device, the image information of the commodity salesperson, the image information of the commodity purchaser, the commodity weight information, the commodity quantity information, the commodity transaction time information and the commodity transaction location information, etc. The commodity static QR code information includes the commodity origin, production and packaging time, commodity characteristics and other general commodity information.
[0092] The information verification unit 420 is configured to verify the commodity transaction site information.
[0093] In some embodiments, whether the QR code generating device is legal is determined based on the identification information of the QR code generating device; if the QR code generating device is legal, it is determined that the commodity transaction site information verification has passed.
[0094] In some embodiments, based on the identification information of the QR code generating device, it is determined whether the QR code generating device is legal; image recognition is performed on the image information of the commodity salesperson to determine whether the commodity salesperson in the image information of the commodity salesperson is a legal salesperson; if the QR code generating device is legal and the commodity salesperson is a legal salesperson, it is determined that the commodity transaction site information verification has passed.
[0095] The information identification unit 430 is configured to identify the static QR code information of the commodity in the commodity image if the commodity transaction site information verification is passed.
[0096] In some embodiments, a static QR code of a product in a product image is identified based on image recognition technology; the static QR code of the product is decrypted to obtain the static QR code information of the product.
[0097] The information superposition unit 440 is configured to superimpose the commodity transaction site information and the commodity static two-dimensional code information to generate dynamic commodity information.
[0098] The first information sending unit 450 is configured to send the dynamic commodity information to the two-dimensional code generating device, so that the two-dimensional code generating device generates a dynamic two-dimensional code according to the dynamic commodity information.
[0099] In some embodiments, the dynamic product information is sent to the QR code generating device in the form of dynamic page link information.
[0100] In this embodiment, by verifying the commodity transaction site information and using image recognition technology to identify the static QR code information of the commodity, and then using the commodity transaction site information and the static QR code information of the commodity to generate a dynamic QR code, the problem of static QR codes being easy to forge can be solved, thereby providing a basis for commodity traceability.
[0101] Figure 5 The server also includes a first information decryption unit 510 and a first information encryption unit 520.
[0102] The first information decryption unit 510 is configured to decrypt the encrypted commodity transaction site information and commodity image; the first information encryption unit 520 is configured to encrypt the generated dynamic commodity information. The first information sending unit 450 is also configured to send the encrypted dynamic commodity information to the QR code generating device.
[0103] Figure 6 6 is a schematic diagram of the structure of another embodiment of the server disclosed in the present invention. The server includes a memory 610 and a processor 620. The memory 610 may be a disk, a flash memory or any other non-volatile storage medium. The memory 610 is used to store Figure 1-3 The processor 620 is coupled to the memory 610 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 620 is used to execute the instructions stored in the memory.
[0104] In other embodiments of the present disclosure, the processor 620 is coupled to the memory 610 via a BUS 630. The server 600 may also be connected to an external storage device 650 via a storage interface 640 to call external data, and may also be connected to a network or another computer system (not shown) via a network interface 660, which will not be described in detail here.
[0105] In this embodiment, by storing data instructions in a memory and then processing the instructions through a processor, the problem of static two-dimensional codes being easy to forge can be solved, thereby providing a basis for product traceability.
[0106] Figure 7 The structure diagram of some embodiments of the dynamic QR code generation system of the present disclosure. The system includes a server 710 and a QR code generation device 720. The server 710 can communicate with the QR code generation device 720 through a 5G network. In some embodiments, a number of 5G small base stations can be deployed indoors. The 5G base station signal deployment position is preferably such that it can effectively cover the position of the QR code generation device 720. The QR code generation device 720 is converted through 5G and broadband networks and finally accesses the server 710.
[0107] The server 710 has been described in detail in the above embodiments and will not be further described here. The QR code generating device 720 is configured to send commodity transaction site information and commodity images containing static QR code information of commodities to the server, and receive dynamic commodity information sent by the server, and generate dynamic QR codes according to the dynamic commodity information.
[0108] Figure 8 The schematic diagram is a schematic diagram of the structure of some embodiments of the two-dimensional code generating device of the present disclosure. The two-dimensional code generating device includes a second information collecting unit 810, a second information sending unit 820, a second information receiving unit 830 and a two-dimensional code generating unit 840.
[0109] The second information collection unit 810 is configured to collect commodity transaction site information and commodity images including commodity static QR code information.
[0110] In some embodiments, the commodity transaction site information includes identification information of the QR code generating device, image information of the commodity salesperson, image information of the commodity purchaser, commodity weight information, commodity quantity information, commodity transaction time information, commodity transaction location information, etc. The commodity static QR code information includes commodity origin, production and packaging time, commodity characteristics introduction and other general commodity information.
[0111] In some embodiments, Fig. 9 As shown, the two-dimensional code generating device further includes a target sensing unit 811, which is configured to sense whether a commodity is placed in a specific area, for example, by sensing whether the commodity is placed in the specific area through gravity sensing and video motion detection.
[0112] The second information collection unit 810 includes, for example, a video / image collection unit configured to collect video / image data of the perceived product, for example, collect product videos containing static QR code information of the product, product salesperson videos, and product buyers videos.
[0113] In some embodiments, in order to improve the image recognition accuracy of the server, the accuracy of the collected video image data is not less than 1080P, and the QR code generating device is placed in a position where the illumination is not less than 1000Lx (lux).
[0114] The second information sending unit 820 is configured to send commodity transaction site information and commodity images including commodity static QR code information to the server.
[0115] The second information receiving unit 830 is configured to receive dynamic commodity information sent by the server.
[0116] The QR code generating unit 840 is configured to generate a dynamic QR code according to the dynamic product information.
[0117] In some embodiments, the two-dimensional code generation unit 840 generates a dynamic two-dimensional code according to a two-dimensional code generation protocol, and the protocol may be one of QR Code, PDF417, Code 49, Code 16K, CodeOne, and the like.
[0118] In some other embodiments of the present disclosure, the data sent by the two-dimensional code generating device to the server is encrypted data, and the data sent by the server to the two-dimensional code generating device is also encrypted data. Fig. 9 As shown, a second encryption unit 850 and a second decryption unit 860 are also included.
[0119] The second encryption unit 850 is configured to encrypt the commodity transaction site information and the commodity image containing the commodity static QR code information. The second information sending unit 820 is configured to send the encrypted commodity transaction site information and the encrypted commodity image containing the commodity static QR code information to the server.
[0120] The second decryption unit 860 is configured to decrypt the encrypted dynamic commodity information. The second information receiving unit 830 is configured to receive the encrypted dynamic commodity information sent by the server.
[0121] In some embodiments, the encryption and decryption algorithms and keys are agreed upon with the cloud server side, and a combination of private encryption and public key encryption can be used, such as using DES / IDEA and RSA, that is, data transmitted in the network can be encrypted with DES or IDEA, and the encryption key is encrypted and transmitted with RSA.
[0122] In some other embodiments of the present disclosure, the two-dimensional code generating device may further include a two-dimensional code output unit 870 configured to display the generated dynamic two-dimensional code on a screen or print it out.
[0123] In the above embodiment, the two-way verification interaction between the two-dimensional code generating device and the server ensures the instant generation and anti-counterfeiting of the two-dimensional code.
[0124] The present disclosure can be applied to many scenarios, such as the sale of goods in supermarkets, the sale of high-end goods such as jewelry and famous paintings, etc. It is a typical application scenario of the organic combination of 5G, video and AI.
[0125] In some other embodiments, a computer readable storage medium stores computer program instructions, which when executed by a processor implement Figure 1-3The steps of the method in the corresponding embodiment. Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0126] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0130] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for generating a dynamic two-dimensional code, comprising: Receiving commodity transaction site information and a commodity image including static commodity QR code information sent by a QR code generating device, wherein the commodity transaction site information includes identification information of the QR code generating device; Verifying the commodity transaction site information, including: Determining whether the two-dimensional code generating device is legal according to the identification information of the two-dimensional code generating device; and If the two-dimensional code generating device is legal, it is determined that the commodity transaction site information verification has passed; If the commodity transaction site information verification is passed, identifying the commodity static QR code information in the commodity image; Superimposing the commodity transaction site information and the commodity static QR code information to generate dynamic commodity information; and The dynamic commodity information is sent to the two-dimensional code generating device, so that the two-dimensional code generating device generates a dynamic two-dimensional code according to the dynamic commodity information.
2. The method for generating a dynamic two-dimensional code according to claim 1, wherein: The commodity transaction site information also includes the commodity salesperson image information, and then verifying the commodity transaction site information also includes: Determining whether the two-dimensional code generating device is legal according to the identification information of the two-dimensional code generating device; Performing image recognition on the product salesperson image information to determine whether the product salesperson in the product salesperson image information is a legitimate salesperson; and If the two-dimensional code generating device is legal and the commodity salesperson is a legal salesperson, it is determined that the commodity transaction site information verification has passed.
3. The method for generating a dynamic two-dimensional code according to claim 1 or 2, wherein: The commodity transaction site information also includes one or more of commodity buyer image information, commodity weight information, commodity quantity information, commodity transaction time information and commodity transaction location information.
4. The method for generating a dynamic two-dimensional code according to claim 1 or 2, wherein: Identifying the static QR code information of the product in the product image includes: Identify the static QR code of the product in the product image based on image recognition technology; and The static QR code of the product is decrypted to obtain the static QR code information of the product.
5. The method for generating a dynamic two-dimensional code according to claim 1 or 2, wherein: The commodity transaction site information and the commodity image are encrypted data. After decrypting the encrypted data, the commodity transaction site information is verified, and the static QR code information of the commodity in the commodity image is identified.
6. The method for generating a dynamic two-dimensional code according to claim 5, wherein: The dynamic commodity information is encrypted and sent to the QR code generating device.
7. A server, comprising: The first information receiving unit is configured to receive commodity transaction site information and commodity images containing commodity static QR code information sent by the QR code generating device; an information verification unit configured to verify the commodity transaction site information, wherein, according to the identification information of the two-dimensional code generating device, it is determined whether the two-dimensional code generating device is legal, and if the two-dimensional code generating device is legal, it is determined that the commodity transaction site information verification has passed; An information recognition unit is configured to recognize the static QR code information of the commodity in the commodity image if the commodity transaction site information verification passes; an information superposition unit, configured to superimpose the commodity transaction site information and the commodity static QR code information to generate dynamic commodity information; and The first information sending unit is configured to send the dynamic commodity information to the two-dimensional code generating device, so that the two-dimensional code generating device generates a dynamic two-dimensional code according to the dynamic commodity information.
8. A server, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the dynamic two-dimensional code generation method according to any one of claims 1 to 6 based on instructions stored in the memory.
9. A dynamic two-dimensional code generation system, comprising: The server according to claim 7 or 8; as well as The QR code generating device is configured to send commodity transaction site information and commodity images containing static commodity QR code information to the server, and receive dynamic commodity information sent by the server, and generate a dynamic QR code based on the dynamic commodity information.
10. The dynamic two-dimensional code generation system according to claim 9, wherein: The QR code generating device is also configured to send encrypted commodity transaction site information and encrypted commodity images containing commodity static QR code information to the server, and receive encrypted dynamic commodity information sent by the server, decrypt the encrypted dynamic commodity information, and generate a dynamic QR code based on the dynamic commodity information.
11. The dynamic two-dimensional code generation system according to claim 9 or 10, wherein: The two-dimensional code generating device is also configured to display the generated dynamic two-dimensional code on a screen or print it out.
12. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the dynamic two-dimensional code generation method described in any one of claims 1 to 6.
