CN104424496A - Two-dimension code generation, identification and information providing method, device and system - Google Patents

Two-dimension code generation, identification and information providing method, device and system Download PDF

Info

Publication number
CN104424496A
CN104424496A CN201310362461.9A CN201310362461A CN104424496A CN 104424496 A CN104424496 A CN 104424496A CN 201310362461 A CN201310362461 A CN 201310362461A CN 104424496 A CN104424496 A CN 104424496A
Authority
CN
China
Prior art keywords
dimensional code
unique identification
information
string
identification string
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.)
Granted
Application number
CN201310362461.9A
Other languages
Chinese (zh)
Other versions
CN104424496B (en
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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201310362461.9A priority Critical patent/CN104424496B/en
Priority to PCT/CN2014/084584 priority patent/WO2015024485A1/en
Publication of CN104424496A publication Critical patent/CN104424496A/en
Application granted granted Critical
Publication of CN104424496B publication Critical patent/CN104424496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a two-dimension code generation, identification and information providing method, device and system and belongs to the internet field. The two-dimension code generation method comprises the following steps: obtaining original information; generating a unique identification string corresponding to the original information; binding the original information with the unique identification string; sending to a predetermined server a storage request carrying the original information, the unique identification string and the binding relation between the two; and generating a two-dimension code with the unique identification string being served as content information of the two-dimension code. Through binding the original information with the unique identification string formed by a plurality of characters and carrying out coding on the unique identification string to obtain the two-dimension code, the problems of complex two-dimension code graphs, slow identification speed and low identification success rate are solved, and the effects of simplifying complexity of the two-dimension code graphs, fast identification speed and high identification success rate are achieved.

Description

Two-dimensional code generation method, two-dimensional code identification method, information providing device and information providing system
Technical Field
The invention relates to the field of internet, in particular to a two-dimensional code generation method, a two-dimensional code identification method, an information providing device and an information providing system.
Background
Along with the popularization of intelligent equipment, the use of two-dimensional codes is more and more extensive. The two-dimensional code is a pattern which is distributed on a plane according to a certain rule by using a certain specific geometric figure, and is recorded with literal numerical information at intervals of black and white. In terms of code encoding, the two-dimensional code skillfully utilizes the concepts of '0' and '1' bit streams forming the internal logic basis of a computer, and uses a plurality of geometric figures corresponding to binary systems to represent literal numerical information. Through image input equipment or photoelectric scanning equipment, can realize the automatic reading and the discernment of two-dimensional code to realize information automatic processing function.
The existing two-dimensional code generation method is to directly use original information as source data and then generate a two-dimensional code through encoding. In contrast, the existing two-dimensional code recognition method is to read the two-dimensional code by an image input device or a photoelectric scanning device and then obtain original information by decoding. In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the existing two-dimensional code directly takes original information as source data in the generation process, and then generates the two-dimensional code through encoding. However, if a data source carrying a large amount of original information is encoded, the obtained two-dimensional code becomes quite complicated. This may cause a problem that the recognition process of the two-dimensional code becomes slow or even impossible. Meanwhile, if the two-dimensional code is too complex, when a part of the two-dimensional code is damaged, the problem of unsuccessful recognition is easily caused, and the success rate of recognition is low.
Disclosure of Invention
In order to solve the problems of complex pattern, low recognition speed and low success rate of the existing two-dimensional code, the embodiment of the invention provides a two-dimensional code generation method, a two-dimensional code recognition device and a two-dimensional code generation system. The technical scheme is as follows:
in a first aspect, a two-dimensional code generation method is provided, where the method includes:
acquiring original information;
generating a unique identification string corresponding to the original information;
binding the original information with the unique identification string;
sending a storage request carrying the original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server so that the predetermined server can store the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request;
and generating the two-dimensional code by taking the unique identification string as the content information of the two-dimensional code.
In a second aspect, a two-dimensional code identification method is provided, and the method includes:
identifying a unique identification string carried in the content information of the two-dimensional code;
sending an inquiry request carrying the unique identification string to a predetermined server so that the predetermined server inquires original information bound with the unique identification string in a pre-stored binding relationship according to the inquiry request and feeds back the original information;
and receiving the original information fed back by the predetermined server.
In a third aspect, a two-dimensional code information providing method is provided, where the method includes:
pre-storing original information, a unique identification string and a binding relationship between the original information and the unique identification string;
receiving an inquiry request sent by two-dimension code identification equipment, wherein the inquiry request carries a unique identification string, and the unique identification string is obtained from content information of a two-dimension code identified by the two-dimension code identification equipment;
inquiring original information bound with the unique identification string in the binding relation according to the inquiry request;
and feeding back the original information to the two-dimension code identification equipment.
In a fourth aspect, a two-dimensional code generating apparatus is provided, the apparatus including:
the information acquisition module is used for acquiring original information;
the identification generation module is used for generating a unique identification string corresponding to the original information acquired by the information acquisition module;
the identification binding module is used for binding the original information acquired by the information acquisition module with the unique identification string generated by the identification generation module;
a storage sending module, configured to send a storage request carrying the original information, the unique identifier string, and a binding relationship therebetween to a predetermined server, so that the predetermined server stores the original information, the unique identifier string, and the binding relationship therebetween according to the storage request;
and the two-dimensional code generation module is used for generating the two-dimensional code by taking the unique identification string generated by the identification generation module as the content information of the two-dimensional code.
In a fifth aspect, a two-dimensional code recognition apparatus is provided, the apparatus including:
the identification module is used for identifying the unique identification string carried in the content information of the two-dimensional code;
a request sending module, configured to send, to a predetermined server, an inquiry request carrying the unique identifier string identified by the identifier identification module, so that the predetermined server inquires, according to the inquiry request, original information bound to the unique identifier string in a pre-stored binding relationship, and feeds back the original information;
and the information receiving module is used for receiving the original information fed back by the preset server.
In a sixth aspect, there is provided a two-dimensional code information providing apparatus, the apparatus including:
the information storage module is used for pre-storing original information, the unique identification string and the binding relationship between the original information and the unique identification string;
the device comprises a request receiving module, a query processing module and a query processing module, wherein the request receiving module is used for receiving a query request sent by two-dimension code identification equipment, the query request carries a unique identification string, and the unique identification string is obtained from content information of a two-dimension code identified by the two-dimension code identification equipment;
the information query module is used for querying original information bound with the unique identification string in the binding relationship according to the query request received by the request receiving module;
and the information feedback module is used for feeding back the original information inquired by the information inquiry module to the two-dimensional code identification equipment.
A seventh aspect provides a two-dimensional code generation system, including: the two-dimensional code generating device is connected with the preset server through a wired network or a wireless network;
the two-dimensional code generation device comprises the apparatus of the fourth aspect;
the reservation server comprises an apparatus according to the sixth aspect.
In an eighth aspect, a two-dimensional code recognition system is provided, the system comprising: the two-dimensional code recognition device is connected with the preset server through a wired network or a wireless network;
the two-dimensional code identification device comprises the device of the fifth aspect;
the reservation server comprises an apparatus according to the sixth aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
binding original information with a unique identification string consisting of a plurality of characters, coding the unique identification string to obtain a two-dimensional code, and storing the binding relationship between the original information and the unique identification string through a predetermined server so as to obtain the original information through the server by utilizing the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of an implementation environment in which various embodiments of the present invention are implemented;
fig. 2 is a flowchart of a method for generating a two-dimensional code according to an embodiment of the present invention;
fig. 3A is a flowchart of a method for generating a two-dimensional code according to another embodiment of the present invention;
FIG. 3B is a diagram comparing two-dimensional codes generated by the present invention with the prior art;
fig. 4 is a flowchart of a method for generating a two-dimensional code according to another embodiment of the present invention;
fig. 5 is a flowchart of a method for identifying a two-dimensional code according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for identifying a two-dimensional code according to another embodiment of the present invention;
fig. 7 is a flowchart of a method of providing two-dimensional code information according to an embodiment of the present invention;
fig. 8A is a block diagram of a two-dimensional code generating apparatus according to an embodiment of the present invention;
fig. 8B is a block diagram of a two-dimensional code generating apparatus according to another embodiment of the present invention;
fig. 9A is a block diagram of a two-dimensional code recognition apparatus according to an embodiment of the present invention;
fig. 9B is a block diagram of a two-dimensional code recognition apparatus according to another embodiment of the present invention;
fig. 10 is a block diagram showing the structure of a two-dimensional code information providing apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram illustrating a two-dimensional code generation system according to an embodiment of the present invention;
fig. 12 is a block diagram illustrating a two-dimensional code recognition system according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a two-dimensional code generation apparatus according to an embodiment of the present invention;
fig. 14 is a schematic configuration diagram of a terminal having an image input device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a reservation server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an implementation environment related to a two-dimensional code generation method, a two-dimensional code recognition method, and a two-dimensional code information providing method according to various embodiments of the present invention. The implementation environment includes a two-dimensional code generation device 12, a two-dimensional code recognition device 14, and a reservation server 16.
The two-dimensional code generating device 12 may be a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a laptop portable computer, a desktop computer, or the like; the system can also be a server, a server cluster consisting of a plurality of servers, or a cloud computing service center.
The two-dimensional code generation device 12 and the predetermined server 16 may be connected via a wireless network or a wired network.
The two-dimensional code recognition device 14 may be a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a laptop, a desktop computer, or the like.
The two-dimensional code recognition device 14 and the predetermined server 16 may be connected through a wireless network or a wired network.
The predetermined server 16 may be a server, a server cluster composed of several servers, or a cloud computing service center. The predetermined server 16 stores original information, a unique identification string and a binding relationship between the two.
The original information can be information such as website, business card and mail, and is source data for generating the two-dimensional code; the unique identification string is composed of a number of characters including at least one of letters, numbers and symbols.
Referring to fig. 2, a flowchart of a method for generating a two-dimensional code according to an embodiment of the present invention is shown. The present embodiment is exemplified by applying the two-dimensional code generation method to the two-dimensional code generation apparatus shown in fig. 1. The two-dimensional code generation method comprises the following steps:
step 202, acquiring original information;
step 204, generating a unique identification string corresponding to the original information;
step 206, binding the original information with the unique identification string;
step 208, sending a storage request carrying the original information, the unique identification string and the binding relationship therebetween to the predetermined server, so that the predetermined server stores the original information, the unique identification string and the binding relationship therebetween according to the storage request;
and step 210, generating the two-dimensional code by taking the unique identification string as the content information of the two-dimensional code.
In summary, in the two-dimensional code generation method provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Please refer to fig. 3A, which shows a flowchart of a method for generating a two-dimensional code according to another embodiment of the present invention. The embodiment is still exemplified by applying the two-dimensional code generation method to the implementation environment shown in fig. 1. The two-dimensional code generation method comprises the following steps:
301, acquiring original information by two-dimensional code generation equipment;
the original information can be web address, business card and mail. With the application fields of the two-dimensional codes becoming wider, the original information which can be represented by the two-dimensional codes also becomes richer.
Step 302, generating a unique identification string corresponding to original information by two-dimensional code generation equipment;
the unique identification string is composed of a number of characters including at least one of letters, numbers and symbols. For example, the unique identification string is 6 bits "abc 123"; or the unique identification string is 10 bits "abc 12 × de% 3", and so on.
The length of the unique identification string and the type of the contained characters determine the bearing capacity of the two-dimensional code generation device, wherein the bearing capacity refers to the number of the two-dimensional codes which can be generated by the two-dimensional code generation device. If the two-dimensional code generated by the two-dimensional code generation equipment consists of 3-bit numbers, the bearing capacity of the two-dimensional code generation equipment is 10^3 and is equal to 1000, namely the two-dimensional code generation system can generate one thousand different two-dimensional codes at most; if the two-dimensional code generated by the two-dimensional code generating device is composed of 4-bit letters and numbers singly or in a mixed manner, the carrying capacity of the two-dimensional code generating device is [ (26 x 2) +10] ^4 equal to 14766336, i.e. the two-dimensional code generating system can generate more than one thousand, four and ten million different two-dimensional codes at most.
That is, the larger the number and the larger the kind of characters constituting the unique identification string, the more kinds of two-dimensional codes that can be generated by the two-dimensional code generating apparatus. In practical application, in order to reduce the complexity of a two-dimensional code graph and not affect the bearing capacity of a two-dimensional code generation system, it is generally appropriate to select six-bit characters to form a unique identification string. In this embodiment, the unique identification string is "abc 123" as an example.
In a first implementation, this step may include the following two substeps:
firstly, randomly selecting a fixed number of characters from a preset character set consisting of at least one of letters, numbers and symbols;
secondly, randomly arranging the characters with fixed number to obtain a unique identification string.
Or,
in a second implementation, this step may include the following two substeps:
firstly, n random character strings which are different from each other and have fixed length are generated in advance, wherein the random character strings comprise a plurality of characters, and the characters comprise at least one of letters, numbers and symbols;
second, one is randomly extracted from the n random character strings as a unique identification string.
In a third implementation, this step may include the following two substeps:
firstly, mapping original information into a character string with a fixed length;
the fixed-length character string is unique, and the fixed-length character strings mapped by different original information are different. For any two different original messages, the corresponding fixed-length character strings are also different. The mapping method may be implemented by a hashing Algorithm such as the MD5 (Message-Digest Algorithm 5) Algorithm.
Secondly, taking a character string with a fixed length as a unique identification string;
step 303, binding original information and the unique identification string by the two-dimensional code generating equipment;
no matter how large the amount of information carried by the original information is, that is, no matter how many characters it contains, the two-dimensional code generating device can bind the original information with a unique identification string, that is, the unique identification string represents the original information. In this embodiment, any original information can be bound with a 6-bit unique identification string, and the binding relationship can be represented as [ abc123, original information ].
Step 304, the two-dimensional code generating device sends a storage request carrying original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server;
correspondingly, the predetermined server receives the storage request sent by the two-dimensional code generation device.
Step 305, the predetermined server stores the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request.
The predetermined server stores original information, a unique identification string and a binding relationship between the original information and the unique identification string so as to provide the original information for a user after the user reads a certain two-dimensional code.
In step 306, the two-dimensional code generating device generates the two-dimensional code by using the unique identification string as the content information of the two-dimensional code.
Generally, the generation process of the two-dimensional code is as follows: firstly, determining the type of each character in a plurality of characters contained in a unique identification string; then grouping the characters according to a specified two-dimensional code coding mode and converting the characters into a binary sequence, wherein in the code coding, the two-dimensional code applies the concept of '0' and '1' bit stream based on the internal logic of a computer, grouping the characters in the unique identification string, converting the characters into 8-bit binary sequence units one by one, and combining the 8-bit binary sequence units to obtain the binary sequence; secondly, constructing final data information according to the binary sequence and other data information for generating the two-dimensional code, wherein the other data information comprises: error correction levels, indicators, probe patterns, delimiters, positioning patterns, and correction patterns, among others; and finally, filling the final data information into the matrix area of the two-dimensional code to obtain the two-dimensional code.
It should be noted that step 306 is generally performed at the same time as step 304, that is, the two-dimensional code generating device generates the two-dimensional code while sending the storage request to the predetermined server, but in this embodiment, step 306 and step 304 are only divided into two steps, and step 304 is performed before step 306, which is not particularly limited.
It should be further noted that the two-dimensional code generation method provided in this embodiment also has a certain information security effect. After reading the two-dimensional code generated by the two-dimensional code generation method, the existing common two-dimensional code identification equipment reads only one unique identification string, and cannot obtain original information through the query of the unique identification string. For some specific two-dimensional code application occasions, the two-dimensional code generation method provided by the embodiment has the effect of keeping the original information secret.
For example, a two-dimensional code on an express bill of a certain express company is generated by the two-dimensional code generation method provided by the embodiment of the present invention, and only a dispatcher of the company can read information of the two-dimensional code and obtain original information by querying through the two-dimensional code recognition device provided by the embodiment of the present invention. The original information may be personal information such as the recipient's phone number and address. The common two-dimensional code identification device cannot obtain personal information such as the telephone and the address of a receiver, so that the two-dimensional code identification device has a good privacy effect on the personal information such as the telephone and the address of the receiver.
Please refer to fig. 3B, which illustrates the difference between the two-dimensional code obtained by directly encoding the original information and the two-dimensional code obtained by encoding the unique identification string corresponding to the original information. The original information contains 100 characters; and the unique identification string contains only the abc123 six-bit character in this embodiment.
In summary, in the two-dimensional code generation method provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. Meanwhile, the two-dimensional code generation method provided by the embodiment also has the effect of keeping the original information secret.
Referring to fig. 4, a flowchart of a method for generating a two-dimensional code according to still another embodiment of the invention is shown. The embodiment is still exemplified by applying the two-dimensional code generation method to the implementation environment shown in fig. 1. The two-dimensional code generation method comprises the following steps:
step 401, acquiring original information;
the original information can be web address, business card and mail. With the application fields of the two-dimensional codes becoming wider, the original information which can be represented by the two-dimensional codes also becomes richer.
Step 402, generating a unique identification string corresponding to the original information;
the unique identification string is composed of a number of characters including at least one of letters, numbers and symbols. For example, the unique identification string is 6 bits "abc 123"; or the unique identification string is 10 bits "abc 12 × de% 3", and so on.
The length of the unique identification string and the type of the contained characters determine the bearing capacity of the two-dimensional code generation device, wherein the bearing capacity refers to the number of the two-dimensional codes which can be generated by the two-dimensional code generation device. If the two-dimensional code generated by the two-dimensional code generation equipment consists of 3-bit numbers, the bearing capacity of the two-dimensional code generation equipment is 10^3 and is equal to 1000, namely the two-dimensional code generation system can generate one thousand different two-dimensional codes at most; if the two-dimensional code generated by the two-dimensional code generating device is composed of 4-bit letters and numbers singly or in a mixed manner, the carrying capacity of the two-dimensional code generating device is [ (26 x 2) +10] ^4 equal to 14766336, i.e. the two-dimensional code generating system can generate more than one thousand, four and ten million different two-dimensional codes at most.
That is, the larger the number and the larger the kind of characters constituting the unique identification string, the more kinds of two-dimensional codes that can be generated by the two-dimensional code generating apparatus. In practical application, in order to reduce the complexity of a two-dimensional code graph and not affect the bearing capacity of a two-dimensional code generation system, it is generally appropriate to select six-bit characters to form a unique identification string. In this embodiment, the unique identification string is "abc 123" as an example.
Step 403, binding the original information with the unique identification string;
no matter how large the amount of information carried by the original information is, that is, no matter how many characters it contains, the two-dimensional code generating device can bind the original information with a unique identification string, that is, the unique identification string represents the original information. In this embodiment, any original information can be bound with a 6-bit unique identification string, and the binding relationship can be represented as [ abc123, original information ].
Step 404, sending a storage request carrying the original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server;
step 405, generating an identification feature of the unique identification string;
the identification feature is used for identifying that the content information of the two-dimensional code carries not original information but a unique identification string. The mark feature may be a short character string added before the unique identification string, a short character string added after the unique identification string, or other implementation forms. For example, the identifying feature is S, X or Z, etc.
Step 406, inquiring the address identifier of the address according to the address of the predetermined server and the predetermined corresponding relation;
the address identifier is used to distinguish addresses of different predetermined servers. For example, if the address of the predetermined server is http:// abc001.cn, the address identifier is represented as 001; if the address of the predetermined server is http:// abc002.cn, the address identifier is represented as 002; if the address of the intended server is http:// abc003.cn, the address identification is denoted 003, and so on.
The correspondence is a one-to-one correspondence between addresses of different predetermined servers and different address identifications. The two-dimensional code generating device stores in advance a correspondence between an address and an address identifier of a predetermined server, and the correspondence may be expressed as:
address of predetermined server Address identification
http://abc001.cn 001
http://abc002.cn 002
http://abc003.cn 003
... ... ......
TABLE-1
Step 407, using the unique identification string as a part of content information of the two-dimensional code, using the identification feature as another part of information of the two-dimensional code, and using the address identification as another part of content information of the two-dimensional code to generate the two-dimensional code;
for example, the content information of the two-dimensional code may be represented as: s001abc 123.
The generation process of the two-dimensional code is described in detail in the embodiment shown in fig. 3A, and is not described here again.
It should be noted that the content information of the two-dimensional code may only include a unique identification string, such as: abc123 or def456, etc., and may also contain a unique identification string and identification features, such as Sabc123 or Sdef456, etc.; unique identification strings and address identifications may also be included, such as: 001abc123, 002abc123, or 003def456, and the like; unique identification strings, feature identifications and address identifications, such as S001abc123 or S003def456, and the like, may also be included. In this embodiment, only the content information of the two-dimensional code includes a unique identification string, a feature identifier, and an address identifier for example, which is not specifically limited. Because the unique identification string has uniqueness, the uniqueness of the content information of the two-dimensional code is ensured.
It should be further noted that steps 405 to 406 may be performed after steps 403 to 404; or may be performed simultaneously with steps 403 to 404; it may also be performed before steps 403 to 404. In this embodiment, only the steps 405 to 406 are performed after the steps 403 to 404 for illustration, which is not limited in particular.
In summary, in the two-dimensional code generation method provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the two-dimensional code identification equipment can judge whether the content information of the two-dimensional code read by the two-dimensional code identification equipment carries original information or a unique identification string; the application range of the two-dimension code generation method and the two-dimension code generation equipment is further expanded, and the universality effect of the two-dimension code generation method and the two-dimension code generation equipment is enhanced.
Referring to fig. 5, a flowchart of a method for identifying a two-dimensional code according to an embodiment of the present invention is shown. The embodiment is exemplified by applying the two-dimensional code recognition method to the implementation environment shown in fig. 1. The two-dimension code identification method comprises the following steps:
step 501, identifying a unique identification string carried in content information of a two-dimensional code by a two-dimensional code identification device;
the two-dimensional code identification device can identify the unique identification string carried by the two-dimensional code through a two-dimensional code decoding program after reading the content information of the two-dimensional code through an image input element or a photoelectric scanning element. The unique identification string may be the unique identification string generated by the embodiment shown in fig. 2, 3A, or 4.
502, the two-dimension code identification device sends a query request carrying a unique identification string to a predetermined server;
the query request carries a unique identification string, and the unique identification string is obtained by identifying the content information of the two-dimensional code by the two-dimensional code identification device.
Correspondingly, the predetermined server receives the query request sent by the two-dimension code identification device.
Step 503, the predetermined server inquires the original information bound with the unique identification string in the binding relationship according to the inquiry request;
the predetermined server stores original information, the unique identification string and the binding relationship between the original information and the unique identification string, and the original information can be obtained through query according to the unique identification string.
Step 504, the predetermined server feeds back original information to the two-dimensional code identification device;
correspondingly, the two-dimensional code identification device receives original information fed back by a preset server.
In summary, in the two-dimension code identification method provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimension code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 6, a flowchart of a method for identifying a two-dimensional code according to another embodiment of the invention is shown. The embodiment is still exemplified by applying the two-dimensional code recognition method to the implementation environment shown in fig. 1. The two-dimension code identification method comprises the following steps:
step 601, reading content information of the two-dimensional code;
the two-dimensional code recognition device reads content information of the two-dimensional code through an image input element or a photoelectric scanning element. The content information carried by the two-dimensional code can be identified through a two-dimensional code decoding program.
Step 602, judging whether the content information of the two-dimensional code is a unique identification string;
specifically, the determination of whether the content information of the two-dimensional code is the unique identification string can be realized by determining whether the content information of the two-dimensional code has the identification feature. The identification feature is used for identifying that the content information of the two-dimensional code carries not original information but a unique identification string. The mark feature may be a short character string added before the unique identification string, a short character string added after the unique identification string, or other implementation forms. For example, the identifying feature is S, X or Z, etc.
Step 603, if the judgment result is that the content information is the unique identification string, executing the step of detecting whether the content information contains the address identification;
in step 604, if the determination result is that the content information is not the unique identification string, the content information is directly used as the original information.
Step 605, detecting whether the content information contains an address identifier;
the address identifier is used to distinguish addresses of different predetermined servers. For example, if the address of the predetermined server is http:// abc001.cn, the address identifier is represented as 001; if the address of the predetermined server is http:// abc002.cn, the address identifier is represented as 002; if the address of the intended server is http:// abc003.cn, the address identification is denoted 003, and so on.
Step 606, if the detection result is that the content information contains the address identification, inquiring the address of the predetermined server according to the address identification and the predetermined corresponding relation;
the correspondence is a one-to-one correspondence between addresses of different predetermined servers and different address identifications. The two-dimensional code generating device stores in advance a correspondence between an address and an address identifier of a predetermined server, and the correspondence may be expressed as:
address of predetermined server Address identification
http://abc001.cn 001
http://abc002.cn 002
http://abc003.cn 003
....... ......
TABLE-1
Step 607, sending the query request carrying the unique identification string to the predetermined server according to the queried address of the predetermined server;
the query request carries a unique identification string, and the unique identification string is obtained by identifying the content information of the two-dimensional code by the two-dimensional code identification device.
Step 608, receiving original information fed back by a predetermined server;
the predetermined server stores original information, the unique identification string and a binding relationship between the original information and the unique identification string, and the original information can be obtained through query according to the unique identification string and fed back to the two-dimensional code recognition device.
It should be noted that, if the determination result in step 603 is that the content information is the unique identification string, the step of sending the query request carrying the unique identification string to the predetermined server may also be directly performed. In this embodiment, only the content information of the two-dimensional code includes the address identifier for illustration, which is not particularly limited
It should be further noted that the content information of the two-dimensional code may only include a unique identification string, such as: abc123 or def456, etc., and may also contain a unique identification string and identification features, such as Sabc123 or Sdef456, etc.; unique identification strings and address identifications may also be included, such as: 001abc123, 002abc123, or 003def456, and the like; unique identification strings, feature identifications and address identifications, such as S001abc123 or S003def456, and the like, may also be included. In this embodiment, only the content information of the two-dimensional code includes a unique identification string, a feature identifier, and an address identifier for example, which is not specifically limited. Because the unique identification string has uniqueness, the uniqueness of the content information of the two-dimensional code is ensured.
It should be further noted that the two-dimensional code identification method provided by the embodiment also has a certain information security effect. After reading the two-dimensional code generated by applying the two-dimensional code generation method in the invention, the conventional common two-dimensional code identification device reads only one unique identification string, and cannot obtain original information through the query of the unique identification string. For some specific two-dimensional code application occasions, the two-dimensional code identification method provided by the embodiment has the effect of keeping the original information secret.
For example, a two-dimensional code on an express bill of a certain express company is generated by the two-dimensional code generation method provided by the embodiment of the present invention, and only a dispatcher of the company can read information of the two-dimensional code and obtain original information by querying through the two-dimensional code recognition device provided by the embodiment of the present invention. The original information may be personal information such as the recipient's phone number and address. The common two-dimensional code identification device cannot obtain personal information such as the telephone and the address of a receiver, so that the two-dimensional code identification device has a good privacy effect on the personal information such as the telephone and the address of the receiver.
In summary, in the two-dimension code identification method provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimension code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the two-dimensional code identification equipment can judge whether the content information of the two-dimensional code read by the two-dimensional code identification equipment carries original information or a unique identification string; the identification capability of the two-dimension code identification method and the two-dimension code identification equipment is further improved, the application range of the two-dimension code identification method and the two-dimension code identification equipment is expanded, and the universality effect of the two-dimension code identification method and the two-dimension code identification equipment is enhanced. Meanwhile, the two-dimensional code identification method provided by the embodiment also has the effect of keeping the original information secret.
Referring to fig. 7, a flowchart of a method for providing two-dimensional code information according to an embodiment of the present invention is shown. The embodiment is exemplified by applying the two-dimensional code information providing method to the implementation environment shown in fig. 1. The two-dimensional code information providing method comprises the following steps:
701, acquiring original information by two-dimensional code generating equipment;
the original information can be web address, business card and mail. With the application fields of the two-dimensional codes becoming wider, the original information which can be represented by the two-dimensional codes also becomes richer.
Step 702, generating a unique identification string corresponding to original information by two-dimensional code generating equipment;
the unique identification string is composed of a number of characters including at least one of letters, numbers and symbols. For example, the unique identification string is 6 bits "abc 123"; or the unique identification string is 10 bits "abc 12 × de% 3", and so on.
The length of the unique identification string and the type of the contained characters determine the bearing capacity of the two-dimensional code generation device, wherein the bearing capacity refers to the number of the two-dimensional codes which can be generated by the two-dimensional code generation device. If the two-dimensional code generated by the two-dimensional code generation equipment consists of 3-bit numbers, the bearing capacity of the two-dimensional code generation equipment is 10^3 and is equal to 1000, namely the two-dimensional code generation system can generate one thousand different two-dimensional codes at most; if the two-dimensional code generated by the two-dimensional code generating device is composed of 4-bit letters and numbers singly or in a mixed manner, the carrying capacity of the two-dimensional code generating device is [ (26 x 2) +10] ^4 equal to 14766336, i.e. the two-dimensional code generating system can generate more than one thousand, four and ten million different two-dimensional codes at most.
That is, the larger the number and the larger the kind of characters constituting the unique identification string, the more kinds of two-dimensional codes that can be generated by the two-dimensional code generating apparatus. In practical application, in order to reduce the complexity of a two-dimensional code graph and not affect the bearing capacity of a two-dimensional code generation system, it is generally appropriate to select six-bit characters to form a unique identification string. In this embodiment, the unique identification string is "abc 123" as an example.
Step 703, binding the original information and the unique identification string by the two-dimensional code generating equipment;
no matter how large the amount of information carried by the original information is, that is, no matter how many characters it contains, the two-dimensional code generating device can bind the original information with a unique identification string, that is, the unique identification string represents the original information. In this embodiment, any original information can be bound with a 6-bit unique identification string, and the binding relationship can be represented as [ abc123, original information ]. Step 504, the two-dimensional code generating device sends a storage request carrying original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server;
correspondingly, the predetermined server receives a storage request sent by the two-dimensional code generating equipment;
step 705, the predetermined server stores the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request;
the predetermined server stores original information, a unique identification string and a binding relationship between the original information and the unique identification string so as to provide the original information for a user after the user reads a certain two-dimensional code.
Step 706, the two-dimensional code generating device generates a two-dimensional code by using the unique identification string as the content information of the two-dimensional code;
generally, the generation process of the two-dimensional code is as follows: firstly, determining the type of each character in a plurality of characters contained in a unique identification string; then grouping the characters according to a specified two-dimensional code coding mode and converting the characters into a binary sequence, wherein in the code coding, the two-dimensional code applies the concept of '0' and '1' bit stream based on the internal logic of a computer, grouping the characters in the unique identification string, converting the characters into 8-bit binary sequence units one by one, and combining the 8-bit binary sequence units to obtain the binary sequence; secondly, constructing final data information according to the binary sequence and other data information for generating the two-dimensional code, wherein the other data information comprises: error correction levels, indicators, probe patterns, delimiters, positioning patterns, and correction patterns, among others; and finally, filling the final data information into the matrix area of the two-dimensional code to obtain the two-dimensional code.
Step 707, the two-dimensional code recognition device recognizes a unique identification string carried in the content information of the two-dimensional code;
the two-dimensional code identification device can identify the unique identification string carried by the two-dimensional code through a two-dimensional code decoding program after reading the content information of the two-dimensional code through an image input element or a photoelectric scanning element.
Step 708, the two-dimensional code identification device sends a query request carrying the unique identification string to a predetermined server;
correspondingly, the preset server receives an inquiry request sent by the two-dimension code identification equipment;
step 709, the predetermined server inquires the original information bound with the unique identification string in the binding relation according to the inquiry request;
the predetermined server stores original information, the unique identification string and the binding relationship between the original information and the unique identification string, and the original information can be obtained through query according to the unique identification string.
Step 710, the predetermined server feeds back original information to the two-dimensional code identification equipment;
correspondingly, the two-dimensional code identification device receives original information fed back by a preset server.
In summary, in the two-dimensional code information providing method provided by this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
The following are embodiments of the apparatus of the present invention, details of which are not described in detail in the embodiments of the apparatus, and reference may be made to the corresponding embodiments of the method described above.
Referring to fig. 8A, a block diagram of a two-dimensional code generating apparatus according to an embodiment of the invention is shown. The two-dimensional code generation device may be implemented as all or part of an electronic device, or may be implemented as all or part of a server, by software, hardware, or a combination of both. The two-dimensional code generation device includes: the system comprises an information acquisition module 810, an identification generation module 820, an identification binding module 830, a storage sending module 840 and a two-dimension code generation module 850.
An information obtaining module 810, configured to obtain original information;
an identifier generating module 820, configured to generate a unique identifier string corresponding to the original information acquired by the information acquiring module 810;
an identifier binding module 830, configured to bind the original information acquired by the information acquiring module 810 with the unique identifier string generated by the identifier generating module 820;
a storage sending module 840, configured to send a storage request carrying the original information, the unique identifier string, and the binding relationship therebetween to a predetermined server, so that the predetermined server stores the original information, the unique identifier string, and the binding relationship therebetween according to the storage request;
and a two-dimensional code generating module 850 for generating a two-dimensional code by using the unique identification string generated by the identification generating module 820 as content information of the two-dimensional code.
In summary, in the two-dimensional code generating device provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 8B, a block diagram of a two-dimensional code generating apparatus according to another embodiment of the invention is shown. The two-dimensional code generation device may be implemented as all or part of an electronic device, or may be implemented as all or part of a server, by software, hardware, or a combination of both. The two-dimensional code generation device includes: the system comprises an information acquisition module 810, an identification generation module 820, an identification binding module 830, a storage sending module 840, a two-dimension code generation module 850, a feature generation module 842 and an identification query module 844.
An information obtaining module 810, configured to obtain original information;
an identifier generating module 820, configured to generate a unique identifier string corresponding to the original information acquired by the information acquiring module 810;
an identifier binding module 830, configured to bind the original information acquired by the information acquiring module 810 with the unique identifier string generated by the identifier generating module 820;
a storage sending module 840, configured to send a storage request carrying the original information, the unique identifier string, and the binding relationship therebetween to a predetermined server, so that the predetermined server stores the original information, the unique identifier string, and the binding relationship therebetween according to the storage request;
a feature generation module 842, configured to generate an identification feature of the unique identification string, where the identification feature is used to identify that what is carried in the content information of the two-dimensional code is not original information but the unique identification string;
an identifier query module 844, configured to query an address identifier of an address according to an address of a predetermined server and a predetermined correspondence relationship, where the correspondence relationship is a one-to-one correspondence relationship between addresses of different predetermined servers and different address identifiers;
a two-dimensional code generating module 850, configured to use the unique identifier string generated by the identifier generating module 820 as a part of content information of the two-dimensional code, use the identifier feature generated by the feature generating module 842 as another part of content information of the two-dimensional code, and use the address identifier queried by the identifier querying module 844 as another part of content information of the two-dimensional code to generate the two-dimensional code;
it should be noted that the content information of the two-dimensional code may only include a unique identification string, such as: abc123 or def456, etc., and may also contain a unique identification string and identification features, such as Sabc123 or Sdef456, etc.; unique identification strings and address identifications may also be included, such as: 001abc123, 002abc123, or 003def456, and the like; unique identification strings, feature identifications and address identifications, such as S001abc123 or S003def456, and the like, may also be included. In this embodiment, only the content information of the two-dimensional code includes a unique identification string, a feature identifier, and an address identifier for example, which is not specifically limited.
In summary, in the two-dimensional code generating device provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the two-dimensional code identification equipment can judge whether the content information of the two-dimensional code read by the two-dimensional code identification equipment carries original information or a unique identification string; the application range of the two-dimension code generation method and the two-dimension code generation equipment is further expanded, and the universality effect of the two-dimension code generation method and the two-dimension code generation equipment is enhanced. Meanwhile, the two-dimensional code generating device provided by the embodiment also has a security effect on original information.
Referring to fig. 9A, a block diagram of a two-dimensional code recognition apparatus according to an embodiment of the invention is shown. The two-dimensional code recognition device may be implemented as all or part of an electronic device, or may be implemented as all or part of a server, by software, hardware, or a combination of both. This two-dimensional code recognition device includes: an identification recognition module 910, a request transmission module 920, and an information reception module 930.
The identification recognition module 910 is configured to recognize a unique identification string carried in the content information of the two-dimensional code;
a request sending module 920, configured to send, to the predetermined server, an inquiry request carrying the unique identifier string identified by the identifier identifying module 910, so that the predetermined server inquires, according to the inquiry request, original information bound to the unique identifier string in a pre-stored binding relationship, and feeds back the original information;
an information receiving module 930, configured to receive original information fed back by a predetermined server.
In summary, in the two-dimensional code recognition apparatus provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the recognition process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 9B, a block diagram of a two-dimensional code recognition apparatus according to another embodiment of the invention is shown. The two-dimensional code recognition device may be implemented as all or part of an electronic device, or may be implemented as all or part of a server, by software, hardware, or a combination of both. This two-dimensional code recognition device includes: an identity recognition module 910, a request transmission module 920, an information reception module 930, an identity detection module 940, and an address query module 950.
The identification recognition module 910 is configured to recognize a unique identification string carried in the content information of the two-dimensional code;
specifically, the identification module 910 includes: an information reading unit 911, an information judging unit 912, a first information unit 913, and a second information unit 914;
an information reading unit 911 configured to read content information of the two-dimensional code;
an information determination unit 912 configured to determine whether content information of the two-dimensional code read by the information reading unit 911 is a unique identification string;
specifically, in this embodiment, the information determining unit 912 is configured to determine whether the content information of the two-dimensional code has an identification feature, where the identification feature is used to identify that the content information of the two-dimensional code carries not original information but a unique identification string.
A first information unit 913, configured to perform a step of detecting whether the content information includes an address identifier if the content information is the unique identifier string as a result of the determination;
a second information unit 914, configured to, if the determination result is that the content information is not the unique identification string, directly take the content information as the original information.
An identifier detecting module 940, configured to detect whether the content information includes an address identifier;
an address query module 950, configured to query, if the detection result is that the content information includes an address identifier, an address of a predetermined server according to the address identifier and a predetermined correspondence relationship, where the correspondence relationship is a one-to-one correspondence relationship between addresses of different predetermined servers and different address identifiers;
a request sending module 920, configured to send, to the predetermined server, an inquiry request carrying the unique identifier string identified by the identifier identifying module 910, so that the predetermined server inquires, according to the inquiry request, original information bound to the unique identifier string in a pre-stored binding relationship, and feeds back the original information;
an information receiving module 930, configured to receive original information fed back by a predetermined server.
It should be noted that the content information of the two-dimensional code may only include a unique identification string, such as: abc123 or def456, etc., and may also contain a unique identification string and identification features, such as Sabc123 or Sdef456, etc.; unique identification strings and address identifications may also be included, such as: 001abc123, 002abc123, or 003def456, and the like; unique identification strings, feature identifications and address identifications, such as S001abc123 or S003def456, and the like, may also be included. In this embodiment, only the content information of the two-dimensional code includes a unique identification string, a feature identifier, and an address identifier for example, which is not specifically limited.
In summary, in the two-dimensional code recognition apparatus provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the recognition process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the two-dimensional code identification equipment can judge whether the content information of the two-dimensional code read by the two-dimensional code identification equipment carries original information or a unique identification string; the identification capability of the two-dimension code identification method and the two-dimension code identification equipment is further improved, the application range of the two-dimension code identification method and the two-dimension code identification equipment is expanded, and the universality effect of the two-dimension code identification method and the two-dimension code identification equipment is enhanced. Meanwhile, the two-dimensional code identification device provided by the embodiment also has a security effect on original information.
Referring to fig. 10, a block diagram of a two-dimensional code information providing apparatus according to an embodiment of the present invention is shown. The two-dimensional code information providing device may be implemented as all or a part of an electronic device, or may be implemented as all or a part of a server, by software, hardware, or a combination of both. This two-dimensional code information provides device includes: an information storage module 1010, a request receiving module 1020, an information query module 1030, and an information feedback module 1040.
The information storage module 1010 is used for pre-storing original information, the unique identification string and the binding relationship between the original information and the unique identification string;
a request receiving module 1020, configured to receive a query request sent by a two-dimensional code identification device, where the query request carries a unique identifier string, and the unique identifier string is obtained from content information of a two-dimensional code identified by the two-dimensional code identification device;
an information query module 1030, configured to query, according to the query request received by the request receiving module 1020, original information bound to the unique identification string in the binding relationship;
and an information feedback module 1040, configured to feed back the original information queried by the information querying module 1030 to the two-dimensional code identification device.
In summary, in the two-dimensional code information providing device provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 11, a block diagram of a two-dimensional code generating system according to an embodiment of the present invention is shown. The two-dimensional code generation system includes: the two-dimensional code generating device 1120 and the predetermined server 1140, wherein the two-dimensional code generating device 1120 and the predetermined server 1140 are connected through a wired network or a wireless network;
the two-dimensional code generating apparatus 1120 includes a device as described in any one of the embodiments shown in fig. 8A and 8B;
reservation server 1140 comprises the apparatus described in the embodiment of fig. 10.
In summary, in the two-dimensional code generation system provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by the predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 12, a block diagram of a two-dimensional code recognition system according to an embodiment of the present invention is shown. This two-dimensional code identification system includes: the two-dimensional code recognition device 1160 is connected with the predetermined server 1140 through a wired network or a wireless network;
the two-dimensional code recognition apparatus 1160 includes the devices described in any one of the embodiments shown in fig. 9A and 9B;
reservation server 1140 comprises the apparatus described in the embodiment of fig. 10.
In summary, in the two-dimensional code recognition system provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by a predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the recognition process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
Referring to fig. 13, a schematic structural diagram of a two-dimensional code generating device according to an embodiment of the present invention is shown. The two-dimensional code generation apparatus 1300 may be a server, and the two-dimensional code generation apparatus 1300 includes a Central Processing Unit (CPU) 1301, a system memory 1304 including a Random Access Memory (RAM) 1302 and a Read Only Memory (ROM) 1303, and a system bus 1305 connecting the system memory 1304 and the central processing unit 1301. The two-dimensional code generation apparatus 1300 also includes a basic input/output system (I/O system) 1306, which facilitates transfer of information between devices within the computer, and a mass storage device 1307 for storing an operating system 1313, application programs 1314, and other program modules 1315.
The basic input/output system 1306 includes a display 1308 for displaying information and an input device 1309, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 1308 and input device 1309 are connected to the central processing unit 1301 through an input-output controller 1310 connected to the system bus 1305. The basic input/output system 1306 may also include an input/output controller 1310 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1310 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1307 is connected to the central processing unit 1301 through a mass storage controller (not shown) connected to the system bus 1305. The mass storage device 1307 and its associated computer-readable media provide non-volatile storage for the client device 1300. That is, the mass storage device 1307 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1304 and mass storage device 1307 described above may be collectively referred to as memory.
The two-dimensional code generating apparatus 1300 may also operate by a remote computer connected to a network through a network such as the internet according to various embodiments of the present invention. That is, the two-dimensional code generating apparatus 1300 may be connected to the network 1312 through the network interface unit 1311 connected to the system bus 1305, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1311.
The memory also includes one or more programs stored in the memory and configured to be executed by the one or more central processing units 1301. The one or more programs include instructions for:
acquiring original information; generating a unique identification string corresponding to the original information; binding the original information with the unique identification string; sending a storage request carrying the original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server so that the predetermined server can store the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request; and generating the two-dimensional code by taking the unique identification string as the content information of the two-dimensional code.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the two-dimensional code generation device further includes instructions for performing the following operations:
randomly selecting a fixed number of characters from a preset character set consisting of at least one of letters, numbers and symbols; randomly arranging the characters with the fixed number to obtain the unique identification string;
or,
generating n random character strings which are different from each other and have fixed lengths in advance, wherein the random character strings comprise a plurality of characters, and the characters comprise at least one of letters, numbers and symbols; randomly extracting one from the n random character strings as the unique identification string;
or,
mapping the original information into a character string with a fixed length; and taking the character string with the fixed length as the unique identification string.
In a third possible implementation manner provided as a basis for the second possible implementation manner, the memory of the two-dimensional code generation device further includes instructions for performing the following operations:
generating an identification feature of the unique identification string, wherein the identification feature is used for identifying that the content information of the two-dimensional code carries the unique identification string instead of the original information;
the generating the two-dimensional code by using the unique identification string as the content information of the two-dimensional code comprises:
and taking the unique identification string as part of content information of the two-dimensional code, and taking the identification characteristic as the other part of content information of the two-dimensional code to generate the two-dimensional code.
In a fourth possible implementation manner provided as a basis for the third possible implementation manner, the memory of the two-dimensional code generation device further includes instructions for performing the following operations:
inquiring the address identification of the address according to the address of the preset server and a preset corresponding relation, wherein the corresponding relation is a one-to-one corresponding relation between the addresses of different preset servers and different address identifications;
the generating the two-dimensional code by using the unique identification string as the content information of the two-dimensional code comprises:
and taking the unique identification string as part of content information of the two-dimensional code, and taking the address identification as the other part of content information of the two-dimensional code to generate the two-dimensional code.
In summary, in the two-dimensional code generating device provided in this embodiment, the original information is bound with the unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by the predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the two-dimensional code identification equipment can judge whether the content information of the two-dimensional code read by the two-dimensional code identification equipment carries original information or a unique identification string; the application range of the two-dimension code generation method and the two-dimension code generation equipment is further expanded, and the universality effect of the two-dimension code generation method and the two-dimension code generation equipment is enhanced. Meanwhile, the two-dimensional code generating device provided by the embodiment also has a security effect on original information.
Referring to fig. 14, a schematic structural diagram of a terminal with an image input device according to an embodiment of the present invention is shown, where the terminal may be used to implement the two-dimensional code recognition method provided in the foregoing embodiments. Specifically, the method comprises the following steps:
the terminal 1400 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 1400, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 130 may include an image input device 131 and other input devices 132. The image input device 131 may be a camera, a photoelectric scanning device, or any other device capable of reading a two-dimensional code. The image input device 131 can read the two-dimensional code and drive the corresponding connection device according to a preset program. Some image input devices 131 can read the two-dimensional code and send the two-dimensional code image to the processor 180 for decoding to obtain the content information of the two-dimensional code; the image input device 131 itself has a two-dimensional code decoding function, and decodes itself after reading the two-dimensional code image to obtain content information of the two-dimensional code. The input unit 130 may include other input devices 132 in addition to the image input device 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 140 may be used to display information input by or provided to a user as well as various graphical user interfaces of terminal 1400, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
Terminal 1400 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal 1400 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of a mobile phone (e.g., horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (e.g., pedometer, tapping), and the like, and the terminal 1400 may further be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein again.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 1400. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 1400.
WiFi belongs to short-distance wireless transmission technology, and the terminal 1400 can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 170, and it provides the user with wireless broadband internet access. Although fig. 12 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 1400, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 1400, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1400 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal 1400 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 1400 may further include a bluetooth module, etc., which will not be described herein. In this embodiment, the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for:
identifying a unique identification string carried in the content information of the two-dimensional code; sending an inquiry request carrying the unique identification string to a predetermined server so that the predetermined server inquires original information bound with the unique identification string in a pre-stored binding relationship according to the inquiry request and feeds back the original information; and receiving the original information fed back by the predetermined server.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
reading the content information of the two-dimensional code;
judging whether the content information of the two-dimensional code is the unique identification string;
if the judgment result is that the content information is the unique identification string, executing the step of sending a query request carrying the unique identification string to a predetermined server;
and if the judgment result is that the content information is not the unique identification string, directly taking the content information as the original information.
In a third possible implementation manner provided as a basis for the second possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
and judging whether the content information of the two-dimensional code has an identification characteristic, wherein the identification characteristic is used for identifying that the content information of the two-dimensional code carries not the original information but the unique identification string.
In a fourth possible implementation manner provided as a basis for the third possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
detecting whether the content information contains an address identifier or not;
if the detection result is that the content information contains address identification, inquiring the address of the preset server according to the address identification and a preset corresponding relation, wherein the corresponding relation is a one-to-one corresponding relation between the addresses of different preset servers and different address identifications;
the sending of the query request carrying the unique identification string to a predetermined server includes:
and sending a query request carrying the unique identification string to the predetermined server according to the queried address of the predetermined server.
In summary, in the terminal provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, the unique identification string is encoded to obtain the two-dimensional code, and the binding relationship between the original information and the unique identification string is stored by the predetermined server, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved. The embodiment further identifies the identification feature of the unique identification string instead of the original information, which is carried in the content information for identifying the two-dimensional code; specifically, the identification feature may be an address identifier, which is used to distinguish addresses of different predetermined servers; the terminal can judge whether the original information or the unique identification string is carried in the content information of the two-dimensional code read by the terminal; the identification capability of the terminal is further improved, the application range of the terminal is expanded, and the universality of the terminal is enhanced. Meanwhile, the terminal provided by the embodiment also has the security effect on the original information.
Referring to fig. 15, a schematic structural diagram of a reservation server according to an embodiment of the present invention is shown. The predetermined server 1500 may be a server, and the predetermined server 1500 includes a Central Processing Unit (CPU) 1501, a system memory 1504 including a Random Access Memory (RAM) 1502 and a Read Only Memory (ROM) 1503, and a system bus 1505 connecting the system memory 1504 and the central processing unit 1501. The reservation server 1500 also includes a basic input/output system (I/O system) 1506 to facilitate transfer of information between devices within the computer, and a mass storage device 1507 to store an operating system 1513, application programs 1514, and other program modules 1515.
The basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 1508 and the input device 1509 are connected to the central processing unit 1501 via an input output controller 1510 connected to the system bus 1505. The basic input/output system 1506 may also include an input/output controller 1510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable media provide non-volatile storage for the client device 1500. That is, the mass storage device 1507 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1504 and mass storage device 1507 described above may be collectively referred to as memory.
The reservation server 1500 may also operate in accordance with various embodiments of the present invention by connecting to remote computers on a network, such as the internet. That is, the reservation server 1500 may be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505 or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1511.
The memory also includes one or more programs stored in the memory and configured to be executed by the one or more central processing units 1501. The one or more programs include instructions for:
pre-storing original information, a unique identification string and a binding relationship between the original information and the unique identification string;
receiving an inquiry request sent by two-dimension code identification equipment, wherein the inquiry request carries a unique identification string, and the unique identification string is obtained from content information of a two-dimension code identified by the two-dimension code identification equipment;
inquiring original information bound with the unique identification string in the binding relation according to the inquiry request;
and feeding back the original information to the two-dimension code identification equipment.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the predetermined server further includes instructions for performing the following operations:
receiving a storage request sent by two-dimensional code generation equipment, wherein the storage request carries the original information, the unique identification string and a binding relationship between the original information and the unique identification string, and the storage request is sent after the two-dimensional code generation equipment acquires the original information, generates the unique identification string corresponding to the original information and binds the original information and the unique identification string;
and storing the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request.
In summary, in the predetermined server provided in this embodiment, the original information is bound with a unique identification string composed of a plurality of characters, and the unique identification string is encoded to obtain the two-dimensional code, and the predetermined server stores the binding relationship between the original information and the unique identification string, so that the original information is obtained by the server by using the identified unique identification string in the identification process; the problems of complex pattern, slow recognition speed and low recognition success rate of the existing two-dimensional code are solved; the effects of simplifying the complexity of the two-dimensional code graph, high identification speed and high identification success rate are achieved.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (22)

1. A two-dimensional code generation method is characterized by comprising the following steps:
acquiring original information;
generating a unique identification string corresponding to the original information;
binding the original information with the unique identification string;
sending a storage request carrying the original information, the unique identification string and the binding relationship between the original information and the unique identification string to a predetermined server so that the predetermined server can store the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request;
and generating the two-dimensional code by taking the unique identification string as the content information of the two-dimensional code.
2. The two-dimensional code generation method according to claim 1, wherein the generating a unique identification string corresponding to the original information includes:
randomly selecting a fixed number of characters from a preset character set consisting of at least one of letters, numbers and symbols; randomly arranging the characters with the fixed number to obtain the unique identification string;
or,
generating n random character strings which are different from each other and have fixed lengths in advance, wherein the random character strings comprise a plurality of characters, and the characters comprise at least one of letters, numbers and symbols; randomly extracting one from the n random character strings as the unique identification string;
or,
mapping the original information into a character string with a fixed length; and taking the character string with the fixed length as the unique identification string.
3. The two-dimensional code generation method according to claim 1, wherein before generating the two-dimensional code by using the unique identification string as content information of the two-dimensional code, the method further comprises:
generating an identification feature of the unique identification string, wherein the identification feature is used for identifying that the content information of the two-dimensional code carries the unique identification string instead of the original information;
the generating the two-dimensional code by using the unique identification string as the content information of the two-dimensional code comprises:
and taking the unique identification string as part of content information of the two-dimensional code, and taking the identification characteristic as the other part of content information of the two-dimensional code to generate the two-dimensional code.
4. The two-dimensional code generation method according to any one of claims 1 to 3, wherein before generating the two-dimensional code by using the unique identification string as content information of the two-dimensional code, the method further comprises:
inquiring the address identification of the address according to the address of the preset server and a preset corresponding relation, wherein the corresponding relation is a one-to-one corresponding relation between the addresses of different preset servers and different address identifications;
the generating the two-dimensional code by using the unique identification string as the content information of the two-dimensional code comprises:
and taking the unique identification string as part of content information of the two-dimensional code, and taking the address identification as the other part of content information of the two-dimensional code to generate the two-dimensional code.
5. A two-dimension code identification method is characterized by comprising the following steps:
identifying a unique identification string carried in the content information of the two-dimensional code;
sending an inquiry request carrying the unique identification string to a predetermined server so that the predetermined server inquires original information bound with the unique identification string in a pre-stored binding relationship according to the inquiry request and feeds back the original information;
and receiving the original information fed back by the predetermined server.
6. The two-dimensional code recognition method according to claim 5, wherein the recognizing of the unique identification string carried in the content information of the two-dimensional code includes:
reading the content information of the two-dimensional code;
judging whether the content information of the two-dimensional code is the unique identification string;
if the judgment result is that the content information is the unique identification string, executing the step of sending a query request carrying the unique identification string to a predetermined server;
and if the judgment result is that the content information is not the unique identification string, directly taking the content information as the original information.
7. The two-dimensional code recognition method according to claim 6, wherein the determining whether the content information of the two-dimensional code is the unique identification string includes:
and judging whether the content information of the two-dimensional code has an identification characteristic, wherein the identification characteristic is used for identifying that the content information of the two-dimensional code carries not the original information but the unique identification string.
8. The two-dimensional code identification method according to claim 5, wherein before sending the query request carrying the unique identification string to a predetermined server, the method further comprises:
detecting whether the content information contains an address identifier or not;
if the detection result is that the content information contains address identification, inquiring the address of the preset server according to the address identification and a preset corresponding relation, wherein the corresponding relation is a one-to-one corresponding relation between the addresses of different preset servers and different address identifications;
the sending of the query request carrying the unique identification string to a predetermined server includes:
and sending a query request carrying the unique identification string to the predetermined server according to the queried address of the predetermined server.
9. A two-dimensional code information providing method is characterized in that the method comprises the following steps:
pre-storing original information, a unique identification string and a binding relationship between the original information and the unique identification string;
receiving an inquiry request sent by two-dimension code identification equipment, wherein the inquiry request carries a unique identification string, and the unique identification string is obtained from content information of a two-dimension code identified by the two-dimension code identification equipment;
inquiring original information bound with the unique identification string in the binding relation according to the inquiry request;
and feeding back the original information to the two-dimension code identification equipment.
10. The method for providing two-dimensional code information according to claim 9, wherein the pre-storing of the original information, the unique identification string and the binding relationship therebetween includes:
receiving a storage request sent by two-dimensional code generation equipment, wherein the storage request carries the original information, the unique identification string and a binding relationship between the original information and the unique identification string, and the storage request is sent after the two-dimensional code generation equipment acquires the original information, generates the unique identification string corresponding to the original information and binds the original information and the unique identification string;
and storing the original information, the unique identification string and the binding relationship between the original information and the unique identification string according to the storage request.
11. A two-dimensional code generation device, characterized in that the device comprises:
the information acquisition module is used for acquiring original information;
the identification generation module is used for generating a unique identification string corresponding to the original information acquired by the information acquisition module;
the identification binding module is used for binding the original information acquired by the information acquisition module with the unique identification string generated by the identification generation module;
a storage sending module, configured to send a storage request carrying the original information, the unique identifier string, and a binding relationship therebetween to a predetermined server, so that the predetermined server stores the original information, the unique identifier string, and the binding relationship therebetween according to the storage request;
and the two-dimensional code generation module is used for generating the two-dimensional code by taking the unique identification string generated by the identification generation module as the content information of the two-dimensional code.
12. The apparatus of claim 10, wherein the identifier generation module comprises:
a character selection unit and a character arrangement unit;
or,
a character string generation unit and a character string extraction unit;
or,
a mapping generation unit and a mapping determination unit;
the character selection unit is used for randomly selecting a fixed number of characters from a preset character set consisting of at least one of letters, numbers and symbols; the character arrangement unit is used for randomly arranging the fixed number of characters obtained by the character selection unit to obtain the unique identification string;
or,
the character string generating unit is used for generating n random character strings which are different from each other and have fixed lengths in advance, wherein the random character strings comprise a plurality of characters, and the characters comprise at least one of letters, numbers and symbols; the character string extracting unit is used for randomly extracting one of the n random character strings generated by the character string generating unit as the unique identification string;
or,
the mapping generation unit is used for mapping the original information into a character string with a fixed length; the mapping determining unit is configured to use the fixed-length character string as the unique identification string.
13. The two-dimensional code generation device according to claim 11, further comprising: a feature generation module;
the feature generation module is configured to generate an identification feature of the unique identification string, where the identification feature is used to identify that what is carried in the content information of the two-dimensional code is not the original information but the unique identification string;
the two-dimensional code generating module is used for taking the unique identification string as part of content information of the two-dimensional code and taking the identification characteristic as the other part of content information of the two-dimensional code to generate the two-dimensional code.
14. The two-dimensional code generation device according to any one of claims 11 to 13, further comprising: an identification query module;
the identification query module is used for querying the address identification of the address according to the address of the preset server and a preset corresponding relation, wherein the corresponding relation is a one-to-one corresponding relation between different addresses of the preset server and different address identifications;
the two-dimensional code generating module is used for generating the two-dimensional code by taking the unique identification string as part of content information of the two-dimensional code and taking the address identification as the other part of content information of the two-dimensional code.
15. The two-dimensional code recognition device is characterized by comprising:
the identification module is used for identifying the unique identification string carried in the content information of the two-dimensional code;
a request sending module, configured to send, to a predetermined server, an inquiry request carrying the unique identifier string identified by the identifier identification module, so that the predetermined server inquires, according to the inquiry request, original information bound to the unique identifier string in a pre-stored binding relationship, and feeds back the original information;
and the information receiving module is used for receiving the original information fed back by the preset server.
16. The two-dimensional code recognition device of claim 15, wherein the identification recognition module comprises: the device comprises an information reading unit, an information judging unit, a first information unit and a second information unit;
the information reading unit is used for reading the content information of the two-dimensional code;
the information judging unit is used for judging whether the content information of the two-dimensional code read by the information reading unit is the unique identification string;
the first information unit is configured to execute the step of sending the query request carrying the unique identifier string to a predetermined server if the determination result indicates that the content information is the unique identifier string;
and the second information unit is used for directly taking the content information as the original information if the judgment result shows that the content information is not the unique identification string.
17. The device according to claim 16, wherein the information determining unit is configured to determine whether the content information of the two-dimensional code has an identification feature, and the identification feature is configured to identify that the content information of the two-dimensional code carries not the original information but the unique identification string.
18. The two-dimensional code recognition device according to claim 15, further comprising: the system comprises an identification detection module and an address query module;
the identification detection module is used for detecting whether the content information contains an address identification;
the address query module is configured to query the address of the predetermined server according to the address identifier and a predetermined correspondence relationship if the detection result indicates that the content information includes the address identifier, where the correspondence relationship is a one-to-one correspondence relationship between addresses of different predetermined servers and different address identifiers;
and the request sending module is used for sending a query request carrying the unique identification string to the predetermined server according to the queried address of the predetermined server.
19. A two-dimensional code information providing device, characterized in that the device includes:
the information storage module is used for pre-storing original information, the unique identification string and the binding relationship between the original information and the unique identification string;
the device comprises a request receiving module, a query processing module and a query processing module, wherein the request receiving module is used for receiving a query request sent by two-dimension code identification equipment, the query request carries a unique identification string, and the unique identification string is obtained from content information of a two-dimension code identified by the two-dimension code identification equipment;
the information query module is used for querying original information bound with the unique identification string in the binding relationship according to the query request received by the request receiving module;
and the information feedback module is used for feeding back the original information inquired by the information inquiry module to the two-dimensional code identification equipment.
20. The two-dimensional code information providing device according to claim 19, wherein the information storage module includes: the device comprises a storage receiving unit and a storage realizing unit;
the storage receiving unit is configured to receive a storage request sent by a two-dimensional code generating device, where the storage request carries the original information, the unique identification string, and a binding relationship between the original information and the unique identification string, and the storage request is sent by the two-dimensional code generating device after the two-dimensional code generating device acquires the original information, generates the unique identification string corresponding to the original information, and binds the original information and the unique identification string;
the storage implementation unit is configured to store the original information, the unique identification string, and the binding relationship between the original information and the unique identification string according to the storage request received by the storage receiving unit.
21. A two-dimensional code generation system, the system comprising: the two-dimensional code generating device is connected with the preset server through a wired network or a wireless network;
the two-dimensional code generating device comprises the apparatus of any one of claims 11 to 14;
the subscription server comprising an apparatus as claimed in any one of claims 19 to 20.
22. A two-dimensional code recognition system, the system comprising: the two-dimensional code recognition device is connected with the preset server through a wired network or a wireless network;
the two-dimensional code recognition device comprises the apparatus of any one of claims 15 to 18;
the subscription server comprising an apparatus as claimed in any one of claims 19 to 20.
CN201310362461.9A 2013-08-19 2013-08-19 Two-dimensional code generation method, recognition methods, information providing method, device and system Active CN104424496B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310362461.9A CN104424496B (en) 2013-08-19 2013-08-19 Two-dimensional code generation method, recognition methods, information providing method, device and system
PCT/CN2014/084584 WO2015024485A1 (en) 2013-08-19 2014-08-18 Two-dimensional code generation method, recognition method, and information provision method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310362461.9A CN104424496B (en) 2013-08-19 2013-08-19 Two-dimensional code generation method, recognition methods, information providing method, device and system

Publications (2)

Publication Number Publication Date
CN104424496A true CN104424496A (en) 2015-03-18
CN104424496B CN104424496B (en) 2018-05-01

Family

ID=52483074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310362461.9A Active CN104424496B (en) 2013-08-19 2013-08-19 Two-dimensional code generation method, recognition methods, information providing method, device and system

Country Status (2)

Country Link
CN (1) CN104424496B (en)
WO (1) WO2015024485A1 (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468350A (en) * 2014-09-10 2016-04-06 阿里巴巴集团控股有限公司 Object tag processing method and apparatus
CN106022399A (en) * 2016-05-06 2016-10-12 庞震伟 Two-dimensional code, two-dimensional code label, two-dimensional code application system formation method and two-dimensional code use method
CN106101368A (en) * 2016-07-07 2016-11-09 立德高科(昆山)数码科技有限责任公司 The method and system of Quick Response Code have been generated based on telephonograph
CN106203228A (en) * 2016-07-06 2016-12-07 北京金山安全软件有限公司 Two-dimensional code information transmission method, device and equipment
CN106250941A (en) * 2016-07-20 2016-12-21 奥瑞金包装股份有限公司 Quick Response Code processing method, Apparatus and system
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN106911874A (en) * 2015-12-22 2017-06-30 富士施乐株式会社 Information processor, image read-out, coded image generating means and method
CN107402811A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 A kind of resource binding method and device
CN107679437A (en) * 2017-09-26 2018-02-09 四川元匠科技有限公司 Bar code image recognizer based on Zbar
CN108599931A (en) * 2018-04-12 2018-09-28 深圳市易迈数据技术有限公司 Safe code generating method based on big data and its method of calibration
CN108629391A (en) * 2018-05-10 2018-10-09 佛山市博知盾识科技有限公司 Color code decoding method, system and equipment
CN108681766A (en) * 2018-04-12 2018-10-19 深圳市易迈数据技术有限公司 Idle bit assignment method and its identification code based on user data statistics
CN109214950A (en) * 2017-07-04 2019-01-15 黄海量 Build concealed structure management method, building pipeline management method and server
CN109886375A (en) * 2019-02-17 2019-06-14 北京意锐新创科技有限公司 The method and system of batch replacement binding two dimension code reading device
CN111274508A (en) * 2020-02-12 2020-06-12 上海东普信息科技有限公司 Service recommendation method, device, equipment and storage medium based on two-dimension code
CN111581535A (en) * 2020-03-21 2020-08-25 长沙迪迈数码科技股份有限公司 Mine sampling registration method and device based on unique identification code and storage medium
CN111582415A (en) * 2020-05-08 2020-08-25 北京思特奇信息技术股份有限公司 Device management method, device, electronic device and storage medium
CN113071225A (en) * 2021-03-23 2021-07-06 日本电产(韶关)有限公司 Method and device for generating serial number
CN113935909A (en) * 2021-09-22 2022-01-14 南方电网深圳数字电网研究院有限公司 Two-dimensional code correction identification method and device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270764B (en) * 2017-01-04 2020-06-02 腾讯科技(深圳)有限公司 Application login method, server and mobile terminal
CN109409832A (en) * 2018-10-19 2019-03-01 西安瑜乐文化科技股份有限公司 A kind of user bound information recommendation method based on two dimensional code
CN109685423A (en) * 2018-12-25 2019-04-26 山东浪潮通软信息科技有限公司 A kind of method and device checked goods yard and currently store grain business contact information
CN111507447A (en) * 2020-04-03 2020-08-07 北京市天元网络技术股份有限公司 Label identification method and device
CN113505620B (en) * 2021-07-30 2024-04-16 绿漫科技有限公司 Material reverse energy attaching method based on two-dimensional code information storage
CN113553305B (en) * 2021-07-30 2024-07-30 国网数字科技控股有限公司 Industrial Internet identification processing method and device
CN114978572B (en) * 2022-03-29 2024-07-23 山东山科智控数字化科技有限公司 Identity recognition method of Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1770604A1 (en) * 2004-07-22 2007-04-04 Matsushita Electric Industrial Co., Ltd. Multicolored two-dimensional barcode, image display apparatus thereof, information terminal apparatus, display method, decoding method, information communication system, and information communication method
CN101894113A (en) * 2009-05-18 2010-11-24 吕杰聪 Two-dimensional code-based mobile yellow page system
CN102750612A (en) * 2012-05-31 2012-10-24 华为技术有限公司 Optical cable distinguishing method and server
CN102855323A (en) * 2012-09-11 2013-01-02 北京蜂侠飞科技有限公司 Information sharing method based on two-dimension codes and system implementing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289651A (en) * 2011-08-10 2011-12-21 深圳市通产丽星股份有限公司 Label checking method and system
CN102497331A (en) * 2011-12-16 2012-06-13 王博 Information providing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1770604A1 (en) * 2004-07-22 2007-04-04 Matsushita Electric Industrial Co., Ltd. Multicolored two-dimensional barcode, image display apparatus thereof, information terminal apparatus, display method, decoding method, information communication system, and information communication method
CN101894113A (en) * 2009-05-18 2010-11-24 吕杰聪 Two-dimensional code-based mobile yellow page system
CN102750612A (en) * 2012-05-31 2012-10-24 华为技术有限公司 Optical cable distinguishing method and server
CN102855323A (en) * 2012-09-11 2013-01-02 北京蜂侠飞科技有限公司 Information sharing method based on two-dimension codes and system implementing method

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468350A (en) * 2014-09-10 2016-04-06 阿里巴巴集团控股有限公司 Object tag processing method and apparatus
CN106911874A (en) * 2015-12-22 2017-06-30 富士施乐株式会社 Information processor, image read-out, coded image generating means and method
CN106022399A (en) * 2016-05-06 2016-10-12 庞震伟 Two-dimensional code, two-dimensional code label, two-dimensional code application system formation method and two-dimensional code use method
CN107402811A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 A kind of resource binding method and device
CN106203228A (en) * 2016-07-06 2016-12-07 北京金山安全软件有限公司 Two-dimensional code information transmission method, device and equipment
WO2018006841A1 (en) * 2016-07-06 2018-01-11 北京金山安全软件有限公司 Qr code information transmission method, device and apparatus
CN106101368A (en) * 2016-07-07 2016-11-09 立德高科(昆山)数码科技有限责任公司 The method and system of Quick Response Code have been generated based on telephonograph
CN106250941A (en) * 2016-07-20 2016-12-21 奥瑞金包装股份有限公司 Quick Response Code processing method, Apparatus and system
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN109214951A (en) * 2017-07-04 2019-01-15 黄海量 Build concealed structure management method, building pipeline management method and server
CN109214950A (en) * 2017-07-04 2019-01-15 黄海量 Build concealed structure management method, building pipeline management method and server
CN107679437A (en) * 2017-09-26 2018-02-09 四川元匠科技有限公司 Bar code image recognizer based on Zbar
CN108681766A (en) * 2018-04-12 2018-10-19 深圳市易迈数据技术有限公司 Idle bit assignment method and its identification code based on user data statistics
CN108599931A (en) * 2018-04-12 2018-09-28 深圳市易迈数据技术有限公司 Safe code generating method based on big data and its method of calibration
CN108629391A (en) * 2018-05-10 2018-10-09 佛山市博知盾识科技有限公司 Color code decoding method, system and equipment
CN108629391B (en) * 2018-05-10 2021-09-03 品冠物联科技(惠州市)有限公司 Color code encoding and decoding method, system and equipment
CN109886375A (en) * 2019-02-17 2019-06-14 北京意锐新创科技有限公司 The method and system of batch replacement binding two dimension code reading device
CN109886375B (en) * 2019-02-17 2022-06-03 北京意锐新创科技有限公司 Method and system for replacing bound two-dimensional code reading devices in batches
CN111274508A (en) * 2020-02-12 2020-06-12 上海东普信息科技有限公司 Service recommendation method, device, equipment and storage medium based on two-dimension code
CN111274508B (en) * 2020-02-12 2023-04-07 上海东普信息科技有限公司 Service recommendation method, device, equipment and storage medium based on two-dimension code
CN111581535A (en) * 2020-03-21 2020-08-25 长沙迪迈数码科技股份有限公司 Mine sampling registration method and device based on unique identification code and storage medium
CN111582415A (en) * 2020-05-08 2020-08-25 北京思特奇信息技术股份有限公司 Device management method, device, electronic device and storage medium
CN113071225A (en) * 2021-03-23 2021-07-06 日本电产(韶关)有限公司 Method and device for generating serial number
CN113935909A (en) * 2021-09-22 2022-01-14 南方电网深圳数字电网研究院有限公司 Two-dimensional code correction identification method and device
CN113935909B (en) * 2021-09-22 2024-07-05 南方电网数字平台科技(广东)有限公司 Two-dimensional code correction and identification method and device

Also Published As

Publication number Publication date
WO2015024485A1 (en) 2015-02-26
CN104424496B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104424496B (en) Two-dimensional code generation method, recognition methods, information providing method, device and system
US10212217B2 (en) Method and apparatus for data transmission in a distributed storage system
CN105900466B (en) Message processing method and device
CN104852885B (en) Method, device and system for verifying verification code
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN104965641B (en) information display method and device
CN104426963B (en) The method and terminal of associated terminal
CN104142862A (en) Overload protection method and device for server
CN104423996B (en) View method for refreshing and device
CN103294515A (en) Method, device and system for acquiring application programs
CN103607377B (en) Information sharing method, Apparatus and system
CN104142868A (en) Connection establishment method and device
CN103455330A (en) Application program management method, terminal, equipment and system
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN106203228A (en) Two-dimensional code information transmission method, device and equipment
CN104518945A (en) Method, device, and system for sending and receiving social network information
CN103379522A (en) Method of setting an optimal ping interval and an electronic device therefor
CN104378755A (en) Terminal interaction method and device
CN104580177A (en) Resource supplying method, device and system
CN106685948A (en) Data processing method, terminal, communication device and data processing system
CN105530222A (en) Method for establishing connection among terminals, and device and system
CN117318937A (en) Encryption method, decryption method, encryption and decryption system, equipment and medium
CN103327029A (en) Malicious URL (Uniform Resource Locator) detection method and malicious URL detection device
CN105577712B (en) A kind of file uploading method, device and system
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant