[go: up one dir, main page]

CN110751003A - A method and device for acquiring target data information of a two-dimensional code - Google Patents

A method and device for acquiring target data information of a two-dimensional code Download PDF

Info

Publication number
CN110751003A
CN110751003A CN201910903228.4A CN201910903228A CN110751003A CN 110751003 A CN110751003 A CN 110751003A CN 201910903228 A CN201910903228 A CN 201910903228A CN 110751003 A CN110751003 A CN 110751003A
Authority
CN
China
Prior art keywords
dimensional code
information
target
decoding
decoding process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910903228.4A
Other languages
Chinese (zh)
Other versions
CN110751003B (en
Inventor
梁文昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zongzhang Technology Group Co.,Ltd.
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201910903228.4A priority Critical patent/CN110751003B/en
Publication of CN110751003A publication Critical patent/CN110751003A/en
Application granted granted Critical
Publication of CN110751003B publication Critical patent/CN110751003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps

Landscapes

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

Abstract

本申请的目的是提供一种获取二维码的目标数据信息的方法与设备,包括接收对应用户设备发送的、关于目标二维码的解码请求;执行关于所述目标二维码的图像信息的解码过程;根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;若所述图像匹配的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备。本方案通过在解码的同时,根据二维码的图像信息进行图像匹配,直接获取对应目标数据信息,提高了二维码识别的效率,缩短了二维码的解码时间,为用户提供了快捷的解码体验。

Figure 201910903228

The purpose of this application is to provide a method and device for acquiring target data information of a two-dimensional code, including receiving a decoding request for a target two-dimensional code sent by a corresponding user equipment; A decoding process; an image matching process is performed according to the two-dimensional code associated information and the image information of the target two-dimensional code, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and The corresponding second target data information is determined based on the similar two-dimensional code; if the image matching time is less than or equal to the decoding process time, the second target data information is returned to the user equipment. By performing image matching according to the image information of the two-dimensional code at the same time of decoding, this solution directly obtains the corresponding target data information, which improves the efficiency of two-dimensional code recognition, shortens the decoding time of the two-dimensional code, and provides users with a quick and easy solution. Decoding experience.

Figure 201910903228

Description

一种获取二维码的目标数据信息的方法与设备A method and device for acquiring target data information of a two-dimensional code

技术领域technical field

本申请涉及通信领域,尤其涉及一种获取二维码的目标数据信息的技术。The present application relates to the field of communications, and in particular, to a technology for acquiring target data information of a two-dimensional code.

背景技术Background technique

二维码又称二维条码,常见的二维码为QR Code,QR全称Quick Response,是一个近几年来移动设备上超流行的一种编码方式,它比传统的Bar Code条形码能存更多的信息,也能表示更多的数据类型。二维条码/二维码(2-dimensional bar code)是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形记录数据符号信息的;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电扫描设备自动识读以实现信息自动处理:它具有条码技术的一些共性:每种码制有其特定的字符集;每个字符占有一定的宽度;具有一定的校验功能等。同时还具有对不同行的信息自动识别功能、及处理图形旋转变化点。Two-dimensional code is also called two-dimensional barcode. The common two-dimensional code is QR Code. The full name of QR is Quick Response. It is a super popular coding method on mobile devices in recent years. It can store more than traditional Bar Code barcodes. information, and can also represent more data types. 2-dimensional bar code (2-dimensional bar code) is a black and white pattern that is distributed on a plane (two-dimensional direction) with a certain specific geometric figure according to a certain rule to record data symbol information; it is ingenious in code compilation. It makes use of the concept of "0" and "1" bit streams that constitute the internal logic basis of the computer, and uses several geometric shapes corresponding to binary to represent text and numerical information, which is automatically read by image input devices or photoelectric scanning devices to achieve Automatic information processing: It has some commonalities of barcode technology: each code system has its specific character set; each character occupies a certain width; has a certain verification function, etc. At the same time, it also has the function of automatically identifying the information of different lines, and processing the rotation change points of the graphics.

现有的二维码识别是通常是通过定位图形、灰度化二维码信息像素、二值化二维码信息像素、二维码译码和纠错等步骤完成,通过该过程可以获取到二维码对应的解码信息;随后,根据二维码对应的解码信息可以获取对应的目标数据信息,如待执行的指令、或者待呈现的页面等。该解码过程较为复杂,耗时较长。The existing two-dimensional code recognition is usually completed through the steps of positioning graphics, gray-scale two-dimensional code information pixels, binarized two-dimensional code information pixels, two-dimensional code decoding and error correction. Decoding information corresponding to the two-dimensional code; then, according to the decoding information corresponding to the two-dimensional code, corresponding target data information, such as an instruction to be executed or a page to be presented, can be obtained. The decoding process is relatively complicated and takes a long time.

发明内容SUMMARY OF THE INVENTION

本申请的一个目的是提供一种获取二维码的目标数据信息的方法与设备。An object of the present application is to provide a method and device for acquiring target data information of a two-dimensional code.

根据本申请的一个方面,提供了一种获取二维码的目标数据信息的方法,应用于网络设备,所述方法包括:According to an aspect of the present application, a method for acquiring target data information of a two-dimensional code is provided, which is applied to a network device, and the method includes:

接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述目标二维码的图像信息;Receive a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the image information of the target two-dimensional code;

执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;A decoding process of image information about the target two-dimensional code is performed, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes acquiring the information of the target two-dimensional code. Decoding information, the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information;

根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;An image matching process is performed 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 to: obtain a similar two-dimensional code corresponding to the image information and based on the image information The similar two-dimensional code determines the corresponding second target data information;

若所述图像匹配的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备。If the time-consuming of the image matching is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment.

根据本申请的另一个方面,提供了一种获取二维码的目标数据信息的方法,应用于用户设备,所述方法包括:According to another aspect of the present application, a method for acquiring target data information of a two-dimensional code is provided, applied to a user equipment, and the method includes:

获取关于目标二维码的图像信息;Get image information about the target QR code;

获取所述目标二维码对应的二维码关联信息;obtaining the QR code associated information corresponding to the target QR code;

向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;Send a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括确定所述目标二维码的解码信息;Execute 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 the decoding information of the target two-dimensional code;

若在第一子解码过程完成之前,接收到所述网络设备返回的目标数据信息,停止所述第一子解码过程,其中,所述目标数据信息由所述网络设备经图像匹配过程获得,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的目标数据信息;If the target data information returned by the network device is received before the completion of the first sub-decoding process, the first sub-decoding process is stopped, wherein the target data information is obtained by the network device through the image matching process, and the The image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding target data information based on the similar two-dimensional code;

呈现所述目标数据信息对应的页面信息。The page information corresponding to the target data information is presented.

根据本申请的又一个方面,提供了一种获取二维码的目标数据信息的方法,应用于用户设备,所述方法包括:According to another aspect of the present application, a method for acquiring target data information of a two-dimensional code is provided, which is applied to a user equipment, and the method includes:

获取关于目标二维码的图像信息;Get image information about the target QR code;

获取所述目标二维码对应的二维码关联信息;obtaining the QR code associated information corresponding to the target QR code;

执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于解码信息确定所述目标二维码的第一目标数据信息;performing a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes acquiring the target two-dimensional code decoding information of the code, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information;

根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于获取:与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;An image matching process is performed 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 to obtain: a similar two-dimensional code corresponding to the image information and a The similar two-dimensional code determines the corresponding second target data information;

若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,呈现所述第二目标数据信息对应的页面信息;If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, present page information corresponding to the second target data information;

若所述解码过程的耗时小于所述图像匹配过程的耗时,呈现所述第一目标数据信息对应的页面信息。If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the page information corresponding to the first target data information is presented.

根据本申请的一个方面,提供了一种获取二维码的目标数据信息的方法,其中,所述方法包括:According to an aspect of the present application, a method for acquiring target data information of a two-dimensional code is provided, wherein the method includes:

用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code;

所述用户设备获取所述目标二维码对应的二维码关联信息;acquiring, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code;

所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code;

所述网络设备执行关于所述二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一字解码过程包括根据所述目标二维码的图像信息执行解码确定对应的解码信息,所述第二子解码过程基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first word decoding process includes according to the target two. The image information of the two-dimensional code is decoded to determine corresponding decoding information, and the second sub-decoding process determines the first target data information of the target two-dimensional code based on the decoding information;

所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code;

若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;所述用户设备接收所述第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息;If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the first target data information is returned to the user equipment; the user equipment receives the first target data information, and presents the page information corresponding to the first target data information;

若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息。If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment; 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, a method for acquiring target data information of a two-dimensional code is provided, wherein the method includes:

用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code;

所述用户设备获取对应所述目标二维码的二维码关联信息;obtaining, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code;

所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

所述用户设备基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息;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 acquiring decoding information of the target two-dimensional code;

所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code;

所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code;

若所述用户设备在第一子解码过程完成之前,接收到所述网络设备返回的第二目标数据信息,停止所述第一子解码过程,呈现所述第二目标数据信息对应的页面信息;If the user equipment receives the second target data information returned by the network device before the first sub-decoding process is completed, stops the first sub-decoding process, and presents 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 device is not received, send the decoding information of the target two-dimensional code to the network device;

所述网络设备执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes the first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes receiving the received data. Decoding information about the target two-dimensional code sent by the user equipment, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information;

若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述网络设备返回的第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息;If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, return the second target data information to the user equipment; the user equipment receives the second target data returned by the network device information, and present the page information corresponding to the second target data information;

若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;If the time-consuming of the decoding process is less than the time-consuming of the image matching process, returning the first target data information to the user equipment;

所述用户设备接收所述网络设备返回的第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息。The user equipment receives the first target data information returned by the network device, and presents page information corresponding to the first target data information.

根据本申请的一个方面,提供了一种获取二维码的目标数据信息的网络设备,其中,所述设备包括:According to an aspect of the present application, a network device for acquiring target data information of a two-dimensional code is provided, wherein the device includes:

一一模块,用于接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述目标二维码的图像信息;A module for receiving a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the target two-dimensional code. image information;

一二模块,用于执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;The first and second modules are configured to perform a decoding process of the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes obtaining the The decoding information of the target two-dimensional code, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information;

一三模块,用于根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;One and three modules are used to perform an image matching process according to the associated information of the two-dimensional code and the image information of the target two-dimensional code, wherein the image matching process is used to: obtain the similar two-dimensional code corresponding to the image information. dimensional code and determine the corresponding second target data information based on the similar two-dimensional code;

一四模块,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用于将所述第二目标数据信息返回至所述用户设备。A fourth module, configured to return the second target data information to the user equipment if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process.

根据本申请的另一个方面,提供了一种获取二维码的目标数据信息的用户设备,其中,所述设备包括:According to another aspect of the present application, a user equipment for acquiring target data information of a two-dimensional code is provided, wherein the equipment includes:

二一模块,用于获取关于目标二维码的图像信息;The 21 module is used to obtain image information about the target QR code;

二二模块,用于获取所述目标二维码对应的二维码关联信息;The two-two module is used to obtain the two-dimensional code associated information corresponding to the target two-dimensional code;

二三模块,用于向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The second and third modules are configured to send a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

二四模块,用于基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括确定所述目标二维码的解码信息;A two-four module, configured to perform 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 the decoding information of the target two-dimensional code;

二五模块,用于若在第一子解码过程完成之前,接收到所述网络设备返回的目标数据信息,停止所述第一子解码过程,其中,所述目标数据信息由所述网络设备经图像匹配过程获得,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的目标数据信息;The two-fifth module is configured to stop the first sub-decoding process if the target data information returned by the network device is received before the completion of the first sub-decoding process, wherein the target data information is processed by the network device through the The image matching process is obtained, and the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding target data information based on the similar two-dimensional code;

二六模块,用于呈现所述目标数据信息对应的页面信息。The 26th module is used to present the page information corresponding to the target data information.

根据本申请的又一个方面,提供了一种获取二维码的目标数据信息的用户设备,其中,所述设备包括:According to another aspect of the present application, a user equipment for acquiring target data information of a two-dimensional code is provided, wherein the equipment includes:

三一模块,用于获取关于目标二维码的图像信息;The Sany module is used to obtain image information about the target QR code;

三二模块,用于获取所述目标二维码对应的二维码关联信息;The three-two module is used to obtain the two-dimensional code associated information corresponding to the target two-dimensional code;

三三模块,用于执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于解码信息确定所述目标二维码的第一目标数据信息;The three-third module is configured to perform a decoding process of the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes Obtain the decoding information of the target two-dimensional code, and the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information;

三四模块,用于根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配,其中,所述图像匹配用于获取与所述图像信息相对应的相似二维码,并基于所述相似二维码确定对应的第二目标数据信息;The third and fourth modules are configured to perform image matching according to the associated information of the two-dimensional code and the image information of the target two-dimensional code, wherein the image matching is used to obtain a similar two-dimensional code corresponding to the image information, and determining the corresponding second target data information based on the similar two-dimensional code;

三五模块,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用于呈现所述第二目标数据信息对应的页面信息;The three-fifth module, if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, is used to present the page information corresponding to the second target data information;

三六模块,若所述解码过程的耗时小于所述图像匹配过程的耗时,用于呈现所述第一目标数据信息对应的页面信息。The third and sixth modules are configured to present page information corresponding to the first target data information if the time-consuming of the decoding process is less than the time-consuming of the image matching process.

根据本申请的一个方面,提供了一种获取二维码的目标数据信息的设备,其中,所述设备包括:According to an aspect of the present application, a device for acquiring target data information of a two-dimensional code is provided, wherein the device includes:

处理器;以及processor; and

被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如上所述任一方法的操作。A memory arranged to store computer-executable instructions which, 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 present application receives a decoding request about a target two-dimensional code sent by a corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the target two-dimensional code. image information of the two-dimensional code; perform a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes obtaining the The decoding information of the target two-dimensional code, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; according to the two-dimensional code associated information and the target two-dimensional code The image matching process is performed on the image information of the code, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding second target data information based on the similar two-dimensional code; The time-consuming of the image matching is less than or equal to the time-consuming of the decoding process, and the second target data information is returned to the user equipment. By performing image matching according to the image information of the two-dimensional code at the same time of decoding, this solution directly obtains the corresponding target data information, which improves the efficiency of two-dimensional code recognition, shortens the decoding time of the two-dimensional code, and provides users with a quick and easy solution. Decoding experience. Moreover, obtaining the target data information of the two-dimensional code by the image recognition method does not require decoding software, the decoding method is simple and general, has good universality, and improves the user experience.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1示出根据本申请一个实施例的一种获取二维码的目标数据信息的系统拓扑图;1 shows a system topology diagram for acquiring target data information of a two-dimensional code according to an embodiment of the present application;

图2示出根据本申请一个方面的一种获取二维码的目标数据信息的系统方法图;FIG. 2 shows a diagram of a system method for acquiring target data information of a two-dimensional code according to an aspect of the present application;

图3示出根据本申请另一个方面的一种获取二维码的目标数据信息的系统方法图;FIG. 3 shows a diagram of a system method for acquiring target data information of a two-dimensional code according to another aspect of the present application;

图4示出根据本申请一个方面的一种获取二维码的目标数据信息的方法流程图;4 shows a flowchart of a method for acquiring target data information of a two-dimensional code according to an aspect of the present application;

图5示出根据本申请一个方面的一种获取二维码的目标数据信息的方法流程图;5 shows a flowchart of a method for acquiring target data information of a two-dimensional code according to an aspect of the present application;

图6示出根据本申请一个方面的一种获取二维码的目标数据信息的方法流程图;6 shows a flowchart of a method for acquiring target data information of a two-dimensional code according to an aspect of the present application;

图7示出本申请一种网络设备的功能模块;Fig. 7 shows the functional modules of a network device of the present application;

图8示出本申请一种用户设备的功能模块;Fig. 8 shows the functional modules of a user equipment of the present application;

图9示出本申请另一种用户设备的功能模块;Fig. 9 shows the functional module of another kind of user equipment of the present application;

图10示出可被用于实施本申请中所述的各个实施例的示例性系统。10 illustrates an exemplary system that may be used to implement various embodiments described in this application.

附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numbers in the drawings represent the same or similar parts.

具体实施方式Detailed ways

下面结合附图对本申请作进一步详细描述。The present application will be described in further detail below with reference to the accompanying drawings.

在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(例如,中央处理器(Central Processing Unit,CPU))、输入/输出接口、网络接口和内存。In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party all include one or more processors (for example, a central processing unit (CPU)), an input/output interface, a network interface, and Memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RandomAccess Memory,RAM)和/或非易失性内存等形式,如只读存储器(Read Only Memory,ROM)或闪存(Flash Memory)。内存是计算机可读介质的示例。The memory may include non-persistent memory in computer readable media, random access memory (Random Access Memory, RAM) and/or non-volatile memory, such as read only memory (Read Only Memory, ROM) or flash memory (Flash). Memory). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(Phase-Change Memory,PCM)、可编程随机存取存储器(Programmable Random Access Memory,PRAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、动态随机存取存储器(Dynamic Random AccessMemory,DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能光盘(Digital Versatile Disc,DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (Phase-Change Memory, PCM), programmable random access memory (Programmable Random Access Memory, PRAM), static random access memory (Static Random-Access Memory, SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (Electrically-Erasable Programmable Read- Only Memory (EEPROM), flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

本申请所指设备包括但不限于用户设备、网络设备、或用户设备与网络设备通过网络相集成所构成的设备。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如Android操作系统、iOS操作系统等。其中,所述网络设备包括一种能够按照事先设定或存储的指令,自动进行数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific IntegratedCircuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、数字信号处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述设备还可以是运行于所述用户设备、网络设备、或用户设备与网络设备、网络设备、触摸终端或网络设备与触摸终端通过网络相集成所构成的设备上的程序。The equipment referred to in this application includes, but is not limited to, user equipment, network equipment, or equipment formed by integrating user equipment and network equipment through a network. The user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as a smart phone, a tablet computer, etc., and the mobile electronic product can use any operation. system, such as Android operating system, iOS operating system, etc. The network device includes an electronic device that can automatically perform numerical calculation and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC) , Programmable Logic Device (PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), Digital Signal Processor (Digital Signal Processor, DSP), embedded devices, etc. The network device includes, but is not limited to, a computer, a network host, a single network server, multiple network server sets, or a cloud composed of multiple servers; here, a cloud is composed of a large number of computers or network servers based on cloud computing, Among them, cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like. Preferably, the device may also be a program running on the user equipment, network equipment, or a device formed by user equipment and network equipment, network equipment, touch terminal or network equipment and touch terminal integrated through a network.

当然,本领域技术人员应能理解上述设备仅为举例,其他现有的或今后可能出现的设备如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or possible devices that may appear in the future, if applicable to this application, should also be included within the protection scope of this application, and are included in this application by reference. this.

在本申请的描述中,“多个”的含义是两个或者更多,除非另有明确具体的限定。In the description of this application, "plurality" means two or more, unless expressly and specifically defined otherwise.

图1示出了本申请的一个典型场景,用户设备200与网络设备100建立了通信连接,并通过该通信连接完成二维码的目标数据信息的获取过程等。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等;所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,二维码的目标数据信息包括但不限于该二维码中包含的待执行指令、执行指令的结果页面或者待呈现页面等,如关于支付给某商家一定数额的付款指令,或者待呈现的该商家对应的付款页面、关注页面等。FIG. 1 shows a typical scenario of the present application. The user equipment 200 establishes a communication connection with the network device 100, and completes the acquisition process of the target data information of the two-dimensional code through the communication connection. The user equipment includes but is not limited to any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as smart phones, tablet computers, etc.; the network equipment includes but is not limited to computers , a web host, a single web server, a collection of web servers, or a cloud of multiple servers. Here, the target data information of the two-dimensional code includes, but is not limited to, the instruction to be executed, the result page of the execution instruction, or the page to be presented, etc. contained in the two-dimensional code, such as a payment instruction about paying a certain amount to a merchant, or an instruction to be executed. The payment page, follow page, etc. corresponding to the merchant are presented.

参考图1所示的系统图,本申请还提供了在网络设备和用户设备交互过程中用于获取二维码的目标数据信息的方法,如图2所示,该方法包括:Referring to the system diagram shown in FIG. 1 , the present application also provides a method for acquiring target data information of a two-dimensional code during the interaction between network equipment and user equipment. As shown in FIG. 2 , the method includes:

用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code;

所述用户设备获取所述目标二维码对应的二维码关联信息;acquiring, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code;

所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code;

所述网络设备执行关于所述二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一字解码过程包括根据所述目标二维码的图像信息执行解码确定对应的解码信息,所述第二子解码过程基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first word decoding process includes according to the target two. The image information of the two-dimensional code is decoded to determine corresponding decoding information, and the second sub-decoding process determines the first target data information of the target two-dimensional code based on the decoding information;

所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code;

若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;所述用户设备接收所述第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息;If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the first target data information is returned to the user equipment; the user equipment receives the first target data information, and presents the page information corresponding to the first target data information;

若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息。If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment; the user equipment receives the second target data information, and presents Page information corresponding to the second target data information.

除上述图2示出的方法外,本申请还提供了用于获取二维码的目标数据信息的方法,如图3所示,该方法包括:In addition to the method shown in FIG. 2 above, the present application also provides a method for acquiring target data information of a two-dimensional code. As shown in FIG. 3 , the method includes:

用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code;

所述用户设备获取对应所述目标二维码的二维码关联信息;obtaining, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code;

所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code;

所述用户设备基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息;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 acquiring decoding information of the target two-dimensional code;

所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code;

所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code;

若所述用户设备在第一子解码过程完成之前,接收到所述网络设备返回的第二目标数据信息,停止所述第一子解码过程,呈现所述第二目标数据信息对应的页面信息;If the user equipment receives the second target data information returned by the network device before the first sub-decoding process is completed, stops the first sub-decoding process, and presents 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 device is not received, send the decoding information of the target two-dimensional code to the network device;

所述网络设备执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes the first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes receiving the received data. Decoding information about the target two-dimensional code sent by the user equipment, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information;

若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述网络设备返回的第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息;If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, return the second target data information to the user equipment; the user equipment receives the second target data returned by the network device information, and present the page information corresponding to the second target data information;

若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;If the time-consuming of the decoding process is less than the time-consuming of the image matching process, returning the first target data information to the user equipment;

所述用户设备接收所述网络设备返回的第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息。The user equipment receives the first target data information returned by the network device, and presents page information corresponding to the first target data information.

参考图1所示的系统,及图2和图3所示的系统方法,下面结合图4对应用于网络设备的方法中各具体实施例进行举例介绍。Referring to the system shown in FIG. 1 and the system methods shown in FIG. 2 and FIG. 3 , specific embodiments of the method applied to a network device are described below with reference to FIG. 4 .

图4示出根据本申请一个方面的一种获取二维码的目标数据信息的方法,应用于网络设备端,适用于图1所示的系统,具体包括步骤S101、步骤S102、步骤S103以及步骤S104。在步骤S101中,网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述二维码的图像信息;在步骤S102中,网络设备执行关于所述目标二维码的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;在步骤S103中,网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;在步骤S104中,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备。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 and is applicable to the system shown in FIG. 1 , and specifically includes steps S101 , S102 , S103 and S104. In step S101, the network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes two-dimensional code associated information corresponding to the target two-dimensional code and the two-dimensional code of the two-dimensional code. image information; in step S102, the network device performs a decoding process on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes acquiring The decoding information of the target two-dimensional code, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; in step S103, the network device according to the two-dimensional code An image matching process is performed on the associated information and the image information of the target two-dimensional code, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding two-dimensional code based on the similar two-dimensional code. the second target data information; in step S104, if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment.

具体而言,在步骤S101中,网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述二维码的图像信息。例如,用户持有用户设备,通过用户设备获取目标二维码的图像信息,如用户设备通过摄像装置拍摄关于目标二维码的图像信息,或者从用户设备本地(如相册或者应用内部存储等)调用存储的目标二维码的图像信息用于识别;用户设备将该图像信息发送至网络设备,网络设备接收到的二维码的图像信息可以是用户设备拍摄的关于目标二维码的原图,或者是经过预处理的图像,如经过滤波、图像校正等得到的目标二维码的图像信息。同时,用户设备还获取对应的二维码关联信息,如通过热点连接模块获取当前连接的无线接入点或者通过GPS或者北斗系统等确定对应位置信息等;用户设备将该二维码关联信息包含于解码请求中,并将解码请求发送至网络设备,该二维码关联信息用于确定目标二维码的匹配范围,如用于确定二维码数据库中用于与目标二维码进行匹配的一个或多个二维码,在此,该二维码数据库可以是包含于网络设备,还可以是存储于与该网络设备存在通信的其他网络设备等。在一些实施方式中,所述二维码关联信息包括但不限于:所述用户设备当前连接的无线接入点的标识信息;所述用户设备的当前位置信息。例如,在二维码数据库中建立了各二维码与对应二维码关联信息的映射关系,如各二维码存在对应的一个无线接入点的标识信息,或者各二维码存在对应的地理位置信息(如经纬度或者商圈对应的AOI(Aera of interest,兴趣区)或者POI(Point of interest,兴趣点)等),当然,对应的二维码关联信息可能存在多个与之关联的二维码。其中,与无线接入点的标识信息对应的二维码,如XX商家提供了对应的无线接入点“XX商家”,网络设备可以基于商家上传的二维码(如商家收款码、商家公众号二维码等)和该无线接入点的标识信息“XX商家”等,建立上传的二维码与该无线接入点的标识信息的映射关系。与当前位置信息相关联的二维码,如XX广场(包含对应经纬度等)提供的该XX广场包含的商家的二维码(如商家收款码、商家公众号二维码等),网络设备可以基于XX广场的位置信息建立与这些二维码的映射关系。当然,用户设备向网络设备发送解码请求,该解码请求中包含当前的二维码关联信息,有利于网络设备在二维码数据库中进行匹配,使得匹配结果更加精准,同时减少了匹配的工作量和时间等,提升了二维码匹配的效率和准确率。Specifically, in step S101, the network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the Image information of the QR code. For example, the user holds the user equipment and obtains the image information of the target QR code through the user equipment. For example, the user equipment captures the image information about the target QR code through a camera, or obtains the image information from the user equipment locally (such as an album or application internal storage, etc.) Call the stored image information of the target two-dimensional code for identification; the user equipment sends the image information to the network device, and the image information of the two-dimensional code received by the network device can be the original image of the target two-dimensional code taken by the user equipment , or a preprocessed image, such as the image information of the target QR code obtained through filtering, image correction, etc. At the same time, the user equipment also obtains the corresponding QR code association information, such as obtaining the currently connected wireless access point through the hotspot connection module or determining the corresponding location information through GPS or Beidou system, etc.; the user equipment includes the QR code association information including In the decoding request, and send the decoding request to the network device, the two-dimensional code associated information is used to determine the matching range of the target two-dimensional code, such as used to determine the two-dimensional code database for matching with the target two-dimensional code. One or more two-dimensional codes. Here, the two-dimensional code database may be included in a network device, and may also be stored in other network devices that communicate with the network device. In some embodiments, the two-dimensional code association information includes but is not limited to: identification information of the wireless access point to which the user equipment is currently connected; current location information of the user equipment. For example, a mapping relationship between each two-dimensional code and the corresponding two-dimensional code associated information is established in the two-dimensional code database. For example, each two-dimensional code has the identification information of a corresponding wireless access point, or each two-dimensional code has a corresponding Geographical location information (such as AOI (Aera of interest, area of interest) or POI (Point of interest, point of interest) corresponding to latitude and longitude or business district), of course, the corresponding QR code associated information may have multiple associated information QR code. Among them, the two-dimensional code corresponding to the identification information of the wireless access point, such as XX merchant provides the corresponding wireless access point "XX merchant", the network device can be based on the two-dimensional code uploaded by the merchant (such as merchant payment code, merchant public account two-dimensional code, etc.) and the identification information of the wireless access point "XX merchant", etc., to establish a mapping relationship between the uploaded two-dimensional code and the identification information of the wireless access point. The QR code associated with the current location information, such as the QR code of the merchant (such as the merchant's payment code, the merchant's official account QR code, etc.) provided by the XX Square (including the corresponding latitude and longitude), network equipment The mapping relationship with these two-dimensional codes can be established based on the location information of the XX square. Of course, the user equipment sends a decoding request to the network device, and the decoding request contains the current two-dimensional code related information, which is helpful for the network device to match in the two-dimensional code database, making the matching result more accurate, and reducing the workload of matching. And time, etc., improve the efficiency and accuracy of QR code matching.

在步骤S102中,网络设备执行关于所述目标二维码的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息。例如,所述解码过程包括第一子解码过程和第二子解码过程,其中,第一子解码过程包括根据所述目标二维码的图像信息进行解码获取对应的解码信息,所述解码信息包括但不限于对应的目标二维码的访问链接信息、执行指令等,该第一子解码过程可以在网络设备端完成,也可以在用户设备端完成;所述第二子解码过程包括根据解码信息确定所述目标二维码对应的网页信息或者对应的执行对应执行指令并获取执行结果页面等,该第二子解码过程由网络设备完成。通过该解码信息,网络设备可以确定目标二维码对应的第一目标数据信息,如目标二维码的待执行指令(如是否支付等待执行指令)、执行结果页面(支付完成的页面信息等),或者对应页面信息(如输入付款金额的付款页面等)等。如在一些实施方式中,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息;如在另一些实施方式中,所述第一子解码过程包括根据所述二维码的图像信息执行解码确定对应的解码信息。例如,第一子解码过程通常包括定位图形、灰度化二维码信息像素、二值化二维码信息像素、二维码译码和纠错等步骤;该第一子解码过程可以在用户设备端完成,也可以在网络设备端完成。本方案的解码过程是为了保障图像匹配过程耗时较长时,用户依然能够完成目标二维码的识别过程,获取到对应的目标数据信息。In step S102, the network device performs a decoding process on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes acquiring the target two-dimensional code. The decoding information of the two-dimensional code, the second sub-decoding process includes determining the 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, wherein the first sub-decoding process includes decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, and the decoding information includes However, it is not limited to the access link information and execution instructions of the corresponding target two-dimensional code. The first sub-decoding process can be completed on the network device side or on the user equipment side; the second sub-decoding process includes decoding information according to the decoding information. Determine the webpage information corresponding to the target two-dimensional code or the corresponding execution corresponding execution instruction and obtain the execution result page, etc. The second sub-decoding process is completed by the network device. Through the decoding information, the network device can determine the first target data information corresponding to the target two-dimensional code, such as the to-be-executed instruction of the target two-dimensional code (such as whether to pay for the pending execution instruction), the execution result page (the page information on which the payment is completed, etc.) , or the corresponding page information (such as the payment page where the payment amount is entered, etc.). In some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code sent by the user equipment; in other embodiments, the first sub-decoding process includes according to The image information of the two-dimensional code is decoded to determine corresponding decoded information. For example, the first sub-decoding process usually includes the steps of positioning graphics, gray-scaled two-dimensional code information pixels, binarized two-dimensional code information pixels, two-dimensional code decoding and error correction; the first sub-decoding process may It can be done on the device side, or it can be done on the network device side. The decoding process of this solution is to ensure that when the image matching process takes a long time, the user can still complete the identification process of the target two-dimensional code and obtain the corresponding target data information.

在步骤S103中,网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息。例如,网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,如网络设备根据二维码关联信息确定与该二维码关联信息对应的一个或多个二维码,并从该一个或多个二维码中匹配一个与目标二维码相似度达到一定阈值的相似二维码,对应图像匹配包括但不限于以灰度为基础的匹配和以特征为基础的匹配等,灰度匹配的基本思想:以统计的观点将图像看成是二维信号,采用统计相关的方法寻找信号间的相关匹配。利用两个信号的相关函数,评价它们的相似性以确定同名点;特征匹配是指通过分别提取两个或多个图像的特征(点、线、面等特征),对特征进行参数描述,然后运用所描述的参数来进行匹配的一种算法。对应图像匹配过程还用于:网络设备根据所述相似二维码,将该相似二维码的目标数据信息作为目标二维码的第二目标数据信息,在此,第二目标数据信息与所述第一目标数据信息应为相同的目标数据信息,第一、第二不代表顺序,仅为区分获取该目标数数据信息对应的方式,所述第一目标数据信息经解码过程获得,所述第二目标数据信息经图像匹配过程获得。In step S103, the network device performs an image matching process according to the two-dimensional code associated information and the image information of the target two-dimensional code, wherein the image matching process is used for: acquiring the similarity corresponding to the image information A two-dimensional code and the corresponding second target data information is determined based on the similar two-dimensional code. For example, the network device performs an image matching process according to the two-dimensional code associated information and the image information of the target two-dimensional code. For example, the network device determines one or more corresponding two-dimensional code associated information according to the two-dimensional code associated information. Two-dimensional code, and match a similar two-dimensional code whose similarity with the target two-dimensional code reaches a certain threshold from the one or more two-dimensional codes. The corresponding image matching includes but is not limited to gray-based matching and feature-based matching. The basic idea of grayscale matching is to regard the image as a two-dimensional signal from a statistical point of view, and use the statistical correlation method to find the correlation between the signals. Using the correlation function of the two signals, evaluate their similarity to determine the points with the same name; feature matching refers to extracting the features (points, lines, surfaces, etc.) of two or more images respectively, describing the features with parameters, and then An algorithm for matching using the described parameters. The corresponding image matching process is also used for: according to the similar two-dimensional code, the network device uses the target data information of the similar two-dimensional code as the second target data information of the target two-dimensional code. The first target data information should be the same target data information, the first and the second do not represent the order, but only to distinguish the corresponding way to obtain the target number data information, the first target data information is obtained through the decoding process, and the The second target data information is obtained through an image matching process.

在步骤S104中,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备。例如,所述图像匹配过程的耗时是指解码起始时间直至图像匹配过程确定对应的第二目标数据信息为止经历的时间,所述解码过程的耗时包括第一子解码过程和第二子解码过程以及数据传输的耗时等,具体是指解码起始时间直至获取到第一目标数据信息为止;在此,解码起始点可以是网络设备接收到解码请求的时间,还可以是用户设备发送该解码请求的时间,如果是后者,则解码请求中还包括该解码起始时间;当然,本领域技术人员应能理解,只要能够保证解码过程和图像匹配过程的起始时间一致,其他任何耗时计算同样适用于本申请。网络设备将所述图像匹配过程的耗时与所述解码过程的耗时比较,若图像匹配过程的耗时小于或等于解码过程的耗时,即网络设备通过图像匹配过程先获取到目标二维码的目标数据信息,网络设备将第二目标数据信息返回至对应的用户设备。所述用户设备接收该目标数据信息,并呈现该目标数据信息,或者根据目标数据信息执行对应指令等。在一些实施方式中,解码过程的耗时较长是因为对应应用中的解码方式与对应码的识别方式不匹配,导致解码失败或者耗时较长等,而通过图像匹配过程可以较快匹配出对应的第一目标数据信息,使得二维码的识别不再受限于固定应用的识别的模式。在一些实施方式中,在步骤S104中,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,停止所述解码过程,并将所述第二目标数据信息返回至所述用户设备。例如,当通过图像匹配过程先确定对应的第二目标数据信息,即图像匹配过程的耗时小于或等于所述解码过程的耗时,网络设备停止对应的解码过程,若第一子解码过程由网络设备完成,且当前正在执行第一子解码过程,则停止当前执行的第一子解码过程;若第一子解码过程由用户设备完成,且用户设备正在执行第一子解码过程,则网络设备接收到经由第一子解码过程确定的解码信息后不再执行第二子解码过程,或者网络设备在发送第二目标数据信息的时候,向对应用户设备发送解码停止指令,用于停止用户设备端的第一子解码过程;若图像匹配过程完成时正在执行第二子解码过程,则网络设备停止该第二子解码过程。本方案通过及时停止对应的解码过程,在保证获取目标二维码的目标数据信息的效率的同时,节省了获取目标数据信息所耗的资源。In step S104, if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment. For example, the time-consuming of the image matching process refers to the time from the decoding start time until the image matching process determines the corresponding second target data information, and the time-consuming of the decoding process includes the first sub-decoding process and the second sub-decoding process. The decoding process and the time-consuming of data transmission, etc., specifically refer to the decoding start time until the first target data information is obtained; here, the decoding start point may be the time when the network device receives the decoding request, or the time when the user equipment sends the decoding request. The time of the decoding request, if it is the latter, the decoding request also includes the decoding start time; of course, those skilled in the art should understand that as long as the start time of the decoding process and the image matching process can be guaranteed to be consistent, any other The time-consuming calculation also applies to this application. The network device compares the time-consuming of the image matching process with the time-consuming of the decoding process. If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, that is, the network device first obtains the target two-dimensional image through the image matching process. the target data information of the code, and the network device 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 according to the target data information, and the like. In some embodiments, the decoding process takes a long time because the decoding method in the corresponding application does not match the identification method of the corresponding code, resulting in a decoding failure or a long time. The corresponding first target data information makes the recognition of the two-dimensional code no longer limited to the recognition mode of the fixed application. In some embodiments, in step S104, if the time-consuming of the image matching process is less than or equal to the time-consuming 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 first determined through the image matching process, that is, the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the network device stops the corresponding decoding process. If the network equipment completes and is currently executing the first sub-decoding process, the currently executing first sub-decoding process is stopped; if the first sub-decoding process is completed by the user equipment and the user equipment is executing the first sub-decoding process, the network equipment After receiving the decoding information determined through the first sub-decoding process, the second sub-decoding process will not be executed, or the network device sends a decoding stop instruction to the corresponding user equipment when sending the second target data information, which is used to stop the decoding on the user equipment side. The first sub-decoding process; if the second sub-decoding process is being executed when the image matching process is completed, the network device stops the second sub-decoding process. By stopping the corresponding decoding process in time, the solution saves the resources consumed for obtaining the target data information while ensuring the efficiency of obtaining the target data information of the target two-dimensional code.

在一些实施方式中,所述方法还包括步骤S105(未示出),在步骤S105中,若所述解码过程的耗时小于所述图像匹配过程的耗时,网络设备停止所述图像匹配过程,并将所述第一目标数据信息返回至所述用户设备。例如,网络设备在确定到第一目标数据信息时,对应图像匹配过程未完成,网络设备停止该图像匹配过程,并将第一目标数据信息返回至用户设备。在一些实施方式中,所述图像匹配过程未完成包括图像匹配数据量较大,所耗时较长,还包括图像匹配过程所用的二维码数据库中未存储目标二维码的模板信息等。本方案通过考虑图像匹配耗时太长的情形,使得目标二维码的解码速度能够正常进行,不影响用户正常的解码过程,且该解码过程不耗费用户设备端资源,网络设备端执行解码过程通常比用户设备端执行解码过程快,在一定程度上对解码过程的效率有所提升。In some embodiments, the method further includes step S105 (not shown), in step S105, if the time-consuming of the decoding process is less than the time-consuming of the image matching process, the network device stops the image matching process , and return the first target data information to the user equipment. For example, when the network device determines the first target data information, the corresponding image matching process is not completed, the network device stops the image matching process, and returns the first target data information to the user equipment. In some embodiments, the incomplete image matching process includes that the amount of image matching data is large and takes a long time, and the template information of the target two-dimensional code is not stored in the two-dimensional code database used in the image matching process. By considering the situation that image matching takes too long, this solution enables the decoding speed of the target QR code to proceed normally, without affecting the normal decoding process of the user, and the decoding process does not consume the resources of the user equipment, and the network equipment performs the decoding process Usually, the decoding process is faster than that performed by the user equipment side, which improves the efficiency of the decoding process to a certain extent.

在一些实施方式中,所述步骤S103包括子步骤S1031(未示出)和子步骤S1032(未示出)。在步骤S1031中,网络设备根据所述二维码关联信息确定对应的一个或多个二维码;在步骤S1032中,网络设备根据所述目标二维码的图像信息与所述一个或多个二维码进行图像匹配过程,其中,所述图像匹配用于:从一个或多个二维码中获取与诉搜狐图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息。例如,在二维码数据库中建立了各二维码与对应二维码关联信息的映射关系,该二维码数据库可以是在网络设备端,或者是与该网路设备存在通信连接的其他设备,该网络设备可以通过通信连接调用对应二维码数据库中的映射关系等。网络设备通过二维码关联信息可以确定目标二维码的匹配数据库,该匹配数据库中包含与该二维码关联信息存在映射关系的一个或多个二维码,如通过地理位置与二维码图像的映射关系,网路设备确定在该地理位置一定范围内(如200米内等)的地理位置对应的二维码,并将这些二维码用于匹配;又如,网络设备根据用户设备当前连接的无线接入点,确定该无线接入点对应的二维码(如商家在不同应用中的付款码、商家页面对应码等),将这些二维码用于匹配等。网络设备确定对应用于匹配的一个或多个二维码后,根据该一个或多个二维码确定对应的目标数据信息,如对应映射关系包含二维码的目标数据信息,网络设备将相似度大于或等于一定阈值的二维码的目标数据信息中相似度最高的二维码的目标数据信息作为对应第二目标数据信息等。在一些实施方式中,在步骤S1031中,网络设备根据所述二维码关联信息在对应的二维码数据库中查询确定对应的一条或多条二维码记录,其中,所述二维码数据库中包含多条二维码记录,每条二维码记录包含该二维码的图像信息、目标数据信息以及该二维码对应的二维码关联信息;其中,在步骤S1032中,网络设备根据所述目标二维码的图像信息与所述一条或多条二维码记录中的二维码的图像信息进行图像匹配过程,其中,所述图像匹配用于:从一条或多条二维码记录的图像信息中获取与所述图像信息相对应的相似二维码记录以及基于所述相似二维码记录确定对应的第二目标数据信息,所述第二目标数据信息为所述相似二维码记录中的二维码的目标数据信息。例如,各二维码与对应二维码关联信息的映射关系包含于对应二维码的二维码记录,该二维码记录还包括二维码的图像信息、二维码的目标数据信息等,二维码记录信息包含于二维码数据库。网络设备通过二维码关联信息确定目标二维码的匹配范围,通过二维码关联信息确定与目标二维码匹配的一条或多条二维码记录,随后,通过将该一条或多条二维码记录中的二维码的图像信息与目标二维码的图像信息进行匹配,确定对应的相似二维码,如根据图像进行相似度匹配,若相似度大于或等于一定阈值,确定为相似二维码;或者,当相似度大于或等于一定阈值的二维码存在多个时,将相似度大于或等于一定阈值的确定候选二维码,将候选二维码中相似度最高的二维码确定为相似二维码。网络设备将相似二维码对应二维码记录的目标数据信息作为目标二维码的第二目标数据信息。本方案通过二维码关联信息能够有效减少用于图像匹配的二维码记录,减少了图像匹配过程所耗资源,提高了图像匹配的效率,同时,通过二维码数据库中二维码记录进行匹配,能够快速获取对应的目标数据信息,还能保证目标二维码的匹配基数够多,一定程度上保证匹配率。In some embodiments, the step S103 includes sub-step S1031 (not shown) and sub-step S1032 (not shown). In step S1031, the network device determines one or more corresponding two-dimensional codes according to the two-dimensional code association information; in step S1032, the network device determines the corresponding one or more two-dimensional codes according to the image information of the target two-dimensional code. The two-dimensional code performs an image matching process, wherein the image matching is used to: obtain a similar two-dimensional code corresponding to the image information of Susohu from one or more two-dimensional codes and determine the corresponding two-dimensional code based on the similar two-dimensional code. second target data information. For example, a mapping relationship between each two-dimensional code and the associated information of the corresponding two-dimensional code is established in the two-dimensional code database, and the two-dimensional code database may be on the network device or other devices that are in communication connection with the network device. , the network device can call the mapping relationship in the corresponding two-dimensional code database through the communication connection. The network device can determine the matching database of the target two-dimensional code through the two-dimensional code associated information, and the matching database contains one or more two-dimensional codes that have a mapping relationship with the two-dimensional code associated information, such as geographic location and the two-dimensional code. The mapping relationship of the image, the network device determines the two-dimensional code corresponding to the geographic location within a certain range of the geographic location (such as within 200 meters, etc.), and uses these two-dimensional codes for matching; The connected wireless access point, determine the two-dimensional code corresponding to the wireless access point (such as the payment code of the merchant in different applications, the corresponding code of the merchant's page, etc.), and use these two-dimensional codes for matching. After the network device determines one or more two-dimensional codes that are matched, it determines the corresponding target data information according to the one or more two-dimensional codes. If the corresponding mapping relationship includes the target data information of the two-dimensional code, the network device will be similar. The target data information of the two-dimensional code with the highest similarity among the target data information of the two-dimensional code whose degree is greater than or equal to a certain threshold is used as the corresponding second target data information and the like. In some embodiments, in step S1031, the network device queries and determines one or more corresponding two-dimensional code records in a corresponding two-dimensional code database according to the two-dimensional code association information, wherein the two-dimensional code database contains a plurality of two-dimensional code records, each two-dimensional code record contains the image information of the two-dimensional code, target data information and the two-dimensional code associated information corresponding to the two-dimensional code; wherein, in step S1032, the network device according to The image matching process is performed between 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 is used for: from one or more two-dimensional codes Obtain a similar two-dimensional code record corresponding to the image information from the recorded image information and determine the corresponding second target data information based on the similar two-dimensional code record, and the second target data information is the similar two-dimensional code record. The target data information of the QR code in the code record. For example, the mapping relationship between each two-dimensional code and the associated information of the corresponding two-dimensional code is included in the two-dimensional code record corresponding to the two-dimensional code, and the two-dimensional code record also includes the image information of the two-dimensional code, the target data information of the two-dimensional code, etc. , the two-dimensional code record information is included in the two-dimensional code database. The network device determines the matching range of the target two-dimensional code through the two-dimensional code association information, determines one or more two-dimensional code records that match the target two-dimensional code through the two-dimensional code association information, and then uses the one or more two-dimensional code records. The image information of the QR code in the QR code record is matched with the image information of the target QR code, and the corresponding similar QR code is determined. For example, the similarity is matched according to the image. If the similarity is greater than or equal to a certain threshold, it is determined to be similar. two-dimensional code; or, when there are multiple two-dimensional codes with a similarity greater than or equal to a certain threshold, determine the candidate two-dimensional code whose similarity is greater than or equal to a certain threshold, and select the two-dimensional code with the highest similarity among the candidate two-dimensional codes. The code is determined to be a similar two-dimensional code. The network device takes the target data information recorded by the similar two-dimensional code corresponding to the two-dimensional code as the second target data information of the target two-dimensional code. This solution can effectively reduce the two-dimensional code records used for image matching through the two-dimensional code associated information, reduce the resources consumed in the image matching process, and improve the efficiency of image matching. Matching can quickly obtain the corresponding target data information, and can also ensure that the matching base of the target two-dimensional code is large enough to ensure the matching rate to a certain extent.

在一定实施方式中,所述图像匹配过程的匹配结果还包括匹配失败;其中,所述方法还包括步骤S106(未示出)。在步骤S106中,若所述图像匹配过程的匹配结果包含匹配失败,将所述第一目标数据信息返回至所述用户设备。例如,当对应的二维码数据库中不包含目标二维码对应模板记录等时,对应匹配结果包括匹配失败,如二维码数据库中不包含对应二维码关联信息,二维码数据库中二维码关联信息对应的二维码记录不存在与目标二维码匹配(如相似度大于或等于阈值等)的二维码记录等。当图像匹配结果失败时,网络设备通过解码过程获取第一目标数据信息,并将该第一目标数据信息返回至用户设备。在一些实施方式中,所述方法还包括步骤S107(未示出),网络设备根据所述图像信息、所述第一目标数据信息以及所述二维码关联信息生成关于所述目标二维码的目标二维码记录,并将所述目标二维码记录添加至所述二维码数据库。例如,若对应匹配结果包括匹配失败,网络设备执行解码过程确定对应的第一目标数据信息后,网络设备根据用户设备上传的二维码关联信息、二维码的图像信息以及第一目标数据信息建立对应的目标二维码记录等,在一些实施方式中,目标二维码记录中目标二维码的图像信息可以是二维码的图像信息经过校正后获得的图像信息,如用户上传的是通过摄像装置拍摄的图像信息,该图像信息由于用户设备的拍摄角度等会有一定的畸变,在解码过程中会对该图像信息进行校正,网络设备将校正后的图像信息作为二维码记录中的图像信息等。本方案通过对匹配失败情形时正常解码,并建立对应的二维码记录,能够逐步扩大二维码数据库,为后续二维码的识别提供保障。In a certain implementation manner, the matching result of the image matching process further includes a matching failure; wherein, the method further includes 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 contain the corresponding template records of the target two-dimensional code, etc., the corresponding matching result includes matching failure, such as the two-dimensional code database does not contain the corresponding two-dimensional code related information, the two-dimensional code database The two-dimensional code record corresponding to the one-dimensional code associated information does not have a two-dimensional code record that matches the target two-dimensional code (for example, the similarity is greater than or equal to a threshold, etc.). When the image matching result fails, the network device obtains the first target data information through the decoding process, and returns the first target data information to the user equipment. In some embodiments, the method further includes step S107 (not shown), wherein the network device generates a two-dimensional code related to the target according to the image information, the first target data information and the two-dimensional code associated information the target two-dimensional code record, and add the target two-dimensional code record to the two-dimensional code database. For example, if the corresponding matching result includes a matching failure, after the network device performs the decoding process to determine the corresponding first target data information, the network device performs the decoding process to determine the corresponding first target data information. Establish a corresponding target two-dimensional code record, etc. In some embodiments, the image information of the target two-dimensional code in the target two-dimensional code record may be the image information obtained after the image information of the two-dimensional code is corrected. The image information captured by the camera device will be distorted to a certain extent due to the shooting angle of the user equipment. During the decoding process, the image information will be corrected, and the network device will record the corrected image information as a two-dimensional code. image information, etc. This solution can gradually expand the two-dimensional code database by decoding normally when the matching fails, and establishing the corresponding two-dimensional code record, providing guarantee for the subsequent identification of the two-dimensional code.

在一些实施方式中,所述二维码记录还包括该二维码的时间限制信息。例如,一些二维码由于一些原因具有时效性,如个人支付码等,对应的二维码记录还包括二维码的时间限制信息等,如该二维码的有效时间为五分钟,网络设备建立并存储对应的二维码记录时,该二维码记录还包括该时间限制信息等。在一些实施方式中,网路设备根据所述时间限制信息对该二维码记录进行管理,如以该二维码记录的建立时间作为起始时间开始计时,当该二维码记录的存储时间大于或等于所述时间限制信息对应时间,网络设备删除对应的二维码记录等。如在一些实施方式中,若所述多条二维码记录中存在一条二维码记录的记录时间大于或等于所述时间限制信息,网络设备从所述二维码数据库中删除该条二维码记录。本方案通过二维码记录中添加该时间限制信息,对二维码记录的管理更加有序,使得图像匹配过程适用性更广,同时及时删除超过时间限制信息的二维码记录,提高了资源利用空间。In some embodiments, the two-dimensional code record further includes time limit information of the two-dimensional code. For example, some QR codes are time-sensitive for some reasons, such as personal payment codes, etc. The corresponding QR code records also include the time limit information of the QR code. For example, the valid time of the QR code is five minutes, and the network equipment When the corresponding two-dimensional code record is established and stored, the two-dimensional code record also includes the time limit information and the like. In some embodiments, the network device manages the two-dimensional code record according to the time limit information. If it is greater than or equal to the time corresponding to the time limit information, the network device deletes the corresponding two-dimensional code record, etc. In some embodiments, if the record 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 two-dimensional code record from the two-dimensional code database code record. In this solution, the time limit information is added to the QR code record, and the management of the QR code record is more orderly, which makes the image matching process more applicable, and at the same time, the QR code record exceeding the time limit information is deleted in time, which improves the resources. Use space.

上文主要从网络设备的角度对本方法中各具体实施例进行介绍,下面结合图5从用户设备的角度对本方法各实施例进行举例介绍。The specific embodiments of the method are mainly described above from the perspective of network equipment, and the following describes the embodiments of the method from the perspective of user equipment with reference to FIG. 5 .

图5示出根据本申请的另一个方面的一种获取二维码的目标数据信息的方法,应用于用户设备,同样适用于图1所示的系统拓扑,该方法包括步骤S201、步骤S202、步骤S203、步骤S204、步骤S205以及步骤S206等。在步骤S201中,用户设备获取关于目标二维码的图像信息;在步骤S202中,用户设备获取所述目标二维码对应的二维码关联信息;在步骤S203中,用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;在步骤S204中,用户设备基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括确定所述目标二维码的解码信息;在步骤S205中,用户设备若在第一子解码过程完成之前,接收到所述网络设备返回的目标数据信息,停止所述第一子解码过程,其中,所述目标数据信息由所述网络设备经图像匹配过程获得,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的目标数据信息;在步骤S206中,用户设备呈现所述目标数据信息对应的页面信息。例如,用户持有用户设备,通过用户设备获取目标二维码的图像信息,如用户设备通过摄像装置拍摄关于目标二维码的图像信息,或者从用户设备本地(如相册或者应用内部存储等)调用存储的目标二维码的图像信息用于识别;用户设备将该图像信息发送至网络设备,网络设备接收到的二维码的图像信息可以是用户设备拍摄的关于目标二维码的原图,或者是经过预处理的图像,如经过滤波、图像校正等得到的目标二维码的图像信息。同时,用户设备还获取对应的二维码关联信息,如通过热点连接模块获取当前连接的无线接入点或者通过GPS或者北斗系统等确定对应位置信息等;用户设备将该二维码关联信息包含于解码请求中,并将解码请求发送至网络设备,该二维码关联信息用于确定目标二维码的匹配范围,如用于确定二维码数据库中用于与目标二维码进行匹配的一个或多个二维码,在此,该二维码数据库可以是包含于网络设备,还可以是存储于与该网络设备存在通信的其他网络设备等。所述解码过程包括第一子解码过程和第二子解码过程,其中,第一子解码过程包括根据所述目标二维码的图像信息进行解码获取对应的解码信息,所述解码信息包括但不限于对应的目标二维码的访问链接信息、执行指令等,该第一子解码过程在用户设备端完成;所述第二子解码过程包括根据解码信息确定所述目标二维码对应的网页信息或者对应的执行对应执行指令并获取执行结果页面等,该第二子解码过程由网络设备完成。网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,如网络设备根据二维码关联信息确定与该二维码关联信息对应的一个或多个二维码,并从该一个或多个二维码中匹配一个与目标二维码相似度达到一定阈值的相似二维码,对应图像匹配过程包括但不限于以灰度为基础的匹配和以特征为基础的匹配等,灰度匹配的基本思想:以统计的观点将图像看成是二维信号,采用统计相关的方法寻找信号间的相关匹配。利用两个信号的相关函数,评价它们的相似性以确定同名点;特征匹配是指通过分别提取两个或多个图像的特征(点、线、面等特征),对特征进行参数描述,然后运用所描述的参数来进行匹配的一种算法。所述图像匹配过程还用于:网络设备根据所述相似二维码,将该相似二维码的目标数据信息作为目标二维码的第二目标数据信息。所述图像匹配过程的耗时是指解码起始时间直至图像匹配过程确定对应的第二目标数据信息为止经历的时间,所述解码过程的耗时包括第一子解码过程和第二子解码过程以及数据传输的耗时等,具体是指解码起始时间直至获取到第一目标数据信息为止;在此,解码起始点可以是网络设备接收到解码请求的时间,还可以是用户设备发送该解码请求的时间,如果是后者,则解码请求中还包括该解码起始时间;当然,本领域技术人员应能理解,只要能够保证解码过程和图像匹配过程的起始时间一致,其他任何耗时计算同样适用于本申请。网络设备将所述图像匹配的耗时与所述解码过程的耗时比较,若图像匹配过程的耗时小于或等于解码过程的耗时,即网络设备通过图像匹配过程先获取到目标二维码的目标数据信息,网络设备将第二目标数据信息返回至对应的用户设备。所述用户设备接收该目标数据信息,并呈现该目标数据信息,或者根据目标数据信息执行对应指令等。若用户设备端接收到第二目标数据信息时,对应的第一子解码过程还未完成,即对应图像匹配耗时小于所述解码过程的耗时,用户设备停止该第一子解码过程,接收对应的第二目标数据信息。用户设备呈现目标数据信息对应的页面,若该目标数据信息为对应网页信息,则用户设备呈现该网页对应页面信息,若该目标数据信息为待执行指令等,则呈现是否执行该指令的确认页面,若该目标数据信息为执行指令,则呈现该指令执行后的结果页面等。FIG. 5 shows a method for acquiring target data information of a two-dimensional code according to another aspect of the present application, which is applied to user equipment and is also applicable to the system topology shown in FIG. 1 . The method includes steps S201, S202, Step S203, Step S204, Step S205, Step S206 and so on. In step S201, the user equipment acquires image information about the target two-dimensional code; in step S202, the user equipment acquires the two-dimensional code associated information corresponding to the target two-dimensional code; in step S203, the user equipment sends the corresponding network The device sends a decoding request about the target two-dimensional code, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code; in step S204, the user equipment based on the target two The image information of the two-dimensional code corresponds to the first sub-decoding process, wherein the first sub-decoding process includes determining the decoding information of the target two-dimensional code; in step S205, if the user equipment is before the first sub-decoding process is completed , the target data information returned by the network device is received, and the first sub-decoding process is stopped, wherein the target data information is obtained by the network device through an image matching process, and the image matching process is used to: obtain and match The similar two-dimensional code corresponding to the image information and the corresponding target data information determined based on the similar two-dimensional code; in step S206, the user equipment presents page information corresponding to the target data information. For example, the user holds the user equipment and obtains the image information of the target QR code through the user equipment. For example, the user equipment captures the image information about the target QR code through a camera, or obtains the image information from the user equipment locally (such as an album or application internal storage, etc.) Call the stored image information of the target two-dimensional code for identification; the user equipment sends the image information to the network device, and the image information of the two-dimensional code received by the network device can be the original image of the target two-dimensional code taken by the user equipment , or a preprocessed image, such as the image information of the target QR code obtained through filtering, image correction, etc. At the same time, the user equipment also obtains the corresponding QR code association information, such as obtaining the currently connected wireless access point through the hotspot connection module or determining the corresponding location information through GPS or Beidou system, etc.; the user equipment includes the QR code association information including In the decoding request, and send the decoding request to the network device, the two-dimensional code associated information is used to determine the matching range of the target two-dimensional code, such as used to determine the two-dimensional code database for matching with the target two-dimensional code. One or more two-dimensional codes. Here, the two-dimensional code database may be included in a network device, and may also be stored in other network devices that communicate with the network device. The decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, and the decoding information includes but does not Limited to the access link information, execution instructions, etc. of the corresponding target two-dimensional code, the first sub-decoding process is completed on the user equipment side; the second sub-decoding process includes determining the webpage information corresponding to the target two-dimensional code according to the decoding information. Or correspondingly execute the corresponding execution instruction and obtain the execution result page, etc. The second sub-decoding process is completed by the network device. 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 code corresponding to the two-dimensional code association information according to the two-dimensional code association information. The corresponding image matching process includes but is not limited to gray-based matching and feature-based matching. Basic matching, etc., the basic idea of gray matching: from a statistical point of view, the image is regarded as a two-dimensional signal, and the statistical correlation method is used to find the correlation between the signals. Using the correlation function of the two signals, evaluate their similarity to determine the points with the same name; feature matching refers to extracting the features (points, lines, surfaces, etc.) of two or more images respectively, describing the features with parameters, and then An algorithm for matching using the described parameters. The image matching process is further used for: the network device uses the target data information of the similar two-dimensional code as the second target data information of the target two-dimensional code according to the similar two-dimensional code. The time-consuming of the image matching process refers to the time from the decoding start time until the image matching process determines the corresponding second target data information, and the time-consuming of the decoding process includes the first sub-decoding process and the second sub-decoding process. And the time-consuming of data transmission, etc., specifically refers to the decoding start time until the first target data information is obtained; here, the decoding start point can be the time when the network device receives the decoding request, or the user equipment sends the decoding request. The time of the request, if it is the latter, the decoding request also includes the decoding start time; of course, those skilled in the art should understand that as long as the start time of the decoding process and the image matching process can be guaranteed to be consistent, any other time-consuming Calculations also apply to this application. The network device compares the time-consuming of the image matching with the time-consuming of the decoding process. If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, that is, the network device first obtains the target QR code through the image matching process. the target data information, the network device 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 according to the target data information, and the like. If the user equipment side receives the second target data information, the corresponding first sub-decoding process has not been completed, that is, the corresponding image matching time is less than the time-consuming of the decoding process, the user equipment stops the first sub-decoding process and receives Corresponding second target data information. The user equipment presents the page corresponding to the target data information. If the target data information is the corresponding webpage information, the user equipment presents the page information corresponding to the webpage. If the target data information is an instruction to be executed, etc., a confirmation page for whether to execute the instruction is presented. , and if the target data information is an execution instruction, the result page after the execution of the instruction is displayed, etc.

在一些实施方式中,所述方法还包括步骤S207(未示出),若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,用户设备向所述网络设备发送所述目标二维码的解码信息;用户设备接收所述网络设备返回的第一目标数据信息,其中,所述第一目标数据信息由所述网络设备基于所述解码信息通过第二子解码过程确定,所述第一子解码过程和第二子解码过程包含于解码过程,所述解码过程的耗时小于所述图像匹配过程的耗时。在一些实施方式中,所述方法还包括步骤S208(未示出),若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,向所述网络设备发送所述目标二维码的解码信息;接收所述网络设备返回的第二目标数据信息,其中,所述图像匹配过程的耗时小于所述目标二维码的解码过程的耗时,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第二子解码过程包括所述网络设备基于所述解码信息确定所述目标二维码对应的第一目标数据信息。例如,所述图像匹配的耗时是指解码起始时间直至图像匹配确定对应的第二目标数据信息为止经历的时间,所述解码过程的耗时包括第一子解码过程和第二子解码过程以及数据传输的耗时等,具体是指解码起始时间直至获取到第一目标数据信息为止。当用户设备完成对应的第一子解码过程后将解码信息发送至网络设备,由网络设备执行后续的第二子解码过程,并与图像匹配过程进行耗时比较,进而确定目标数据信息等。该目标数据信息可以是解码过程确定的第一目标数据信息,还可以是图像匹配过程确定的第二目标数据信息等,在此,第二目标数据信息与所述第一目标数据信息应为相同的目标数据信息,第一、第二不代表顺序,仅为区分获取该目标数数据信息对应的方式,所述第一目标数据信息经解码过程获得,所述第二目标数据信息经图像匹配过程获得。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 equipment sends the The network device sends the decoding information of the target two-dimensional code; the user equipment receives the first target data information returned by the network device, wherein the first target data information is passed by the network device based on the decoding information through the second target data information. The sub-decoding process determines that the first sub-decoding process and the second sub-decoding process are included in the decoding process, and the time-consuming of the decoding process is less than the time-consuming of the image matching process. In some implementation manners, 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, send a message to the network device. Send the decoding information of the target two-dimensional code; receive the second target data information returned by the network device, wherein the time-consuming of the image matching process is less than the time-consuming of the decoding process of the target two-dimensional code, and the The decoding process includes the first sub-decoding process and the second sub-decoding process, and the second sub-decoding process includes the network device determining first target data information corresponding to the target two-dimensional code based on the decoding information. For example, the time-consuming of the image matching refers to the time elapsed from the decoding start time until the image matching determines the corresponding second target data information, and the time-consuming of the decoding process includes the first sub-decoding process and the second sub-decoding process And the time-consuming of data transmission, etc., specifically refers to the decoding start time 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 device, and the network device performs the subsequent second sub-decoding process, and compares time-consuming with the image matching process to determine target data information and the like. The target data information may be the first target data information determined by the decoding process, or the second target data information determined by the image matching process, etc. Here, the second target data information and the first target data information should be the same The first and second target data information, the first and second do not represent the order, but only to distinguish the corresponding way to obtain the target number data information, the first target data information is obtained through the decoding process, and the second target data information is obtained through the image matching process. get.

上文主要从网络设备与用户设备交互的角度对本方法中各具体实施例进行介绍,本申请还提供了主要通过用户设备获取目标二维码的目标数据信息的方法,下面结合图6对该方法对应实施例进行举例介绍。The specific embodiments of this method are mainly introduced above from the perspective of interaction between network equipment and user equipment. The present application also provides a method for obtaining target data information of a target two-dimensional code mainly through user equipment. The method is described below with reference to FIG. 6 . The corresponding embodiments are given by way of example.

图6示出根据本申请另一个方面的一种获取目标二维码的目标数据信息的方法,应用于用户设备,该方法包括步骤S301、步骤S302、步骤S303、步骤S304、步骤S305以及步骤S306。在步骤S301中,用户设备获取关于目标二维码的图像信息;在步骤S302中,用户设备获取所述目标二维码对应的二维码关联信息;在步骤S303中,用户设备执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于解码信息确定所述目标二维码的第一目标数据信息;在步骤S304中,用户设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;在步骤S305中,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用户设备呈现所述第二目标数据信息对应的页面信息;在步骤S306中,用户设备若所述解码过程的耗时小于所述图像匹配过程的耗时,呈现所述第一目标数据信息对应的页面信息。在此,本方案除了步骤S303中,第二子解码过程通过与网络设备进行交互获取第一目标数据信息之外,主要在用户设备完成。例如,用户持有用户设备,通过用户设备获取关于目标二维码的图像信息,并对该图像信息进行预处理,如滤波、图像校正等得到的目标二维码的图像信息,如用户设备通过摄像装置拍摄关于目标二维码的图像信息,或者从用户设备本地(如相册或者应用内部存储等)调用存储的目标二维码的图像信息用于识别。同时,用户设备还获取对应的二维码关联信息,该二维码关联信息用于确定目标二维码的匹配范围,如用于确定二维码数据库中用于与目标二维码进行匹配的一个或多个二维码,在此,该二维码数据库包含于用户设备本地。所述解码过程包括第一子解码过程和第二子解码过程,其中,第一子解码过程包括根据所述目标二维码的图像信息进行解码获取对应的解码信息,所述解码信息包括但不限于对应的目标二维码的访问链接信息、执行指令等,该第一子解码过程在用户设备端完成;所述第二子解码过程包括根据解码信息确定所述目标二维码对应的网页信息或者对应的执行对应执行指令并获取执行结果页面等,该第二子解码过程由用户设备与网络设备配合完成。同时,用户设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,如根据二维码关联信息确定与该二维码关联信息对应的一个或多个二维码,并从该一个或多个二维码中匹配一个与目标二维码相似度达到一定阈值的相似二维码,对应图像匹配包括但不限于以灰度为基础的匹配和以特征为基础的匹配等,灰度匹配的基本思想:以统计的观点将图像看成是二维信号,采用统计相关的方法寻找信号间的相关匹配。用户设备根据所述相似二维码,将该相似二维码的目标数据信息作为目标二维码的第二目标数据信息。所述图像匹配过程的耗时是指解码起始时间直至图像匹配过程确定对应的第二目标数据信息为止经历的时间,所述解码过程的耗时包括第一子解码过程和第二子解码过程以及数据传输的耗时等,具体是指解码起始时间直至获取到第一目标数据信息为止;在此,解码起始点可以是用户设备开始解码的时间;当然,本领域技术人员应能理解,只要能够保证解码过程和图像匹配过程的起始时间一致,其他任何耗时计算同样适用于本申请。用户设备将所述图像匹配的耗时与所述解码过程的耗时比较,若图像匹配过程的耗时小于或等于解码过程的耗时,即用户设备通过图像匹配先获取到目标二维码的目标数据信息,用户设备呈现第二目标数据信息对应的页面信息。若图像匹配过程的耗时大于解码过程的耗时,即用户设备通过解码过程先获取到目标二维码的目标数据信息,用户设备呈现第一目标数据信息对应的页面信息。6 shows a method for obtaining target data information of a target two-dimensional code according to another aspect of the present application, applied to a user equipment, the method includes steps S301, S302, S303, S304, S305 and S306 . In step S301, the user equipment acquires image information about the target two-dimensional code; in step S302, the user equipment acquires the two-dimensional code associated information corresponding to the target two-dimensional code; in step S303, the user equipment executes the A decoding process of image information of a target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes acquiring the decoding information of the target two-dimensional code , the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; in step S304, the user equipment according to the two-dimensional code association information and the image of the target two-dimensional code information to perform an image matching process, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the 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 the user equipment If the time is less than the time-consuming of the image matching process, the page information corresponding to the first target data information is presented. Here, this solution is mainly completed in the user equipment except that in step S303, the second sub-decoding process acquires the first target data information by interacting with the network device. For example, the user holds the user equipment, obtains the image information about the target two-dimensional code through the user equipment, and preprocesses the image information, such as filtering, image correction, etc. to obtain the image information of the target two-dimensional code. The camera device captures image information about the target two-dimensional code, or calls the stored image information of the target two-dimensional code locally from the user equipment (eg, album or application internal storage, etc.) for identification. At the same time, the user equipment also obtains the corresponding two-dimensional code association information, and the two-dimensional code association information is used to determine the matching range of the target two-dimensional code, such as for determining the matching range of the target two-dimensional code in the two-dimensional code database for matching with the target two-dimensional code. One or more two-dimensional codes, here, the two-dimensional code database is locally contained in the user equipment. The decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes decoding according to the image information of the target two-dimensional code to obtain corresponding decoding information, and the decoding information includes but does not Limited to the access link information, execution instructions, etc. of the corresponding target two-dimensional code, the first sub-decoding process is completed on the user equipment side; the second sub-decoding process includes determining the webpage information corresponding to the target two-dimensional code according to the decoding information. Or correspondingly execute the corresponding execution instruction and obtain the execution result page, etc. The second sub-decoding process is completed by the user equipment and the network device in cooperation. At the same time, 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 code corresponding to the two-dimensional code association information according to the two-dimensional code association information code, and match a similar two-dimensional code whose similarity with the target two-dimensional code reaches a certain threshold from the one or more two-dimensional codes. The corresponding image matching includes but is not limited to gray-based matching and feature-based matching. The basic idea of gray-scale matching is to regard the image as a two-dimensional signal from a statistical point of view, and use the statistical correlation method to find the correlation between the signals. According to the similar two-dimensional code, the user equipment uses the target data information of the similar two-dimensional code as the second target data information of the target two-dimensional code. The time-consuming of the image matching process refers to the time from the decoding start time until the image matching process determines the corresponding second target data information, and the time-consuming of the decoding process includes the first sub-decoding process and the second sub-decoding process. And the time-consuming of data transmission, etc., specifically refers to the decoding start time until the first target data information is obtained; Here, the decoding start point can be the time when the user equipment starts decoding; Of course, those skilled in the art should understand that, As long as the starting times of the decoding process and the image matching process can be guaranteed to be consistent, any other time-consuming calculations are also applicable to this application. The user equipment compares the time-consuming of the image matching with the time-consuming of the decoding process. If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, that is, the user equipment first obtains the target QR code through image matching. Target data information, the user equipment presents page information corresponding to the second target data information. If the time-consuming of the image matching process is greater than the time-consuming of the decoding process, that is, the user equipment first obtains 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.

参考图1所示的系统、图2和图3所示的系统方法,以及图4图6所示的方法,本申请还提供了能够实现上述方法的各设备,下面结合图7对能够实现上述方法各实施例的网络设备进行介绍。Referring to the system shown in FIG. 1 , the system method shown in FIG. 2 and FIG. 3 , and the method shown in FIG. 4 and FIG. 6 , the present application also provides various devices that can implement the above method. The network device of each embodiment of the method is introduced.

图7示出根据本申请一个方面的一种获取二维码的目标数据信息的网络设备100,适用于图1所示的系统,具体包括一一模块101、一二模块102、一三模块103以及一四模块104。一一模块101,用于接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述二维码的图像信息;一二模块102,用于执行关于所述目标二维码的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;一三模块103,用于根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;一四模块104,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用于将所述第二目标数据信息返回至所述用户设备。在此,所述图7示出的一一模块101、一二模块102、一三模块103以及一四模块104对应的具体实施方式与前述图4示出的步骤S101、步骤S102、步骤S103以及步骤S104的实施例相同或相似,不再赘述,以引用的方式包含于此。FIG. 7 shows a network device 100 for acquiring target data information of a two-dimensional code according to an aspect of the present application, which is suitable for the system shown in FIG. and a four-module 104 . A module 101 is configured to receive a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the two-dimensional code of the two-dimensional code. Image information; one or two modules 102, configured to perform a decoding process on the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes acquiring The decoding information of the target two-dimensional code, and the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; a third module 103 is used to determine the first target data information of the target two-dimensional code according to the two-dimensional code. An image matching process is performed on the associated information and the image information of the target two-dimensional code, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding two-dimensional code based on the similar two-dimensional code. The second target data information; a fourth module 104, configured to return the second target data information to the user equipment if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process. Here, the specific implementations corresponding to the first module 101, the second module 102, the third module 103 and the fourth module 104 shown in FIG. 7 are the same as the steps S101, S102, S103 and The embodiments of step S104 are the same or similar, and are not repeated here, but are incorporated herein by reference.

在一些实施方式中,所述二维码关联信息包括但不限于:所述用户设备当前连接的无线接入点的标识信息;所述用户设备的当前位置信息。在此,所述二维码关联信息对应的具体实施方式与前述二维码关联信息的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the two-dimensional code association information includes but is not limited to: identification information of the wireless access point to which the user equipment is currently connected; current location information of the user equipment. Here, the specific implementation manner corresponding to the two-dimensional code associated information is the same as or similar to the foregoing embodiments of the two-dimensional code associated information, and is not repeated here, but is incorporated herein by reference.

如在一些实施方式中,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息;如在另一些实施方式中,所述第一子解码过程包括根据所述二维码的图像信息执行解码确定对应的解码信息。在此,所述第一子解码过程对应的具体实施方式与前述第一子解码过程的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the first sub-decoding process includes receiving decoding information about the target two-dimensional code sent by the user equipment; in other embodiments, the first sub-decoding process includes according to The image information of the two-dimensional code is decoded to determine corresponding decoded information. Here, the specific implementation manner corresponding to the first sub-decoding process is the same as or similar to the embodiment of the foregoing first sub-decoding process, and is not repeated here, but is incorporated herein by reference.

在一些实施方式中,一四模块104,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用于停止所述解码过程,并将所述第二目标数据信息返回至所述用户设备。在此,所述一四模块104中停止解码过程对应的具体实施方式与前述步骤S104中停止解码过程的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, a four-module 104, if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, is configured to stop the decoding process and return the second target data information to the user equipment. Here, the specific implementation corresponding to the stop of the decoding process in the one-fourth module 104 is the same as or similar to the embodiment of the stop of the decoding process in the aforementioned step S104 , which is not repeated here, and is incorporated herein by reference.

在一些实施方式中,所述设备还包括一五模块105(未示出),若所述解码过程的耗时小于所述图像匹配过程的耗时,用于停止所述图像匹配过程,并将所述第一目标数据信息返回至所述用户设备。在此,所述一五模块105对应的具体实施方式与前述步骤S105的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the device further includes a five-module 105 (not shown), configured to stop the image matching process if the decoding process takes less time than the image matching process, and The first target data information is returned to the user equipment. Here, the specific implementation manner corresponding to the first five modules 105 is the same as or similar to the embodiment of the foregoing step S105 , and will not be repeated here, but is incorporated herein by reference.

在一些实施方式中,一三模块103包括一三一单元1031(未示出)和一三二单元1032(未示出)。一三一单元1031,用于根据所述二维码关联信息确定对应的一个或多个二维码;一三二单元1032,用于根据所述目标二维码的图像信息与所述一个或多个二维码进行图像匹配过程,其中,所述图像匹配过程用于:从一个或多个二维码中获取与诉搜狐图像信息相对应的相似二维码以及并基于所述相似二维码确定对应的第二目标数据信息。在一些实施方式中,一三一单元1031,用于根据所述二维码关联信息在对应的二维码数据库中查询确定对应的一条或多条二维码记录,其中,所述二维码数据库中包含多条二维码记录,每条二维码记录包含该二维码的图像信息、目标数据信息以及该二维码对应的二维码关联信息;其中,一三二单元1032,用于根据所述目标二维码的图像信息与所述一条或多条二维码记录中的二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:从一条或多条二维码记录的图像信息中获取与所述图像信息相对应的相似二维码记录以及基于所述相似二维码记录确定对应的第二目标数据信息,所述第二目标数据信息为所述相似二维码记录中的二维码的目标数据信息。在此,所述一三一单元1031及一三二单元1032的具体实施方式与前述步骤S1031和步骤S1032的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the one-three module 103 includes a one-three-one unit 1031 (not shown) and a one-three-two unit 1032 (not shown). The one-three-one unit 1031 is used to determine one or more corresponding two-dimensional codes according to the two-dimensional code associated information; the one-three-two unit 1032 is used to determine the corresponding one or more two-dimensional codes according to the image information of the target two-dimensional code and the one or more The image matching process is performed on a plurality of two-dimensional codes, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information from one or more two-dimensional codes and based on the similar two-dimensional code The code determines the corresponding second target data information. 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 associated information, wherein the two-dimensional code The database contains multiple two-dimensional code records, and each two-dimensional code record contains the image information of the two-dimensional code, target data information and the two-dimensional code associated information corresponding to the two-dimensional code; 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, wherein the image matching process is used for: from one or more two-dimensional code records Obtain a similar two-dimensional code record corresponding to the image information from the image information recorded by the two-dimensional code and determine the corresponding second target data information based on the similar two-dimensional code record, and the second target data information is the The target data information of the QR code in the similar QR code record. Here, the specific implementations 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 foregoing steps S1031 and S1032 , and are not repeated here, but are incorporated herein by reference.

在一定实施方式中,所述图像匹配过程的匹配结果还包括匹配失败;其中,所述设备还包括一六模块106(未示出),若所述图像匹配过程的匹配结果包含匹配失败,用于将所述第一目标数据信息返回至所述用户设备。在一些实施方式中,所述设备还包括一七模块107(未示出),用于根据所述图像信息、所述第一目标数据信息以及所述二维码关联信息生成关于所述目标二维码的目标二维码记录,并将所述目标二维码记录添加至所述二维码数据库。在此,所述一六模块106及一七模块107对应的具体实施方式与前述步骤S106和步骤S107的实施例相同或相似,不再赘述,以引用的方式包含于此。In a certain implementation manner, the matching result of the image matching process further includes a matching failure; wherein, the device further includes a six-module 106 (not shown), if the matching result of the image matching process includes a matching failure, use in returning the first target data information to the user equipment. In some embodiments, the device further includes a seventh module 107 (not shown) for generating information about the second target according to the image information, the first target data information and the two-dimensional code associated information The target two-dimensional code record of the one-dimensional code is added, and the target two-dimensional code record is added to the two-dimensional code database. Here, the specific implementations corresponding to the six modules 106 and the seven modules 107 are the same as or similar to the embodiments of the foregoing steps S106 and S107 , and are not repeated here, but are incorporated herein by reference.

在一些实施方式中,所述二维码记录还包括该二维码的时间限制信息。如在一些实施方式中,若所述多条二维码记录中存在一条二维码记录的记录时间大于或等于所述时间限制信息,网络设备从所述二维码数据库中删除该条二维码记录。在此,所述二维码记录还包括时间限制信息对应的具体实施方式与前述二维码记录还包括时间限制信息的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the two-dimensional code record further includes time limit information of the two-dimensional code. In some embodiments, if the record 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 two-dimensional code record from the two-dimensional code database code record. Here, the specific embodiment corresponding to the two-dimensional code record further including time limit information is the same as or similar to the above-mentioned embodiment in which the two-dimensional code record further includes time limit information, and is not repeated here, but is incorporated herein by reference.

上文主要对网络设备进行介绍,下面结合图8对能够实现本申请各实施例的用户设备进行介绍。The network equipment is mainly introduced above, and the user equipment capable of implementing each embodiment of the present application is introduced below with reference to FIG. 8 .

图8示出根据本申请的另一个方面的一种获取二维码的目标数据信息的用户设备200,同样适用于图1所示的系统拓扑,该设备包括二一模块201、二二模块202、二三模块203、二四模块204、二五模块205以及二六模块206等。二一模块201,用于获取关于目标二维码的图像信息;二二模块202,用于获取所述目标二维码对应的二维码关联信息;二三模块203,用于向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;二四模块204,用于基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括确定所述目标二维码的解码信息;二五模块205,若在第一子解码过程完成之前,接收到所述网络设备返回的目标数据信息,停止所述第一子解码过程,其中,所述目标数据信息由所述网络设备经图像匹配过程获得,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的目标数据信息;二六模块206,用于呈现所述目标数据信息对应的页面信息。在此,所述图8中示出的二一模块201、二二模块202、二三模块203、二四模块204、二五模块205以及二六模块206对应的具体实施方式与前述图5中示出的步骤S201、步骤S202步骤S203、步骤S204、步骤S205以及步骤S206的实施例相同或相似,不再赘述,以引用的方式包含于此。FIG. 8 shows a user equipment 200 for acquiring target data information of a two-dimensional code according to another aspect of the present application, which is also applicable to the system topology shown in FIG. , the second and third modules 203 , the second and fourth modules 204 , the second and fifth modules 205 and the second and sixth modules 206 and so on. The two-one module 201 is used to obtain image information about the target two-dimensional code; the two-two module 202 is used to obtain the two-dimensional code associated information corresponding to the target two-dimensional code; the two-third module 203 is used to send the corresponding network The device sends a decoding request about the target two-dimensional code, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code; the second and fourth module 204 is configured to base on the target two-dimensional code The image information of the one-dimensional code is executed corresponding to the first sub-decoding process, wherein the first sub-decoding process includes determining the decoding information of the target two-dimensional code; the two-fifth module 205, if before the first sub-decoding process is completed, receives To the target data information returned by the network device, stop 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: A similar two-dimensional code corresponding to the image information and the corresponding target data information determined based on the similar two-dimensional code; the two-six module 206 is used to present page information corresponding to the target data information. Here, the specific implementations corresponding to the 21 module 201 , the 22 module 202 , the 23 module 203 , the 24 module 204 , the 25 module 205 and the 26 module 206 shown in FIG. 8 are the same as those shown in FIG. 5 . The illustrated embodiments of step S201 , step S202 , step S203 , step S204 , step S205 , and step S206 are the same or similar, and are not repeated here, but are incorporated herein by reference.

在一些实施方式中,所述设备还包括二七模块207(未示出),若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,用于向所述网络设备发送所述目标二维码的解码信息;用户设备接收所述网络设备返回的第一目标数据信息,其中,所述第一目标数据信息由所述网络设备基于所述解码信息通过第二子解码过程确定,所述第一子解码过程和第二子解码过程包含于解码过程,所述解码过程的耗时小于所述图像匹配过程的耗时。在另一些实施方式中,所述设备还包括二八模块208(未示出),若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,向所述网络设备发送所述目标二维码的解码信息;接收所述网络设备返回的第二目标数据信息,其中,所述图像匹配过程的耗时小于所述目标二维码的解码过程的耗时,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第二子解码过程包括所述网络设备基于所述解码信息确定所述目标二维码对应的第一目标数据信息。在此,所述二七模块207和二八模块208对应的具体实施方式与前述步骤S207和步骤S208的实施例相同或相似,不再赘述,以引用的方式包含于此。In some embodiments, the device further includes a two-seven module 207 (not shown), which is used to send the second target data information returned by 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 network device sends the decoding information of the target two-dimensional code; the user equipment receives the first target data information returned by the network device, wherein the first target data information is passed by the network device based on the decoding information. The second sub-decoding process determines that the first sub-decoding process and the second sub-decoding process are included in the decoding process, and the time-consuming of the decoding process is less than the time-consuming of the image matching process. In other embodiments, the device further includes a 28 module 208 (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 The network device sends the decoding information of the target two-dimensional code; receives the second target data information returned by the network device, wherein the time-consuming of the image matching process is less than the time-consuming of the decoding process of the target two-dimensional code. , the decoding process includes the first sub-decoding process and the second sub-decoding process, and the second sub-decoding process includes the network device determining the first target data corresponding to the target two-dimensional code based on the decoding information information. Here, the specific implementations corresponding to the 27 module 207 and the 28 module 208 are the same as or similar to the embodiments of the foregoing steps S207 and S208, and are not repeated here, but are incorporated herein by reference.

上文主要对能够实现本申请各实施例的网络设备与用户设备例进行介绍,本申请还提供了另一种用户设备,下面结合图9进行举例介绍。The foregoing mainly introduces examples of network equipment and user equipment capable of implementing various embodiments of the present application. The present application also provides another kind of user equipment, which is described below with reference to FIG. 9 as an example.

图9示出根据本申请另一个方面的一种获取目标二维码的目标数据信息的用户设备,该设备包括三一模块301、三二模块302、三三模块303、三四模块304、三五模块305以及三六模块306。三一模块301,用于获取关于目标二维码的图像信息;三二模块302,用于获取所述目标二维码对应的二维码关联信息;三三模块303,用于执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于解码信息确定所述目标二维码的第一目标数据信息;三四模块304,用于根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;三五模块305,若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,用于呈现所述第二目标数据信息对应的页面信息;三六模块306,若所述解码过程的耗时小于所述图像匹配过程的耗时,用于所述第一目标数据信息对应的页面信息。在此,所述图9中示出的三一模块301、三二模块302、三三模块303、三四模块304、三五模块305以及三六模块306对应的具体实施方式与前述图6中示出的步骤S301、步骤S302步骤S303、步骤S304、步骤S305以及步骤S306的实施例相同或相似,不再赘述,以引用的方式包含于此。Fig. 9 shows a user equipment for acquiring target data information of a target two-dimensional code according to another aspect of the present application, the device includes a 31 module 301, a 32 module 302, a 33 module 303, a 34 module 304, a 3 Five modules 305 and three six modules 306 . The three-one module 301 is used to obtain image information about the target two-dimensional code; the three-two module 302 is used to obtain the two-dimensional code associated information corresponding to the target two-dimensional code; the three-three module 303 is used to execute the information about the target two-dimensional code A decoding process of image information of a target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes acquiring the decoding information of the target two-dimensional code , the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; the third and fourth module 304 is used for according to the two-dimensional code associated information and the image of the target two-dimensional code information to perform an image matching process, wherein the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding second target data information based on the similar two-dimensional code; three-five module 305 , if the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, it is used to present the page information corresponding to the second target data information; module 306, if the time-consuming of the decoding process is less than The time-consuming of the image matching process is used for the page information corresponding to the first target data information. Here, the specific implementations corresponding to the 31 module 301 , the 32 module 302 , the 33 module 303 , the 34 module 304 , the 35 module 305 and the 36 module 306 shown in FIG. 9 are the same as those shown in FIG. 6 . The illustrated embodiments of step S301 , step S302 , step S303 , step S304 , step S305 and step S306 are the same or similar, and are not repeated here, but are incorporated herein by reference.

除上述各实施例介绍的方法和设备外,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机代码,当所述计算机代码被执行时,如前任一项所述的方法被执行。In addition to the methods and devices described in the above-mentioned embodiments, the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores computer codes, when the computer codes are executed, as in any of the previous The described method is executed.

本申请还提供了一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如前任一项所述的方法被执行。The present application also provides a computer program product, when the computer program product is executed by a computer device, the method according to any one of the preceding items is executed.

本申请还提供了一种计算机设备,所述计算机设备包括:The present application also provides a computer device, the computer device comprising:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个计算机程序;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 item.

图10示出了可被用于实施本申请中所述的各个实施例的示例性系统;Figure 10 illustrates an exemplary system that may be used to implement various embodiments described in this application;

如图10所示在一些实施例中,系统300能够作为各所述实施例中的任意一个上述设备。在一些实施例中,系统300可包括具有指令的一个或多个计算机可读介质(例如,系统存储器或NVM/存储设备320)以及与该一个或多个计算机可读介质耦合并被配置为执行指令以实现模块从而执行本申请中所述的动作的一个或多个处理器(例如,(一个或多个)处理器305)。As shown in FIG. 10, in some embodiments, the system 300 can function as any of the above-described devices in each of the described embodiments. In some embodiments, system 300 may include one or more computer-readable media (eg, system memory or NVM/storage device 320 ) having instructions and be coupled to the one or more computer-readable media and configured to execute Instructions to implement a module to perform one or more processors (eg, processor(s) 305 ) to perform the actions described herein.

对于一个实施例,系统控制模块310可包括任意适当的接口控制器,以向(一个或多个)处理器305中的至少一个和/或与系统控制模块310通信的任意适当的设备或组件提供任意适当的接口。For one embodiment, the system control module 310 may include any suitable interface controller to provide at least one of the processor(s) 305 and/or any suitable device or component in communication with the system control module 310 any appropriate interface.

系统控制模块310可包括存储器控制器模块330,以向系统存储器315提供接口。存储器控制器模块330可以是硬件模块、软件模块和/或固件模块。The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315 . The memory controller module 330 may be a hardware module, a software module, and/or a firmware module.

系统存储器315可被用于例如为系统300加载和存储数据和/或指令。对于一个实施例,系统存储器315可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,系统存储器315可包括双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。System memory 315 may be used, for example, to load and store data and/or instructions for system 300 . For one embodiment, system memory 315 may include any suitable volatile memory, eg, suitable DRAM. In some embodiments, system memory 315 may include double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).

对于一个实施例,系统控制模块310可包括一个或多个输入/输出(I/O)控制器,以向NVM/存储设备320及(一个或多个)通信接口325提供接口。For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide interfaces to NVM/storage device 320 and communication interface(s) 325 .

例如,NVM/存储设备320可被用于存储数据和/或指令。NVM/存储设备320可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。For example, NVM/storage device 320 may be used to store data and/or instructions. NVM/storage device 320 may include any suitable non-volatile memory (eg, flash memory) and/or may include any suitable non-volatile storage device(s) (eg, one or more hard drives ( HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives).

NVM/存储设备320可包括在物理上作为系统300被安装在其上的设备的一部分的存储资源,或者其可被该设备访问而不必作为该设备的一部分。例如,NVM/存储设备320可通过网络经由(一个或多个)通信接口325进行访问。NVM/storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessed by the device without necessarily being part of the device. For example, the NVM/storage device 320 is accessible via the communication interface(s) 325 over a network.

(一个或多个)通信接口325可为系统300提供接口以通过一个或多个网络和/或与任意其他适当的设备通信。系统300可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信。Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and/or protocols.

对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器(例如,存储器控制器模块330)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。For one embodiment, at least one of the processor(s) 305 may be packaged with the logic of one or more controllers of the system control module 310 (eg, the memory controller module 330 ). For one embodiment, at least one of the processor(s) 305 may be packaged 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 with the 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 a chip (SoC).

在各个实施例中,系统300可以但不限于是:服务器、工作站、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)。在各个实施例中,系统300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,系统300包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, system 300 may be, but is not limited to, a server, workstation, desktop computing device, or mobile computing device (eg, laptop computing device, handheld computing device, tablet computer, 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 touchscreen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits ( ASIC) and speakers.

需要注意的是,本申请可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在一个实施例中,本申请的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本申请的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本申请的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present application may be implemented in software and/or a combination of software and hardware, eg, an application specific integrated circuit (ASIC), a general purpose computer, or any other similar hardware device. In one embodiment, the software program of the present application may be executed by a processor to implement the steps or functions 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 drives or floppy disks, and the like. In addition, some steps or functions of the present application may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。本领域技术人员应能理解,计算机程序指令在计算机可读介质中的存在形式包括但不限于源文件、可执行文件、安装包文件等,相应地,计算机程序指令被计算机执行的方式包括但不限于:该计算机直接执行该指令,或者该计算机编译该指令后再执行对应的编译后程序,或者该计算机读取并执行该指令,或者该计算机读取并安装该指令后再执行对应的安装后程序。在此,计算机可读介质可以是可供计算机访问的任意可用的计算机可读存储介质或通信介质。In addition, a part of the present application can be applied as a computer program product, such as computer program instructions, which when executed by a computer, through the operation of the computer, can invoke or provide methods and/or technical solutions according to the present application. Those skilled in the art should understand that the existing forms of computer program instructions in computer-readable media include but are not limited to source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include but are not limited to 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 post-installation program. program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium that can be accessed by a computer.

通信介质包括藉此包含例如计算机可读指令、数据结构、程序模块或其他数据的通信信号被从一个系统传送到另一系统的介质。通信介质可包括有导的传输介质(诸如电缆和线(例如,光纤、同轴等))和能传播能量波的无线(未有导的传输)介质,诸如声音、电磁、RF、微波和红外。计算机可读指令、数据结构、程序模块或其他数据可被体现为例如无线介质(诸如载波或诸如被体现为扩展频谱技术的一部分的类似机制)中的已调制数据信号。术语“已调制数据信号”指的是其一个或多个特征以在信号中编码信息的方式被更改或设定的信号。调制可以是模拟的、数字的或混合调制技术。Communication media includes media by which communication signals containing, for example, computer readable instructions, data structures, program modules or other data are transmitted from one system to another. Communication media may include conducted transmission media such as cables and wires (eg, fiber optic, coaxial, etc.) and wireless (unconducted transmission) media capable of propagating energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared . Computer readable instructions, data structures, program modules or other data may be embodied, for example, as a modulated data signal in a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are altered or set in a manner that encodes information in the signal. Modulation can be analog, digital or hybrid modulation techniques.

作为示例而非限制,计算机可读存储介质可包括以用于存储诸如计算机可读指令、数据结构、程序模块或其它数据的信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动的介质。例如,计算机可读存储介质包括,但不限于,易失性存储器,诸如随机存储器(RAM,DRAM,SRAM);以及非易失性存储器,诸如闪存、各种只读存储器(ROM,PROM,EPROM,EEPROM)、磁性和铁磁/铁电存储器(MRAM,FeRAM);以及磁性和光学存储设备(硬盘、磁带、CD、DVD);或其它现在已知的介质或今后开发的能够存储供计算机系统使用的计算机可读信息/数据。By way of example and not limitation, computer-readable storage media may include volatile and non-volatile, readable storage media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Removable and non-removable media. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other media now known or later developed capable of storing data for computer systems Computer readable information/data used.

在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。Here, an embodiment according to the present application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, a trigger is The apparatus operates based on the aforementioned methods and/or technical solutions according to various embodiments of the present application.

对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Accordingly, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the application is to be defined by the appended claims rather than the foregoing description, which is therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in this application. Any reference signs in the claims shall not be construed as limiting the involved claim. Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the device claims can also be realized by one unit or means by means of software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular order.

Claims (20)

1.一种获取二维码的目标数据信息的方法,应用于网络设备,其中,所述方法包括:1. A method for acquiring target data information of a two-dimensional code, applied to a network device, wherein the method comprises: 接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括所述目标二维码对应的二维码关联信息及所述目标二维码的图像信息;Receive a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the two-dimensional code associated information corresponding to the target two-dimensional code and the image information of the target two-dimensional code; 执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;A decoding process of image information about the target two-dimensional code is performed, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes acquiring the information of the target two-dimensional code. Decoding information, the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information; 根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;An image matching process is performed 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 to: obtain a similar two-dimensional code corresponding to the image information and based on the image information The similar two-dimensional code determines the corresponding second target data information; 若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备。If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 若所述解码过程的耗时小于所述图像匹配过程的耗时,停止所述图像匹配过程,并将所述第一目标数据信息返回至所述用户设备。If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the image matching process is stopped, and the first target data information is returned to the user equipment. 3.根据权利要求2所述的方法,其中,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息。3. The method according to claim 2, wherein the first sub-decoding process comprises receiving decoding information about the target two-dimensional code sent by the user equipment. 4.根据权利要求1或2所述的方法,其中,所述第一子解码过程包括根据所述二维码的图像信息执行解码确定对应的解码信息。4. The method according to claim 1 or 2, wherein the first sub-decoding process comprises performing decoding to determine corresponding decoding information according to image information of the two-dimensional code. 5.根据所述权利要求1至4中任一项所述的方法,其中,所述若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备,包括:5. The method according to any one of claims 1 to 4, wherein, if the time consuming of the image matching process is less than or equal to the time consuming of the decoding process, the second target data Information is returned to the user equipment, including: 若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,停止所述解码过程,并将所述第二目标数据信息返回至所述用户设备。If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the decoding process is stopped, and the second target data information is returned to the user equipment. 6.根据权利要求1至5中任一项所述的方法,其中,所述执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息,包括:6. The method according to any one of claims 1 to 5, wherein the decoding process of the image information about the target two-dimensional code is performed, wherein the decoding process comprises a first sub-decoding process and a first sub-decoding process Two sub-decoding processes, the first sub-decoding process includes acquiring decoding information of the target two-dimensional code, and the second sub-decoding process includes determining first target data information of the target two-dimensional code based on the decoding information ,include: 根据所述二维码关联信息确定对应的一个或多个二维码;Determine one or more corresponding two-dimensional codes according to the two-dimensional code associated information; 根据所述目标二维码的图像信息与所述一个或多个二维码进行图像匹配过程,其中,所述图像匹配过程用于:从一个或多个二维码中获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息。An image matching process is performed with the one or more two-dimensional codes according to the image information of the target two-dimensional code, wherein the image matching process is used to: obtain and match the image information from one or more two-dimensional codes The corresponding similar two-dimensional codes and the corresponding second target data information are determined based on the similar two-dimensional codes. 7.根据权利要求6所述的方法,其中,所述根据所述二维码关联信息确定对应的一个或多个二维码,包括:7. The method according to claim 6, wherein the determining of the corresponding one or more two-dimensional codes according to the two-dimensional code associated information comprises: 根据所述二维码关联信息在对应的二维码数据库中查询确定对应的一条或多条二维码记录,其中,所述二维码数据库中包含多条二维码记录,每条二维码记录包含该二维码的图像信息、目标数据信息以及该二维码对应的二维码关联信息;One or more corresponding two-dimensional code records are queried and determined in the corresponding two-dimensional code database according to the two-dimensional code associated information, wherein the two-dimensional code database contains multiple two-dimensional code records, and each two-dimensional code record contains a plurality of two-dimensional code records. The code record includes the image information of the two-dimensional code, the target data information and the two-dimensional code associated information corresponding to the two-dimensional code; 其中,所述根据所述目标二维码的图像信息与所述一个或多个二维码进行图像匹配过程,其中,所述图像匹配过程用于:从一个或多个二维码中获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息,包括:Wherein, the image matching process is performed with the one or more two-dimensional codes according to the image information of the target two-dimensional code, wherein, the image matching process is used to: obtain from one or more two-dimensional codes and The similar two-dimensional code corresponding to the image information and the corresponding second target data information determined based on the similar two-dimensional code, including: 根据所述目标二维码的图像信息与所述一条或多条二维码记录中的二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:从一条或多条二维码记录的图像信息中获取与所述图像信息相对应的相似二维码记录以及基于所述相似二维码记录确定对应的第二目标数据信息,所述第二目标数据信息为所述相似二维码记录中的二维码的目标数据信息。An image matching process is performed 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: from one or more two-dimensional code records Obtaining a similar two-dimensional code record corresponding to the image information from the image information recorded by the two-dimensional code and determining the corresponding second target data information based on the similar two-dimensional code record, where the second target data information is the similar The target data information of the QR code in the QR code record. 8.根据权利要求7所述的方法,其中,所述图像匹配过程的匹配结果还包括匹配失败;8. The method of claim 7, wherein the matching result of the image matching process further comprises a matching failure; 其中,所述方法包括:Wherein, the method includes: 若所述图像匹配过程的匹配结果包含匹配失败,将所述第一目标数据信息返回至所述用户设备。If the matching result of the image matching process includes a matching failure, the first target data information is returned to the user equipment. 9.根据权利要求8所述的方法,其中,所述方法还包括:9. The method of claim 8, wherein the method further comprises: 根据所述图像信息、所述第一目标数据信息以及所述二维码关联信息生成关于所述目标二维码的目标二维码记录,并将所述目标二维码记录添加至所述二维码数据库。Generate 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 add the target two-dimensional code record to the two QR code database. 10.根据权利要求7至9中任一项所述的方法,其中,所述二维码记录还包括该二维码的时间限制信息。10. The method according to any one of claims 7 to 9, wherein the two-dimensional code record further includes time limit information of the two-dimensional code. 11.根据权利要求10所述的方法,其中,所述方法还包括:11. The method of claim 10, wherein the method further comprises: 若所述多条二维码记录中存在一条二维码记录的记录时间大于或等于所述时间限制信息,从所述二维码数据库中删除该条二维码记录。If the record 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 two-dimensional code record is deleted from the two-dimensional code database. 12.根据权利要求6至11中任一项所述的方法,其中,所述二维码关联信息包括以下至少任一项:12. The method according to any one of claims 6 to 11, wherein the two-dimensional code associated information comprises at least any one of the following: 所述用户设备当前连接的无线接入点的标识信息;Identification information of the wireless access point to which the user equipment is currently connected; 所述用户设备的当前位置信息。Current location information of the user equipment. 13.一种获取二维码的目标数据信息的方法,应用于用户设备,其中,所述方法包括:13. A method for acquiring target data information of a two-dimensional code, applied to user equipment, wherein the method comprises: 获取关于目标二维码的图像信息;Get image information about the target QR code; 获取所述目标二维码对应的二维码关联信息;obtaining the QR code associated information corresponding to the target QR code; 向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;Send a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code; 基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括确定所述目标二维码的解码信息;Execute 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 the decoding information of the target two-dimensional code; 若在第一子解码过程完成之前,接收到所述网络设备返回的第二目标数据信息,停止所述第一子解码过程,其中,所述第二目标数据信息由所述网络设备经图像匹配过程获得,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;If the second target data information returned by the network device is received before the completion of the first sub-decoding process, the first sub-decoding process is stopped, wherein the second target data information is matched by the network device through the image The process is obtained, and the image matching process is used to: obtain a similar two-dimensional code corresponding to the image information and determine the corresponding second target data information based on the similar two-dimensional code; 呈现所述第二目标数据信息对应的页面信息。The page information corresponding to the second target data information is presented. 14.根据权利要求13所述的方法,其中,所述方法还包括:14. The method of claim 13, wherein the method further comprises: 若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,向所述网络设备发送所述目标二维码的解码信息;If the first sub-decoding process is completed and the second target data information returned by the network device is not received, the decoding information of the target two-dimensional code is sent to the network device; 接收所述网络设备返回的第一目标数据信息,其中,所述第一目标数据信息由所述网络设备基于所述解码信息通过第二子解码过程确定,所述第一子解码过程和第二子解码过程包含于解码过程,所述解码过程的耗时小于所述图像匹配过程的耗时。Receive first target data information returned by the network device, wherein the first target data information is determined by the network device through a second sub-decoding process based on the decoding information, the first sub-decoding process and the second sub-decoding process The sub-decoding process is included in the decoding process, and the time-consuming of the decoding process is less than the time-consuming of the image matching process. 15.根据权利要求13所述的方法,其中,所述方法还包括:15. The method of claim 13, wherein the method further comprises: 若所述第一子解码过程完成,且未接收到所述网络设备返回的第二目标数据信息,向所述网络设备发送所述目标二维码的解码信息;If the first sub-decoding process is completed and the second target data information returned by the network device is not received, the decoding information of the target two-dimensional code is sent to the network device; 接收所述网络设备返回的第二目标数据信息,其中,所述图像匹配过程的耗时小于所述目标二维码的解码过程的耗时,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第二子解码过程包括所述网络设备基于所述解码信息确定所述目标二维码对应的第一目标数据信息。Receive the second target data information returned by the network device, wherein the time-consuming of the image matching process is less than the time-consuming of the decoding process of the target two-dimensional code, and the decoding process includes the first sub-decoding process and A second sub-decoding process, where the second sub-decoding process includes the network device determining, based on the decoding information, first target data information corresponding to the target two-dimensional code. 16.一种获取二维码的目标数据信息的方法,应用于用户设备,其中,所述方法包括:16. A method for acquiring target data information of a two-dimensional code, applied to user equipment, wherein the method comprises: 获取关于目标二维码的图像信息;Get image information about the target QR code; 获取所述目标二维码对应的二维码关联信息;obtaining the QR code associated information corresponding to the target QR code; 执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息,所述第二子解码过程包括基于解码信息确定所述目标二维码的第一目标数据信息;performing a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, wherein the first sub-decoding process includes acquiring the target two-dimensional code decoding information of the code, the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; 根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;An image matching process is performed 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 to: obtain a similar two-dimensional code corresponding to the image information and based on the image information The similar two-dimensional code determines the corresponding second target data information; 若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,呈现所述第二目标数据信息对应的页面信息;If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, present page information corresponding to the second target data information; 若所述解码过程的耗时小于所述图像匹配过程的耗时,呈现所述第一目标数据信息对应的页面信息。If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the page information corresponding to the first target data information is presented. 17.一种获取二维码的目标数据信息的方法,其中,所述方法包括:17. A method for acquiring target data information of a two-dimensional code, wherein the method comprises: 用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code; 所述用户设备获取所述目标二维码对应的二维码关联信息;acquiring, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code; 所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code; 所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code; 所述网络设备执行关于所述二维码的图像信息的解码过程,其中,所述解码过程包括第一子解码过程和第二子解码过程,所述第一字解码过程包括根据所述目标二维码的图像信息执行解码确定对应的解码信息,所述第二子解码过程基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the two-dimensional code, wherein the decoding process includes a first sub-decoding process and a second sub-decoding process, and the first word decoding process includes according to the target two. The image information of the two-dimensional code is decoded to determine corresponding decoding information, and the second sub-decoding process determines the first target data information of the target two-dimensional code based on the decoding information; 所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code; 若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;所述用户设备接收所述第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息;If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the first target data information is returned to the user equipment; the user equipment receives the first target data information, and presents the page information corresponding to the first target data information; 若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息。If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, the second target data information is returned to the user equipment; the user equipment receives the second target data information, and presents Page information corresponding to the second target data information. 18.一种获取二维码的目标数据信息的方法,其中,所述方法包括:18. A method for acquiring target data information of a two-dimensional code, wherein the method comprises: 用户设备获取关于目标二维码的图像信息;The user equipment obtains image information about the target QR code; 所述用户设备获取对应所述目标二维码的二维码关联信息;obtaining, by the user equipment, two-dimensional code associated information corresponding to the target two-dimensional code; 所述用户设备向对应的网络设备发送关于所述目标二维码的解码请求,其中,所述解码请求包括所述二维码关联信息及所述目标二维码的图像信息;The user equipment sends a decoding request about the target two-dimensional code to the corresponding network device, wherein the decoding request includes the two-dimensional code associated information and the image information of the target two-dimensional code; 所述用户设备基于所述目标二维码的图像信息执行对应第一子解码过程,其中,所述第一子解码过程包括获取所述目标二维码的解码信息;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 acquiring decoding information of the target two-dimensional code; 所述网络设备接收对应用户设备发送的、关于目标二维码的解码请求,其中,所述解码请求包括对应的二维码关联信息及所述目标二维码的图像信息;The network device receives a decoding request about the target two-dimensional code sent by the corresponding user equipment, wherein the decoding request includes the corresponding two-dimensional code association information and the image information of the target two-dimensional code; 所述网络设备根据所述二维码关联信息及所述目标二维码的图像信息进行图像匹配过程,其中,所述图像匹配过程用于:获取与所述图像信息相对应的相似二维码以及基于所述相似二维码确定对应的第二目标数据信息;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, wherein the image matching process is used for: acquiring a similar two-dimensional code corresponding to the image information and determining the corresponding second target data information based on the similar two-dimensional code; 若所述用户设备在第一子解码过程完成之前,接收到所述网络设备返回的第二目标数据信息,停止所述第一子解码过程,呈现所述第二目标数据信息对应的页面信息;If the user equipment receives the second target data information returned by the network device before the first sub-decoding process is completed, stops the first sub-decoding process, and presents 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 device is not received, send the decoding information of the target two-dimensional code to the network device; 所述网络设备执行关于所述目标二维码的图像信息的解码过程,其中,所述解码过程包括所述第一子解码过程和第二子解码过程,所述第一子解码过程包括接收所述用户设备发送的关于所述目标二维码的解码信息,所述第二子解码过程包括基于所述解码信息确定所述目标二维码的第一目标数据信息;The network device performs a decoding process on the image information of the target two-dimensional code, wherein the decoding process includes the first sub-decoding process and a second sub-decoding process, and the first sub-decoding process includes receiving the received data. Decoding information about the target two-dimensional code sent by the user equipment, and the second sub-decoding process includes determining the first target data information of the target two-dimensional code based on the decoding information; 若所述图像匹配过程的耗时小于或等于所述解码过程的耗时,将所述第二目标数据信息返回至所述用户设备;所述用户设备接收所述网络设备返回的第二目标数据信息,并呈现所述第二目标数据信息对应的页面信息;If the time-consuming of the image matching process is less than or equal to the time-consuming of the decoding process, return the second target data information to the user equipment; the user equipment receives the second target data returned by the network device information, and present the page information corresponding to the second target data information; 若所述解码过程的耗时小于所述图像匹配过程的耗时,将所述第一目标数据信息返回至所述用户设备;所述用户设备接收所述网络设备返回的第一目标数据信息,并呈现所述第一目标数据信息对应的页面信息。If the time-consuming of the decoding process is less than the time-consuming of the image matching process, the first target data information is returned to the user equipment; the user equipment receives the first target data information returned by the network device, and present the page information corresponding to the first target data information. 19.一种获取二维码的目标数据信息的设备,其中,该设备包括:19. A device for acquiring target data information of a two-dimensional code, wherein the device comprises: 处理器;以及processor; and 被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如权利要求1至16中任一项所述方法的操作。a memory arranged to store computer-executable instructions which, when executed, cause the processor to perform the operations of the method of any of claims 1 to 16. 20.一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如权利要求1至16中任一项所述方法的操作。20. A computer-readable medium storing instructions that, when executed, cause a system to operate the method of any of claims 1 to 16.
CN201910903228.4A 2019-09-24 2019-09-24 Method and equipment for acquiring target data information of two-dimension code Active CN110751003B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=69276912

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN110751003B (en)

Cited By (1)

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

Citations (5)

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

Cited By (2)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2019029455A1 (en) Payment method and apparatus and device thereof
CN110336733B (en) A method and device for presenting emoticons
WO2020108152A1 (en) Method, device and electronic equipment for preventing misuse of identity data
CN111325574A (en) Method and equipment for providing presence information
CN110276027B (en) Method and equipment for information push based on two-dimension code recognition
WO2023124656A1 (en) Methods and devices for storing user-defined data information
CN110751003B (en) Method and equipment for acquiring target data information of two-dimension code
CN111523039A (en) A method and device for processing a book update request in a reading application
CN112866302B (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
CN110750162B (en) Input method and device
US20200311504A1 (en) Barcode generation methods and apparatuses
CN116610737A (en) Datagin data synchronization method, device, equipment and medium
CN112711955A (en) NFC information transmission method, NFC information transmission device and NFC terminal
CN105930137B (en) A kind of data processing method and device of cross-terminal equipment platform
CN110784392B (en) Method and equipment for acquiring reading reminding information
CN110460642B (en) A method and device for managing reading mode
CN110784596B (en) Method and equipment for processing event information
CN111666250A (en) Method and equipment for processing book update prompting request information in reading application
CN110677919B (en) Method and equipment for sharing and determining income based on wireless access point
CN109542937B (en) A method and device for searching user contact information
CN111610849B (en) A method and device for preventing association startup between applications
US20240406736A1 (en) System and method for management of secured devices
CN112507875A (en) Method and equipment for detecting video repetition
CN114817806A (en) Method, device, medium and program product for jumping applications

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 80536, Shanghai

Patentee after: Shanghai Zongzhang Technology Group Co.,Ltd.

Country or region after: China

Address before: Room 80536, Shanghai

Patentee before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd.

Country or region before: China