CN109711512A - Two-dimensional code generation method and device - Google Patents

Two-dimensional code generation method and device Download PDF

Info

Publication number
CN109711512A
CN109711512A CN201811544027.1A CN201811544027A CN109711512A CN 109711512 A CN109711512 A CN 109711512A CN 201811544027 A CN201811544027 A CN 201811544027A CN 109711512 A CN109711512 A CN 109711512A
Authority
CN
China
Prior art keywords
product
dimensional code
picture
image
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811544027.1A
Other languages
Chinese (zh)
Inventor
刘一强
邓洪斌
秦萍
连园园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811544027.1A priority Critical patent/CN109711512A/en
Publication of CN109711512A publication Critical patent/CN109711512A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention provides a method and a device for generating a two-dimensional code. Wherein, the method comprises the following steps: receiving a trigger instruction for triggering generation of the two-dimensional code; starting a camera according to the trigger instruction, and acquiring an image through the camera; acquiring a product picture matched with the image from a server; the method comprises the steps of determining the two-dimensional code corresponding to the image according to the corresponding relation between the pre-stored product picture and the two-dimensional code, displaying the determined two-dimensional code, solving the problems that the product information is not comprehensive and the after-sale service reservation operation is complicated due to the fact that the product information is acquired in a traditional mode after the two-dimensional code of the smart home is damaged in the related art, and enabling a user to automatically trigger and generate the two-dimensional code corresponding to the product, so that the technical effects of comprehensively and efficiently acquiring the product information and enabling the after-sale reservation to be simpler and more convenient are achieved.

Description

