WO2014161425A1 - Method for processing two-dimensional code and mobile terminal - Google Patents
Method for processing two-dimensional code and mobile terminal Download PDFInfo
- Publication number
- WO2014161425A1 WO2014161425A1 PCT/CN2014/073535 CN2014073535W WO2014161425A1 WO 2014161425 A1 WO2014161425 A1 WO 2014161425A1 CN 2014073535 W CN2014073535 W CN 2014073535W WO 2014161425 A1 WO2014161425 A1 WO 2014161425A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- code
- dimensional code
- content
- display
- parsing
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
Definitions
- the present application relates to information processing, and in particular, to a two-dimensional code processing method and a mobile terminal. Background technique
- the two-dimensional code is a black and white graphic that records the data symbol information in a plane (two-dimensional direction) with a certain geometric pattern.
- the code is used to skillfully use the internal logic of the computer.
- the concept of ", "1" bitstream uses several geometric shapes corresponding to binary to represent literal value information.
- the method for information interaction based on the two-dimensional code is specifically: the PC or the third party terminal displays the accessed Weibo or WeChat content, and the displayed content includes the two-dimensional code; the user reads the photo by using a mobile terminal such as a cellular phone.
- the QR code content can be text, short message, link address, personal business card, email address, phone number, etc.
- the existing method for information interaction based on the two-dimensional code only provides a way for the mobile terminal to read the two-dimensional code displayed on the PC or the third-party terminal for information interaction, and the method requires the mobile terminal to display the two-dimensional code. Taking pictures is inconvenient. If the mobile terminal can directly recognize the two-dimensional code in the local access content, it will further meet the demand, but there is no such technology at present. Summary of the invention
- the present application provides a two-dimensional code processing method, which can directly recognize a two-dimensional code displayed locally, and perform information interaction operations based on a two-dimensional code.
- the present application provides a mobile terminal capable of directly recognizing a locally displayed two-dimensional code, and binarizing the information interaction operation based on the two-dimensional code.
- a two-dimensional code processing method may include: displaying a two-dimensional code, and storing the two-dimensional code at a predetermined address in the storage medium;
- the method may further include: generating, in response to receiving a screen touch operation on the two-dimensional code, screen touch information corresponding to the screen touch operation.
- the displaying the parsed two-dimensional code content may include: displaying the parsed two-dimensional code content based on the screen touch information.
- the screen touch information is a click touch information
- the displaying the parsed two-dimensional code content may include: based on the click touch information, in the immediate vicinity The content of the two-dimensional code is displayed at the position of the two-dimensional code;
- the screen touch information is double-click touch information
- the displaying the parsed two-dimensional code content may include performing enlarged display on the two-dimensional code based on the double-click touch information.
- the screen touch information is a sliding touch information
- the displaying the decoded two-dimensional code content may include: based on the sliding touch information, in the immediate vicinity of the two-dimensional code The QR code content is displayed at the location.
- the parsing the two-dimensional code content by the two-dimensional code may include:
- the local analytic function module is called, and the analytic function module recognizes the binary string from the two-dimensional code, and parses the binary string to obtain the two-dimensional code content.
- the parsing the two-dimensional code content by the two-dimensional code may include:
- the two-dimensional code content fed back by the background server is received, and the two-dimensional code content is obtained by parsing the binary character string included in the two-dimensional code recognition instruction.
- a mobile terminal may include: a display unit, displaying a two-dimensional code;
- a storage unit storing a two-dimensional code at a predetermined address in the storage medium
- a generating unit in response to receiving the screen touch information about the two-dimensional code, generating an analytical display instruction, and transmitting the analytical display instruction to the parsing unit;
- the parsing unit receives the parsing display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the storage medium by the predetermined address, parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the a display unit, wherein the display unit displays the parsed two-dimensional code content.
- the generating unit in response to receiving a screen touch operation about the two-dimensional code, may further generate screen touch information corresponding to the screen touch operation, and The display unit may display the parsed two-dimensional code content based on the screen touch information.
- the display unit can display the two-dimensional position at the position immediately adjacent to the two-dimensional code based on the click touch information.
- the display unit may enlarge the two-dimensional code content based on the double tap touch information.
- the generating unit may generate sliding touch information, and the display unit may display the two-dimensional code content at a position immediately adjacent to the two-dimensional code based on the sliding touch information.
- the parsing unit may include a two-dimensional code reading unit and a first analytic function module.
- the two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the first analytic function module.
- the first analytic function module parses the two-dimensional code content from the received two-dimensional code, and transmits the two-dimensional code content to the display unit.
- the parsing unit may include a two-dimensional code reading unit and a second analytic function module.
- the two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the second analytic function module.
- the second analytic function module identifies a binary character string from the two-dimensional code, and sends a two-dimensional code identification instruction including a binary character string to the background server; receiving the two-dimensional code content fed back by the background server, the two-dimensional code The content is obtained by parsing the binary string contained in the two-dimensional code recognition instruction.
- a computer readable medium storing a computer program, when executed, causing a computer to perform a processing method, the processing method comprising: displaying a two-dimensional code and in a storage medium
- the predetermined address stores the two-dimensional code; in response to receiving the screen touch operation on the two-dimensional code, generating an analytical display instruction; acquiring, according to the analytical display instruction, a predetermined address corresponding to the two-dimensional code, and reading the two-dimensional code from the predetermined address
- the two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed.
- a two-dimensional code is displayed, and a two-dimensional code is stored at a predetermined address in the storage medium; and in response to receiving the screen touch information about the two-dimensional code, a predetermined correspondence corresponding to the two-dimensional code is acquired.
- Address, reading a two-dimensional code from the predetermined address, and parsing the two-dimensional code content from the two-dimensional code The parsed QR code content is displayed.
- the invention is based on the screen touch operation, and realizes that the mobile terminal directly recognizes the two-dimensional code displayed locally, so that no other mobile terminal is required to take a picture of the displayed two-dimensional code to assist in completing the two-dimensional code recognition, and the two-dimensional code is also compressed. Information interaction.
- FIG. 1 is a schematic flowchart of a method for processing a two-dimensional code according to an embodiment of the present technology
- FIG. 2 is an example of displaying a two-dimensional code on a touch screen of a mobile terminal according to an embodiment of the present disclosure
- FIG. 3 is an example of displaying a two-dimensional code content on a touch screen of a mobile terminal according to an embodiment of the present technology
- FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present technology.
- the technology is based on the screen touch operation, and the mobile terminal directly recognizes the two-dimensional code displayed locally, without the need for other mobile terminals to take pictures of the displayed two-dimensional code to assist in completing the two-dimensional code recognition, so that the information based on the two-dimensional code is interoperated. Get cylinderized.
- FIG. 1 is a schematic flowchart of a two-dimensional code processing method according to an embodiment of the present technology, the method may include the following steps:
- Step 101 Display a two-dimensional code, and store the two-dimensional code at a predetermined address in the storage medium.
- the mobile terminal displays the accessed Weibo or WeChat content, and the displayed content includes a two-dimensional code.
- a predetermined address in the storage medium of the mobile terminal can be assigned to the two-dimensional code, and the two-dimensional code is stored to the predetermined address.
- Step 102 in response to receiving a screen touch operation on the two-dimensional code, generating an analytical display instruction.
- the mobile terminal may generate an analytical display instruction to indicate that the content represented by the two-dimensional code is parsed and displayed. Parsed the QR code content.
- screen touch information may also be generated in response to receiving a screen touch operation with respect to the two-dimensional code.
- the screen touch operation may include clicking a displayed two-dimensional code on the screen, double-clicking the displayed two-dimensional code, or sliding the two-dimensional code, and the like.
- screen touch operations To generate different screen touch information to indicate that different screen touch operations are received. For example: When the touch operation of the screen is to click the two-dimensional code, a click touch information is generated, and when the touch operation of the screen is double-clicking the two-dimensional code, a double-click touch information is generated, and when the touch operation of the screen is a sliding operation on the two-dimensional code, Generate sliding touch information.
- the sliding touch information is generated when the screen touch operation is a sliding operation on the two-dimensional code and when the starting position of the sliding touch is within the position range in which the two-dimensional code is located.
- examples of the screen touch operation and the screen touch information are not limited thereto, and those skilled in the art can arbitrarily set as needed, and an implementation manner of generating screen touch information in response to receiving a screen touch operation on the two-dimensional code is optional. It will be understood by those skilled in the art that the specific operation of the touch screen by the user may not be distinguished, but in response to receiving any operation of the user on the touch screen, the parsing display instruction is generated without generating the screen touch information.
- Step 103 Acquire a predetermined address corresponding to the two-dimensional code according to the analysis display instruction, read the two-dimensional code from the predetermined address, parse the two-dimensional code content, and display the analyzed two-dimensional code content.
- the content of the two-dimensional code can be analyzed, and the parsed content can be displayed based on the screen touch information.
- the parsed content can be displayed based on the screen touch information.
- Method 1 After the mobile terminal reads the two-dimensional code, the local analytic function module is called, and the analytic function module recognizes the binary string from the two-dimensional code, and then parses the binary string to obtain the two-dimensional code content.
- the analytic function module includes a function for parsing the two-dimensional code, and the two-dimensional code can be parsed into two-dimensional code content.
- the analytic function module may be added to a client such as Weibo or WeChat. When needed, the client calls the analytic function module to parse the two-dimensional code.
- Manner 2 The mobile terminal identifies the binary string from the two-dimensional code, and sends a two-dimensional code identification instruction including the binary string to the background server; and receives the two-dimensional code content fed back by the background server, where the two-dimensional code content is from Obtained from the analysis of the binary string contained in the two-dimensional code recognition instruction.
- the background server receives the two-dimensional code identification instruction, parses the binary character string to obtain the two-dimensional code content, and feeds back the two-dimensional code content to the mobile terminal.
- corresponding screen touch information is also generated for different screen touch operations.
- the parsed two-dimensional code content can be displayed based on the screen touch information. Different display modes can be used based on different screen touch information.
- the display of the extracted two-dimensional code content may include: based on the click touch information, in the next two The QR code content is displayed at the position of the dimension code.
- the display of the parsed two-dimensional code content may include displaying the two-dimensional code in an enlarged manner based on the double-click touch information.
- the displaying the parsed two-dimensional code content may include displaying the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information.
- the touch screen of the mobile terminal is shown, and a two-dimensional code is displayed on the screen.
- the user can perform a touch operation on the two-dimensional code to display the content of the two-dimensional code.
- the two-dimensional code content can be displayed on the top of the two-dimensional code.
- the content of the two-dimensional code is specifically the web address "web.qq. Com".
- the specific display position of the content of the two-dimensional code is not limited thereto, and those skilled in the art can arbitrarily set as needed, such as being displayed below the two-dimensional code, the right side, and the like.
- the QR code content can be text, text message, link address, personal business card, email address, phone number, etc.
- the content of the two-dimensional code can be further manipulated, such as copying and pasting.
- the link address can also be clicked to perform corresponding access.
- the method can include the following steps:
- Step 401 The mobile terminal displays the content accessed by the user, where the content includes a two-dimensional code, and stores the two-dimensional code at a predetermined address in the storage medium of the mobile terminal.
- the content accessed by the user may be Weibo content, etc.
- the QR code included in the content may indicate various information, such as a phone number, a user nickname, an account number, a link address, and the like.
- Step 402 The mobile terminal receives a sliding operation of the touch screen of the mobile terminal by the user, and generates an analytical display instruction.
- the sliding touch information is also generated.
- Step 403 The mobile terminal acquires a predetermined address corresponding to the two-dimensional code, and reads the two-dimensional code from the predetermined address.
- Step 404 the mobile terminal identifies a binary string from the two-dimensional code, and will include a binary word.
- the QR code identification instruction of the string is sent to the background server.
- the QR code can use a number of geometric shapes corresponding to the binary to represent the literal value information, and the corresponding binary string can be identified from the two-dimensional code.
- Step 405 The background server parses the binary character string included in the two-dimensional code recognition instruction to obtain the two-dimensional code content, and feeds back the two-dimensional code content to the mobile terminal.
- the two-dimensional code content corresponding to the two-dimensional code is a link address.
- this is just an example, and the content of the two-dimensional code is not limited to this.
- Step 406 The mobile terminal displays the two-dimensional code content fed back by the background server.
- the mobile terminal can display the two-dimensional code content such as the link address at the position immediately adjacent to the two-dimensional code based on the sliding touch information.
- Step 407 The user performs a desired operation on the content of the two-dimensional code.
- a user can click on a link address to access a link address.
- the user can perform an operation of copying, pasting, or the like as described above on the displayed two-dimensional code content. It will be apparent to those skilled in the art that the method may end without step 407 after step 406 because in some cases, the user may only need to view the displayed two-dimensional code content without any action.
- a two-dimensional code is displayed, and a two-dimensional code is stored at a predetermined address in the storage medium; in response to receiving a screen touch operation on the two-dimensional code, a predetermined address corresponding to the two-dimensional code is acquired, and the predetermined address is read from the predetermined address Taking the two-dimensional code, the two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed.
- the technology is based on the screen touch operation, so that the mobile terminal directly recognizes the two-dimensional code displayed locally, so that no other mobile terminal is required to take a picture of the displayed two-dimensional code to assist in the completion of the two-dimensional code recognition, and the two-dimensional code is also compressed. Information interaction.
- the mobile terminal can include:
- Display unit displaying a two-dimensional code
- a storage unit that stores a two-dimensional code at a predetermined address in a storage medium of the mobile terminal; a generating unit that, in response to receiving a screen touch operation on the two-dimensional code, generates an analytical display instruction, and sends the analytical display instruction to the parsing unit ;
- the parsing unit receives the parsing display command, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the display Unit
- the display unit displays the parsed QR code content.
- the generating unit may further generate screen touch information corresponding to the screen touch operation. For example, when the screen touch operation is a click operation, the generating unit may generate click touch information, and the display unit may display the two-dimensional code content at a position immediately adjacent to the two-dimensional code based on the click touch information;
- the generating unit may generate double-click touch information, and the display unit may display the two-dimensional code content in an enlarged manner based on the double-click touch information.
- the generating unit may generate a sliding touch information, and the display unit may display the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information.
- the screen touch operation is a sliding operation
- the generating unit may generate the sliding touch information.
- the display unit may display the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information.
- the parsing unit may include a two-dimensional code reading unit and a first analytic function module.
- the two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the first analytic function module.
- the first analytic function module parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the display unit.
- the parsing unit may include a two-dimensional code reading unit and a second parsing function module.
- the two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the second analytic function module.
- the second analytic function module identifies a binary character string from the two-dimensional code, and sends a two-dimensional code identification instruction including the binary character string to the background server; receiving the two-dimensional code content fed back by the background server, the two-dimensional The code content is obtained by parsing the binary string contained in the two-dimensional code recognition instruction.
- a computer program stored in a computer readable medium, which when executed causes a computer to perform a processing method, the processing method comprising: displaying a two-dimensional code and in a storage medium
- the predetermined address stores the two-dimensional code; in response to receiving the screen touch operation on the two-dimensional code, generating an analytical display instruction; acquiring, according to the analytical display instruction, a predetermined address corresponding to the two-dimensional code, and reading the two-dimensional code from the predetermined address
- the two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed.
- a computer readable medium storing a computer program
- the computer program when executed, causes the computer to perform a processing method, the processing method comprising: displaying a two-dimensional code, and storing the two-dimensional code at a predetermined address in the storage medium; generating an analysis in response to receiving a screen touch operation on the two-dimensional code Displaying a command; acquiring a predetermined address corresponding to the two-dimensional code based on the analysis display command, reading the two-dimensional code from the predetermined address, analyzing the two-dimensional code content from the two-dimensional code, and displaying the analyzed two-dimensional code content.
- the user can read the two-dimensional code content by using the gesture of the single button on the screen, and no other mobile terminal is required to take the photo of the displayed two-dimensional code to assist in the completion of the two-dimensional code recognition.
- the mobile terminal directly recognizes the content of the locally displayed two-dimensional code, and implements the information interaction operation based on the two-dimensional code.
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
二维码处理方法及移动终端 技术领域 Two-dimensional code processing method and mobile terminal
本申请涉及信息处理, 尤其涉及二维码处理方法及移动终端。 背景技术 The present application relates to information processing, and in particular, to a two-dimensional code processing method and a mobile terminal. Background technique
二维码, 是用某种特定的几何图形按一定规律在平面 (二维方向上)分 布的黑白相间的图形记录数据符号信息的, 在代码编制上巧妙地利用构成计 算机内部逻辑基础的" 0"、 "1 "比特流的概念, 使用若干个与二进制相对应的 几何形体来表示文字数值信息。 The two-dimensional code is a black and white graphic that records the data symbol information in a plane (two-dimensional direction) with a certain geometric pattern. The code is used to skillfully use the internal logic of the computer. The concept of ", "1" bitstream uses several geometric shapes corresponding to binary to represent literal value information.
随着移动终端的普及, 二维码的应用越来越广泛, 越来越多的用户通过 微博或者微信等方式用二维码分享自己的信息。 目前, 基于二维码进行信息 交互的方法具体为: PC或第三方终端展示访问的微博或微信内容, 展示的 内容中包含二维码; 用户采用诸如蜂窝电话等的移动终端通过拍照读取 PC或 第三方终端显示的二维码, 以获取二维码内容。 二维码内容可以是文本、 短 信、 链接地址、 个人名片、 邮件地址、 电话等。 With the popularity of mobile terminals, the application of two-dimensional codes is more and more widespread, and more and more users share their information with two-dimensional codes through microblogging or WeChat. At present, the method for information interaction based on the two-dimensional code is specifically: the PC or the third party terminal displays the accessed Weibo or WeChat content, and the displayed content includes the two-dimensional code; the user reads the photo by using a mobile terminal such as a cellular phone. The QR code displayed by the PC or a third-party terminal to obtain the QR code content. The QR code content can be text, short message, link address, personal business card, email address, phone number, etc.
然而, 现有的基于二维码进行信息交互的方法仅仅提供了由移动终端读 取 PC上或者第三方终端展示的二维码进行信息交互的方式, 该方式需要移动 终端对展示的二维码进行拍照, 操作不便。 如果移动终端能直接识别出本地 访问内容中的二维码, 将进一步满足需求, 但目前还没有这方面的技术。 发明内容 However, the existing method for information interaction based on the two-dimensional code only provides a way for the mobile terminal to read the two-dimensional code displayed on the PC or the third-party terminal for information interaction, and the method requires the mobile terminal to display the two-dimensional code. Taking pictures is inconvenient. If the mobile terminal can directly recognize the two-dimensional code in the local access content, it will further meet the demand, but there is no such technology at present. Summary of the invention
本申请提供了二维码处理方法, 该方法能够直接识别出本地显示的二维 码, 筒化基于二维码的信息交互操作。 The present application provides a two-dimensional code processing method, which can directly recognize a two-dimensional code displayed locally, and perform information interaction operations based on a two-dimensional code.
本申请提供了移动终端,该移动终端能够直接识别出本地显示的二维码, 筒化基于二维码的信息交互操作。 The present application provides a mobile terminal capable of directly recognizing a locally displayed two-dimensional code, and binarizing the information interaction operation based on the two-dimensional code.
根据本技术的一个方面, 提供了一种二维码处理方法, 该方法可以包括: 显示二维码, 并在存储介质中的预定地址存储二维码; According to an aspect of the present technology, a two-dimensional code processing method is provided, the method may include: displaying a two-dimensional code, and storing the two-dimensional code at a predetermined address in the storage medium;
响应于接收到关于二维码的屏幕触摸信息, 产生解析显示指令; 根据该解析显示指令, 获取与二维码对应的预定地址, 从该预定地址读 取二维码, 从该二维码解析出二维码内容, 显示解析出的二维码内容。 可选地, 在一个实施例中, 该方法还可以包括: 响应于接收到关于二维 码的屏幕触摸操作, 产生与该屏幕触摸操作对应的屏幕触摸信息。 所述显示 解析出的二维码内容可以包括: 基于所述屏幕触摸信息显示解析出的二维码 内容。 And generating an analytical display instruction in response to receiving the screen touch information about the two-dimensional code; acquiring a predetermined address corresponding to the two-dimensional code according to the analytical display instruction, reading the two-dimensional code from the predetermined address, and analyzing from the two-dimensional code The content of the two-dimensional code is displayed, and the content of the analyzed two-dimensional code is displayed. Optionally, in an embodiment, the method may further include: generating, in response to receiving a screen touch operation on the two-dimensional code, screen touch information corresponding to the screen touch operation. The displaying the parsed two-dimensional code content may include: displaying the parsed two-dimensional code content based on the screen touch information.
较佳地, 当接收到的屏幕触摸操作是单击操作时, 所述屏幕触摸信息为 单击触摸信息, 所述显示解析出的二维码内容可以包括: 基于该单击触摸信 息, 在紧邻二维码位置处显示二维码内容; Preferably, when the received screen touch operation is a click operation, the screen touch information is a click touch information, and the displaying the parsed two-dimensional code content may include: based on the click touch information, in the immediate vicinity The content of the two-dimensional code is displayed at the position of the two-dimensional code;
当接收到的屏幕触摸操作是双击操作时, 所述屏幕触摸信息为双击触摸 信息, 所述显示解析出的二维码内容可以包括基于该双击触摸信息, 对二维 码进行放大显示。 When the received screen touch operation is a double-click operation, the screen touch information is double-click touch information, and the displaying the parsed two-dimensional code content may include performing enlarged display on the two-dimensional code based on the double-click touch information.
较佳地, 当接收到的屏幕触摸操作是滑动操作时, 所述屏幕触摸信息为 滑动触摸信息, 所述显示解析出的二维码内容可以包括: 基于该滑动触摸信 息, 在紧邻二维码位置处显示二维码内容。 Preferably, when the received screen touch operation is a sliding operation, the screen touch information is a sliding touch information, and the displaying the decoded two-dimensional code content may include: based on the sliding touch information, in the immediate vicinity of the two-dimensional code The QR code content is displayed at the location.
较佳地, 所述由二维码解析出二维码内容可以包括: Preferably, the parsing the two-dimensional code content by the two-dimensional code may include:
调用本地的解析函数模块,解析函数模块从二维码识别出二进制字符串, 并对二进制字符串解析得到二维码内容。 The local analytic function module is called, and the analytic function module recognizes the binary string from the two-dimensional code, and parses the binary string to obtain the two-dimensional code content.
较佳地, 所述由二维码解析出二维码内容可以包括: Preferably, the parsing the two-dimensional code content by the two-dimensional code may include:
从二维码识别出二进制字符串, 将包含该二进制字符串的二维码识别指 令发送给后台服务器; Recognizing a binary string from the two-dimensional code, and transmitting a two-dimensional code identification command containing the binary string to the background server;
接收由后台服务器反馈的二维码内容, 所述二维码内容是从对二维码识 别指令中包含的二进制字符串解析而得到的。 The two-dimensional code content fed back by the background server is received, and the two-dimensional code content is obtained by parsing the binary character string included in the two-dimensional code recognition instruction.
根据本技术的另一方面, 提供了一种移动终端, 该移动终端可以包括: 显示单元, 显示二维码; According to another aspect of the present technology, a mobile terminal is provided, and the mobile terminal may include: a display unit, displaying a two-dimensional code;
存储单元, 在存储介质中的预定地址存储二维码; a storage unit, storing a two-dimensional code at a predetermined address in the storage medium;
产生单元, 响应于接收关于二维码的屏幕触摸信息, 产生解析显示指令, 将解析显示指令发送给解析单元; a generating unit, in response to receiving the screen touch information about the two-dimensional code, generating an analytical display instruction, and transmitting the analytical display instruction to the parsing unit;
解析单元, 接收解析显示指令, 获取与二维码对应的预定地址, 由预定 地址从存储介质读取二维码, 由二维码解析出二维码内容, 将二维码内容发 送给所述显示单元, 所述显示单元显示解析出的二维码内容。 The parsing unit receives the parsing display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the storage medium by the predetermined address, parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the a display unit, wherein the display unit displays the parsed two-dimensional code content.
可选地, 在一个实施例中, 响应于接收到关于二维码的屏幕触摸操作, 所述产生单元还可以产生与该屏幕触摸操作对应的屏幕触摸信息, 并且所述 显示单元可以基于所述屏幕触摸信息显示解析出的二维码内容。 Optionally, in an embodiment, in response to receiving a screen touch operation about the two-dimensional code, the generating unit may further generate screen touch information corresponding to the screen touch operation, and The display unit may display the parsed two-dimensional code content based on the screen touch information.
较佳地, 当接收的屏幕触摸操作是单击操作时, 所述产生单元可以产生 单击触摸信息时, 所述显示单元可以基于该单击触摸信息在紧邻二维码的位 置处显示二维码内容; Preferably, when the received screen touch operation is a click operation, when the generating unit can generate the click touch information, the display unit can display the two-dimensional position at the position immediately adjacent to the two-dimensional code based on the click touch information. Code content
当接收到的屏幕触摸操作是双击操作时, 所述产生单元可以产生双击触 摸信息时, 所述显示单元可以基于该双击触摸信息对二维码内容进行放大显 示。 When the received screen touch operation is a double tap operation, when the generating unit can generate the double tap touch information, the display unit may enlarge the two-dimensional code content based on the double tap touch information.
较佳地, 当接收到的屏幕触摸操作是滑动操作时, 所述产生单元可以产 生滑动触摸信息, 所述显示单元可以基于该滑动触摸信息在紧邻二维码的位 置处显示二维码内容。 Preferably, when the received screen touch operation is a sliding operation, the generating unit may generate sliding touch information, and the display unit may display the two-dimensional code content at a position immediately adjacent to the two-dimensional code based on the sliding touch information.
较佳地, 所述解析单元可以包括二维码读取单元和第一解析函数模块。 所述二维码读取单元接收解析显示指令,获取与二维码对应的预定地址, 从该预定地址读取二维码, 将二维码发送给所述第一解析函数模块。 Preferably, the parsing unit may include a two-dimensional code reading unit and a first analytic function module. The two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the first analytic function module.
所述第一解析函数模块从接收的二维码解析出二维码内容, 将二维码内 容发送给所述显示单元。 The first analytic function module parses the two-dimensional code content from the received two-dimensional code, and transmits the two-dimensional code content to the display unit.
较佳地, 所述解析单元可以包括二维码读取单元和第二解析函数模块。 所述二维码读取单元接收解析显示指令,获取与二维码对应的预定地址, 从该预定地址读取二维码, 将二维码发送给所述第二解析函数模块。 Preferably, the parsing unit may include a two-dimensional code reading unit and a second analytic function module. The two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the second analytic function module.
所述第二解析函数模块从该二维码识别出二进制字符串, 将包含二进制 字符串的二维码识别指令发送给后台服务器; 接收由后台服务器反馈的二维 码内容, 所述二维码内容是从对二维码识别指令中包含的二进制字符串解析 而得到的。 The second analytic function module identifies a binary character string from the two-dimensional code, and sends a two-dimensional code identification instruction including a binary character string to the background server; receiving the two-dimensional code content fed back by the background server, the two-dimensional code The content is obtained by parsing the binary string contained in the two-dimensional code recognition instruction.
根据本技术的另一方面, 提供了计算机可读介质, 存储计算机程序, 该 计算机程序在被执行时可以致使计算机进行处理方法,该处理方法可以包括: 显示二维码, 并在存储介质中的预定地址存储二维码; 响应于接收到关于二 维码的屏幕触摸操作, 产生解析显示指令; 根据该解析显示指令, 获取与二 维码对应的预定地址, 从该预定地址读取二维码, 从该二维码解析出二维码 内容, 显示解析出的二维码内容。 According to another aspect of the present technology, there is provided a computer readable medium storing a computer program, when executed, causing a computer to perform a processing method, the processing method comprising: displaying a two-dimensional code and in a storage medium The predetermined address stores the two-dimensional code; in response to receiving the screen touch operation on the two-dimensional code, generating an analytical display instruction; acquiring, according to the analytical display instruction, a predetermined address corresponding to the two-dimensional code, and reading the two-dimensional code from the predetermined address The two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed.
从上述方案可以看出, 本技术中, 显示二维码, 并在存储介质中的预定 地址存储二维码; 响应于接收到关于二维码的屏幕触摸信息, 获取与二维码 对应的预定地址, 从该预定地址读取二维码, 从该二维码解析出二维码内容, 显示解析出的二维码内容。 本发明基于屏幕触摸操作, 实现移动终端直接识 别出本地显示的二维码, 这样, 无需其他移动终端对显示的二维码进行拍照 以协助完成二维码识别, 也筒化了基于二维码的信息交互操作。 附图说明 As can be seen from the above solution, in the present technology, a two-dimensional code is displayed, and a two-dimensional code is stored at a predetermined address in the storage medium; and in response to receiving the screen touch information about the two-dimensional code, a predetermined correspondence corresponding to the two-dimensional code is acquired. Address, reading a two-dimensional code from the predetermined address, and parsing the two-dimensional code content from the two-dimensional code, The parsed QR code content is displayed. The invention is based on the screen touch operation, and realizes that the mobile terminal directly recognizes the two-dimensional code displayed locally, so that no other mobile terminal is required to take a picture of the displayed two-dimensional code to assist in completing the two-dimensional code recognition, and the two-dimensional code is also compressed. Information interaction. DRAWINGS
图 1为本技术的一个实施例的二维码处理方法的示意性流程图; 1 is a schematic flowchart of a method for processing a two-dimensional code according to an embodiment of the present technology;
图 2为本技术的一个实施例的移动终端的触摸屏显示二维码的实例; 图 3为本技术的一个实施例的移动终端的触摸屏显示二维码内容的实例; 图 4为本技术的一个实施例的二维码处理方法示意性流程图实例; 图 5为本技术的一个实施例移动终端的结构示意图。 具体实施方式 2 is an example of displaying a two-dimensional code on a touch screen of a mobile terminal according to an embodiment of the present disclosure; FIG. 3 is an example of displaying a two-dimensional code content on a touch screen of a mobile terminal according to an embodiment of the present technology; An example of a schematic flowchart of a two-dimensional code processing method of an embodiment; FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present technology. detailed description
为使本技术的目的、 技术方案和优点更加清楚明白, 下面结合实施例和 附图, 对本技术进一步详细说明。 In order to make the objects, technical solutions and advantages of the present technology more clear, the present technology will be further described in detail below with reference to the embodiments and drawings.
本技术基于屏幕触摸操作,实现移动终端直接识别出本地显示的二维码, 而无需其他移动终端对显示的二维码进行拍照以协助完成二维码识别, 使基 于二维码的信息交互操作得到筒化。 The technology is based on the screen touch operation, and the mobile terminal directly recognizes the two-dimensional code displayed locally, without the need for other mobile terminals to take pictures of the displayed two-dimensional code to assist in completing the two-dimensional code recognition, so that the information based on the two-dimensional code is interoperated. Get cylinderized.
参见图 1 , 为本技术的一个实施例的二维码处理方法的示意性流程图, 该 方法可以包括以下步骤: Referring to FIG. 1 , which is a schematic flowchart of a two-dimensional code processing method according to an embodiment of the present technology, the method may include the following steps:
步骤 101 , 显示二维码, 并在存储介质中的预定地址存储二维码。 Step 101: Display a two-dimensional code, and store the two-dimensional code at a predetermined address in the storage medium.
例如, 当用户通过 專或者 信等方式用二维码分享自己的信息时, 移 动终端显示访问的微博或微信内容, 显示的内容中包含二维码。 显示二维码 时, 可以为二维码分配该移动终端的存储介质中的预定地址, 将二维码存储 到该预定地址。 For example, when a user shares his or her information with a two-dimensional code by means of a special or a letter, the mobile terminal displays the accessed Weibo or WeChat content, and the displayed content includes a two-dimensional code. When the two-dimensional code is displayed, a predetermined address in the storage medium of the mobile terminal can be assigned to the two-dimensional code, and the two-dimensional code is stored to the predetermined address.
步骤 102,响应于接收到关于二维码的屏幕触摸操作,产生解析显示指令。 当用户需要获取二维码内容时, 对移动终端进行屏幕触摸操作, 移动终 端在接收到用户的屏幕触摸操作时, 可以产生解析显示指令, 以指示对二维 码所表示的内容进行解析并显示解析出的二维码内容。 Step 102, in response to receiving a screen touch operation on the two-dimensional code, generating an analytical display instruction. When the user needs to obtain the content of the two-dimensional code, performing a screen touch operation on the mobile terminal, when receiving the screen touch operation of the user, the mobile terminal may generate an analytical display instruction to indicate that the content represented by the two-dimensional code is parsed and displayed. Parsed the QR code content.
可选地, 响应于接收到关于二维码的屏幕触摸操作, 还可以产生屏幕触 摸信息。 例如, 屏幕触摸操作可以包括在屏幕上单击显示的二维码、 双击显 示的二维码或者对二维码进行滑动操作等等。 对于不同的屏幕触摸操作, 可 以产生不同的屏幕触摸信息以表示接收到不同的屏幕触摸操作。 例如: 当屏 幕触摸操作为单击二维码时, 产生单击触摸信息, 当屏幕触摸操作为双击二 维码时, 产生双击触摸信息, 当屏幕触摸操作为对二维码进行滑动操作时, 产生滑动触摸信息。 或者, 当屏幕触摸操作为对二维码进行滑动操作并且当 滑动触摸的起始位置在二维码所在的位置范围内时, 产生滑动触摸信息。 当 然, 屏幕触摸操作以及屏幕触摸信息的例子不限于此, 本领域技术人员可以 根据需要任意设置, 并且响应于接收到关于二维码的屏幕触摸操作而产生屏 幕触摸信息的实现方式是可选的, 本领域技术人员可以理解, 可以不区分用 户对触摸屏幕的具体操作, 而是响应于接收到用户对触摸屏幕的任意操作, 产生解析显示指令而不产生屏幕触摸信息。 Alternatively, screen touch information may also be generated in response to receiving a screen touch operation with respect to the two-dimensional code. For example, the screen touch operation may include clicking a displayed two-dimensional code on the screen, double-clicking the displayed two-dimensional code, or sliding the two-dimensional code, and the like. For different screen touch operations, To generate different screen touch information to indicate that different screen touch operations are received. For example: When the touch operation of the screen is to click the two-dimensional code, a click touch information is generated, and when the touch operation of the screen is double-clicking the two-dimensional code, a double-click touch information is generated, and when the touch operation of the screen is a sliding operation on the two-dimensional code, Generate sliding touch information. Alternatively, the sliding touch information is generated when the screen touch operation is a sliding operation on the two-dimensional code and when the starting position of the sliding touch is within the position range in which the two-dimensional code is located. Of course, examples of the screen touch operation and the screen touch information are not limited thereto, and those skilled in the art can arbitrarily set as needed, and an implementation manner of generating screen touch information in response to receiving a screen touch operation on the two-dimensional code is optional. It will be understood by those skilled in the art that the specific operation of the touch screen by the user may not be distinguished, but in response to receiving any operation of the user on the touch screen, the parsing display instruction is generated without generating the screen touch information.
步骤 103 , 根据该解析显示指令, 获取与二维码对应的预定地址, 从预定 地址读取二维码, 解析出二维码内容, 显示解析出的二维码内容。 Step 103: Acquire a predetermined address corresponding to the two-dimensional code according to the analysis display instruction, read the two-dimensional code from the predetermined address, parse the two-dimensional code content, and display the analyzed two-dimensional code content.
在接收到该解析显示指令时, 可以解析该二维码的内容, 并基于该屏幕 触摸信息显示解析出的内容。 对二维码进行解析的方式有多种, 可根据需要 设置, 下面列举两个实例: Upon receiving the analysis display instruction, the content of the two-dimensional code can be analyzed, and the parsed content can be displayed based on the screen touch information. There are several ways to parse a QR code, which can be set as needed. Here are two examples:
方式一: 移动终端读取二维码后, 调用本地的解析函数模块, 解析函数 模块从二维码识别出二进制字符串,再对二进制字符串解析得到二维码内容。 所述解析函数模块包含对二维码进行解析的函数, 可将二维码解析成二维码 内容。 具体地实现时, 可在微博或者微信等客户端中添加解析函数模块, 当 需要时, 客户端调用该解析函数模块, 以对二维码进行解析。 Method 1: After the mobile terminal reads the two-dimensional code, the local analytic function module is called, and the analytic function module recognizes the binary string from the two-dimensional code, and then parses the binary string to obtain the two-dimensional code content. The analytic function module includes a function for parsing the two-dimensional code, and the two-dimensional code can be parsed into two-dimensional code content. Specifically, the analytic function module may be added to a client such as Weibo or WeChat. When needed, the client calls the analytic function module to parse the two-dimensional code.
方式二: 移动终端从二维码识别出二进制字符串, 将包含二进制字符串 的二维码识别指令发送给后台服务器;接收由后台服务器反馈的二维码内容, 所述二维码内容是从对二维码识别指令包含的二进制字符串解析而得到的。 后台服务器接收二维码识别指令, 对二进制字符串解析得到二维码内容, 将 该二维码内容反馈给移动终端。 Manner 2: The mobile terminal identifies the binary string from the two-dimensional code, and sends a two-dimensional code identification instruction including the binary string to the background server; and receives the two-dimensional code content fed back by the background server, where the two-dimensional code content is from Obtained from the analysis of the binary string contained in the two-dimensional code recognition instruction. The background server receives the two-dimensional code identification instruction, parses the binary character string to obtain the two-dimensional code content, and feeds back the two-dimensional code content to the mobile terminal.
如上所述, 在可选的实施例中, 对于不同的屏幕触摸操作, 还产生对应 的屏幕触摸信息。 从而, 可选地, 当产生了屏幕触摸信息时, 可以基于该屏 幕触摸信息来显示解析出的二维码内容。 基于不同的屏幕触摸信息, 可以采 用不同的显示方式。 As described above, in an alternative embodiment, corresponding screen touch information is also generated for different screen touch operations. Thus, optionally, when the screen touch information is generated, the parsed two-dimensional code content can be displayed based on the screen touch information. Different display modes can be used based on different screen touch information.
具体地, 例如, 当屏幕触摸操作为单击操作时, 产生单击触摸信息时, 则所述显示解析出的二维码内容可以包括: 基于该单击触摸信息, 在紧邻二 维码位置处显示二维码内容。 当屏幕触摸操作为双击操作时, 产生双击触摸 信息, 则所述显示解析出的二维码内容可以包括基于该双击触摸信息, 对二 维码进行放大显示。 当产生了滑动触摸信息时, 所述显示解析出的二维码内 容可以包括基于该滑动触摸信息, 在紧邻二维码位置处显示二维码内容。 Specifically, for example, when the touch operation is a click operation, when the click touch information is generated, the display of the extracted two-dimensional code content may include: based on the click touch information, in the next two The QR code content is displayed at the position of the dimension code. When the screen touch operation is a double-click operation, a double-click touch information is generated, and the display of the parsed two-dimensional code content may include displaying the two-dimensional code in an enlarged manner based on the double-click touch information. When the sliding touch information is generated, the displaying the parsed two-dimensional code content may include displaying the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information.
参见图 2的实例, 图中示出了移动终端的触摸屏, 屏幕上显示了二维码。 在需要时, 用户对二维码进行触摸操作, 便可进行二维码内容的显示。 Referring to the example of Fig. 2, the touch screen of the mobile terminal is shown, and a two-dimensional code is displayed on the screen. When necessary, the user can perform a touch operation on the two-dimensional code to display the content of the two-dimensional code.
如图 3所示, 当手指对二维码显示的区域范围进行单击触摸时, 可以在二 维码的上方显示出二维码内容,这里,二维码内容具体为网址" web.qq.com"。 当然, 二维码内容的具体显示位置不限于此, 本领域技术人员完全可以根据 需要任意设置, 比如显示在二维码的下方, 右侧等等。 As shown in FIG. 3, when the finger clicks on the area range displayed by the two-dimensional code, the two-dimensional code content can be displayed on the top of the two-dimensional code. Here, the content of the two-dimensional code is specifically the web address "web.qq. Com". Of course, the specific display position of the content of the two-dimensional code is not limited thereto, and those skilled in the art can arbitrarily set as needed, such as being displayed below the two-dimensional code, the right side, and the like.
同样以图 3为例, 如果手指对二维码显示的区域范围进行双击触摸, 还可 在二维码的上方放大显示出二维码内容 "web.qq.com"。 Similarly, in Fig. 3, if the finger double-clicks on the area range displayed by the two-dimensional code, the two-dimensional code content "web.qq.com" can be enlarged and displayed above the two-dimensional code.
二维码内容可以是文本、 短信、 链接地址、 个人名片、 邮件地址、 电话 等。 The QR code content can be text, text message, link address, personal business card, email address, phone number, etc.
显示解析出的二维码内容之后, 还可对二维码内容进行进一步操作, 如 复制、 粘贴等; 对于二维码内容为链接地址的情况, 还可以点击链接地址, 进行相应的访问。 After the content of the extracted two-dimensional code is displayed, the content of the two-dimensional code can be further manipulated, such as copying and pasting. For the case where the content of the two-dimensional code is a link address, the link address can also be clicked to perform corresponding access.
下面参考图 4对以用户在诸如蜂窝电话的移动终端上的触摸屏幕上对二 维码进行滑动操作为例详细描述本技术的二维码处理方法的一个具体例子。 该方法可以包括以下步骤: A specific example of the two-dimensional code processing method of the present technology will be described in detail below by taking a sliding operation of a two-dimensional code on a touch screen of a user on a mobile terminal such as a cellular phone as an example with reference to FIG. The method can include the following steps:
步骤 401 , 移动终端显示用户访问的内容, 该内容中包含二维码, 并在该 移动终端的存储介质中的预定地址存储二维码。 Step 401: The mobile terminal displays the content accessed by the user, where the content includes a two-dimensional code, and stores the two-dimensional code at a predetermined address in the storage medium of the mobile terminal.
用户访问的内容可以是微博内容等, 该内容中包含的二维码可以指示多 种信息, 例如为电话号码、 某用户昵称、 账号、 链接地址等。 The content accessed by the user may be Weibo content, etc., and the QR code included in the content may indicate various information, such as a phone number, a user nickname, an account number, a link address, and the like.
步骤 402, 该移动终端接收到用户对该移动终端的触摸屏幕的滑动操作, 产生解析显示指令。 Step 402: The mobile terminal receives a sliding operation of the touch screen of the mobile terminal by the user, and generates an analytical display instruction.
可选地, 当移动终端接收到用户对该移动终端的触摸屏幕的滑动操作并 且滑动触摸的起始位置在二维码所在的位置范围内时,还产生滑动触摸信息。 Optionally, when the mobile terminal receives the sliding operation of the touch screen of the mobile terminal by the user and the starting position of the sliding touch is within the range of the location where the two-dimensional code is located, the sliding touch information is also generated.
步骤 403 , 该移动终端获取与二维码对应的预定地址, 从该预定地址读取 二维码。 Step 403: The mobile terminal acquires a predetermined address corresponding to the two-dimensional code, and reads the two-dimensional code from the predetermined address.
步骤 404, 该移动终端从该二维码识别出二进制字符串, 将包含二进制字 符串的二维码识别指令发送给后台服务器。 Step 404, the mobile terminal identifies a binary string from the two-dimensional code, and will include a binary word. The QR code identification instruction of the string is sent to the background server.
二维码可以使用若干个与二进制相对应的几何形体来表示文字数值信 息, 可以从二维码识别出对应的二进制字符串。 The QR code can use a number of geometric shapes corresponding to the binary to represent the literal value information, and the corresponding binary string can be identified from the two-dimensional code.
步骤 405 ,后台服务器从对该二维码识别指令包含的二进制字符串解析而 得到二维码内容, 将该二维码内容反馈给该移动终端。 Step 405: The background server parses the binary character string included in the two-dimensional code recognition instruction to obtain the two-dimensional code content, and feeds back the two-dimensional code content to the mobile terminal.
在本实例中, 与该二维码对应的二维码内容为链接地址。 当然, 这仅仅 是举例, 二维码内容不限于此。 In this example, the two-dimensional code content corresponding to the two-dimensional code is a link address. Of course, this is just an example, and the content of the two-dimensional code is not limited to this.
步骤 406, 该移动终端显示后台服务器反馈的二维码内容。 Step 406: The mobile terminal displays the two-dimensional code content fed back by the background server.
可选地, 当产生了滑动触摸信息时, 该移动终端可以基于该滑动触摸信 息在紧邻二维码的位置处显示诸如链接地址的二维码内容。 Alternatively, when the sliding touch information is generated, the mobile terminal can display the two-dimensional code content such as the link address at the position immediately adjacent to the two-dimensional code based on the sliding touch information.
步骤 407, 用户对该二维码内容进行希望的操作。 Step 407: The user performs a desired operation on the content of the two-dimensional code.
例如, 用户可以点击链接地址, 对链接地址进行访问。 或者, 如上所述, 用户可以对显示的二维码内容进行如上所述复制、 粘贴等等的操作。 本领域 技术人员很清楚, 在步骤 406之后可以不进行步骤 407而结束该方法, 因为在 某些情况下, 用户可能仅需要观看显示的二维码内容而无需任何操作。 For example, a user can click on a link address to access a link address. Alternatively, as described above, the user can perform an operation of copying, pasting, or the like as described above on the displayed two-dimensional code content. It will be apparent to those skilled in the art that the method may end without step 407 after step 406 because in some cases, the user may only need to view the displayed two-dimensional code content without any action.
根据本技术, 显示二维码, 并在存储介质中的预定地址存储二维码; 响 应于接收到关于二维码的屏幕触摸操作, 获取与二维码对应的预定地址, 从 该预定地址读取二维码, 从该二维码解析出二维码内容, 显示解析出的二维 码内容。 本技术基于屏幕触摸操作, 实现移动终端直接识别出本地显示的二 维码, 这样, 无需其他移动终端对显示的二维码进行拍照以协助完成二维码 识别, 也筒化了基于二维码的信息交互操作。 According to the present technology, a two-dimensional code is displayed, and a two-dimensional code is stored at a predetermined address in the storage medium; in response to receiving a screen touch operation on the two-dimensional code, a predetermined address corresponding to the two-dimensional code is acquired, and the predetermined address is read from the predetermined address Taking the two-dimensional code, the two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed. The technology is based on the screen touch operation, so that the mobile terminal directly recognizes the two-dimensional code displayed locally, so that no other mobile terminal is required to take a picture of the displayed two-dimensional code to assist in the completion of the two-dimensional code recognition, and the two-dimensional code is also compressed. Information interaction.
参见图 5 ,为本技术的一个实施例的移动终端的结构的示意框图。如所示, 该移动终端可以包括: Referring to FIG. 5, it is a schematic block diagram of a structure of a mobile terminal according to an embodiment of the present technology. As shown, the mobile terminal can include:
显示单元, 显示二维码; Display unit, displaying a two-dimensional code;
存储单元, 在该移动终端的存储介质中的预定地址存储二维码; 产生单元, 响应于接收到关于二维码的屏幕触摸操作, 产生解析显示指 令, 将解析显示指令发送给所述解析单元; a storage unit that stores a two-dimensional code at a predetermined address in a storage medium of the mobile terminal; a generating unit that, in response to receiving a screen touch operation on the two-dimensional code, generates an analytical display instruction, and sends the analytical display instruction to the parsing unit ;
解析单元, 接收解析显示指令, 获取与二维码对应的预定地址, 从该预 定地址读取二维码, 从该二维码解析出二维码内容, 将二维码内容发送给所 述显示单元; The parsing unit receives the parsing display command, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the display Unit
显示单元, 显示解析出的二维码内容。 可选地, 响应于接收到关于二维码的屏幕触摸操作, 该产生单元还可以 产生与该屏幕触摸操作对应的屏幕触摸信息。 例如, 当所述屏幕触摸操作为 单击操作时, 所述产生单元可以产生单击触摸信息, 所述显示单元可以基于 该单击触摸信息在紧邻二维码的位置处显示二维码内容; The display unit displays the parsed QR code content. Optionally, in response to receiving a screen touch operation on the two-dimensional code, the generating unit may further generate screen touch information corresponding to the screen touch operation. For example, when the screen touch operation is a click operation, the generating unit may generate click touch information, and the display unit may display the two-dimensional code content at a position immediately adjacent to the two-dimensional code based on the click touch information;
当所述屏幕触摸操作为双击操作时, 所述产生单元可以产生双击触摸信 息, 所述显示单元可以基于该双击触摸信息对二维码内容进行放大显示。 When the screen touch operation is a double-click operation, the generating unit may generate double-click touch information, and the display unit may display the two-dimensional code content in an enlarged manner based on the double-click touch information.
当所述屏幕触摸操作为滑动操作时, 所述产生单元可以产生滑动触摸信 息, 所述显示单元可以基于该滑动触摸信息在紧邻二维码位置处显示二维码 内容。 或者, 在另一实施例中, 当所述屏幕触摸操作为滑动操作时, 并且当 滑动触摸的起始位置在二维码所在的位置范围内时, 所述产生单元可以产生 该滑动触摸信息, 所述显示单元可以基于该滑动触摸信息在紧邻二维码位置 处显示二维码内容。 When the screen touch operation is a slide operation, the generating unit may generate a sliding touch information, and the display unit may display the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information. Alternatively, in another embodiment, when the screen touch operation is a sliding operation, and when the starting position of the sliding touch is within a position range in which the two-dimensional code is located, the generating unit may generate the sliding touch information. The display unit may display the two-dimensional code content in the immediate vicinity of the two-dimensional code position based on the sliding touch information.
较佳地, 所述解析单元可以包括二维码读取单元和第一解析函数模块。 所述二维码读取单元接收解析显示指令, 获取与二维码对应的预定地址, 从 该预定地址读取二维码, 将二维码发送给所述第一解析函数模块。 所述第一 解析函数模块从该二维码解析出二维码内容, 将二维码内容发送给所述显示 单元。 Preferably, the parsing unit may include a two-dimensional code reading unit and a first analytic function module. The two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the first analytic function module. The first analytic function module parses the two-dimensional code content from the two-dimensional code, and transmits the two-dimensional code content to the display unit.
或者, 较佳地, 所述解析单元可以包括二维码读取单元和第二解析函数 模块。 所述二维码读取单元接收解析显示指令, 获取与二维码对应的预定地 址, 从该预定地址读取二维码, 将二维码发送给所述第二解析函数模块。 所 述第二解析函数模块从该二维码识别出二进制字符串, 将包含该二进制字符 串的二维码识别指令发送给后台服务器; 接收由后台服务器反馈的二维码内 容, 所述二维码内容是从对二维码识别指令包含的二进制字符串解析而得到 的。 Alternatively, preferably, the parsing unit may include a two-dimensional code reading unit and a second parsing function module. The two-dimensional code reading unit receives the analytical display instruction, acquires a predetermined address corresponding to the two-dimensional code, reads the two-dimensional code from the predetermined address, and transmits the two-dimensional code to the second analytic function module. The second analytic function module identifies a binary character string from the two-dimensional code, and sends a two-dimensional code identification instruction including the binary character string to the background server; receiving the two-dimensional code content fed back by the background server, the two-dimensional The code content is obtained by parsing the binary string contained in the two-dimensional code recognition instruction.
根据本技术的另一方面, 提供了计算机程序, 该计算机程序存储在计算 机可读介质中, 在被执行时致使计算机进行处理方法, 该处理方法包括: 显 示二维码, 并在存储介质中的预定地址存储二维码; 响应于接收到关于二维 码的屏幕触摸操作, 产生解析显示指令; 根据该解析显示指令, 获取与二维 码对应的预定地址, 从该预定地址读取二维码, 从该二维码解析出二维码内 容, 显示解析出的二维码内容。 According to another aspect of the present technology, there is provided a computer program stored in a computer readable medium, which when executed causes a computer to perform a processing method, the processing method comprising: displaying a two-dimensional code and in a storage medium The predetermined address stores the two-dimensional code; in response to receiving the screen touch operation on the two-dimensional code, generating an analytical display instruction; acquiring, according to the analytical display instruction, a predetermined address corresponding to the two-dimensional code, and reading the two-dimensional code from the predetermined address The two-dimensional code content is parsed from the two-dimensional code, and the parsed two-dimensional code content is displayed.
根据本技术的另一方面, 提供了计算机可读介质, 存储计算机程序, 该 计算机程序在被执行时致使计算机进行处理方法, 该处理方法包括: 显示二 维码, 并在存储介质中的预定地址存储二维码; 响应于接收到关于二维码的 屏幕触摸操作, 产生解析显示指令; 根据该解析显示指令, 获取与二维码对 应的预定地址, 从该预定地址读取二维码, 从该二维码解析出二维码内容, 显示解析出的二维码内容。 According to another aspect of the present technology, a computer readable medium is provided, storing a computer program, The computer program, when executed, causes the computer to perform a processing method, the processing method comprising: displaying a two-dimensional code, and storing the two-dimensional code at a predetermined address in the storage medium; generating an analysis in response to receiving a screen touch operation on the two-dimensional code Displaying a command; acquiring a predetermined address corresponding to the two-dimensional code based on the analysis display command, reading the two-dimensional code from the predetermined address, analyzing the two-dimensional code content from the two-dimensional code, and displaying the analyzed two-dimensional code content.
根据本技术, 移动终端展示二维码之后, 用户在屏幕上通过筒单的手势 便可读取到二维码内容, 无需其他移动终端对显示的二维码进行拍照以协助 完成二维码识别, 实现了移动终端直接识别出本地显示的二维码的内容, 筒 化了基于二维码的信息交互操作。 According to the present technology, after the mobile terminal displays the two-dimensional code, the user can read the two-dimensional code content by using the gesture of the single button on the screen, and no other mobile terminal is required to take the photo of the displayed two-dimensional code to assist in the completion of the two-dimensional code recognition. The mobile terminal directly recognizes the content of the locally displayed two-dimensional code, and implements the information interaction operation based on the two-dimensional code.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本 发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含在 本发明保护的范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310113005.0A CN104102891A (en) | 2013-04-02 | 2013-04-02 | Information interaction method based on two dimension code, and mobile terminal |
| CN201310113005.0 | 2013-04-02 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014161425A1 true WO2014161425A1 (en) | 2014-10-09 |
Family
ID=51657576
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2014/073535 Ceased WO2014161425A1 (en) | 2013-04-02 | 2014-03-17 | Method for processing two-dimensional code and mobile terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104102891A (en) |
| WO (1) | WO2014161425A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106203228A (en) * | 2016-07-06 | 2016-12-07 | 北京金山安全软件有限公司 | Two-dimensional code information transmission method, device and equipment |
| KR20170102902A (en) * | 2014-12-29 | 2017-09-12 | 알리바바 그룹 홀딩 리미티드 | Information presentation method and apparatus |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090295541A1 (en) * | 2008-05-27 | 2009-12-03 | Intellidot Corporation | Directional rfid reader |
| US20120173351A1 (en) * | 2010-12-29 | 2012-07-05 | Qthru, Llc | Mobile Electronic Shopping |
| CN102842096A (en) * | 2012-08-21 | 2012-12-26 | 天津三星电子有限公司 | Shopping method achieved by display terminal and display terminal |
| CN102891865A (en) * | 2011-07-18 | 2013-01-23 | 阿里巴巴集团控股有限公司 | Information acquisition method and equipment |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100548024C (en) * | 2006-06-05 | 2009-10-07 | 中国移动通信集团公司 | Mobile processing system and mobile processing method for two-dimensional code information |
| CN201681412U (en) * | 2010-02-03 | 2010-12-22 | 陈楷明 | Portable two-dimensional bar code password card |
| CN102592160B (en) * | 2012-01-17 | 2014-08-13 | 浙江工商大学 | Character two-dimension code encoding and decoding method for short message |
| CN102609742B (en) * | 2012-02-08 | 2015-08-05 | 王石磊 | A kind of Quick Response Code disposal system of mobile terminal and method |
| CN102622631A (en) * | 2012-02-28 | 2012-08-01 | 深圳润鸿鑫数码技术有限公司 | Anti-counterfeiting inspection device and anti-counterfeiting method for anti-counterfeiting equipment |
| CN102737122B (en) * | 2012-06-08 | 2014-12-10 | 浙江大学 | Method for extracting verification code image from webpage |
-
2013
- 2013-04-02 CN CN201310113005.0A patent/CN104102891A/en active Pending
-
2014
- 2014-03-17 WO PCT/CN2014/073535 patent/WO2014161425A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090295541A1 (en) * | 2008-05-27 | 2009-12-03 | Intellidot Corporation | Directional rfid reader |
| US20120173351A1 (en) * | 2010-12-29 | 2012-07-05 | Qthru, Llc | Mobile Electronic Shopping |
| CN102891865A (en) * | 2011-07-18 | 2013-01-23 | 阿里巴巴集团控股有限公司 | Information acquisition method and equipment |
| CN102842096A (en) * | 2012-08-21 | 2012-12-26 | 天津三星电子有限公司 | Shopping method achieved by display terminal and display terminal |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20170102902A (en) * | 2014-12-29 | 2017-09-12 | 알리바바 그룹 홀딩 리미티드 | Information presentation method and apparatus |
| EP3242223A4 (en) * | 2014-12-29 | 2018-06-13 | Alibaba Group Holding Limited | Information presentation method and apparatus |
| KR101996159B1 (en) | 2014-12-29 | 2019-07-03 | 알리바바 그룹 홀딩 리미티드 | Information presentation method and apparatus |
| US10394755B2 (en) | 2014-12-29 | 2019-08-27 | Alibaba Group Holding Limited | Information presentation method and apparatus |
| CN106203228A (en) * | 2016-07-06 | 2016-12-07 | 北京金山安全软件有限公司 | Two-dimensional code information transmission method, device and equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104102891A (en) | 2014-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11695820B2 (en) | Commerce oriented uniform resource locater (URL) shortener | |
| EP2814212B1 (en) | Method and apparatus for adding friend, and storage medium | |
| US10795629B2 (en) | Text and custom format information processing method, client, server, and computer-readable storage medium | |
| CN104298744B (en) | Share, obtain the method and apparatus of web page contents | |
| US9952858B2 (en) | Computer readable storage media and methods for invoking an action directly from a scanned code | |
| US9268987B2 (en) | Method of recognizing QR code in image data and apparatus and method for converting QR code in content data into touchable object | |
| WO2018006724A1 (en) | Two-dimensional code information query method, server, client, and system | |
| CN105122760A (en) | Page operation processing method, device and terminal | |
| WO2017080007A1 (en) | Intelligent analysis and processing system of identification code and processing method therefor | |
| TW200910875A (en) | Method and system for instantly translating text within an image | |
| CN110764677B (en) | Method and device for processing DOI in interactive information | |
| CN116303888A (en) | A rare word processing method, device, storage medium and electronic equipment | |
| CN105515887B (en) | application testing method, server and system | |
| CN104537049B (en) | A kind of picture browsing method and device | |
| CN109791545B (en) | Context information for resources that are displayed including images | |
| WO2017121332A1 (en) | Information sharing method and system | |
| CN115630661A (en) | Identification code analysis method, device, electronic device, and computer-readable medium | |
| WO2014161425A1 (en) | Method for processing two-dimensional code and mobile terminal | |
| CN113438526A (en) | Screen content sharing method, screen content display device, screen content equipment and storage medium | |
| CN104392366A (en) | Data comparison information acquisition method, device and system | |
| CN106843884B (en) | Query data processing method and device | |
| CN116679897A (en) | Screen projection analysis method and device | |
| CN107103096A (en) | Method for information display and device | |
| JP2017120614A (en) | Electronic device, information transmission method, and information reading method | |
| CN115357818A (en) | Information display method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14778186 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A SENT ON 24.02.2016) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14778186 Country of ref document: EP Kind code of ref document: A1 |