CN110751003B - Method and equipment for acquiring target data information of two-dimension code - Google Patents

Method and equipment for acquiring target data information of two-dimension code Download PDF

Info

Publication number
CN110751003B
CN110751003B CN201910903228.4A CN201910903228A CN110751003B CN 110751003 B CN110751003 B CN 110751003B CN 201910903228 A CN201910903228 A CN 201910903228A CN 110751003 B CN110751003 B CN 110751003B
Authority
CN
China
Prior art keywords
dimensional code
information
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.)
Active
Application number
CN201910903228.4A
Other languages
Chinese (zh)
Other versions
CN110751003A (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

Abstract

The purpose of the application is to provide a method and equipment for acquiring target data information of a two-dimension code, wherein the method comprises the steps of receiving a decoding request about the target two-dimension code, which is sent by corresponding user equipment; performing a decoding process of image information on the target two-dimensional code; performing an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional 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, when decoding is performed, image matching is performed according to the image information of the two-dimensional code, the corresponding target data information is directly acquired, the two-dimensional code identification efficiency is improved, the decoding time of the two-dimensional code is shortened, and quick decoding experience is provided for a user.

Description

Method and equipment for acquiring target data information of two-dimension 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, and the common two-dimensional Code is QR Code, and QR is called as Quick Response, so that the two-dimensional Code is a coding mode which is superpopular in mobile equipment in recent years, can store more information than the traditional Bar Code Bar Code, and can also represent more data types. The two-dimensional bar code/two-dimensional code (2-dimensional bar code) records data symbol information by using a certain specific geometric figure distributed on a plane (in a two-dimensional direction) according to a certain rule and a black-white alternate figure; the concept of 0 and 1 bit streams forming the internal logic foundation of a computer is skillfully utilized in code programming, a plurality of geometric shapes corresponding to binary are used for representing literal numerical information, and the literal numerical information is automatically read through an image input device or an optoelectronic scanning device to realize automatic information processing: it has some commonalities in barcode technology: each code has its specific character set; each character occupies a certain width; has a certain checking function and the like. Meanwhile, the system also has the function of automatically identifying information of different rows and processes the rotation change points of the graphics.
The existing two-dimensional code identification is generally completed through the steps of positioning graphics, graying two-dimensional code information pixels, binarizing two-dimensional code information pixels, decoding the two-dimensional code, correcting errors and the like, and decoding information corresponding to the two-dimensional 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, and the like, can be obtained according to the decoding information corresponding to the two-dimensional code. The decoding process is complex and time consuming.
Disclosure of Invention
The application aims to provide a method and equipment for acquiring target data information of a two-dimensional code.
According to one aspect of the present application, there is provided a method for acquiring target data information of a two-dimensional code, applied to a network device, the method including:
receiving a decoding request about a target two-dimensional code sent by corresponding user equipment, 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 about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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-dimensional code association information and the image information of the target two-dimensional 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, applied to a user equipment, the method including:
acquiring image information about a target two-dimensional code;
acquiring two-dimensional code association information corresponding to the target two-dimensional code;
transmitting 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 the target data information returned by the network device 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 device 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 still another aspect of the present application, there is provided a method for acquiring target data information of a two-dimensional code, applied to a user equipment, the method including:
acquiring image information about a target two-dimensional code;
acquiring two-dimensional code association information corresponding to the target two-dimensional code;
performing a decoding process of image information about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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-dimensional code association information and the image information of the target two-dimensional 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 is 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 the time consumption of the image matching process, presenting the page information corresponding to the first target data information.
According to one 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 a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 image information of the target two-dimensional code;
the network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network device performs a decoding process of image information about 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-dimensional code association information and the image information of the target two-dimensional 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 for acquiring target data information of a two-dimensional code, wherein the method includes:
the user equipment acquires image information about a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 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 steps of obtaining decoding information of the target two-dimensional code;
the network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, 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-dimensional code association information and the image information of the target two-dimensional 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 the second target data information returned by the network equipment is not received, sending the decoding information of the target two-dimensional code to the network equipment;
the network device executes a decoding process of image information about the target two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information about the target two-dimensional code sent by the user device, 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 one 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 one-to-one module is used for receiving a decoding request about a target two-dimensional code sent by corresponding user equipment, 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;
a second module configured to perform a decoding process of image information about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including determining first target data information of the target two-dimensional code based on the decoding information;
the three modules are used for performing an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional 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 the four modules are used for 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.
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 apparatus includes:
the second module is used for acquiring image information about the target two-dimensional code;
the two-by-two module is used for acquiring two-dimension code association information corresponding to the target two-dimension code;
the second and third modules 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;
the second module is used for 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;
and a second and fifth modules, configured to stop the 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 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 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 apparatus includes:
the third module is used for acquiring image information about the target two-dimensional code;
the three-two module is used for acquiring two-dimension code association information corresponding to the target two-dimension code;
a third module for performing a decoding process of image information about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including determining first target data information of the target two-dimensional code based on the decoding information;
the third and fourth modules are used for performing image matching according to the two-dimensional code association information and the image information of the target two-dimensional code, wherein the image matching 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;
the third and fifth modules are used for presenting 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 the thirty-six modules are used for presenting the page information corresponding to the first target data information if the time consumption of the decoding process is less than the time consumption of 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 present 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 have the advantages that a decoding request which is sent by corresponding user equipment and related to a target two-dimensional code is received, 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 about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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-dimensional code association information and the image information of the target two-dimensional 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, when decoding is performed, image matching is performed according to the image information of the two-dimensional code, the corresponding target data information is directly acquired, the two-dimensional code identification efficiency is improved, the decoding time of the two-dimensional code is shortened, and quick decoding experience is provided for a user. Moreover, the target data information of the two-dimensional code is acquired through the image recognition mode, no requirement is made on decoding software, the decoding mode is simple and universal, the universality is good, 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 detailed description of non-limiting embodiments, made with reference to the following 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 for 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 for a two-dimensional code in accordance with another aspect of the present application;
FIG. 4 illustrates a flow chart of a method of obtaining target data information for a two-dimensional code in accordance with an aspect of the subject application;
FIG. 5 illustrates a flow chart of a method of obtaining target data information for a two-dimensional code in accordance with an aspect of the subject application;
FIG. 6 illustrates a flow chart of a method of obtaining target data information for a two-dimensional code in accordance with an aspect of the subject application;
FIG. 7 shows functional modules of a network device of the present application;
fig. 8 shows functional modules of a user equipment of the present application;
fig. 9 shows functional modules of another user equipment of the present application;
FIG. 10 illustrates an exemplary system that can be used to implement various embodiments described herein.
The same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
In one typical configuration of the present application, the terminal, the devices of the services network, and the trusted party each include one or more processors (e.g., central processing units (Central Processing Unit, CPU)), input/output interfaces, network interfaces, and memory.
The Memory may include non-volatile Memory in a computer readable medium, random access Memory (Random Access Memory, RAM) and/or non-volatile Memory, etc., such as Read Only Memory (ROM) or Flash Memory (Flash Memory). Memory is an example of computer-readable media.
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 storage media for a computer include, but are not limited to, phase-Change Memory (PCM), programmable Random Access Memory (Programmable Random Access Memory, PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (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, read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), digital versatile disks (Digital Versatile Disc, DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device.
The device referred to in the present 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 which can perform man-machine interaction with a user (for example, perform man-machine interaction through a touch pad), such as a smart phone, a tablet computer and the like, and the mobile electronic product can adopt any operating system, such as an Android operating system, an iOS operating system and the like. 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 (Application Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a digital signal processor (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 servers; here, the Cloud is composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, a virtual supercomputer composed of a group of loosely coupled computer sets. Including but not limited to the internet, wide area networks, metropolitan area networks, local area networks, VPN networks, wireless Ad Hoc networks (Ad Hoc networks), and the like. Preferably, the device may 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 above-described devices are merely examples, and that other devices now known or hereafter may be present as appropriate for the application, are intended to be within the scope of the present application and are incorporated herein by reference.
In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Fig. 1 shows a typical scenario of the present application, where a user device 200 establishes a communication connection with a network device 100, and completes a process of acquiring target data information of a two-dimensional code through the communication connection, and so on. The user equipment includes, but is not limited to, any mobile electronic product which can perform man-machine interaction with a user (such as man-machine interaction through a touch pad), 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 set of multiple network servers, 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, a page to be presented, and the like, which are included in the two-dimensional code, such as a payment instruction for paying a certain amount 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 of a network device and a user device, as shown in fig. 2, where the method includes:
the user equipment acquires image information about a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 image information of the target two-dimensional code;
the network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network device performs a decoding process of image information about 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-dimensional code association information and the image information of the target two-dimensional 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 further provides a method for acquiring target data information of a two-dimensional code, as shown in fig. 3, where the method includes:
the user equipment acquires image information about a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 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 steps of obtaining decoding information of the target two-dimensional code;
the network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, 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-dimensional code association information and the image information of the target two-dimensional 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 the second target data information returned by the network equipment is not received, sending the decoding information of the target two-dimensional code to the network equipment;
the network device executes a decoding process of image information about the target two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information about the target two-dimensional code sent by the user device, 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.
With reference to the system shown in fig. 1, and the system methods shown in fig. 2 and 3, the following description will exemplify embodiments of the method applied to a network device in connection with fig. 4.
Fig. 4 shows a method for obtaining 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 suitable for 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 sent by a corresponding user device, 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; in step S102, the network device performs a decoding process with respect to the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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 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; 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 sent by a corresponding user device, 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. For example, a user holds a user device, acquires image information of a target two-dimensional code through the user device, for example, the user device shoots the image information about the target two-dimensional code through a camera device, or invokes the stored image information of the target two-dimensional code for identification from the local (such as album or application internal storage) of the user device; the user equipment sends the image information to the network equipment, and the image information of the two-dimensional code received by the network equipment can be an original image of the target two-dimensional code shot by the user equipment or the image information of the target two-dimensional code obtained through preprocessing, such as filtering, image correction and the like. Meanwhile, the user equipment also acquires corresponding two-dimensional code association information, such as acquiring a currently connected wireless access point through a hot spot connection module or determining corresponding position information through a GPS or Beidou system and the like; the user equipment includes the two-dimensional code association information in the decoding request, and sends the decoding request to the network equipment, where the two-dimensional code association information is used to determine a matching range of the target two-dimensional code, for example, is used to determine one or more two-dimensional codes in a two-dimensional code database for matching with the target two-dimensional code, where the two-dimensional code database may be included in the network equipment, or may be stored in other network equipment in communication with the network equipment, and so on. 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; and the current position 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 the two-dimensional code database, for example, each two-dimensional code has identification information of a corresponding wireless access point, or each two-dimensional code has corresponding geographic location information (such as longitude and latitude, AOI (aero of interest) or POI (Point of interest, interest point) corresponding to business circles, etc.), and of course, multiple two-dimensional codes associated with the corresponding two-dimensional code association information may exist in the corresponding two-dimensional code association information. 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 (such as a merchant checkout code, a merchant public number two-dimensional code, etc.) uploaded by the merchant and the identification information of the wireless access point, such as the two-dimensional code corresponding to the identification information of the wireless access point, such as the XX merchant providing the corresponding wireless access point "XX merchant". The two-dimensional code associated with the current position information, such as a two-dimensional code (such as a merchant cash register, a merchant public number two-dimensional code and the like) of a merchant contained in the XX square (including corresponding longitude and latitude and the like) provided by the XX square, can be established by the network equipment based on the position information of the XX square. Of course, the user equipment sends a decoding request to the network equipment, the decoding request contains the current two-dimensional code association information, so that the network equipment is facilitated to match in the two-dimensional code database, the matching result is more accurate, meanwhile, 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 with respect to the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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, execution instructions, etc. of the corresponding target two-dimensional code, and the first sub-decoding process may be completed at a network device end or may be completed at a user device end; the second sub-decoding process comprises determining webpage information corresponding to the target two-dimensional code or corresponding execution instructions according to decoding information, acquiring an execution result page and the like, and the second sub-decoding process is completed by the network equipment. 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 (such as an instruction to wait for execution if payment is not made) of the target two-dimensional code, an execution result page (page information of payment completion, etc.), or corresponding page information (such as a payment page of input payment amount, etc.), etc. In some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code transmitted by the user equipment; in other embodiments, the first sub-decoding process includes performing decoding to determine corresponding decoding information according to the image information of the two-dimensional code. For example, the first sub-decoding process generally includes the steps of positioning graphics, graying two-dimensional code information pixels, binarizing two-dimensional code information pixels, two-dimensional code decoding, error correction, and the like; the first sub-decoding process may be performed at the ue side or at the network device side. The decoding process of the scheme is used for guaranteeing that when the image matching process is long in time consumption, a user can still complete the identification process of the target two-dimensional code, and corresponding target data information is obtained.
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 used for: and 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-dimensional code association information and the image information of the target two-dimensional code, for example, the network device determines one or more two-dimensional codes corresponding to the two-dimensional code association information according to the two-dimensional code association information, matches a similar two-dimensional code with a similarity reaching a certain threshold value with the target two-dimensional code from the one or more two-dimensional codes, and the corresponding image matching includes but is not limited to gray-scale-based matching, feature-based matching and the like. Evaluating the similarity of the two signals by using the correlation function of the two signals to determine homonymy points; feature matching refers to an algorithm that performs parameter description on features (features such as points, lines, planes, etc.) of two or more images by extracting the features, respectively, and then performs matching by using the described parameters. The corresponding image matching process is also used to: according to the similar two-dimensional code, 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, wherein the second target data information and the first target data information are the same target data information, the first and second non-representation sequences are only the mode of distinguishing and acquiring the corresponding target data information, 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 consumption of the image matching process refers to the time elapsed from the start time of decoding until the image matching process determines the corresponding second target data information, and the time consumption of the decoding process includes the time consumption of the first sub-decoding process, the second sub-decoding process, and the data transmission, etc., specifically refers to the time consumption of the start time of decoding until the first target data information is acquired; here, the decoding start point may be the time when the network device receives the decoding request, or may be the time when the user device sends the decoding request, and if the time is the latter, the decoding start time is included in the decoding request; of course, those skilled in the art will appreciate that any other time consuming calculation is equally applicable to the present application, provided that the starting times of the decoding process and the image matching process are guaranteed to be consistent. And the network equipment compares the time consumption of the image matching process with the time consumption of the decoding process, and if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, namely, 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. The user equipment receives the target data information and presents the target data information, or executes corresponding instructions and the like according to the target data information. In some embodiments, the time consumption of the decoding process is long, because the decoding mode in the corresponding application is not matched with the identification mode of the corresponding code, so that decoding fails or the time consumption is long, and the corresponding first target data information can be quickly matched through the image matching process, so that the identification of the two-dimensional code is not limited by the identification 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 time consumption of the image matching process is less than or equal to the time consumption 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 first sub-decoding process currently executed 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; 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, so that the efficiency of acquiring the target data information of the target two-dimensional code is ensured, and meanwhile, the resources consumed for acquiring the target data information are saved.
In some embodiments, the method further comprises step S105 (not shown), and 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 not complete, the network device stops the image matching process and returns the first target data information to the user device. In some embodiments, the unfinished image matching process includes a large amount of image matching data, a long time, template information of a target two-dimensional code not stored in a two-dimensional code database used in the image matching process, and the like. According to the scheme, the situation that the image matching takes too long time 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 decoding process does not consume resources of a user equipment end, the network equipment end executes the decoding process generally faster than the user equipment end executes the decoding process, and the efficiency of the decoding process is improved to a certain extent.
In some embodiments, the step S103 includes a substep S1031 (not shown) and a substep 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 for: and acquiring a similar two-dimensional code corresponding to the fox searching image information from the one or more two-dimensional codes and determining corresponding second target data information based on the similar two-dimensional code. For example, a mapping relation between each two-dimensional code and the corresponding two-dimensional code association information is established in a two-dimensional code database, the two-dimensional code database can be at a network device end or other devices in communication connection with the network device, and the network device can call the mapping relation in the corresponding two-dimensional code database through communication connection. The network equipment can determine a matching database of target two-dimension codes through the two-dimension code association information, wherein the matching database contains one or more two-dimension codes with mapping relation with the two-dimension code association information, for example, the network equipment determines two-dimension codes corresponding to geographic positions within a certain range (such as within 200 meters) of the geographic positions through the mapping relation between the geographic positions and the two-dimension code images, and the two-dimension codes are used for matching; for another example, the network device determines two-dimensional codes corresponding to the wireless access point (such as payment codes of merchants in different applications, corresponding codes of merchant pages, etc.) according to the wireless access point currently connected with the user device, and uses the two-dimensional codes for matching, etc. After the network device determines one or more two-dimensional codes corresponding to the matching, corresponding target data information is determined according to the one or more two-dimensional codes, if the corresponding mapping relation comprises the target data information of the two-dimensional codes, 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 value as corresponding second target data information. 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 a plurality of two-dimensional code records, and each two-dimensional code record includes image information, 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 code in the one or more two-dimensional code records, where the image matching is used for: obtaining a similar two-dimensional code record corresponding to the image information from the image information of one or more two-dimensional code records, and determining corresponding second target data information based on the similar two-dimensional code record, wherein the second target data information is the target data information of the two-dimensional code in the similar two-dimensional code record. For example, the mapping relation between each two-dimensional code and the corresponding two-dimensional code association 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 a matching range of the target two-dimensional code through the two-dimensional code association information, determines one or more two-dimensional code records matched with the target two-dimensional code through the two-dimensional code association information, then determines corresponding similar two-dimensional codes through 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, if the similarity is matched according to the image, if the similarity is greater than or equal to a certain threshold value, the similar two-dimensional code is determined; or when a plurality of two-dimensional codes with the similarity larger than or equal to a certain threshold exist, determining candidate two-dimensional codes with the similarity larger than or equal to the certain threshold, and determining the two-dimensional code with the 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-dimensional code corresponding to the similar two-dimensional code as second target data information of the target two-dimensional code. According to the scheme, the two-dimensional code records used for image matching can be effectively reduced through the two-dimensional code associated information, resources consumed in the image matching process are reduced, the image matching efficiency is improved, meanwhile, the corresponding target data information can be rapidly acquired through the two-dimensional code records in the two-dimensional code database, the matching base number of the target two-dimensional code can be guaranteed to be multiple, and the matching rate can be guaranteed to a certain extent.
In certain embodiments, the matching result of the image matching process further includes 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 corresponding two-dimensional code association information, and the two-dimensional code record corresponding to the two-dimensional code association information in the two-dimensional code database does not include the two-dimensional code record matching the target two-dimensional code (for example, the similarity is greater than or equal to the threshold value). When the image matching result fails, the network equipment acquires 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), where the network device generates a target two-dimensional code record for the target two-dimensional code according to the image information, the first target data information, and the two-dimensional code association 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 the decoding process to determine the corresponding first target data information, the network device establishes a corresponding target two-dimensional code record according to the two-dimensional code associated information uploaded by the user device, the 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 after correction of the image information of the two-dimensional code, for example, the image information is uploaded by the user and is imaged by the image capturing device, and the image information may be distorted to some extent due to an imaging angle of the user device, and the image information may be corrected in the decoding process, where the network device uses the corrected image information as the image information in the two-dimensional code record. According to the scheme, the two-dimensional code database can be expanded step by decoding normally under the condition of failure in matching and establishing the corresponding two-dimensional code record, so that guarantee is provided for the identification of the subsequent two-dimensional code.
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 due to some reasons, such as personal payment codes, and the corresponding two-dimensional code records further comprise time limit information of the two-dimensional codes, and the like, and when the network equipment establishes and stores the corresponding two-dimensional code records, the corresponding two-dimensional code records further comprise the time limit information, and the like, if the effective time of the two-dimensional codes is five minutes. In some embodiments, the network device manages the two-dimensional code record according to the time limit information, for example, starts to time with the setup time of the two-dimensional code record as the start time, and when the storage time of the two-dimensional code record is greater than or equal to the time corresponding to the time limit information, the network device deletes the corresponding two-dimensional code record, and so on. In some embodiments, if the recording time of one two-dimensional code record in the plurality of two-dimensional code records is greater than or equal to the time limit information, the network device deletes the one two-dimensional code record from the two-dimensional code database. According to the scheme, the time limit information is added in the two-dimensional code records, management of the two-dimensional code records is more ordered, 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 specific embodiments of the method are mainly described above from the perspective of the network device, and the embodiments of the method are described below by way of example from the perspective of the user device in connection with fig. 5.
Fig. 5 illustrates a method for obtaining 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 applicable to the system topology illustrated in fig. 1, and includes step S201, step S202, step S203, step S204, step S205, step S206, and so on. In step S201, the user device acquires image information about a target two-dimensional code; in step S202, the user equipment obtains 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, wherein the first sub-decoding process includes determining decoding information of the target two-dimensional code; in step S205, if the user equipment receives the target data information returned by the network equipment before the 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 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; in step S206, the user device presents the page information corresponding to the target data information. For example, a user holds a user device, acquires image information of a target two-dimensional code through the user device, for example, the user device shoots the image information about the target two-dimensional code through a camera device, or invokes the stored image information of the target two-dimensional code for identification from the local (such as album or application internal storage) of the user device; the user equipment sends the image information to the network equipment, and the image information of the two-dimensional code received by the network equipment can be an original image of the target two-dimensional code shot by the user equipment or the image information of the target two-dimensional code obtained through preprocessing, such as filtering, image correction and the like. Meanwhile, the user equipment also acquires corresponding two-dimensional code association information, such as acquiring a currently connected wireless access point through a hot spot connection module or determining corresponding position information through a GPS or Beidou system and the like; the user equipment includes the two-dimensional code association information in the decoding request, and sends the decoding request to the network equipment, where the two-dimensional code association information is used to determine a matching range of the target two-dimensional code, for example, is used to determine one or more two-dimensional codes in a two-dimensional code database for matching with the target two-dimensional code, where the two-dimensional code database may be included in the network equipment, or may be stored in other network equipment in communication with the network equipment, and so on. The decoding process comprises a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process comprises the steps of 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 a user equipment end; the second sub-decoding process comprises determining webpage information corresponding to the target two-dimensional code or corresponding execution instructions according to decoding information, acquiring an execution result page and the like, and the second sub-decoding process is completed by the network equipment. The network equipment performs an image matching process according to the two-dimensional code association information and the image information of the target two-dimensional code, for example, the network equipment determines one or more two-dimensional codes corresponding to the two-dimensional code association information according to the two-dimensional code association information, matches a similar two-dimensional code with the similarity of the target two-dimensional code reaching a certain threshold value from the one or more two-dimensional codes, and the corresponding image matching process comprises, but is not limited to, gray-scale-based matching, feature-based matching and the like. Evaluating the similarity of the two signals by using the correlation function of the two signals to determine homonymy points; feature matching refers to an algorithm that performs parameter description on features (features such as points, lines, planes, etc.) of two or more images by extracting the features, respectively, and then performs matching by using the described parameters. The image matching process is also used 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 consumption of the image matching process refers to the time elapsed from the start time of decoding until the image matching process determines the corresponding second target data information, the time consumption of the decoding process includes the time consumption of the first sub-decoding process, the second sub-decoding process, the data transmission and the like, and specifically refers to the time consumption of the start time of decoding until the first target data information is acquired; here, the decoding start point may be the time when the network device receives the decoding request, or may be the time when the user device sends the decoding request, and if the time is the latter, the decoding start time is included in the decoding request; of course, those skilled in the art will appreciate that any other time consuming calculation is equally applicable to the present application, provided that the starting times of the decoding process and the image matching process are guaranteed to be consistent. And the network equipment compares the time consumption of the image matching with the time consumption of the decoding process, and if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, namely, 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. The user equipment receives the target data information and presents the target data information, or executes corresponding instructions and the like according to the target data information. If the user equipment receives the second target data information, the corresponding first sub-decoding process is not completed, that is, the time consumed by the corresponding image matching is less than the time consumed by 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 webpage corresponding page information, if the target data information is an instruction to be executed or the like, presents a confirmation page of whether the instruction is executed, and if the target data information is an execution instruction, presents a result page after the instruction is executed, and the like.
In some embodiments, the method further includes step S207 (not shown), if the first sub-decoding process is completed and the second target data information returned by the network device is not received, the user device sends the decoding information of the target two-dimensional code to the network device; 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 contained in a 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 the second target data information returned by the network device is not received, sending the decoding information of the target two-dimensional code to the network device; and 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 a 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 consumption of the image matching refers to the time elapsed from the start time of decoding until the image matching determines the corresponding second target data information, and the time consumption of the decoding process includes the time consumption of the first sub-decoding process, the second sub-decoding process, and the data transmission, and specifically refers to the time consumption of the start time of decoding until the first target data information is acquired. 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 time-consuming comparison is carried out 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 in the decoding process, or may be second target data information determined in the image matching process, where the second target data information and the first target data information should be the same target data information, and the first and second non-representative sequences are only the modes corresponding to the target data information obtained in a distinguishing manner, and the first target data information is obtained in the decoding process, and the second target data information is obtained in the image matching process.
The above description of each specific embodiment of the method is mainly from the perspective of interaction between the network device and the user device, and the application also provides a method for obtaining the target data information of the target two-dimensional code mainly through the user device, and the corresponding embodiment of the method is described by way of example with reference to fig. 6.
Fig. 6 illustrates 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 steps S301, S302, S303, S304, S305, and S306. In step S301, the user device acquires image information about a 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 of image information about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including 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 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; in step S305, if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, the user equipment presents the page information corresponding to the second target data information; in step S306, if the time consumption of the decoding process is less than the time consumption of the image matching process, the user equipment presents the page information corresponding to the first target data information. Here, the second sub-decoding process is mainly completed in the ue except for the step S303 of obtaining the first target data information by interacting with the network device. For example, the user holds the user device, acquires the image information about the target two-dimensional code through the user device, and performs preprocessing on the image information, such as filtering, image correction and the like, so that the image information about the target two-dimensional code is obtained, for example, the user device shoots the image information about the target two-dimensional code through the camera device, or the stored image information about the target two-dimensional code is called locally (such as album or application internal storage and the like) from the user device for identification. Meanwhile, the user equipment also acquires corresponding two-dimensional code association information, wherein the two-dimensional code association information is used for determining a matching range of the target two-dimensional code, such as one or more two-dimensional codes used for matching with the target two-dimensional code in a two-dimensional code database, and the two-dimensional code database is contained 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 the steps of 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 a user equipment end; the second sub-decoding process comprises determining webpage information corresponding to the target two-dimensional code or corresponding execution instructions according to decoding information, acquiring an execution result page and the like, and the second sub-decoding process is completed by cooperation of user equipment and network equipment. Meanwhile, 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, such as determining one or more two-dimensional codes corresponding to the two-dimensional code association information according to the two-dimensional code association information, and matching a similar two-dimensional code with a similarity reaching a certain threshold value with the target two-dimensional code from the one or more two-dimensional codes, wherein the corresponding image matching comprises but is not limited to gray-scale-based matching, feature-based matching and the like, and the basic idea of gray-scale matching is that images are regarded as two-dimensional signals from a statistical viewpoint, and a statistical correlation method is adopted to search for 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 consumption of the image matching process refers to the time elapsed from the start time of decoding until the image matching process determines the corresponding second target data information, the time consumption of the decoding process includes the time consumption of the first sub-decoding process, the second sub-decoding process, the data transmission and the like, and specifically refers to the time consumption of the start time of decoding until the first target data information is acquired; here, the decoding start point may be a time when the user equipment starts decoding; of course, those skilled in the art will appreciate that any other time consuming calculation is equally applicable to the present application, provided that the starting times of the decoding process and the image matching process are guaranteed to be consistent. And the user equipment compares the time consumption of the image matching with the time consumption of the decoding process, if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process, namely, the user equipment firstly acquires the target data information of the target two-dimensional code through image matching, and the user equipment presents page information corresponding to the second target data information. If the time consumption of the image matching process is greater than the time consumption of the decoding process, namely, 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.
With reference to the system shown in fig. 1, the system methods shown in fig. 2 and fig. 3, and the method shown in fig. 4 and fig. 6, the present application further provides devices capable of implementing the foregoing methods, and a description is given below of a network device capable of implementing embodiments of the foregoing methods with reference to fig. 7.
Fig. 7 shows a network device 100 for obtaining 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 about a target two-dimensional code sent by a corresponding user equipment, 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 two-module 102, configured to perform a decoding process related to 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; the third module 103 is 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; and a fourth module 104, configured to return the second target data information to the ue if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process. Here, the specific embodiments of the one-to-one module 101, the two modules 102, the three modules 103 and the four modules 104 shown in fig. 7 are the same as or similar to the embodiments of the step S101, the step S102, the step S103 and the step S104 shown in fig. 4, and are not described in detail herein, and are incorporated herein by 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; and the current position information of the user equipment. Here, the specific implementation manner of the two-dimensional code associated information is the same as or similar to the embodiment of the two-dimensional code associated information, which is not described in detail and is included herein by reference.
In some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code transmitted by the user equipment; in other embodiments, the first sub-decoding process includes performing decoding to determine corresponding decoding information according to the image information of the two-dimensional code. Here, the specific implementation manner of the first sub-decoding process is the same as or similar to the foregoing embodiment of the first sub-decoding process, which is not described in detail and is incorporated herein by reference.
In some embodiments, a fourth module 104 is configured to stop the decoding process and return the second target data information to the ue if the time consumption of the image matching process is less than or equal to the time consumption of the decoding process. Here, the specific implementation manner of the four modules 104 corresponding to the stopping of the decoding process is the same as or similar to the embodiment of stopping the decoding process in the step S104, which is not described in detail herein, and is incorporated by reference.
In some embodiments, the apparatus further comprises a five module 105 (not shown) for stopping the image matching process and returning the first target data information to the user equipment if the decoding process is less time consuming than the image matching process. Here, the specific implementation manner of the fifth module 105 is the same as or similar to the embodiment of the step S105, and is not described in detail herein, and is incorporated by reference.
In some embodiments, a tri-module 103 includes a tri-one unit 1031 (not shown) and a tri-two unit 1032 (not shown). A third unit 1031, configured to determine one or more corresponding two-dimensional codes according to the two-dimensional code association information; a three-two 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 used for: and acquiring a similar two-dimensional code corresponding to the fox searching image information from the one or more two-dimensional codes, and determining corresponding second target data information based on the similar two-dimensional code. In some embodiments, a three-one unit 1031 is configured to query and determine 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 a plurality of two-dimensional code records, and each two-dimensional code record includes image information, target data information, and two-dimensional code association information corresponding to the two-dimensional code; the one-three-two 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 code in the one or more two-dimensional code records, where the image matching process is configured to: obtaining a similar two-dimensional code record corresponding to the image information from the image information of one or more two-dimensional code records, and determining corresponding second target data information based on the similar two-dimensional code record, wherein the second target data information is the target data information of the two-dimensional code in the similar two-dimensional code record. Here, the embodiments of the one-three-one unit 1031 and the one-three-two unit 1032 are the same as or similar to the embodiments of the step S1031 and the step S1032, and are not described in detail herein, and are incorporated by reference.
In certain embodiments, the matching result of the image matching process further includes a matching failure; the device further includes a six module 106 (not shown) for returning the first target data information to the user device if the matching result of the image matching process includes a matching failure. In some embodiments, the apparatus further includes a seven module 107 (not shown) for generating a target two-dimensional code record for 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. Here, the specific embodiments of the sixth module 106 and the seventh module 107 are the same as or similar to the embodiments of the step S106 and the step S107, and are not described in detail herein, and are incorporated by reference.
In some embodiments, the two-dimensional code record further includes time limit information for the two-dimensional code. In some embodiments, if the recording time of one two-dimensional code record in the plurality of two-dimensional code records is greater than or equal to the time limit information, the network device deletes the one two-dimensional code record from the two-dimensional code database. Here, the specific implementation manner of the two-dimensional code record further including the time limitation information is the same as or similar to the embodiment of the two-dimensional code record further including the time limitation information, which is not described in detail and is incorporated herein by reference.
The foregoing description mainly describes a network device, and the following description describes a user device capable of implementing embodiments of the present application with reference to fig. 8.
Fig. 8 illustrates a user device 200 for obtaining target data information of a two-dimensional code according to another aspect of the present application, which is equally applicable to the system topology illustrated in fig. 1, and includes a second module 201, a second module 202, a second module 203, a second module 204, a second module 205, a first module 205, a second module 206, and the like. A second module 201, configured to acquire image information about a target two-dimensional code; the two-in-two module 202 is configured to obtain two-dimension code association information corresponding to the target two-dimension code; a second-third module 203, configured to send 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; a second and fourth modules 204, configured to execute 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; and a second-fifth module 205, configured to stop the first sub-decoding process if the 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 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 a second and sixth module 206, configured to present page information corresponding to the target data information. Here, the specific embodiments of the two-one module 201, the two-two module 202, the two-three module 203, the two-four module 204, the two-five module 205 and the two-six module 206 shown in fig. 8 are the same as or similar to the embodiments of the step S201, the step S202, the step S203, the step S204, the step S205 and the step S206 shown in fig. 5, and are not described in detail herein, and are incorporated herein by reference.
In some embodiments, the device further includes two seven modules 207 (not shown), configured to send the decoding information of the target two-dimensional code to the network device if the first sub-decoding process is completed and the second target data information returned by the network device is not received; 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 contained in a 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 two-eight module 208 (not shown) configured to send the decoded information of the target two-dimensional code to the network device if the first sub-decoding process is completed and the second target data information returned by the network device is not received; and 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 a 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 embodiments of the second seventh module 207 and the second eighth module 208 are the same as or similar to the embodiments of the step S207 and the step S208, and are not described in detail herein, and are incorporated by reference.
The foregoing mainly describes an example of a network device and a user device capable of implementing embodiments of the present application, and the present application further provides another user device, which is described by way of example in connection with fig. 9.
Fig. 9 illustrates a user device for obtaining target data information of a target two-dimensional code according to another aspect of the present application, where the device includes a third module 301, a third module 302, a third module 303, a third module 304, a third module 305, and a third module 306. A third module 301, configured to acquire image information about a target two-dimensional code; the three-two module 302 is configured to obtain two-dimensional code association information corresponding to the target two-dimensional code; a thirty-three 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 including obtaining decoding information of the target two-dimensional code and a second sub-decoding process including determining first target data information of the target two-dimensional code based on the decoding information; the third and fourth modules 304 are 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 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; 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; and a thirty-six module 306, configured to use the page information corresponding to the first target data information if the time consumption of the decoding process is less than the time consumption of the image matching process. Here, the specific embodiments of 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 are the same as or similar to the embodiments of the step S301, the step S302, the step S303, the step S304, the step S305 and the step S306 shown in fig. 6, which are not described in detail herein, and are incorporated herein by reference.
In addition to the methods and apparatus described in the above embodiments, the present application also provides a computer-readable storage medium storing computer code which, when executed, performs a method as described in any one of the preceding claims.
The present application also provides a computer program product which, when executed by a computer device, performs a method as claimed in any preceding claim.
The present application also 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 may be used to implement various embodiments described herein;
in some embodiments, as shown in fig. 10, the system 300 can function as any of the above-described devices of the various described embodiments. In some embodiments, system 300 can 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 the modules to perform the actions described herein.
For one embodiment, the system control module 310 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 305 and/or any suitable device or component in communication with the 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.
The system memory 315 may be used, for example, to load and store data and/or instructions for the system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as, for example, a suitable DRAM. In some embodiments, the system memory 315 may comprise a double data rate type four synchronous dynamic random access memory (DDR 4 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 nonvolatile memory (e.g., flash memory) and/or may include any suitable nonvolatile 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 which may be accessed by the device without being part of the device. For example, NVM/storage 320 may be accessed 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. The system 300 may wirelessly communicate with one or more components of a wireless network in accordance with 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 of one or more controllers (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 of one or more controllers 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 as logic of one or more controllers 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 of one or more controllers of the system control module 310 to form a system on chip (SoC).
In various embodiments, the system 300 may be, but is not limited to being: a server, workstation, desktop computing device, or mobile computing device (e.g., laptop computing device, handheld computing device, tablet, 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, keyboards, liquid Crystal Display (LCD) screens (including touch screen displays), non-volatile memory ports, multiple antennas, graphics chips, application Specific Integrated Circuits (ASICs), 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, using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions as described above. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some 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.
Furthermore, portions 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 by way of operation of the computer. Those skilled in the art will appreciate that the form of computer program instructions present in a computer readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, 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. Herein, a computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by a computer.
Communication media includes media whereby a communication signal containing, for example, computer readable instructions, data structures, program modules, or other data, is transferred from one system to another. Communication media may include conductive transmission media such as electrical cables and wires (e.g., optical fibers, coaxial, etc.) and wireless (non-conductive transmission) media capable of transmitting energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal, for example, in a wireless medium, such as a carrier wave or similar mechanism, such as that embodied as part of spread spectrum technology. 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 nonvolatile memory such as flash memory, various read only memory (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, feRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed computer-readable information/data that can be stored 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 operate a method and/or a solution according to the embodiments of the present application as described above.
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 characteristics 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 evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (18)

1. The method for acquiring the target data information of the two-dimensional code is applied to network equipment, and comprises the following steps:
receiving a decoding request about a target two-dimensional code sent by corresponding user equipment, 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 about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including determining first target data information of the target two-dimensional code based on the decoding information;
determining one or more corresponding two-dimensional codes according to the two-dimensional 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: acquiring a similar two-dimensional code 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 code;
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;
wherein the two-dimensional code association information includes at least any one of the following:
identification information of a wireless access point to which the user equipment is currently connected;
and the current position information of 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 the time consumption 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 of claim 1 or 2, wherein the first sub-decoding process includes performing decoding to determine corresponding decoding information according to image information of the two-dimensional code.
5. A method according to any of claims 1 to 3, wherein said 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 of claim 1, 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-dimensional code records in a corresponding two-dimensional code database according to the two-dimensional code associated information, wherein the two-dimensional code database comprises a plurality of two-dimensional code records, and each two-dimensional code record comprises image information, target data information and two-dimensional code associated information corresponding to the two-dimensional code;
the image matching process is performed on the image information according to the target two-dimensional code and the one or more two-dimensional codes, wherein the image matching process is used for: obtaining a similar two-dimensional code 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 code, 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: obtaining a similar two-dimensional code record corresponding to the image information from the image information of one or more two-dimensional code records, and determining corresponding second target data information based on the similar two-dimensional code record, wherein the second target data information is the target data information of the two-dimensional code in the similar two-dimensional code record.
7. The method of claim 6, 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 is that the matching is failed, returning the first target data information to the user equipment.
8. The method of claim 7, wherein the method further comprises:
generating 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 association information, and adding the target two-dimensional code record to the two-dimensional code database.
9. The method of any of claims 6 to 8, wherein the two-dimensional code record further comprises time constraint information for the two-dimensional code.
10. The method of claim 9, wherein the method further comprises:
and if the recording time of one two-dimensional code record in the plurality of two-dimensional code records is greater than or equal to the time limit information, deleting the two-dimensional code record from the two-dimensional code database.
11. The method for acquiring the target data information of the two-dimensional code is applied to user equipment, and comprises the following steps:
Acquiring image information about a target two-dimensional code;
acquiring two-dimensional code association information corresponding to the target two-dimensional code;
transmitting 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 device 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 device through an image matching process, the network device determines one or more corresponding two-dimensional codes according to the two-dimensional code association information, and performs an image matching process according to the image information of the target two-dimensional code and the one or more two-dimensional codes, and the image matching process is used for: acquiring a similar two-dimensional code 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 code;
Presenting page information corresponding to the second target data information;
wherein the two-dimensional code association information includes at least any one of the following:
identification information of a wireless access point to which the user equipment is currently connected;
and the current position information of the user equipment.
12. The method of claim 11, wherein the method further comprises:
if the first sub-decoding process is completed and the second target data information returned by the network equipment is not received, sending the decoding information of the target two-dimensional code to the network equipment;
and receiving 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 contained in a decoding process, and the time consumption of the decoding process is less than that of the image matching process.
13. The method of claim 11, wherein the method further comprises:
if the first sub-decoding process is completed and the second target data information returned by the network equipment is not received, sending the decoding information of the target two-dimensional code to the network equipment;
And 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 a 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.
14. The method for acquiring the target data information of the two-dimensional code is applied to user equipment, and comprises the following steps:
acquiring image information about a target two-dimensional code;
acquiring two-dimensional code association information corresponding to the target two-dimensional code;
performing a decoding process of image information about the target two-dimensional code, wherein the decoding process includes a first sub-decoding process including acquiring decoding information of the target two-dimensional code and a second sub-decoding process including determining first target data information of the target two-dimensional code based on the decoding information;
determining one or more corresponding two-dimensional codes according to the two-dimensional 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: acquiring a similar two-dimensional code 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 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;
if the time consumption of the decoding process is less than the time consumption of the image matching process, presenting page information corresponding to the first target data information;
wherein the two-dimensional code association information includes at least any one of the following:
identification information of a wireless access point to which the user equipment is currently connected;
and the current position information of the user equipment.
15. A method of acquiring target data information of a two-dimensional code, wherein the method comprises:
the user equipment acquires image information about a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 image information of the target two-dimensional code;
the network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
The network device performs a decoding process of image information about the two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises performing decoding according to the image information of the target two-dimensional code to determine corresponding decoding information, 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 determines one or more corresponding two-dimensional codes according to the two-dimensional 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: acquiring a similar two-dimensional code 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 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; the user equipment receives the second target data information and presents page information corresponding to the second target data information;
wherein the two-dimensional code association information includes at least any one of the following:
identification information of a wireless access point to which the user equipment is currently connected;
and the current position information of the user equipment.
16. A method of acquiring target data information of a two-dimensional code, wherein the method comprises:
the user equipment acquires image information about a target two-dimensional code;
the user equipment acquires two-dimensional code association information corresponding to the target two-dimensional 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 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 steps of obtaining decoding information of the target two-dimensional code;
The network equipment receives a decoding request about a target two-dimensional code sent by corresponding user equipment, wherein the decoding request comprises corresponding two-dimensional code association information and image information of the target two-dimensional code;
the network equipment determines one or more corresponding two-dimensional codes according to the two-dimensional 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: acquiring a similar two-dimensional code 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 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 the second target data information returned by the network equipment is not received, sending the decoding information of the target two-dimensional code to the network equipment;
the network device executes a decoding process of image information about the target two-dimensional code, wherein the decoding process comprises a first sub-decoding process and a second sub-decoding process, the first sub-decoding process comprises receiving decoding information about the target two-dimensional code sent by the user device, 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; the user equipment receives first target data information returned by the network equipment and presents page information corresponding to the first target data information;
wherein the two-dimensional code association information includes at least any one of the following:
identification information of a wireless access point to which the user equipment is currently connected;
and the current position information of the user equipment.
17. 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 which, when executed, cause the processor to perform the operations of the method of any one of claims 1 to 14.
18. A computer readable medium storing instructions that, when executed, cause a system to perform the operations of the method of any one of claims 1 to 14.
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 CN110751003A (en) 2020-02-04
CN110751003B true 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)

Families Citing this family (1)

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

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

Also Published As

Publication number Publication date
CN110751003A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN107229559B (en) Detection method and device for testing integrity of service system
CN110991575B (en) Asset inventory method and device, readable storage medium and robot
CN109359237B (en) Method and equipment for searching hosted program
CN109977718B (en) Method and equipment for identifying two-dimensional code
CN110765395B (en) Method and equipment for providing novel information
WO2019149020A1 (en) Information recognition method and system, and server and client
CN111523039B (en) Method and device for processing book promotion request in reading application
CN110751003B (en) Method and equipment for acquiring target data information of two-dimension code
CN111272388A (en) Method and device for detecting camera flash lamp
CN112866302A (en) Method, apparatus, medium and program product for integrity checking of cluster data
WO2021047278A1 (en) Method and device for posting sharing information in social networking space
CN110780955B (en) Method and equipment for processing expression message
CN108833504B (en) Cross-site information synchronization method and device
CN111666250B (en) Method and device for processing book promotion request information in reading application
CN112272213B (en) Activity registration method and equipment
CN112039971B (en) Data recording method and device, and data storage method and device
CN111796754B (en) Method and device for providing electronic books
CN110784596B (en) Method and equipment for processing event information
CN111177062B (en) Method and device for providing reading presentation information
CN111988215B (en) Method, equipment and computer readable medium for pushing user
CN114390643B (en) Method and equipment for determining hot-spot fingerprints
CN112507875A (en) Method and equipment for detecting video repetition
CN113761960B (en) Method and device for identifying bar codes
CN111666251B (en) Method and device for providing reading mode
CN112702462B (en) Method and equipment for adding packets

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