Two-dimensional code generation method and device
Technical Field
The invention relates to the field of communication, in particular to a two-dimensional code generation method and device.
Background
With the rise of the mobile internet era, under the popularization of smart phones and tablet computers, two-dimensional code technology is favored by people, under a mobile internet mode, the operation activity range of people is wider, and therefore more information interaction and sharing are needed.
However, the information of the smart home product in the related art is obtained through a traditional way (for example, the user reads the product specification by himself), and the traditional way has the problem that the information of the product is not completely obtained.
In order to solve the problems, related product information can be obtained by scanning a two-dimensional code on a smart home body in the related art, however, if the time is too long, the product information cannot be scanned due to the fact that the two-dimensional code is damaged due to some reason, a user can only obtain the product information by reading a product specification, if the product specification is lost, after the product specification is applied for sale, the related product information generally needs to be improved, and great trouble exists when the user needs to obtain the product information.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a two-dimension code generation method and device, which are used for at least solving the problems that in the related art, after a two-dimension code of an intelligent home is damaged, product information is not comprehensive and after-sale service reservation operation is complicated due to the fact that the product information is obtained in a traditional mode.
According to an embodiment of the present invention, there is provided a two-dimensional code generation method including:
receiving a trigger instruction for triggering generation of the two-dimensional code;
acquiring an image of a product through a camera according to the trigger instruction;
acquiring a product picture matched with the image;
and determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code, and displaying the determined two-dimensional code.
Optionally, the method further comprises:
before a trigger instruction for triggering generation of the two-dimensional code is received, acquiring the corresponding relation between the product picture and the two-dimensional code from a server, and storing the corresponding relation between the product picture and the two-dimensional code; or after a trigger instruction for triggering generation of the two-dimensional code is received, acquiring the corresponding relation between the product picture and the two-dimensional code from a server according to the trigger instruction.
Optionally, after determining the two-dimensional code corresponding to the image according to the correspondence between the product picture and the two-dimensional code, and displaying the determined two-dimensional code, the method further includes:
identifying the two-dimensional code;
and drawing an after-sale service list in a display screen, wherein the after-sale service list carries the product identification and the product information of the product.
According to another embodiment of the present invention, there is also provided a two-dimensional code generation method, including:
acquiring a product identifier, product information and a product picture;
generating a two-dimensional code according to the product identification, the product information and the product picture;
and storing the corresponding relation between the product picture and the two-dimensional code, wherein the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
Optionally, the acquiring the product identifier, the product information, and the product picture includes:
calling a graphic data interface;
and acquiring the product identification, the product information and the product picture through the image-text data interface.
Optionally, the generating the two-dimensional code according to the product identifier, the product information, and the product picture includes:
encrypting the product identification;
after the product identification is encrypted, determining a link address corresponding to the product identification, the product information and the product picture;
calling a specified two-dimensional code generating program;
and generating the two-dimensional code according to the link address.
Optionally, the determining the link address corresponding to the product identifier, the product information, and the product picture includes:
carrying out picture coding on the product picture to obtain a character string;
and embedding the character string, the product identification and the product information into a link address to obtain the link address corresponding to the product identification, the product information and the product picture.
According to another embodiment of the present invention, there is also provided a two-dimensional code generating apparatus including:
the receiving module is used for receiving a trigger instruction for triggering generation of the two-dimensional code;
the first acquisition module is used for acquiring an image of a product through a camera according to the trigger instruction;
the second acquisition module is used for acquiring a product picture matched with the image;
and the determining module is used for determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code and displaying the determined two-dimensional code.
Optionally, the apparatus further comprises:
the acquisition and storage module is used for acquiring the corresponding relation between the product picture and the two-dimensional code from a server and storing the corresponding relation between the product picture and the two-dimensional code before receiving a trigger instruction for triggering the generation of the two-dimensional code; or,
and the fourth acquisition module is used for acquiring the corresponding relation between the product picture and the two-dimensional code from the server according to the trigger instruction after receiving the trigger instruction for triggering the generation of the two-dimensional code.
Optionally, the apparatus further comprises:
the identification module is used for identifying the two-dimensional code;
and the drawing module is used for drawing an after-sale service list in a display screen, wherein the after-sale service list carries the product identification and the product information of the product.
According to another embodiment of the present invention, there is also provided a two-dimensional code generating apparatus including:
the third acquisition module is used for acquiring the product identification, the product information and the product picture;
the generating module is used for generating a two-dimensional code according to the product identification, the product information and the product picture;
and the storage module is used for storing the corresponding relation between the product picture and the two-dimensional code, and the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
Optionally, the third obtaining module is further configured to
Calling a graphic data interface;
and acquiring the product identification, the product information and the product picture through the image-text data interface.
Optionally, the generating module includes:
the encryption unit is used for encrypting the product identification;
a determining unit, configured to determine a link address corresponding to the product identifier, the product information, and the product picture after encrypting the product identifier;
the calling unit is used for calling the specified two-dimensional code generation program;
and the generating unit is used for generating the two-dimensional code according to the link address.
Optionally, the determination unit is further configured to
Carrying out picture coding on the product picture to obtain a character string;
and embedding the character string, the product identification and the product information into a link address to obtain the link address corresponding to the product identification, the product information and the product picture.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a trigger instruction for triggering the generation of the two-dimensional code is received; acquiring an image of a product through the camera according to the trigger instruction; acquiring a product picture matched with the image; the two-dimensional code corresponding to the image is determined according to the corresponding relation between the product picture and the two-dimensional code, the determined two-dimensional code is displayed, the problem that product information is incomplete due to the fact that product information is acquired through a traditional mode after the two-dimensional code of the smart home is damaged in the related art is solved, a user can automatically trigger the two-dimensional code corresponding to the product to be generated, and the technical effect of comprehensively and efficiently acquiring the information of the product is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a two-dimensional code generation method according to an embodiment of the present invention;
fig. 2 is a first flowchart of a two-dimensional code generation method according to an embodiment of the present invention;
fig. 3 is a flowchart of a two-dimensional code generation method according to an embodiment of the present invention;
FIG. 4 is a flow diagram of two-dimensional code generation according to an embodiment of the invention;
fig. 5 is a block diagram of a two-dimensional code generating apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a two-dimensional code generating apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a two-dimensional code generation method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the two-dimensional code generation method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for generating a two-dimensional code is provided, and fig. 2 is a first flowchart of a method for generating a two-dimensional code according to an embodiment of the present invention, as shown in fig. 2, the process includes the following steps:
step S202, receiving a trigger instruction for triggering generation of the two-dimensional code;
in the step S202, the user registers through the application program and stores the user information by ending the trigger instruction through the application program that establishes the connection with the backend server, and when the two-dimensional code on the product is damaged, the user can trigger to generate the two-dimensional code through the application program.
Step S204, acquiring an image of the product through a camera according to the trigger instruction;
in the step S204, when the trigger instruction is detected, the camera is started, and an image of the product is collected according to the camera.
Step S206, acquiring a product picture matched with the image;
in the step S206, the product image matched with the image may be obtained from the server, or the product image may be stored in the terminal in advance, and the product image matched with the image is directly obtained from the product image stored locally.
And S208, determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code, and displaying the determined two-dimensional code.
Through the steps S202 to S208, the problem that product information is incomplete due to the fact that product information is acquired in a traditional mode after the two-dimensional code of the smart home is damaged in the related art is solved, a user can automatically trigger generation of the two-dimensional code corresponding to the product, and the technical effect of comprehensively and efficiently acquiring the product information is achieved.
In an optional embodiment, before receiving a trigger instruction for triggering generation of the two-dimensional code, the corresponding relationship between the product picture and the two-dimensional code is obtained from the server, and the corresponding relationship between the product picture and the two-dimensional code is stored; in another optional embodiment, after a trigger instruction for triggering generation of the two-dimensional code is received, the corresponding relation between the product picture and the two-dimensional code is acquired from the server according to the trigger instruction.
In the embodiment of the invention, a user can print the generated two-dimensional code and paste the two-dimensional code on a product, and can also directly identify the two-dimensional code to apply for an after-sales server, specifically, after the two-dimensional code corresponding to the image is determined according to the corresponding relation between the product picture and the two-dimensional code and the determined two-dimensional code is displayed, the two-dimensional code is identified; after-sale service lists are drawn in the display screen, wherein the after-sale service lists carry product identification and product information of products, a user can automatically trigger the after-sale service only by clicking a completion button, the problem that the operation of the reserved after-sale service is complex due to the fact that incomplete product information is obtained in the traditional mode after the two-dimensional codes of the smart home are damaged in the related art is solved, the reserved after-sale service is simpler and more convenient, and the convenience of after-sale service application is improved.
Example 2
An embodiment of the present invention further provides a two-dimensional code generation method, and fig. 3 is a flowchart of a two-dimensional code generation method according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
step S302, acquiring a product identifier, product information and a product picture;
step S304, generating a two-dimensional code according to the product identification, the product information and the product picture;
step S306, storing the corresponding relation between the product picture and the two-dimensional code, wherein the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
Through the steps S302 to S306, the problem that product information is incomplete due to the fact that product information is acquired in a traditional mode after the two-dimensional code of the smart home is damaged in the related art is solved, a user can automatically trigger generation of the two-dimensional code corresponding to the product, and the technical effect of comprehensively and efficiently acquiring the information of the product is achieved.
In this embodiment of the present invention, the acquiring the product identifier, the product information, and the product picture stored in the server specifically may include: calling a graphic data interface; and acquiring the product identification, the product information and the product picture from the server through the image-text data interface.
The product information is acquired from the server, the problem that the product information is incomplete due to the fact that the product information is acquired in a traditional mode in the related technology is further solved, and the technical effect of comprehensively and efficiently acquiring the product information is achieved.
Optionally, the generating the two-dimensional code according to the product identifier, the product information, and the product picture may specifically include: encrypting the product identification; after the product identification is encrypted, determining a link address corresponding to the product identification, the product information and the product picture; calling a specified two-dimensional code generating program; and generating the two-dimensional code according to the link address, wherein the product identification can be a bar code corresponding to the product.
And calling a specified two-dimensional code generating program, and writing the product information into the two-dimensional code, so that a user can quickly and independently know the product information after scanning the two-dimensional code.
In an alternative embodiment, an encrypted two-dimensional code generation program may be used to further improve the security of the two-dimensional code.
In the process of generating the two-dimensional code, the character string is restored into a picture capable of being adjusted in a self-adaptive mode, namely the picture matched with the size of the two-dimensional code can be adjusted in a self-adaptive mode according to the size of the generated two-dimensional code, after the two-dimensional code is generated, the picture is located in the center of the two-dimensional code, the type of the two-dimensional code can be conveniently distinguished, such as the two-dimensional code of an air conditioner, the two-dimensional code of a refrigerator and the like, different series products of the same type of products can also be distinguished through the picture embedded in the two-dimensional code, such as a first.
Further, the determining the link address corresponding to the product identifier, the product information and the product picture may include: carrying out picture coding on the product picture to obtain a character string; and embedding the character string, the product identification and the product information into a link address to obtain the link address corresponding to the product information, the product identification and the product picture.
In the embodiment of the invention, the two-dimension code is used for reserving after-sale service after the equipment scans the two-dimension code. For example, a user may scan the two-dimensional code through the mobile terminal, and enter an after-sales service application interface, where the interface directly carries information related to a product, such as a product model. After-sale service can be applied without inputting product information by a user, and the user can select after-sale types such as cleaning, maintenance and the like in an interface.
In this embodiment, the product information includes, but is not limited to: the name of the product, the brand of the product, the model of the product, the bar code of the product, the use instruction of the product and the like.
In the embodiment of the invention, the product data information is stored through a background data system, a front-end two-dimensional code home page is designed, an image-text data interface is called, a two-dimensional code generating program generates a two-dimensional code, and a camera is used for shooting the two-dimensional code attached to the body of the household appliance A to identify detailed information such as a brand, a model, a bar code, a product use instruction and the like. Specifically, a background data management system is established, product detailed information is uploaded and stored in a server; the front end acquires information on the server through a calling interface; the front-end home page is linked to generate a two-dimensional code through a two-dimensional code generating program; the user scans the two-dimensional code of the product body through the camera to acquire the detailed information of the product. Fig. 4 is a flowchart of two-dimensional code generation according to an embodiment of the present invention, as shown in fig. 4, which mainly includes the following steps:
step S401, data are uploaded to a server, and the data comprise product information, product pictures and the like;
step S402, acquiring the product information and the product picture from the server through a graphic data interface;
step S403, generating a two-dimensional code including a product picture, which is convenient for distinguishing different products. Specifically, the bar code corresponding to the product is encrypted, and after the bar code corresponding to the product is encrypted, a link address corresponding to the product information and the product picture is determined; and calling a specified two-dimensional code generation program, generating the two-dimensional code according to the link address, and attaching the generated two-dimensional code to the product body.
Step S404, scanning the two-dimensional code by using the mobile terminal through a camera to obtain detailed information of the product A;
and step S405, displaying the detailed information of the product A on a display interface of the mobile terminal.
The camera of the mobile terminal scans the two-dimensional code of the product body to acquire the detailed information corresponding to the product, including name, brand, model, bar code, use description and the like, so that the problem that the information of the product is unclear by a user can be effectively solved, and a way for the user to quickly and independently know the information of the product is provided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
In this embodiment, a two-dimensional code generating device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a first structure of a two-dimensional code generating apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
the receiving module 52 is configured to receive a trigger instruction for triggering generation of the two-dimensional code;
the first obtaining module 54 is configured to obtain an image of the product through a camera according to the trigger instruction;
a second obtaining module 56, configured to obtain a product picture matched with the image;
the determining module 58 is configured to determine a two-dimensional code corresponding to the image according to the correspondence between the product picture and the two-dimensional code, and display the determined two-dimensional code.
Optionally, the apparatus further comprises:
the acquisition and storage module is used for acquiring the corresponding relation between the product picture and the two-dimensional code from a server and storing the corresponding relation between the product picture and the two-dimensional code before receiving a trigger instruction for triggering the generation of the two-dimensional code; or,
and the fourth acquisition module is used for acquiring the corresponding relation between the product picture and the two-dimensional code from the server according to the trigger instruction after receiving the trigger instruction for triggering the generation of the two-dimensional code.
Optionally, the apparatus further comprises:
the identification module is used for identifying the two-dimensional code;
and the drawing module is used for drawing an after-sale service list in a display screen, wherein the after-sale service list carries the product identification and the product information of the product.
Example 4
According to another embodiment of the present invention, there is further provided a two-dimensional code generating apparatus, and fig. 6 is a block diagram of a structure of the two-dimensional code generating apparatus according to the embodiment of the present invention, as shown in fig. 6, including:
a third obtaining module 62, configured to obtain a product identifier, product information, and a product picture;
a generating module 64, configured to generate a two-dimensional code according to the product identifier, the product information, and the product picture;
the storage module 66 is configured to store a corresponding relationship between the product picture and the two-dimensional code, where the corresponding relationship between the product picture and the two-dimensional code is used to instruct the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering generation of the two-dimensional code.
Optionally, the third obtaining module 62 is further configured to
Calling a graphic data interface;
and acquiring the product identification, the product information and the product picture through the image-text data interface.
Optionally, the generating module 64 includes:
the encryption unit is used for encrypting the product identification;
a determining unit, configured to determine a link address corresponding to the product identifier, the product information, and the product picture after encrypting the product identifier;
the calling unit is used for calling the specified two-dimensional code generation program;
and the generating unit is used for generating the two-dimensional code according to the link address.
Optionally, the determination unit is further configured to
Carrying out picture coding on the product picture to obtain a character string;
and embedding the character string, the product identification and the product information into a link address to obtain the link address corresponding to the product identification, the product information and the product picture.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 5
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, receiving a trigger instruction for triggering the generation of the two-dimensional code;
s12, acquiring the image of the product through a camera according to the trigger instruction;
s13, acquiring a product picture matched with the image;
and S14, determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code, and displaying the determined two-dimensional code.
Optionally, in this embodiment, the storage medium may be further configured to store a computer program for executing the following steps:
s21, acquiring product identification, product information and product pictures;
s22, generating a two-dimensional code according to the product identification, the product information and the product picture;
and S23, storing the corresponding relation between the product picture and the two-dimensional code, wherein the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 6
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, receiving a trigger instruction for triggering the generation of the two-dimensional code;
s12, acquiring the image of the product through a camera according to the trigger instruction;
s13, acquiring a product picture matched with the image;
and S14, determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code, and displaying the determined two-dimensional code.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps:
s21, acquiring product identification, product information and product pictures;
s22, generating a two-dimensional code according to the product identification, the product information and the product picture;
and S23, storing the corresponding relation between the product picture and the two-dimensional code, wherein the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A two-dimensional code generation method is characterized by comprising the following steps:
receiving a trigger instruction for triggering generation of the two-dimensional code;
acquiring an image of a product through a camera according to the trigger instruction;
acquiring a product picture matched with the image;
and determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code, and displaying the determined two-dimensional code.
2. The method of claim 1, further comprising:
before a trigger instruction for triggering generation of the two-dimensional code is received, acquiring the corresponding relation between the product picture and the two-dimensional code from a server, and storing the corresponding relation between the product picture and the two-dimensional code; or,
after a trigger instruction for triggering generation of the two-dimensional code is received, the corresponding relation between the product picture and the two-dimensional code is obtained from the server according to the trigger instruction.
3. The method according to claim 1 or 2, wherein after determining a two-dimensional code corresponding to the image according to the correspondence between the product picture and the two-dimensional code, and displaying the determined two-dimensional code, the method further comprises:
identifying the two-dimensional code;
and drawing an after-sale service list in a display screen, wherein the after-sale service list carries the product identification and the product information of the product.
4. A two-dimensional code generation method is characterized by comprising the following steps:
acquiring a product identifier, product information and a product picture;
generating a two-dimensional code according to the product identification, the product information and the product picture;
and storing the corresponding relation between the product picture and the two-dimensional code, wherein the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
5. The method of claim 4, wherein the obtaining the product identifier, the product information, and the product picture comprises:
calling a graphic data interface;
and acquiring the product identification, the product information and the product picture through the image-text data interface.
6. The method of claim 4, wherein the generating the two-dimensional code according to the product identifier, the product information, and the product picture comprises:
encrypting the product identification;
after the product identification is encrypted, determining a link address corresponding to the product identification, the product information and the product picture;
calling a specified two-dimensional code generating program;
and generating the two-dimensional code according to the link address.
7. The method of claim 6, wherein determining the link address corresponding to the product identifier, the product information, and the product picture comprises:
carrying out picture coding on the product picture to obtain a character string;
and embedding the character string, the product identification and the product information into a link address to obtain the link address corresponding to the product identification, the product information and the product picture.
8. A two-dimensional code generation device, comprising:
the receiving module is used for receiving a trigger instruction for triggering generation of the two-dimensional code;
the first acquisition module is used for acquiring an image of a product through a camera according to the trigger instruction;
the second acquisition module is used for acquiring a product picture matched with the image;
and the determining module is used for determining the two-dimensional code corresponding to the image according to the corresponding relation between the product picture and the two-dimensional code and displaying the determined two-dimensional code.
9. A two-dimensional code generation device, comprising:
the third acquisition module is used for acquiring the product identification, the product information and the product picture;
the generating module is used for generating a two-dimensional code according to the product identification, the product information and the product picture;
and the storage module is used for storing the corresponding relation between the product picture and the two-dimensional code, and the corresponding relation between the product picture and the two-dimensional code is used for indicating the terminal to generate the two-dimensional code corresponding to the image acquired by the camera when receiving a trigger instruction for triggering the generation of the two-dimensional code.
10. A storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the method of any of claims 1 to 3, 4 to 7 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of any one of claims 1 to 3 and 4 to 7.
CN201811544027.1A 2018-12-17 2018-12-17 Two-dimensional code generation method and device Pending CN109711512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544027.1A CN109711512A (en) 2018-12-17 2018-12-17 Two-dimensional code generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544027.1A CN109711512A (en) 2018-12-17 2018-12-17 Two-dimensional code generation method and device

