CN110751003A - Method and device for acquiring target data information of two-dimensional code - Google Patents

Method and device for acquiring target data information of two-dimensional code Download PDF

Info

Publication number
CN110751003A
CN110751003A CN201910903228.4A CN201910903228A CN110751003A CN 110751003 A CN110751003 A CN 110751003A CN 201910903228 A CN201910903228 A CN 201910903228A CN 110751003 A CN110751003 A CN 110751003A
Authority
CN
China
Prior art keywords
information
dimensional code
target
decoding
target data
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
CN201910903228.4A
Other languages
Chinese (zh)
Other versions
CN110751003B (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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201910903228.4A priority Critical patent/CN110751003B/en
Publication of CN110751003A publication Critical patent/CN110751003A/en
Application granted granted Critical
Publication of CN110751003B publication Critical patent/CN110751003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The method comprises the steps of receiving a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code; performing a decoding process of image information regarding the target two-dimensional code; performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; and if the time consumption of the image matching is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment. According to the scheme, image matching is carried out according to the image information of the two-dimensional code while decoding, corresponding target data information is directly acquired, the efficiency of two-dimensional code identification is improved, the decoding time of the two-dimensional code is shortened, and quick decoding experience is provided for a user.

Description

Method and device for acquiring target data information of two-dimensional code
Technical Field
The application relates to the field of communication, in particular to a technology for acquiring target data information of a two-dimensional code.
Background
The two-dimensional Code is also called as a two-dimensional Bar Code, a common two-dimensional Code is a QR Code, and QR is known as Quick Response, which is an ultra-popular coding mode on mobile equipment in recent years, and compared with the traditional Bar Code, the two-dimensional Code can store more information and represent more data types. The two-dimensional bar code/two-dimensional code (2-dimensional bar code) records data symbol information by using black and white alternate graphs which are distributed on a plane (two-dimensional direction) according to a certain rule by using a certain specific geometric figure; the concept of '0' and '1' bit stream which forms the internal logic base of computer is skillfully utilized in coding, a plurality of geometric shapes corresponding to binary system are used for representing literal numerical information, and the information is automatically read by an image input device or an optoelectronic scanning device so as to realize the automatic processing of the information: it has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Meanwhile, the method also has the function of automatically identifying information of different rows and processing the graph rotation change points.
The existing two-dimension code identification is usually completed by the steps of positioning a graph, graying two-dimension code information pixels, binarizing the two-dimension code information pixels, decoding and correcting the two-dimension code and the like, and decoding information corresponding to the two-dimension code can be obtained through the process; then, corresponding target data information, such as an instruction to be executed or a page to be presented, can be acquired according to the decoding information corresponding to the two-dimensional code. The decoding process is complex and takes a long time.
Disclosure of Invention
An object of the present application is to provide a method and apparatus for acquiring target data information of a two-dimensional code.
According to an aspect of the present application, there is provided a method for acquiring target data information of a two-dimensional code, which is applied to a network device, the method including:
receiving a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises two-dimensional code associated information corresponding to the target two-dimensional code and image information of the target two-dimensional code;
performing a decoding process of image information on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information;
performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
and if the time consumption of the image matching is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment.
According to another aspect of the present application, there is provided a method for acquiring target data information of a two-dimensional code, which is applied to a user equipment, the method including:
acquiring image information about a target two-dimensional code;
acquiring two-dimension code associated information corresponding to the target two-dimension code;
sending a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and image information of the target two-dimensional code;
executing a corresponding first sub-decoding process based on the image information of the target two-dimensional code, wherein the first sub-decoding process comprises determining decoding information of the target two-dimensional code;
if target data information returned by the network equipment is received before the first sub-decoding process is completed, stopping the first sub-decoding process, wherein the target data information is obtained by the network equipment through an image matching process, and the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding target data information based on the similar two-dimensional code;
and presenting page information corresponding to the target data information.
According to another aspect of the present application, a method for acquiring target data information of a two-dimensional code is provided, and is applied to a user equipment, and the method includes:
acquiring image information about a target two-dimensional code;
acquiring two-dimension code associated information corresponding to the target two-dimension code;
performing a decoding process of image information on the target two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process comprises acquiring decoding information of the target two-dimensional code, and the second sub-decoding process comprises determining first target data information of the target two-dimensional code based on the decoding information;
and performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for obtaining: a similar two-dimensional code corresponding to the image information and corresponding second target data information determined based on the similar two-dimensional code;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, presenting page information corresponding to the second target data information;
and if the time consumption of the decoding process is less than that of the image matching process, presenting the page information corresponding to the first target data information.
According to an aspect of the present application, there is provided a method for acquiring target data information of a two-dimensional code, wherein the method includes:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment executes a decoding process of image information of the two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first word decoding process comprises decoding and determining corresponding decoding information according to the image information of the target two-dimensional code, and the second sub-decoding process determines first target data information of the target two-dimensional code based on the decoding information;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment; the user equipment receives the first target data information and presents page information corresponding to the first target data information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; and the user equipment receives the second target data information and presents page information corresponding to the second target data information.
According to another aspect of the present application, there is provided a method of acquiring target data information of a two-dimensional code, wherein the method includes:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the user equipment executes a corresponding first sub-decoding process based on the image information of the target two-dimensional code, wherein the first sub-decoding process comprises the step of acquiring decoding information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the user equipment receives second target data information returned by the network equipment before the first sub-decoding process is completed, stopping the first sub-decoding process and presenting page information corresponding to the second target data information;
if the first sub-decoding process of the user equipment is completed and second target data information returned by the network equipment is not received, sending decoding information of the target two-dimensional code to the network equipment;
the network equipment executes a decoding process of image information of the target two-dimensional code, wherein the decoding process comprises the first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information which is sent by the user equipment and is about the target two-dimensional code, and the second sub-decoding process comprises determining first target data information of the target two-dimensional code based on the decoding information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; the user equipment receives second target data information returned by the network equipment and presents page information corresponding to the second target data information;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment;
and the user equipment receives the first target data information returned by the network equipment and presents page information corresponding to the first target data information.
According to an aspect of the present application, there is provided a network device for acquiring target data information of a two-dimensional code, wherein the device includes:
the system comprises a one-to-one module, a first module and a second module, wherein the one-to-one module is used for receiving a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, and the decoding request comprises two-dimensional code associated information corresponding to the target two-dimensional code and image information of the target two-dimensional code;
a second module, configured to perform a decoding process of image information about the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information;
a third module, configured to perform an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
and a fourth module, configured to return the second target data information to the user equipment if the time consumed by the image matching process is less than or equal to the time consumed by the decoding process.
According to another aspect of the present application, there is provided a user equipment for acquiring target data information of a two-dimensional code, wherein the user equipment comprises:
the first module is used for acquiring image information related to the target two-dimensional code;
the second module is used for acquiring two-dimension code associated information corresponding to the target two-dimension code;
a second module and a third module, which are used for sending a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
a fourth module, configured to perform a corresponding first sub-decoding process based on the image information of the target two-dimensional code, where the first sub-decoding process includes determining decoding information of the target two-dimensional code;
a fifth module, configured to stop a first sub-decoding process if target data information returned by the network device is received before the first sub-decoding process is completed, where the target data information is obtained by the network device through an image matching process, and the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding target data information based on the similar two-dimensional code;
and the second and sixth modules are used for presenting page information corresponding to the target data information.
According to still another aspect of the present application, there is provided a user equipment for acquiring target data information of a two-dimensional code, wherein the user equipment comprises:
the three-in-one module is used for acquiring image information about the target two-dimensional code;
the third and second modules are used for acquiring two-dimension code associated information corresponding to the target two-dimension code;
a third module, configured to perform a decoding process of image information about the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, where the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information;
the image matching module is used for obtaining a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
a thirty-five module, configured to present page information corresponding to the second target data information if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process;
and a sixteenth module, configured to present the page information corresponding to the first target data information if the time consumed in the decoding process is less than the time consumed in the image matching process.
According to an aspect of the present application, there is provided an apparatus for acquiring target data information of a two-dimensional code, wherein the apparatus includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the operations of any of the methods described above.
According to another aspect of the application, there is provided a computer readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods described above.
Compared with the prior art, the method and the device for decoding the target two-dimensional code receive a decoding request which is sent by corresponding user equipment and relates to the target two-dimensional code, wherein the decoding request comprises two-dimensional code associated information corresponding to the target two-dimensional code and image information of the target two-dimensional code; performing a decoding process of image information on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; and if the time consumption of the image matching is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment. According to the scheme, image matching is carried out according to the image information of the two-dimensional code while decoding, corresponding target data information is directly acquired, the efficiency of two-dimensional code identification is improved, the decoding time of the two-dimensional code is shortened, and quick decoding experience is provided for a user. In addition, the target data information of the two-dimensional code is obtained through the image recognition mode, no requirement is made on decoding software, the decoding mode is simple and universal, good universality is achieved, and the use experience of a user is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 illustrates a system topology diagram for acquiring target data information of a two-dimensional code according to an embodiment of the present application;
FIG. 2 illustrates a system method diagram for obtaining target data information of a two-dimensional code in accordance with an aspect of the subject application;
FIG. 3 illustrates a system method diagram for obtaining target data information of a two-dimensional code according to another aspect of the subject application;
FIG. 4 illustrates a flow chart of a method of obtaining target data information of a two-dimensional code according to an aspect of the present application;
FIG. 5 illustrates a flow chart of a method of obtaining target data information of a two-dimensional code according to an aspect of the present application;
FIG. 6 illustrates a flow chart of a method of obtaining target data information of a two-dimensional code according to an aspect of the present application;
FIG. 7 illustrates functional modules of a network device of the present application;
fig. 8 illustrates functional modules of a user equipment according to the present application;
FIG. 9 illustrates functional modules of another user equipment of the present application;
FIG. 10 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include volatile Memory in a computer readable medium, Random Access Memory (RAM), and/or nonvolatile Memory such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The device referred to in this application includes, but is not limited to, a user device, a network device, or a device formed by integrating a user device and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Fig. 1 shows a typical scenario of the present application, where a user equipment 200 establishes a communication connection with a network device 100, and completes an acquisition process of target data information of a two-dimensional code through the communication connection. The user equipment includes, but is not limited to, any mobile electronic product capable of human-computer interaction with a user (e.g., human-computer interaction through a touch panel), such as a smart phone, a tablet computer, and the like; the network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers. Here, the target data information of the two-dimensional code includes, but is not limited to, an instruction to be executed, a result page of the instruction to be executed, or a page to be presented, which is included in the two-dimensional code, for example, a payment instruction related to a certain amount paid to a certain merchant, or a payment page, a focus page, and the like corresponding to the merchant to be presented.
Referring to the system diagram shown in fig. 1, the present application further provides a method for acquiring target data information of a two-dimensional code in an interaction process between a network device and a user device, as shown in fig. 2, the method includes:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment executes a decoding process of image information of the two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first word decoding process comprises decoding and determining corresponding decoding information according to the image information of the target two-dimensional code, and the second sub-decoding process determines first target data information of the target two-dimensional code based on the decoding information;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment; the user equipment receives the first target data information and presents page information corresponding to the first target data information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; and the user equipment receives the second target data information and presents page information corresponding to the second target data information.
In addition to the method shown in fig. 2, the present application also provides a method for acquiring target data information of a two-dimensional code, as shown in fig. 3, the method includes:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the user equipment executes a corresponding first sub-decoding process based on the image information of the target two-dimensional code, wherein the first sub-decoding process comprises the step of acquiring decoding information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the user equipment receives second target data information returned by the network equipment before the first sub-decoding process is completed, stopping the first sub-decoding process and presenting page information corresponding to the second target data information;
if the first sub-decoding process of the user equipment is completed and second target data information returned by the network equipment is not received, sending decoding information of the target two-dimensional code to the network equipment;
the network equipment executes a decoding process of image information of the target two-dimensional code, wherein the decoding process comprises the first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information which is sent by the user equipment and is about the target two-dimensional code, and the second sub-decoding process comprises determining first target data information of the target two-dimensional code based on the decoding information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; the user equipment receives second target data information returned by the network equipment and presents page information corresponding to the second target data information;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment;
and the user equipment receives the first target data information returned by the network equipment and presents page information corresponding to the first target data information.
Referring to the system shown in fig. 1 and the system methods shown in fig. 2 and 3, the following description will be made by way of example in conjunction with each specific embodiment of the method applied to the network device shown in fig. 4.
Fig. 4 shows a method for acquiring target data information of a two-dimensional code according to an aspect of the present application, which is applied to a network device side and is applicable to the system shown in fig. 1, and specifically includes step S101, step S102, step S103, and step S104. In step S101, a network device receives a decoding request about a target two-dimensional code, which is sent by a corresponding user device, where the decoding request includes two-dimensional code associated information corresponding to the target two-dimensional code and image information of the two-dimensional code; in step S102, the network device performs a decoding process on the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; in step S103, the network device performs an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; in step S104, if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, the second target data information is returned to the user equipment.
Specifically, in step S101, the network device receives a decoding request about a target two-dimensional code, which is sent by a corresponding user device, where the decoding request includes two-dimensional code associated information corresponding to the target two-dimensional code and image information of the two-dimensional code. For example, a user holds a user device, and obtains image information of a target two-dimensional code through the user device, such as the user device captures image information about the target two-dimensional code through a camera, or calls stored image information of the target two-dimensional code locally (such as an album or application internal storage) from the user device for identification; the user device sends the image information to the network device, and the image information of the two-dimensional code received by the network device may be an original image of the target two-dimensional code captured by the user device, or a preprocessed image, such as image information of the target two-dimensional code obtained through filtering, image correction, and the like. Meanwhile, the user equipment also acquires corresponding two-dimension code association information, such as acquiring a currently connected wireless access point through a hotspot connection module or determining corresponding position information through a GPS or Beidou system and the like; the user equipment includes the two-dimension code association information in a decoding request, and sends the decoding request to the network equipment, where the two-dimension code association information is used to determine a matching range of a target two-dimension code, for example, to determine one or more two-dimension codes in a two-dimension code database for matching with the target two-dimension code, where the two-dimension code database may be included in the network equipment, or may be stored in other network equipment in communication with the network equipment, and the like. In some embodiments, the two-dimensional code association information includes, but is not limited to: identification information of a wireless access point to which the user equipment is currently connected; current location information of the user equipment. For example, a mapping relationship between each two-dimensional code and corresponding two-dimensional code association information is established in a two-dimensional code database, for example, identification information of a corresponding wireless access Point exists in each two-dimensional code, or geographic location information (for example, longitude and latitude or AOI (area of interest) or POI (Point of interest) corresponding to a business district) exists in each two-dimensional code, and of course, a plurality of two-dimensional codes associated with the two-dimensional code may exist in the corresponding two-dimensional code association information. The two-dimensional code corresponding to the identification information of the wireless access point, for example, the XX merchant provides the corresponding wireless access point "XX merchant", and the network device may establish a mapping relationship between the uploaded two-dimensional code and the identification information of the wireless access point based on the two-dimensional code uploaded by the merchant (for example, a merchant cash register code, a merchant public number two-dimensional code, and the like) and the identification information "XX merchant" of the wireless access point. The two-dimensional code associated with the current location information, for example, the two-dimensional code (for example, a merchant cash register, a merchant public number two-dimensional code, and the like) of a merchant included in the XX square provided by the XX square (including corresponding latitude and longitude, and the like), and the network device may establish a mapping relationship with the two-dimensional codes based on the location information of the XX square. Certainly, the user equipment sends a decoding request to the network equipment, the decoding request contains the current two-dimensional code associated information, and the network equipment can be matched in the two-dimensional code database, so that the matching result is more accurate, the matching workload, time and the like are reduced, and the efficiency and accuracy of two-dimensional code matching are improved.
In step S102, the network device performs a decoding process on the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information. For example, the decoding process includes a first sub-decoding process and a second sub-decoding process, where the first sub-decoding process includes decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, where the decoding information includes, but is not limited to, access link information, an execution instruction, and the like of the corresponding target two-dimensional code, and the first sub-decoding process may be completed at a network device side or a user device side; the second sub-decoding process includes determining, according to the decoding information, web page information corresponding to the target two-dimensional code or a corresponding execution instruction corresponding to the execution, and acquiring an execution result page, and the like, and the second sub-decoding process is completed by the network device. Through the decoding information, the network device may determine first target data information corresponding to the target two-dimensional code, such as an instruction to be executed of the target two-dimensional code (e.g., whether to wait for execution of payment), an execution result page (page information of payment completion, etc.), or corresponding page information (e.g., payment page for inputting payment amount, etc.), and so on. As in some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code sent by the user equipment; as in further embodiments, the first sub-decoding process includes performing decoding based on image information of the two-dimensional code to determine corresponding decoding information. For example, the first sub-decoding process generally includes the steps of positioning a graph, graying two-dimensional code information pixels, binarizing the two-dimensional code information pixels, decoding and correcting the two-dimensional code, and the like; the first sub-decoding process may be completed at the user equipment side or at the network equipment side. The decoding process of the scheme is to ensure that the user can still complete the identification process of the target two-dimensional code to acquire corresponding target data information when the time consumed in the image matching process is long.
In step S103, the network device performs an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code. For example, the network device performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, for example, the network device determines one or more two-dimension codes corresponding to the two-dimension code association information according to the two-dimension code association information, and matches a similar two-dimension code having a similarity reaching a certain threshold with the target two-dimension code from the one or more two-dimension codes, the corresponding image matching includes, but is not limited to, matching based on gray scale and matching based on features, and the basic idea of gray scale matching is to regard an image as a two-dimension signal from a statistical viewpoint, and find a correlation matching between signals by using a statistical correlation method. Evaluating the similarity of the two signals by using the correlation function of the two signals to determine the homonymy point; feature matching refers to an algorithm that performs parameter description on features (points, lines, planes, and other features) by extracting the features of two or more images, respectively, and then performs matching using the described parameters. The corresponding image matching process is further for: and the network equipment takes the target data information of the similar two-dimensional code as second target data information of the target two-dimensional code according to the similar two-dimensional code, wherein the second target data information and the first target data information are the same target data information, the first target data information and the second target data information do not represent sequences, only the mode corresponding to the target data information is distinguished and obtained, the first target data information is obtained through a decoding process, and the second target data information is obtained through an image matching process.
In step S104, if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, the second target data information is returned to the user equipment. For example, the time consumed by the image matching process refers to the time elapsed from the start of decoding until the image matching process determines the corresponding second target data information, where the time consumed by the decoding process includes the time consumed by the first sub-decoding process, the second sub-decoding process, data transmission, and the like, and specifically refers to the time consumed by the decoding start until the first target data information is acquired; here, the decoding starting point may be a time when the network device receives the decoding request, or may be a time when the user equipment sends the decoding request, and if the decoding request is the latter, the decoding starting time is also included in the decoding request; of course, it will be understood by those skilled in the art that any other time-consuming calculation is also suitable for the present application as long as it can ensure that the start times of the decoding process and the image matching process are consistent. And the network equipment compares the consumed time of the image matching process with the consumed time of the decoding process, if the consumed time of the image matching process is less than or equal to the consumed time of the decoding process, the network equipment firstly acquires the target data information of the target two-dimensional code through the image matching process, and the network equipment returns the second target data information to the corresponding user equipment. And the user equipment receives the target data information, presents the target data information, or executes a corresponding instruction according to the target data information, and the like. In some embodiments, the decoding process takes longer because the decoding mode in the corresponding application is not matched with the recognition mode of the corresponding code, which results in decoding failure or takes longer time, and the corresponding first target data information can be matched faster through the image matching process, so that the recognition of the two-dimensional code is no longer limited by the recognition mode of the fixed application. In some embodiments, in step S104, if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, the decoding process is stopped, and the second target data information is returned to the user equipment. For example, when the corresponding second target data information is determined through the image matching process, that is, the consumed time of the image matching process is less than or equal to the consumed time of the decoding process, the network device stops the corresponding decoding process, and if the first sub-decoding process is completed by the network device and the first sub-decoding process is currently being executed, the currently executed first sub-decoding process is stopped; if the first sub-decoding process is completed by the user equipment and the user equipment is executing the first sub-decoding process, the network equipment does not execute the second sub-decoding process after receiving the decoding information determined by the first sub-decoding process, or the network equipment sends a decoding stop instruction to the corresponding user equipment when sending the second target data information, so as to stop the first sub-decoding process of the user equipment end; if the second sub-decoding process is being performed when the image matching process is completed, the network device stops the second sub-decoding process. According to the scheme, the corresponding decoding process is stopped in time, the efficiency of obtaining the target data information of the target two-dimensional code is guaranteed, and meanwhile resources consumed by obtaining the target data information are saved.
In some embodiments, the method further includes step S105 (not shown), in step S105, if the time consumption of the decoding process is less than the time consumption of the image matching process, the network device stops the image matching process, and returns the first target data information to the user device. For example, when the network device determines that the first target data information is obtained, the corresponding image matching process is not completed, the network device stops the image matching process, and returns the first target data information to the user device. In some embodiments, the incomplete image matching process includes that the image matching data is large in size and takes a long time, and also includes that template information of the target two-dimensional code is not stored in a two-dimensional code database used in the image matching process. According to the scheme, the situation that the time consumption of image matching is too long is considered, so that the decoding speed of the target two-dimensional code can be normally carried out, the normal decoding process of a user is not influenced, the resources of a user equipment end are not consumed in the decoding process, the decoding process executed by a network equipment end is generally faster than the decoding process executed by the user equipment end, and the efficiency of the decoding process is improved to a certain extent.
In some embodiments, the step S103 includes a sub-step S1031 (not shown) and a sub-step S1032 (not shown). In step S1031, the network device determines one or more corresponding two-dimensional codes according to the two-dimensional code association information; in step S1032, the network device performs an image matching process with the one or more two-dimensional codes according to the image information of the target two-dimensional code, where the image matching is used to: and acquiring similar two-dimensional codes corresponding to the fox-searching image information from one or more two-dimensional codes and determining corresponding second target data information based on the similar two-dimensional codes. For example, a mapping relationship between each two-dimensional code and the associated information of the corresponding two-dimensional code is established in a two-dimensional code database, the two-dimensional code database may be at a network device side or another device having a communication connection with the network device, and the network device may invoke the mapping relationship in the corresponding two-dimensional code database through the communication connection, and the like. The network equipment can determine a matching database of the target two-dimensional code through the two-dimensional code association information, the matching database comprises one or more two-dimensional codes which have a mapping relation with the two-dimensional code association information, for example, through the mapping relation between the geographic position and the two-dimensional code image, the network equipment determines the two-dimensional code corresponding to the geographic position within a certain range (such as within 200 meters) of the geographic position, and uses the two-dimensional codes for matching; for another example, the network device determines, according to the wireless access point to which the user device is currently connected, two-dimensional codes corresponding to the wireless access point (e.g., payment codes of merchants in different applications, merchant page corresponding codes, etc.), and uses the two-dimensional codes for matching, etc. After the network device determines one or more corresponding two-dimensional codes used for matching, corresponding target data information is determined according to the one or more two-dimensional codes, for example, the corresponding mapping relation includes the target data information of the two-dimensional codes, and the network device takes the target data information of the two-dimensional code with the highest similarity in the target data information of the two-dimensional codes with the similarity greater than or equal to a certain threshold as corresponding second target data information and the like. In some embodiments, in step S1031, the network device queries and determines one or more corresponding two-dimensional code records in a corresponding two-dimensional code database according to the two-dimensional code association information, where the two-dimensional code database includes multiple two-dimensional code records, and each two-dimensional code record includes image information of the two-dimensional code, target data information, and two-dimensional code association information corresponding to the two-dimensional code; in step S1032, the network device performs an image matching process according to the image information of the target two-dimensional code and the image information of the two-dimensional codes in the one or more two-dimensional code records, where the image matching is used to: acquiring similar two-dimension code records corresponding to the image information from the image information of one or more two-dimension code records and determining corresponding second target data information based on the similar two-dimension code records, wherein the second target data information is the target data information of the two-dimension codes in the similar two-dimension code records. For example, the mapping relationship between each two-dimensional code and the corresponding two-dimensional code-related information is included in a two-dimensional code record of the corresponding two-dimensional code, the two-dimensional code record further includes image information of the two-dimensional code, target data information of the two-dimensional code, and the like, and the two-dimensional code record information is included in a two-dimensional code database. The network equipment determines the matching range of a target two-dimensional code through two-dimensional code correlation information, determines one or more two-dimensional code records matched with the target two-dimensional code through the two-dimensional code correlation information, then determines a corresponding similar two-dimensional code by matching the image information of the two-dimensional code in the one or more two-dimensional code records with the image information of the target two-dimensional code, and determines the similar two-dimensional code if the similarity is larger than or equal to a certain threshold value; or when a plurality of two-dimensional codes with similarity greater than or equal to a certain threshold exist, determining candidate two-dimensional codes with similarity greater than or equal to a certain threshold, and determining the two-dimensional code with highest similarity in the candidate two-dimensional codes as the similar two-dimensional code. And the network equipment takes the target data information recorded by the two-dimension code corresponding to the similar two-dimension code as the second target data information of the target two-dimension code. According to the scheme, the two-dimension code associated information can effectively reduce two-dimension code records used for image matching, resources consumed in the image matching process are reduced, the image matching efficiency is improved, meanwhile, the two-dimension code records in the two-dimension code database are matched, corresponding target data information can be rapidly acquired, the matching base number of the target two-dimension code can be guaranteed to be large, and the matching rate is guaranteed to a certain extent.
In certain embodiments, the matching result of the image matching process further comprises a matching failure; wherein the method further comprises step S106 (not shown). In step S106, if the matching result of the image matching process includes a matching failure, the first target data information is returned to the user equipment. For example, when the corresponding two-dimensional code database does not include the template record corresponding to the target two-dimensional code, the corresponding matching result includes a matching failure, for example, the two-dimensional code database does not include the associated information of the corresponding two-dimensional code, and the two-dimensional code record corresponding to the associated information of the two-dimensional code in the two-dimensional code database does not have a two-dimensional code record matching the target two-dimensional code (for example, the similarity is greater than or equal to the threshold value), and the like. And when the image matching result fails, the network equipment acquires the first target data information through a decoding process and returns the first target data information to the user equipment. In some embodiments, the method further includes step S107 (not shown), the network device generates a target two-dimensional code record about the target two-dimensional code according to the image information, the first target data information and the two-dimensional code correlation information, and adds the target two-dimensional code record to the two-dimensional code database. For example, if the matching result includes a matching failure, after the network device executes a decoding process to determine corresponding first target data information, the network device establishes a corresponding target two-dimensional code record according to two-dimensional code associated information uploaded by the user device, image information of the two-dimensional code, and the first target data information, in some embodiments, the image information of the target two-dimensional code in the target two-dimensional code record may be image information obtained by correcting the image information of the two-dimensional code, for example, image information uploaded by a user and captured by an imaging device may have a certain distortion due to a capturing angle of the user device, and the image information may be corrected in the decoding process, and the network device uses the corrected image information as the image information in the two-dimensional code record. According to the scheme, the two-dimension code database can be gradually enlarged by normally decoding the matching failure condition and establishing the corresponding two-dimension code record, so that the follow-up identification of the two-dimension code is guaranteed.
In some embodiments, the two-dimensional code record further includes time limit information for the two-dimensional code. For example, some two-dimensional codes have timeliness for some reasons, such as personal payment codes, and the corresponding two-dimensional code records further include time limit information of the two-dimensional codes, and for example, when the valid time of the two-dimensional codes is five minutes, and the network device establishes and stores the corresponding two-dimensional code records, the two-dimensional code records further include the time limit information. In some embodiments, the network device manages the two-dimensional code record according to the time limit information, for example, start timing with the establishment time of the two-dimensional code record as a start time, delete the corresponding two-dimensional code record when the storage time of the two-dimensional code record is greater than or equal to the time corresponding to the time limit information, and the like. In some embodiments, if there is a two-dimensional code record in the plurality of two-dimensional code records whose recording time is greater than or equal to the time limit information, the network device deletes the two-dimensional code record from the two-dimensional code database. According to the scheme, the time limit information is added into the two-dimensional code records, the two-dimensional code records are managed more orderly, the applicability of the image matching process is wider, the two-dimensional code records exceeding the time limit information are deleted in time, and the resource utilization space is improved.
The embodiments of the method are mainly described from the perspective of network equipment, and the embodiments of the method are described from the perspective of user equipment by way of example with reference to fig. 5.
Fig. 5 shows a method for acquiring target data information of a two-dimensional code according to another aspect of the present application, which is applied to a user equipment and is also applied to the system topology shown in fig. 1, and the method includes step S201, step S202, step S203, step S204, step S205, step S206, and the like. In step S201, the user equipment acquires image information about the target two-dimensional code; in step S202, the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional code; in step S203, the user equipment sends a decoding request about the target two-dimensional code to a corresponding network device, where the decoding request includes the two-dimensional code association information and image information of the target two-dimensional code; in step S204, the user equipment performs a corresponding first sub-decoding process based on the image information of the target two-dimensional code, where the first sub-decoding process includes determining decoding information of the target two-dimensional code; in step S205, if the user equipment receives target data information returned by the network equipment before a first sub-decoding process is completed, the first sub-decoding process is stopped, where the target data information is obtained by the network equipment through an image matching process, and the image matching process is used to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding target data information based on the similar two-dimensional code; in step S206, the user equipment presents page information corresponding to the target data information. For example, a user holds a user device, and obtains image information of a target two-dimensional code through the user device, such as the user device captures image information about the target two-dimensional code through a camera, or calls stored image information of the target two-dimensional code locally (such as an album or application internal storage) from the user device for identification; the user device sends the image information to the network device, and the image information of the two-dimensional code received by the network device may be an original image of the target two-dimensional code captured by the user device, or a preprocessed image, such as image information of the target two-dimensional code obtained through filtering, image correction, and the like. Meanwhile, the user equipment also acquires corresponding two-dimension code association information, such as acquiring a currently connected wireless access point through a hotspot connection module or determining corresponding position information through a GPS or Beidou system and the like; the user equipment includes the two-dimension code association information in a decoding request, and sends the decoding request to the network equipment, where the two-dimension code association information is used to determine a matching range of a target two-dimension code, for example, to determine one or more two-dimension codes in a two-dimension code database for matching with the target two-dimension code, where the two-dimension code database may be included in the network equipment, or may be stored in other network equipment in communication with the network equipment, and the like. The decoding process comprises a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process comprises decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, the decoding information comprises but is not limited to access link information, execution instructions and the like of the corresponding target two-dimensional code, and the first sub-decoding process is completed at the user equipment end; the second sub-decoding process includes determining, according to the decoding information, web page information corresponding to the target two-dimensional code or a corresponding execution instruction corresponding to the execution, and acquiring an execution result page, and the like, and the second sub-decoding process is completed by the network device. The network device performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, for example, the network device determines one or more two-dimension codes corresponding to the two-dimension code association information according to the two-dimension code association information, and matches a similar two-dimension code with a certain threshold in similarity with the target two-dimension code from the one or more two-dimension codes, the corresponding image matching process includes but is not limited to matching based on gray scale and matching based on features, and the basic idea of gray scale matching is to regard an image as a two-dimension signal from a statistical viewpoint and find a correlation matching between signals by using a statistical correlation method. Evaluating the similarity of the two signals by using the correlation function of the two signals to determine the homonymy point; feature matching refers to an algorithm that performs parameter description on features (points, lines, planes, and other features) by extracting the features of two or more images, respectively, and then performs matching using the described parameters. The image matching process is further for: and the network equipment takes the target data information of the similar two-dimensional code as second target data information of the target two-dimensional code according to the similar two-dimensional code. The time consumed by the image matching process is the time elapsed from the decoding starting time to the image matching process determining the corresponding second target data information, the time consumed by the decoding process comprises the first sub-decoding process, the second sub-decoding process, the time consumed by data transmission and the like, and specifically the time consumed by the decoding starting time until the first target data information is obtained; here, the decoding starting point may be a time when the network device receives the decoding request, or may be a time when the user equipment sends the decoding request, and if the decoding request is the latter, the decoding starting time is also included in the decoding request; of course, it will be understood by those skilled in the art that any other time-consuming calculation is also suitable for the present application as long as it can ensure that the start times of the decoding process and the image matching process are consistent. And the network equipment compares the consumed time of the image matching with the consumed time of the decoding process, if the consumed time of the image matching process is less than or equal to the consumed time of the decoding process, the network equipment firstly acquires the target data information of the target two-dimensional code through the image matching process, and the network equipment returns the second target data information to the corresponding user equipment. And the user equipment receives the target data information, presents the target data information, or executes a corresponding instruction according to the target data information, and the like. And if the user equipment end receives the second target data information, the corresponding first sub-decoding process is not finished, namely the corresponding image matching time consumption is less than the time consumption of the decoding process, the user equipment stops the first sub-decoding process and receives the corresponding second target data information. The user equipment presents a page corresponding to the target data information, if the target data information is corresponding webpage information, the user equipment presents the page information corresponding to the webpage, if the target data information is an instruction to be executed and the like, a confirmation page for judging whether to execute the instruction is presented, and if the target data information is an execution instruction, a result page and the like after the instruction is executed are presented.
In some embodiments, the method further includes step S207 (not shown), if the first sub-decoding process is completed and second target data information returned by the network device is not received, the user equipment sends decoding information of the target two-dimensional code to the network device; and the user equipment receives first target data information returned by the network equipment, wherein the first target data information is determined by the network equipment through a second sub-decoding process based on the decoding information, the first sub-decoding process and the second sub-decoding process are included in the decoding process, and the time consumption of the decoding process is less than that of the image matching process. In some embodiments, the method further includes step S208 (not shown), if the first sub-decoding process is completed and second target data information returned by the network device is not received, sending decoding information of the target two-dimensional code to the network device; receiving second target data information returned by the network equipment, wherein the time consumption of the image matching process is less than that of the decoding process of the target two-dimensional code, the decoding process comprises the first sub-decoding process and a second sub-decoding process, and the second sub-decoding process comprises the step that the network equipment determines the first target data information corresponding to the target two-dimensional code based on the decoding information. For example, the time consumed by the image matching refers to the time elapsed from the start of decoding until the corresponding second target data information is determined by the image matching, the time consumed by the decoding process includes the time consumed by the first sub-decoding process, the second sub-decoding process, the data transmission, and the like, and specifically, the time consumed by the decoding process until the first target data information is acquired. And after the user equipment completes the corresponding first sub-decoding process, the decoding information is sent to the network equipment, the network equipment executes the subsequent second sub-decoding process, and the time consumption is compared with the image matching process, so that the target data information and the like are determined. The target data information may be first target data information determined by a decoding process, or second target data information determined by an image matching process, where the second target data information and the first target data information should be the same target data information, the first and second target data information do not represent an order, and only in a manner of distinguishing and acquiring the target data information, the first target data information is acquired by the decoding process, and the second target data information is acquired by the image matching process.
In the above, the specific embodiments of the method are introduced mainly from the perspective of interaction between the network device and the user device, the application also provides a method for acquiring target data information of the target two-dimensional code mainly through the user device, and an example corresponding to the method is described below with reference to fig. 6.
Fig. 6 shows a method for acquiring target data information of a target two-dimensional code according to another aspect of the present application, which is applied to a user equipment, and includes step S301, step S302, step S303, step S304, step S305, and step S306. In step S301, the user equipment acquires image information about the target two-dimensional code; in step S302, the user equipment obtains two-dimensional code association information corresponding to the target two-dimensional code; in step S303, the user equipment performs a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; in step S304, the user equipment performs an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; in step S305, if the consumed time of the image matching process is less than or equal to the consumed time of the decoding process, the user equipment presents the page information corresponding to the second target data information; in step S306, if the time consumed by the decoding process is less than the time consumed by the image matching process, the user equipment presents the page information corresponding to the first target data information. In this embodiment, except that in step S303, the second sub-decoding process is mainly completed in the user equipment, by interacting with the network equipment to obtain the first target data information. For example, the user holds the user equipment, obtains image information about the target two-dimensional code through the user equipment, and performs preprocessing on the image information, such as filtering, image correction and the like, on the image information about the target two-dimensional code, for example, the user equipment captures the image information about the target two-dimensional code through a camera, or calls the stored image information about the target two-dimensional code from the local (such as an album or application internal storage) of the user equipment for identification. Meanwhile, the user equipment also obtains corresponding two-dimension code association information, where the two-dimension code association information is used to determine a matching range of a target two-dimension code, for example, to determine one or more two-dimension codes in a two-dimension code database for matching with the target two-dimension code, where the two-dimension code database is included locally in the user equipment. The decoding process comprises a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process comprises decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, the decoding information comprises but is not limited to access link information, execution instructions and the like of the corresponding target two-dimensional code, and the first sub-decoding process is completed at the user equipment end; the second sub-decoding process comprises the steps of determining webpage information corresponding to the target two-dimensional code or corresponding execution instructions according to the decoding information, obtaining an execution result page and the like, wherein the second sub-decoding process is completed by the cooperation of user equipment and network equipment. Meanwhile, the user equipment carries out an image matching process according to the two-dimension code associated information and the image information of the target two-dimension code, for example, one or more two-dimension codes corresponding to the two-dimension code associated information are determined according to the two-dimension code associated information, a similar two-dimension code with the similarity reaching a certain threshold value with the target two-dimension code is matched from the one or more two-dimension codes, corresponding image matching comprises but not limited to matching based on gray scale, matching based on characteristics and the like, and the basic idea of gray scale matching is that an image is regarded as a two-dimension signal from the viewpoint of statistics, and a statistical correlation method is adopted to find correlation matching among signals. And the user equipment takes the target data information of the similar two-dimensional code as second target data information of the target two-dimensional code according to the similar two-dimensional code. The time consumed by the image matching process is the time elapsed from the decoding starting time to the image matching process determining the corresponding second target data information, the time consumed by the decoding process comprises the first sub-decoding process, the second sub-decoding process, the time consumed by data transmission and the like, and specifically the time consumed by the decoding starting time until the first target data information is obtained; here, the decoding start point may be a time when the user equipment starts decoding; of course, it will be understood by those skilled in the art that any other time-consuming calculation is also suitable for the present application as long as it can ensure that the start times of the decoding process and the image matching process are consistent. And comparing the consumed time of the image matching with the consumed time of the decoding process by the user equipment, and if the consumed time of the image matching process is less than or equal to the consumed time of the decoding process, acquiring the target data information of the target two-dimensional code by the user equipment through image matching, and presenting the page information corresponding to the second target data information by the user equipment. If the time consumption of the image matching process is greater than that of the decoding process, the user equipment firstly acquires the target data information of the target two-dimensional code through the decoding process, and the user equipment presents the page information corresponding to the first target data information.
Referring to the system shown in fig. 1, the system method shown in fig. 2 and 3, and the method shown in fig. 4 and 6, the present application further provides various devices capable of implementing the above methods, and a network device capable of implementing various embodiments of the above methods is described below with reference to fig. 7.
Fig. 7 shows a network device 100 for acquiring target data information of a two-dimensional code according to an aspect of the present application, which is suitable for the system shown in fig. 1 and specifically includes a one-to-one module 101, a two-to-two module 102, a three-to-three module 103, and a four-to-four module 104. A one-to-one module 101, configured to receive a decoding request, which is sent by a corresponding user equipment and is related to a target two-dimensional code, where the decoding request includes two-dimensional code association information corresponding to the target two-dimensional code and image information of the two-dimensional code; a secondary module 102, configured to perform a decoding process on the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; a third module 103, configured to perform an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; a fourth module 104, configured to return the second target data information to the user equipment if the time consumed by the image matching process is less than or equal to the time consumed by the decoding process. Here, the specific implementation corresponding to the one-to-one module 101, the two-to-two module 102, the one-to-three module 103, and the one-to-four module 104 shown in fig. 7 is the same as or similar to the embodiment of the step S101, the step S102, the step S103, and the step S104 shown in fig. 4, and is not repeated here, and is included herein by way of reference.
In some embodiments, the two-dimensional code association information includes, but is not limited to: identification information of a wireless access point to which the user equipment is currently connected; current location information of the user equipment. Here, the specific implementation manner corresponding to the two-dimensional code associated information is the same as or similar to the foregoing embodiment of the two-dimensional code associated information, and is not repeated here and is included herein by way of reference.
As in some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code sent by the user equipment; as in further embodiments, the first sub-decoding process includes performing decoding based on image information of the two-dimensional code to determine corresponding decoding information. Here, the specific implementation manner corresponding to the first sub-decoding process is the same as or similar to that of the foregoing first sub-decoding process, and is not repeated herein and is included by way of reference.
In some embodiments, a fourth module 104 is configured to stop the decoding process and return the second target data information to the user equipment if the time consumed by the image matching process is less than or equal to the time consumed by the decoding process. Here, the specific implementation manner corresponding to the stopping of the decoding process in the four modules 104 is the same as or similar to the foregoing embodiment of stopping the decoding process in step S104, and is not repeated here and is included herein by way of reference.
In some embodiments, the apparatus further includes a fifth module 105 (not shown) for stopping the image matching process and returning the first target data information to the user equipment if the time consumption of the decoding process is less than the time consumption of the image matching process. Here, the specific implementation manner corresponding to the first-fifth module 105 is the same as or similar to the embodiment of the step S105, and is not repeated here, and is included herein by way of reference.
In some embodiments, a tri-module 103 includes a tri-one cell 1031 (not shown) and a tri-two cell 1032 (not shown). A three-in-one unit 1031, configured to determine one or more corresponding two-dimensional codes according to the two-dimensional code association information; a third-second unit 1032, configured to perform an image matching process with the one or more two-dimensional codes according to the image information of the target two-dimensional code, where the image matching process is configured to: and acquiring similar two-dimensional codes corresponding to the fox-searching image information from one or more two-dimensional codes and determining corresponding second target data information based on the similar two-dimensional codes. In some embodiments, the one-three-in-one unit 1031 is configured to query and determine one or more corresponding two-dimension code records in a corresponding two-dimension code database according to the two-dimension code association information, where the two-dimension code database includes multiple two-dimension code records, and each two-dimension code record includes image information of the two-dimension code, target data information, and two-dimension code association information corresponding to the two-dimension code; the one-third-second unit 1032 is configured to perform an image matching process according to the image information of the target two-dimensional code and the image information of the two-dimensional codes in the one or more two-dimensional code records, where the image matching process is configured to: acquiring similar two-dimension code records corresponding to the image information from the image information of one or more two-dimension code records and determining corresponding second target data information based on the similar two-dimension code records, wherein the second target data information is the target data information of the two-dimension codes in the similar two-dimension code records. Here, the specific implementation of the one-third-one unit 1031 and the one-third-two unit 1032 is the same as or similar to the embodiment of the step S1031 and the step S1032, and is not repeated here, and is included herein by way of reference.
In certain embodiments, the matching result of the image matching process further comprises a matching failure; the device further includes a sixth module 106 (not shown), and if the matching result of the image matching process includes a matching failure, the sixth module is configured to return the first target data information to the user equipment. In some embodiments, the apparatus further comprises a seventh module 107 (not shown) for generating a target two-dimensional code record regarding the target two-dimensional code according to the image information, the first target data information, and the two-dimensional code correlation information, and adding the target two-dimensional code record to the two-dimensional code database. Here, the specific implementation corresponding to the six-module 106 and the seven-module 107 is the same as or similar to the embodiment of the step S106 and the step S107, and is not repeated here, and is included herein by way of reference.
In some embodiments, the two-dimensional code record further includes time limit information for the two-dimensional code. In some embodiments, if there is a two-dimensional code record in the plurality of two-dimensional code records whose recording time is greater than or equal to the time limit information, the network device deletes the two-dimensional code record from the two-dimensional code database. Here, the specific implementation manner that the two-dimensional code record further includes the time limit information is the same as or similar to the foregoing embodiment that the two-dimensional code record further includes the time limit information, and is not described again and is included herein by way of reference.
The foregoing mainly describes network devices, and a user device capable of implementing embodiments of the present application is described below with reference to fig. 8.
Fig. 8 shows a user equipment 200 for acquiring target data information of a two-dimensional code according to another aspect of the present application, which is also applicable to the system topology shown in fig. 1, and includes a two-to-one module 201, a two-to-two module 202, a two-to-three module 203, a two-to-four module 204, a two-to-five module 205, a two-to-six module 206, and so on. A second-to-first module 201, configured to obtain image information about a target two-dimensional code; a second module 202, configured to obtain two-dimension code association information corresponding to the target two-dimension code; a second and third module 203, configured to send a decoding request related to the target two-dimensional code to a corresponding network device, where the decoding request includes the two-dimensional code association information and image information of the target two-dimensional code; a twenty-four module 204, configured to perform a corresponding first sub-decoding process based on the image information of the target two-dimensional code, where the first sub-decoding process includes determining decoding information of the target two-dimensional code; a twenty-fifth module 205, configured to, if target data information returned by the network device is received before a first sub-decoding process is completed, stop the first sub-decoding process, where the target data information is obtained by the network device through an image matching process, and the image matching process is used to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding target data information based on the similar two-dimensional code; and a twenty-six module 206, configured to present page information corresponding to the target data information. Here, the specific implementation corresponding to the two-in-one module 201, the two-in-two module 202, the two-in-three module 203, the two-in-four module 204, the two-in-five module 205, and the two-in-six module 206 shown in fig. 8 is the same as or similar to the embodiments of step S201, step S202, step S203, step S204, step S205, and step S206 shown in fig. 5, and is not repeated and is included herein by reference.
In some embodiments, the apparatus further includes a twenty-seventh module 207 (not shown), configured to send decoding information of the target two-dimensional code to the network device if the first sub-decoding process is completed and a second target data message returned by the network device is not received; and the user equipment receives first target data information returned by the network equipment, wherein the first target data information is determined by the network equipment through a second sub-decoding process based on the decoding information, the first sub-decoding process and the second sub-decoding process are included in the decoding process, and the time consumption of the decoding process is less than that of the image matching process. In other embodiments, the apparatus further includes a twenty-eight module 208 (not shown), and if the first sub-decoding process is completed and second target data information returned by the network device is not received, the apparatus sends decoding information of the target two-dimensional code to the network device; receiving second target data information returned by the network equipment, wherein the time consumption of the image matching process is less than that of the decoding process of the target two-dimensional code, the decoding process comprises the first sub-decoding process and a second sub-decoding process, and the second sub-decoding process comprises the step that the network equipment determines the first target data information corresponding to the target two-dimensional code based on the decoding information. Here, the specific implementation manners of the twenty-seventh module 207 and the twenty-eighth module 208 are the same as or similar to the embodiments of the step S207 and the step S208, and are not repeated herein and are included herein by reference.
The foregoing mainly describes a network device and a user equipment example that can implement the embodiments of the present application, and the present application also provides another user equipment, which is described below with reference to fig. 9 by way of example.
Fig. 9 illustrates a user equipment for acquiring target data information of a target two-dimensional code according to another aspect of the present application, where the user equipment includes a three-to-one module 301, a three-to-two module 302, a three-to-three module 303, a three-to-four module 304, a three-to-five module 305, and a three-to-six module 306. A third module 301, configured to obtain image information about a target two-dimensional code; a third-second module 302, configured to obtain two-dimension code association information corresponding to the target two-dimension code; a third module 303, configured to perform a decoding process of image information about the target two-dimensional code, where the decoding process includes a first sub-decoding process and a second sub-decoding process, where the first sub-decoding process includes obtaining decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; a thirty-four module 304, configured to perform an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, where the image matching process is configured to: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code; a thirty-five module 305, configured to present page information corresponding to the second target data information if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process; a thirty-six module 306, configured to apply the page information corresponding to the first target data information if the time consumed in the decoding process is less than the time consumed in the image matching process. Here, the specific implementation corresponding to the three-one module 301, the three-two module 302, the three-three module 303, the three-four module 304, the three-five module 305, and the three-six module 306 shown in fig. 9 is the same as or similar to the embodiment of the step S301, the step S302, the step S303, the step S304, the step S305, and the step S306 shown in fig. 6, and is not repeated and is included herein by reference.
In addition to the methods and apparatus described in the embodiments above, the present application also provides a computer readable storage medium storing computer code that, when executed, performs the method as described in any of the preceding claims.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
FIG. 10 illustrates an exemplary system that can be used to implement the various embodiments described herein;
in some embodiments, as shown in FIG. 10, the system 300 can be implemented as any of the above-described devices in the various embodiments. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include 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. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (20)

1. A method for acquiring target data information of a two-dimensional code is applied to network equipment, wherein the method comprises the following steps:
receiving a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises two-dimensional code associated information corresponding to the target two-dimensional code and image information of the target two-dimensional code;
performing a decoding process of image information on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information;
performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
and if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment.
2. The method of claim 1, wherein the method further comprises:
and if the time consumption of the decoding process is less than that of the image matching process, stopping the image matching process and returning the first target data information to the user equipment.
3. The method of claim 2, wherein the first sub-decoding process comprises receiving decoding information about the target two-dimensional code transmitted by the user equipment.
4. The method according to claim 1 or 2, wherein the first sub-decoding process comprises performing decoding from image information of the two-dimensional code to determine corresponding decoding information.
5. The method according to any one of claims 1 to 4, wherein the returning the second target data information to the user equipment if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process comprises:
and if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, stopping the decoding process, and returning the second target data information to the user equipment.
6. The method according to any one of claims 1 to 5, wherein the performing of a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information, including:
determining one or more corresponding two-dimension codes according to the two-dimension code association information;
performing an image matching process according to the image information of the target two-dimensional code and the one or more two-dimensional codes, wherein the image matching process is used for: and acquiring similar two-dimensional codes corresponding to the image information from one or more two-dimensional codes and determining corresponding second target data information based on the similar two-dimensional codes.
7. The method of claim 6, wherein the determining the corresponding one or more two-dimensional codes according to the two-dimensional code association information comprises:
inquiring and determining one or more corresponding two-dimension code records in a corresponding two-dimension code database according to the two-dimension code association information, wherein the two-dimension code database comprises a plurality of two-dimension code records, and each two-dimension code record comprises image information and target data information of the two-dimension code and two-dimension code association information corresponding to the two-dimension code;
performing an image matching process with the one or more two-dimensional codes according to the image information of the target two-dimensional code, wherein the image matching process is used for: acquiring similar two-dimensional codes corresponding to the image information from one or more two-dimensional codes and determining corresponding second target data information based on the similar two-dimensional codes, wherein the method comprises the following steps:
performing an image matching process according to the image information of the target two-dimensional code and the image information of the two-dimensional code in the one or more two-dimensional code records, wherein the image matching process is used for: acquiring similar two-dimension code records corresponding to the image information from the image information of one or more two-dimension code records and determining corresponding second target data information based on the similar two-dimension code records, wherein the second target data information is the target data information of the two-dimension codes in the similar two-dimension code records.
8. The method of claim 7, wherein the matching result of the image matching process further comprises a matching failure;
wherein the method comprises the following steps:
and if the matching result of the image matching process comprises matching failure, returning the first target data information to the user equipment.
9. The method of claim 8, wherein the method further comprises:
generating a target two-dimensional code record related to the target two-dimensional code according to the image information, the first target data information and the two-dimensional code association information, and adding the target two-dimensional code record to the two-dimensional code database.
10. The method of any of claims 7 to 9, wherein the two-dimensional code record further comprises time limit information for the two-dimensional code.
11. The method of claim 10, wherein the method further comprises:
and if the recording time of one two-dimension code record in the plurality of two-dimension code records is greater than or equal to the time limit information, deleting the two-dimension code record from the two-dimension code database.
12. The method according to any one of claims 6 to 11, wherein the two-dimensional code correlation information comprises at least any one of:
identification information of a wireless access point to which the user equipment is currently connected;
current location information of the user equipment.
13. A method for acquiring target data information of a two-dimensional code is applied to user equipment, wherein the method comprises the following steps:
acquiring image information about a target two-dimensional code;
acquiring two-dimension code associated information corresponding to the target two-dimension code;
sending a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and image information of the target two-dimensional code;
executing a corresponding first sub-decoding process based on the image information of the target two-dimensional code, wherein the first sub-decoding process comprises determining decoding information of the target two-dimensional code;
if second target data information returned by the network equipment is received before the first sub-decoding process is completed, stopping the first sub-decoding process, wherein the second target data information is obtained by the network equipment through an image matching process, and the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
and presenting the page information corresponding to the second target data information.
14. The method of claim 13, wherein the method further comprises:
if the first sub-decoding process is completed and second target data information returned by the network equipment is not received, sending decoding information of the target two-dimensional code to the network equipment;
receiving first target data information returned by the network device, wherein the first target data information is determined by the network device through a second sub-decoding process based on the decoding information, the first sub-decoding process and the second sub-decoding process are included in the decoding process, and the time consumption of the decoding process is less than that of the image matching process.
15. The method of claim 13, wherein the method further comprises:
if the first sub-decoding process is completed and second target data information returned by the network equipment is not received, sending decoding information of the target two-dimensional code to the network equipment;
receiving second target data information returned by the network equipment, wherein the time consumption of the image matching process is less than that of the decoding process of the target two-dimensional code, the decoding process comprises the first sub-decoding process and a second sub-decoding process, and the second sub-decoding process comprises the step that the network equipment determines the first target data information corresponding to the target two-dimensional code based on the decoding information.
16. A method for acquiring target data information of a two-dimensional code is applied to user equipment, wherein the method comprises the following steps:
acquiring image information about a target two-dimensional code;
acquiring two-dimension code associated information corresponding to the target two-dimension code;
performing a decoding process of image information on the target two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process comprises acquiring decoding information of the target two-dimensional code, and the second sub-decoding process comprises determining first target data information of the target two-dimensional code based on the decoding information;
performing an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, presenting page information corresponding to the second target data information;
and if the time consumption of the decoding process is less than that of the image matching process, presenting the page information corresponding to the first target data information.
17. A method for acquiring target data information of a two-dimensional code, wherein the method comprises the following steps:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment executes a decoding process of image information of the two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first word decoding process comprises decoding and determining corresponding decoding information according to the image information of the target two-dimensional code, and the second sub-decoding process determines first target data information of the target two-dimensional code based on the decoding information;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment; the user equipment receives the first target data information and presents page information corresponding to the first target data information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; and the user equipment receives the second target data information and presents page information corresponding to the second target data information.
18. A method for acquiring target data information of a two-dimensional code, wherein the method comprises the following steps:
the user equipment acquires image information about the target two-dimensional code;
the user equipment acquires two-dimension code associated information corresponding to the target two-dimension code;
the user equipment sends a decoding request about the target two-dimensional code to corresponding network equipment, wherein the decoding request comprises the two-dimensional code association information and the image information of the target two-dimensional code;
the user equipment executes a corresponding first sub-decoding process based on the image information of the target two-dimensional code, wherein the first sub-decoding process comprises the step of acquiring decoding information of the target two-dimensional code;
the network equipment receives a decoding request which is sent by corresponding user equipment and relates to a target two-dimensional code, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment performs an image matching process according to the two-dimension code association information and the image information of the target two-dimension code, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining corresponding second target data information based on the similar two-dimensional code;
if the user equipment receives second target data information returned by the network equipment before the first sub-decoding process is completed, stopping the first sub-decoding process and presenting page information corresponding to the second target data information;
if the first sub-decoding process of the user equipment is completed and second target data information returned by the network equipment is not received, sending decoding information of the target two-dimensional code to the network equipment;
the network equipment executes a decoding process of image information of the target two-dimensional code, wherein the decoding process comprises the first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information which is sent by the user equipment and is about the target two-dimensional code, and the second sub-decoding process comprises determining first target data information of the target two-dimensional code based on the decoding information;
if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, returning the second target data information to the user equipment; the user equipment receives second target data information returned by the network equipment and presents page information corresponding to the second target data information;
if the time consumption of the decoding process is less than the time consumption of the image matching process, returning the first target data information to the user equipment; and the user equipment receives the first target data information returned by the network equipment and presents page information corresponding to the first target data information.
19. An apparatus for acquiring target data information of a two-dimensional code, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 16.
20. A computer-readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods of claims 1 to 16.
CN201910903228.4A 2019-09-24 2019-09-24 Method and equipment for acquiring target data information of two-dimension code Active CN110751003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910903228.4A CN110751003B (en) 2019-09-24 2019-09-24 Method and equipment for acquiring target data information of two-dimension code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910903228.4A CN110751003B (en) 2019-09-24 2019-09-24 Method and equipment for acquiring target data information of two-dimension code

Publications (2)

Publication Number Publication Date
CN110751003A true CN110751003A (en) 2020-02-04
CN110751003B CN110751003B (en) 2023-05-05

Family

ID=69276912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910903228.4A Active CN110751003B (en) 2019-09-24 2019-09-24 Method and equipment for acquiring target data information of two-dimension code

Country Status (1)

Country Link
CN (1) CN110751003B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094671A (en) * 2021-04-14 2021-07-09 广州炒米信息科技有限公司 Authorization method and device of personal cloud storage equipment and personal cloud storage equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882210A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Matrix two-dimensional barcode decoding chip and decoding method thereof
CN104424458A (en) * 2013-08-23 2015-03-18 希姆通信息技术(上海)有限公司 Image identification method and device, network server, image identification equipment and system
CN106027737A (en) * 2016-05-24 2016-10-12 努比亚技术有限公司 Contact information management device, method and terminal
WO2018030172A1 (en) * 2016-08-11 2018-02-15 Denso (China) Investment Co., Ltd. Vehicle part distribution control system, vehicle part distribution control method, and vehicle part authentication method
CN108549397A (en) * 2018-04-19 2018-09-18 武汉大学 The unmanned plane Autonomous landing method and system assisted based on Quick Response Code and inertial navigation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882210A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Matrix two-dimensional barcode decoding chip and decoding method thereof
CN104424458A (en) * 2013-08-23 2015-03-18 希姆通信息技术(上海)有限公司 Image identification method and device, network server, image identification equipment and system
CN106027737A (en) * 2016-05-24 2016-10-12 努比亚技术有限公司 Contact information management device, method and terminal
WO2018030172A1 (en) * 2016-08-11 2018-02-15 Denso (China) Investment Co., Ltd. Vehicle part distribution control system, vehicle part distribution control method, and vehicle part authentication method
CN108549397A (en) * 2018-04-19 2018-09-18 武汉大学 The unmanned plane Autonomous landing method and system assisted based on Quick Response Code and inertial navigation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094671A (en) * 2021-04-14 2021-07-09 广州炒米信息科技有限公司 Authorization method and device of personal cloud storage equipment and personal cloud storage equipment
CN113094671B (en) * 2021-04-14 2023-09-29 广州炒米信息科技有限公司 Authorization method and device of personal cloud storage device and personal cloud storage device

Also Published As

Publication number Publication date
CN110751003B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN107229559B (en) Detection method and device for testing integrity of service system
CN110175825B (en) Method and equipment for providing target information
CN111258470B (en) Method and equipment for presenting social messages
CN111523039B (en) Method and device for processing book promotion request in reading application
CN110765395A (en) Method and equipment for providing novel information
CN110276027B (en) Method and equipment for information push based on two-dimension code recognition
CN112104663B (en) Method and equipment for managing login user and user equipment
CN110780955A (en) Method and equipment for processing emoticon message
CN111272388A (en) Method and device for detecting camera flash lamp
CN108319688B (en) Method and equipment for reading reminding of user
CN111222592B (en) Method and device for acquiring two-dimensional code of equipment
CN109409947B (en) Resident trip investigation method based on client
CN111162990A (en) Method and equipment for presenting message notification
CN110751003B (en) Method and equipment for acquiring target data information of two-dimension code
CN112866302B (en) Method, apparatus, medium and program product for integrity checking of cluster data
CN111177062B (en) Method and device for providing reading presentation information
CN110765390A (en) Method and equipment for publishing shared information in social space
WO2019165870A1 (en) Method, apparatus, and device for recognizing bar code
CN110781431A (en) Method and equipment for providing novel information
CN111666250B (en) Method and device for processing book promotion request information in reading application
CN109657514B (en) Method and equipment for generating and identifying two-dimensional code
CN115134325A (en) Method, device and medium for information push
CN110460642B (en) Method and device for managing reading mode
CN110784596B (en) Method and equipment for processing event information
CN107404397B (en) Method and equipment for determining user service state information

Legal Events

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