Publications (1)

Publication Number Publication Date
CN109711512A true CN109711512A (en) 2019-05-03

Family

ID=66256593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544027.1A Pending CN109711512A (en) 2018-12-17 2018-12-17 Two-dimensional code generation method and device

Country Status (1)

Country Link
CN (1) CN109711512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633587A (en) * 2019-09-12 2019-12-31 汕头东风印刷股份有限公司 Waste-kicking method and device for two-dimensional code on production line
WO2023035932A1 (en) * 2021-09-09 2023-03-16 中兴通讯股份有限公司 Code scanning method, information processing method, terminal, server, graphic code carrier, medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891865A (en) * 2011-07-18 2013-01-23 阿里巴巴集团控股有限公司 Information acquisition method and equipment
CN104778594A (en) * 2015-04-30 2015-07-15 刘寅华 Novel intelligent online clothes shopping platform system and method
CN105243552A (en) * 2015-10-13 2016-01-13 郭振杰 One-dimensional code or two-dimensional code scanning identification system applied to commodity after-sales service
CN105376315A (en) * 2015-11-19 2016-03-02 韶关学院 Body-building system based on two-dimension code and image recognition technology and use method thereof
KR20160122599A (en) * 2015-04-14 2016-10-24 동서대학교산학협력단 Qr code base display advertising content
CN106133759A (en) * 2014-03-24 2016-11-16 株式会社电装 Quick Response Code generating means and Quick Response Code generate program product
CN107391683A (en) * 2017-07-24 2017-11-24 北京讯创科技有限公司 Cloud service platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891865A (en) * 2011-07-18 2013-01-23 阿里巴巴集团控股有限公司 Information acquisition method and equipment
CN106133759A (en) * 2014-03-24 2016-11-16 株式会社电装 Quick Response Code generating means and Quick Response Code generate program product
KR20160122599A (en) * 2015-04-14 2016-10-24 동서대학교산학협력단 Qr code base display advertising content
CN104778594A (en) * 2015-04-30 2015-07-15 刘寅华 Novel intelligent online clothes shopping platform system and method
CN105243552A (en) * 2015-10-13 2016-01-13 郭振杰 One-dimensional code or two-dimensional code scanning identification system applied to commodity after-sales service
CN105376315A (en) * 2015-11-19 2016-03-02 韶关学院 Body-building system based on two-dimension code and image recognition technology and use method thereof
CN107391683A (en) * 2017-07-24 2017-11-24 北京讯创科技有限公司 Cloud service platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633587A (en) * 2019-09-12 2019-12-31 汕头东风印刷股份有限公司 Waste-kicking method and device for two-dimensional code on production line
WO2023035932A1 (en) * 2021-09-09 2023-03-16 中兴通讯股份有限公司 Code scanning method, information processing method, terminal, server, graphic code carrier, medium

Similar Documents

Publication Publication Date Title
CN106413124B (en) Equipment binding method and device
KR102091914B1 (en) Method and device for information interaction and association between human biological feature data and account
CN109152094B (en) Wireless network connection method for terminal
CN111327758B (en) Camera sharing method and device
CN106559388B (en) Method and device for binding equipment
CN108173727B (en) Intelligent household appliance network access method and equipment
CN106713004B (en) Router adaptation method and system
CN113596832B (en) Network connection establishment method and device, storage medium and electronic device
CN105615832A (en) Medical image data acquisition method and device
CN105513150A (en) Attendance registration method and device
CN111324275A (en) Broadcasting method and device for elements in display picture
CN109711512A (en) Two-dimensional code generation method and device
CN108989365B (en) Information processing method, server, terminal equipment and storage medium
CN111314912A (en) WiFi configuration method and device, storage medium and electronic device
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN207008680U (en) A kind of dynamic place management system based on mobile terminal
CN105788055A (en) Voting system and method for social networking site
CN117336538A (en) Customization method and device for television user interface, storage medium and electronic device
US20160315935A1 (en) Imaging processing system and electronic blackboard
CN113395741B (en) Network distribution system, method and device of equipment, electronic equipment and storage medium
CN106254953B (en) A kind of image display method and device, picture receive terminal
CN115802345A (en) Method, device and storage medium for accessing equipment to wireless network
CN107993130B (en) Service processing method and system and electronic equipment
CN111737678A (en) Target equipment binding method and device, storage medium and electronic device
CN108173831B (en) Photo distribution method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503

RJ01 Rejection of invention patent application after publication