[go: up one dir, main page]

CN110674662A - Scanning method and terminal equipment - Google Patents

Scanning method and terminal equipment Download PDF

Info

Publication number
CN110674662A
CN110674662A CN201910876993.1A CN201910876993A CN110674662A CN 110674662 A CN110674662 A CN 110674662A CN 201910876993 A CN201910876993 A CN 201910876993A CN 110674662 A CN110674662 A CN 110674662A
Authority
CN
China
Prior art keywords
target content
scanning
target
graphic code
input
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
CN201910876993.1A
Other languages
Chinese (zh)
Other versions
CN110674662B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910876993.1A priority Critical patent/CN110674662B/en
Publication of CN110674662A publication Critical patent/CN110674662A/en
Application granted granted Critical
Publication of CN110674662B publication Critical patent/CN110674662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (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)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a scanning method and terminal equipment, relates to the technical field of communication, and aims to solve the problems that the existing scanning method is long in time consumption and low in efficiency when a user scans a plurality of two-dimensional codes. The scanning method comprises the following steps: scanning at least one graphic code through a camera on a scanning interface; and respectively identifying target content corresponding to the at least one graphic code, and displaying the target content on the scanning interface. The scanning method in the embodiment of the invention is applied to the terminal equipment.

Description

一种扫描方法及终端设备A scanning method and terminal device

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种扫描方法及终端设备。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a scanning method and a terminal device.

背景技术Background technique

目前,终端设备的扫描功能应用较为广泛,例如,扫描功能可应用于读取数据、跳转网页页面、添加好友、支付等场景中。At present, the scanning function of the terminal device is widely used. For example, the scanning function can be used in scenarios such as reading data, jumping to web pages, adding friends, and making payments.

其中,现有的扫描方法为:用户打开终端设备的扫描界面,屏幕弹出扫描窗口,用户将扫描窗口对准二维码进行扫描,当终端设备成功识别二维码后,屏幕跳转至二维码对应的显示界面。其中,显示界面如数据回显界面、网页访问界面、添加好友界面、支付费用界面等。Among them, the existing scanning method is: the user opens the scanning interface of the terminal device, the screen pops up the scanning window, the user scans the scanning window at the two-dimensional code, and when the terminal device successfully recognizes the two-dimensional code, the screen jumps to the two-dimensional code The corresponding display interface of the code. Among them, the display interface includes a data echo interface, a web page access interface, an interface for adding friends, an interface for paying fees, and the like.

基于上述扫描方法,若用户需扫描多个二维码时,一次只能扫描一个二维码,在终端设备成功识别并跳转到显示界面后,用户需通过操作切换回扫描界面对下一个二维码进行扫描。可见,现有的扫描方法使得用户在扫描多个二维码时具有耗时长、效率低的问题。Based on the above scanning method, if the user needs to scan multiple QR codes, only one QR code can be scanned at a time. After the terminal device successfully recognizes and jumps to the display interface, the user needs to switch back to the scanning interface by operating Scan the QR code. It can be seen that the existing scanning method causes the user to have the problems of long time consumption and low efficiency when scanning multiple two-dimensional codes.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种扫描方法及终端设备,以解决现有的扫描方法使得用户在扫描多个二维码时具有耗时长、效率低的问题。Embodiments of the present invention provide a scanning method and a terminal device, so as to solve the problems that the existing scanning method causes a user to scan multiple two-dimensional codes with long time and low efficiency.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种扫描方法,包括:在扫描界面通过摄像头对至少一个图形码进行扫描;分别识别所述至少一个图形码对应的目标内容,并将所述目标内容显示在所述扫描界面。In a first aspect, an embodiment of the present invention provides a scanning method, including: scanning at least one graphic code through a camera on a scanning interface; identifying target content corresponding to the at least one graphic code, respectively, and displaying the target content in the scan interface.

第二方面,本发明实施例还提供了一种终端设备,包括:扫描模块,用于在扫描界面通过摄像头对至少一个图形码进行扫描;显示模块,用于分别识别所述至少一个图形码对应的目标内容,并将所述目标内容显示在所述扫描界面。In a second aspect, an embodiment of the present invention further provides a terminal device, including: a scanning module for scanning at least one graphic code through a camera on a scanning interface; and a display module for respectively identifying the corresponding at least one graphic code and display the target content on the scanning interface.

第三方面,本发明实施例还提供了一种终端设备,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述扫描方法的步骤。In a third aspect, an embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor The steps of implementing the scanning method when executed.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述扫描方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the scanning method are implemented.

这样,在本发明实施例中,用户在使用终端设备的扫描功能时,基于一次操作进入扫描界面后,可在扫描界面对准至少一个图形码,并通过通过摄像头对至少一个图形码进行扫描,从而终端设备基于对图形码的图形数据的分析,识别图形码所对应的目标内容,并将图形码所对应的目标内容显示在扫描界面。可见,相比于现有技术,用户在扫描图形码时,特别是扫描多个图形码时,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描及识别后,在扫描界面显示图形码对应的目标内容,用户可在扫描界面看到扫描结果,节省了用户在应用界面和扫描界面之间的切换操作,从而缩短用户在扫描事件中的耗时,提高效率。In this way, in this embodiment of the present invention, when using the scanning function of the terminal device, after entering the scanning interface based on one operation, the user can align at least one graphic code on the scanning interface, and scan the at least one graphic code through the camera, Therefore, based on the analysis of the graphic data of the graphic code, the terminal device identifies the target content corresponding to the graphic code, and displays the target content corresponding to the graphic code on the scanning interface. It can be seen that, compared with the prior art, when a user scans a graphic code, especially when scanning multiple graphic codes, there is no need to perform repeated interface switching operations, and only one operation is required to enter the scanning interface. The interface displays the target content corresponding to the graphic code, and the user can see the scanning result on the scanning interface, which saves the user's switching operation between the application interface and the scanning interface, thereby shortening the time-consuming of the user in the scanning event and improving the efficiency.

附图说明Description of drawings

图1是本发明实施例的扫描方法的流程图之一;Fig. 1 is one of the flowcharts of the scanning method of the embodiment of the present invention;

图2是本发明实施例的终端设备的显示界面示意图之一;2 is one of schematic diagrams of a display interface of a terminal device according to an embodiment of the present invention;

图3是本发明实施例的扫描方法的流程图之二;3 is the second flow chart of the scanning method according to the embodiment of the present invention;

图4是本发明实施例的扫描方法的操作示意图之一;FIG. 4 is one of the operation schematic diagrams of the scanning method according to the embodiment of the present invention;

图5是本发明实施例的终端设备的显示界面示意图之二;5 is the second schematic diagram of the display interface of the terminal device according to the embodiment of the present invention;

图6是本发明实施例的扫描方法的操作示意图之二;6 is the second schematic diagram of the operation of the scanning method according to the embodiment of the present invention;

图7是本发明实施例的终端设备的显示界面示意图之三;7 is a third schematic diagram of a display interface of a terminal device according to an embodiment of the present invention;

图8是本发明实施例的扫描方法的流程图之三;8 is the third flowchart of the scanning method according to the embodiment of the present invention;

图9是本发明实施例的终端设备的显示界面示意图之四;9 is a fourth schematic diagram of a display interface of a terminal device according to an embodiment of the present invention;

图10是本发明实施例的扫描方法的流程图之四;FIG. 10 is the fourth flowchart of the scanning method according to the embodiment of the present invention;

图11是本发明实施例的扫描方法的操作示意图之三;11 is the third schematic diagram of the operation of the scanning method according to the embodiment of the present invention;

图12是本发明实施例的终端设备的显示界面示意图之五;12 is a fifth schematic diagram of a display interface of a terminal device according to an embodiment of the present invention;

图13是本发明实施例的扫描方法的流程图之五;13 is the fifth flowchart of the scanning method according to the embodiment of the present invention;

图14是本发明实施例的终端设备的显示界面示意图之六:14 is a sixth schematic diagram of a display interface of a terminal device according to an embodiment of the present invention:

图15是本发明实施例的终端设备的框图之一;15 is one of the block diagrams of the terminal device according to the embodiment of the present invention;

图16是本发明实施例的终端设备的框图之二。FIG. 16 is the second block diagram of a terminal device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

参见图1,示出了本发明一个实施例的扫描方法的流程图,应用于终端设备,包括:Referring to FIG. 1, a flowchart of a scanning method according to an embodiment of the present invention is shown, applied to a terminal device, including:

步骤S1:在扫描界面通过摄像头对至少一个图形码进行扫描。Step S1: Scan at least one graphic code through the camera on the scanning interface.

优选地,扫描界面包括扫描窗口显示区域,扫描窗口显示区域用于扫描图形码。Preferably, the scan interface includes a scan window display area, and the scan window display area is used for scanning graphic codes.

在一种优选方案中,用户进入终端设备的扫描界面,扫描窗口对准一个图形码进行扫描。In a preferred solution, the user enters the scanning interface of the terminal device, and the scanning window is aligned with a graphic code to scan.

在另一种优选方案中,用户进入终端设备的扫描界面,扫描窗口对准一个图形码,并连续地依次对准多个图形码进行扫描。In another preferred solution, the user enters the scanning interface of the terminal device, aligns the scanning window with one graphic code, and scans multiple graphic codes in sequence in succession.

在另一种优选方案中,用户打开终端设备的扫描界面,扫描窗口通对准多个图形码进行扫描,即多个图形码同框出现。In another preferred solution, the user opens the scanning interface of the terminal device, and the scanning window is scanned by aiming at multiple graphic codes, that is, multiple graphic codes appear in the same frame.

优选地,在扫描中,通过图像获取设备(如摄像头)抓取图形码的图像数据。Preferably, during scanning, the image data of the graphic code is captured by an image acquisition device (such as a camera).

步骤S2:分别识别至少一个图形码对应的目标内容,并将目标内容显示在扫描界面。Step S2: Identify the target content corresponding to at least one graphic code respectively, and display the target content on the scanning interface.

优选地,图形码扫描器内置部分图形码识别的功能,如支付宝图形码、微信图形码、共享单车图形码、快递图形码等,从而图形码扫描器可根据获取的图形码的图像数据,识别图形码对应的目标内容。Preferably, the graphic code scanner has a built-in function for identifying some graphic codes, such as Alipay graphic code, WeChat graphic code, shared bicycle graphic code, express graphic code, etc., so that the graphic code scanner can identify the image data of the acquired graphic code. The target content corresponding to the graphic code.

其中,对于多个图形码同框出现的情况,图形码扫描器可对扫描窗口内的图像数据进行分割处理,以分割出多个图形码的图像数据,以便于分别获取每个图形码的图像数据,从而识别每个图形码对应的目标内容。Among them, for the situation where multiple graphic codes appear in the same frame, the graphic code scanner can perform segmentation processing on the image data in the scanning window, so as to divide the image data of multiple graphic codes, so as to obtain the image of each graphic code respectively. data, so as to identify the target content corresponding to each graphic code.

优选地,显示界面还包括扫描结果显示区域,扫描结果显示区域用于显示每个图形码对应的目标内容。Preferably, the display interface further includes a scan result display area, and the scan result display area is used to display the target content corresponding to each graphic code.

优选地,基于对图形码的扫描结果,提取一些关键信息作为目标内容,从而直接在扫描界面仅显示图形码对应的目标内容。目标内容包括支付信息、好友信息、快递信息等。例如,对于好友名片的图形码,目标内容为好友名称,如“张三”。Preferably, based on the scanning result of the graphic code, some key information is extracted as the target content, so that only the target content corresponding to the graphic code is directly displayed on the scanning interface. The target content includes payment information, friend information, express information and so on. For example, for the graphic code of a friend's business card, the target content is the friend's name, such as "Zhang San".

可见,本实施例向用户呈现扫描结果的方式为:在扫描界面显示图形码的目标内容,而不直接进行界面的跳转,特别是对于多个图形码,可达到同步扫描,以及同步显示结果的效果。It can be seen that the method of presenting the scanning result to the user in this embodiment is: displaying the target content of the graphic code on the scanning interface without directly performing interface jumping, especially for multiple graphic codes, synchronous scanning can be achieved, and the results can be displayed synchronously Effect.

优选地,图形码为二维码信息,对应地,图形码扫描器为二维码扫描器。Preferably, the graphic code is two-dimensional code information, and correspondingly, the graphic code scanner is a two-dimensional code scanner.

这样,在本发明实施例中,用户在使用终端设备的扫描功能时,基于一次操作进入扫描界面后,可在扫描界面对准至少一个图形码,并通过通过摄像头对至少一个图形码进行扫描,从而终端设备基于对图形码的图形数据的分析,识别图形码所对应的目标内容,并将图形码所对应的目标内容显示在扫描界面。可见,相比于现有技术,用户在扫描图形码时,特别是扫描多个图形码时,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描及识别后,在扫描界面显示图形码对应的目标内容,用户可在扫描界面看到扫描结果,节省了用户在应用界面和扫描界面之间的切换操作,从而缩短用户在扫描事件中的耗时,提高效率。In this way, in this embodiment of the present invention, when using the scanning function of the terminal device, after entering the scanning interface based on one operation, the user can align at least one graphic code on the scanning interface, and scan the at least one graphic code through the camera, Therefore, based on the analysis of the graphic data of the graphic code, the terminal device identifies the target content corresponding to the graphic code, and displays the target content corresponding to the graphic code on the scanning interface. It can be seen that, compared with the prior art, when a user scans a graphic code, especially when scanning multiple graphic codes, there is no need to perform repeated interface switching operations, and only one operation is required to enter the scanning interface. The interface displays the target content corresponding to the graphic code, and the user can see the scanning result on the scanning interface, which saves the user's switching operation between the application interface and the scanning interface, thereby shortening the time-consuming of the user in the scanning event and improving the efficiency.

其中,本发明实施例可对一个图形码进行扫描,也可对多个图形码进行扫描,相比于扫描界面连续地依次扫描多个图形码的方案,扫描界面同框扫描多个图形码的方案(如图2所示)可进一步减少用户耗时,提高效率。Among them, the embodiment of the present invention can scan one graphic code, and can also scan multiple graphic codes. Compared with the scheme of scanning multiple graphic codes in sequence on the scanning interface, the scanning interface scans multiple graphic codes in the same frame. The solution (as shown in Figure 2) can further reduce user time consumption and improve efficiency.

在图1所示实施例的基础上,图3示出了本发明另一个实施例的扫描方法的流程图,步骤S2之后,还包括:On the basis of the embodiment shown in FIG. 1, FIG. 3 shows a flowchart of a scanning method according to another embodiment of the present invention. After step S2, the method further includes:

步骤S3:接收对目标内容的第一输入。Step S3: Receive the first input of the target content.

步骤S4:响应于第一输入,对目标内容执行与第一输入关联的动作。Step S4: In response to the first input, perform an action associated with the first input on the target content.

优选地,第一输入包括多种形式的操作手势,操作手势不限于基于屏幕的触摸手势和隔空手势等。另外,本实施例的第一输入不限于一个操作手势,基于不同的情况,可包括一系列连续的或者间断的多个操作手势。Preferably, the first input includes various forms of operation gestures, and the operation gestures are not limited to screen-based touch gestures, space gestures, and the like. In addition, the first input in this embodiment is not limited to one operation gesture, and may include a series of continuous or intermittent multiple operation gestures based on different situations.

进一步地,在本实施例的应用场景中,可基于用户的需求,设计多种第一输入的实现方式,以及与其对应的关联动作。Further, in the application scenario of this embodiment, a variety of implementation manners of the first input and associated actions corresponding thereto may be designed based on user requirements.

参见图4和图5,示例性地,每条目标内容的最右侧都有一个删除按钮,用户点击此按钮即可删除对应的目标内容(如图4所示的支付宝-支付2)。Referring to Figure 4 and Figure 5, exemplarily, there is a delete button on the far right of each piece of target content, and the user can click this button to delete the corresponding target content (Alipay-Payment 2 shown in Figure 4).

示例性地,用户点击任一条目标内容,显示界面跳转至该目标内容所在的应用界面,用户可在应用界面进行下一步操作,或查看目标内容的详细信息。Exemplarily, when the user clicks on any piece of target content, the display interface jumps to the application interface where the target content is located, and the user can perform the next operation on the application interface, or view the detailed information of the target content.

其中,对于扫描器能够识别的图形码的图像数据,可以在该步骤中帮助用户预设跳转路径,例如支付宝支付跳转,从而用户点击目标内容时,直接跳转至对应的应用界面。For the image data of the graphic code that can be recognized by the scanner, the user can preset a jump path in this step, such as Alipay payment jump, so that when the user clicks on the target content, the user directly jumps to the corresponding application interface.

示例性地,用户长按任一条目标内容,弹出操作框,操作框内显示有至少一个操作选项,用户可进一步点击操作框内的操作选项,对目标内容进行操作,从而终端设备响应于用户的操作,对目标内容执行对应的处理动作。Exemplarily, the user presses any piece of target content for a long time, and an operation box pops up, and at least one operation option is displayed in the operation box. The user can further click the operation option in the operation box to operate the target content, so that the terminal device responds to the user's operation to perform the corresponding processing action on the target content.

可参考地,目标内容为好友信息时,操作框显示“添加目标内容(如图6和图7中的张三)为新的好友”,操作选项如“是”和“否”,通过用户点击“是”和“否”选项的操作,终端设备可对当前显示的目标内容执行添加好友动作。For reference, when the target content is friend information, the operation box displays "Add the target content (as shown in Figure 6 and Zhang San in Figure 7) as a new friend", and the operation options such as "Yes" and "No" can be clicked by the user. For the operations of the "Yes" and "No" options, the terminal device can perform the action of adding a friend to the currently displayed target content.

目标内容为支付信息时,操作框显示“向目标内容支付”,操作选项如“是”和“否”,通过用户点击“是”和“否”选项的操作,终端设备可对当前显示的目标内容执行支付动作。When the target content is payment information, the operation box displays "Pay to the target content", and the operation options are "Yes" and "No". The content performs the payment action.

此外,通过用户更多的第一输入,还可以对当前显示的每条目标内容执行更多的动作,具体可执行动作与目标内容所属的类型关联。In addition, through more first inputs by the user, more actions can also be performed on each piece of target content currently displayed, and the specific executable actions are associated with the type to which the target content belongs.

在本实施例中,显示界面切换至扫描界面后,用户可在扫描界面对至少一个图形码进行扫描,从而基于扫描结果,终端设备可提取其中的部分信息作为目标内容,并将至少一个图形码对应的目标内容直接显示在扫描界面,进而用户对扫描结果一目了然。进一步地,用户通过第一输入可对扫描结果中的目标内容进行快捷操作,从而终端设备对该目标内容执行对应动作。相比于扫描后直接将显示界面切换至图形码对应的应用界面,本实施例提供了一种新颖的显示方式,一方面,实现了多个图形码的扫描结果同界面显示,另一方面,便于用户在扫描界面选择性地对扫描结果进行快捷操作,在简化用户操作步骤的基础上,还可针对性地满足用户对每个目标内容的操作需求,提高用户操作效率,进一步减少用户在扫描事件中的耗时。In this embodiment, after the display interface is switched to the scan interface, the user can scan at least one graphic code on the scan interface, so that based on the scan result, the terminal device can extract part of the information as the target content, and use the at least one graphic code The corresponding target content is directly displayed on the scanning interface, so that the user can see the scanning result at a glance. Further, the user can perform a shortcut operation on the target content in the scan result through the first input, so that the terminal device performs a corresponding action on the target content. Compared with directly switching the display interface to the application interface corresponding to the graphic code after scanning, this embodiment provides a novel display mode. On the one hand, the scanning results of multiple graphic codes are displayed on the same interface; on the other hand, It is convenient for users to selectively operate the scan results quickly on the scanning interface. On the basis of simplifying the user's operation steps, it can also meet the user's operation requirements for each target content, improve the user's operation efficiency, and further reduce the user's scanning time. time in the event.

在图1所示实施例的基础上,图8示出了本发明另一个实施例的扫描方法的流程图,步骤S2包括:On the basis of the embodiment shown in FIG. 1 , FIG. 8 shows a flowchart of a scanning method according to another embodiment of the present invention. Step S2 includes:

步骤S21:分别识别至少一个图形码对应的目标内容。Step S21: Identify the target content corresponding to at least one graphic code respectively.

步骤S22:根据至少一个图形码对应的目标内容,识别目标内容所属的目标类型。Step S22: Identify the target type to which the target content belongs according to the target content corresponding to at least one graphic code.

优选地,可对图形码对应的目标内容按照所属应用、所实现的功能等进行分类。Preferably, the target content corresponding to the graphic code can be classified according to the application to which it belongs, the function to be implemented, and the like.

示例性地,图形码对应的内容所属的类型可包括支付宝、微信、共享单车、快递等类型。Exemplarily, the type to which the content corresponding to the graphic code belongs may include types such as Alipay, WeChat, shared bicycles, and express delivery.

示例性地,图形码对应的内容所属的类型还可包括付款、收款、查询、好友添加等类型。Exemplarily, the type to which the content corresponding to the graphic code belongs may also include types such as payment, payment, inquiry, and friend addition.

更进一步地,图形码对应的内容所属的类型还可包括支付宝付款、支付宝收款、微信付款、微信收款、微信好友添加等类型。Further, the type to which the content corresponding to the graphic code belongs may also include types such as Alipay payment, Alipay collection, WeChat payment, WeChat payment, and WeChat friend addition.

步骤S23:在扫描界面中,将目标内容显示在所属的目标类型的目录下。Step S23: In the scanning interface, the target content is displayed under the directory of the target type to which it belongs.

优选地,可首先判断目标内容所属的目标类型是否已存在于终端设备的历史扫描数据中。可参考地,可获取终端设备已存在的扫描结果队列中的数据,以获取历史扫描数据中已存在的类型,将目标内容所属的目标类型与已存在的类型进行比对,若比对成功,则判定为已存在目标类型。Preferably, it can be first determined whether the target type to which the target content belongs already exists in the historical scan data of the terminal device. For reference, the data in the existing scan result queue of the terminal device can be obtained to obtain the existing type in the historical scan data, and the target type to which the target content belongs is compared with the existing type. If the comparison is successful, It is determined that the target type already exists.

进一步地,若比对失败,则判定为不存在目标类型,可在历史扫描数据中新建目标类型。Further, if the comparison fails, it is determined that there is no target type, and a new target type can be created in the historical scan data.

可见,本实施例为了实现图形码批量扫描结果显示,需要在终端设备保存历史扫描结果,进一步地,历史扫描结果队列中的数据按照分类的方式进行存储,以便与目标类型进行比对。It can be seen that in this embodiment, in order to realize the batch scanning result display of graphic codes, it is necessary to save the historical scanning results in the terminal device, and further, the data in the historical scanning result queue is stored in a classified manner so as to be compared with the target type.

因此,在该步骤中,将同类的扫描结果对应的目标内容放置在相同分类中。参见图9,扫描界面显示多个目标类型,如支付宝、微信,且每个目标类型的目录下可分别显示目标内容,如支付宝类型下的支付宝-支付1、微信类型下的微信-支付1。Therefore, in this step, the target contents corresponding to the same type of scan results are placed in the same category. Referring to Figure 9, the scanning interface displays multiple target types, such as Alipay and WeChat, and the target content can be displayed separately under the directory of each target type, such as Alipay-Pay 1 under the Alipay type and WeChat-Pay 1 under the WeChat type.

这样,在本发明实施例中,终端设备基于对图形码的图形数据的分析,识别图形码对应的目标内容,并识别图形码对应的目标内容所属的目标类型,基于不同的目标类型,分别将同一类型的目标内容集中显示。可见,相比于现有技术,用户在扫描事件中,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描后,终端设备可在扫描界面显示图形码对应的目标内容,且图形码对应的目标内容按照分类显示,便于用户快速识别进行相关操作;特别是用户在扫描多个图形码时,终端设备可在扫描界面显示多个图形码对应的目标内容,且多个图形码对应的目标内容按照分类显示,便于用户快速识别进行相关操作,从而进一步减少用户耗时,提高效率。In this way, in the embodiment of the present invention, the terminal device identifies the target content corresponding to the graphic code based on the analysis of the graphic data of the graphic code, and identifies the target type to which the target content corresponding to the graphic code belongs. Targeted content of the same type is displayed collectively. It can be seen that, compared with the prior art, the user does not need to perform repeated interface switching operations during the scanning event, and only needs to perform one operation to enter the scanning interface. After the scanning is completed, the terminal device can display the target content corresponding to the graphic code on the scanning interface. And the target content corresponding to the graphic code is displayed according to the classification, which is convenient for the user to quickly identify and perform related operations; especially when the user scans multiple graphic codes, the terminal device can display the target content corresponding to the multiple graphic codes on the scanning interface, and the multiple graphic codes are displayed. The target content corresponding to the code is displayed by category, which is convenient for users to quickly identify and perform related operations, thereby further reducing user time consumption and improving efficiency.

在图8所示实施例的基础上,图10示出了本发明一个实施例的扫描方法的流程图,步骤S23之后,还包括:On the basis of the embodiment shown in FIG. 8 , FIG. 10 shows a flowchart of a scanning method according to an embodiment of the present invention. After step S23, the method further includes:

步骤S5:接收对目标类型的第二输入。Step S5: Receive a second input of the target type.

步骤S6:响应于第二输入,对目标类型的目录下包括的目标内容执行与第二输入关联的动作。Step S6: In response to the second input, perform an action associated with the second input on the target content included in the directory of the target type.

优选地,第二输入包括多种形式的操作手势,操作手势不限于基于屏幕的触摸手势和隔空手势等。另外,本实施例的第二输入不限于一个操作手势,基于不同的情况,可包括一系列连续的或者间断的多个操作手势。Preferably, the second input includes various forms of operation gestures, and the operation gestures are not limited to screen-based touch gestures, space gestures, and the like. In addition, the second input in this embodiment is not limited to one operation gesture, and may include a series of continuous or intermittent multiple operation gestures based on different situations.

进一步地,在本实施例的应用场景中,可基于用户的需求,设计多种第二输入的实现方式,以及与其对应的关联动作。Further, in the application scenario of this embodiment, various implementation manners of the second input and associated actions corresponding thereto may be designed based on user requirements.

示例性地,用户点击目标类型标题(如图11所示的“微信”),可实现折叠和展开该目标类型下所有的目标内容(如图12所示的“微信-支付1”)。Exemplarily, the user clicks on the title of the target type (“WeChat” as shown in FIG. 11 ) to collapse and expand all the target contents under the target type (“WeChat-Payment 1” as shown in FIG. 12 ).

示例性地,用户长按目标类型标题,弹出批量操作框,批量操作框内显示有至少一个批量操作选项,用户可进一步点击批量操作框内的批量操作选项,对目标类型目录下的目标内容进行批量操作,从而终端设备响应于用户的操作,对目标类型目录下的目标内容执行批量处理动作。Exemplarily, the user presses the title of the target type for a long time, and a batch operation box pops up, and at least one batch operation option is displayed in the batch operation box. Batch operation, so that the terminal device performs batch processing actions on the target content under the target type directory in response to the user's operation.

其中,目标类型为任一类型时,批量操作选项如“批量删除”,用户点击“批量删除”选项可以将当前显示的此类目标内容全部清空。Among them, when the target type is any type, the batch operation option is such as "batch delete", and the user can click the "batch delete" option to clear all the currently displayed target content of this type.

目标类型为支付类型时,批量操作选项如“一键支付”,通过用户点击“一键支付”选项的操作,终端设备可以对当前显示的此类目标内容执行批量支付动作。进一步地,用户点击“一键支付”选项后,显示界面跳转至支付界面,用户可填入支付金额,完成批量支付。When the target type is payment type, batch operation options such as "one-click payment", through the operation of the user clicking the "one-click payment" option, the terminal device can perform batch payment actions for the currently displayed target content of this type. Further, after the user clicks the "one-click payment" option, the display interface jumps to the payment interface, and the user can fill in the payment amount to complete the batch payment.

目标类型为好友名片类型时,批量操作选项如“添加好友”,通过用户点击“添加好友”选项的操作,终端设备可以对当前显示的此类目标内容执行批量添加好友动作。批量操作选项又如“创建群聊”,通过用户点击“创建群聊”选项的操作,终端设备可以对当前显示的此类目标内容执行批量添加群聊动作。When the target type is a friend card type, batch operation options such as "add friends", through the user's operation of clicking the "add friend" option, the terminal device can perform batch add friends action for the currently displayed target content of this type. The batch operation option is another example of "create group chat". Through the operation of the user clicking the "create group chat" option, the terminal device can perform the action of adding group chats in batches to the currently displayed target content.

此外,基于用户的第二输入,还可对当前显示的此类目标内容批量执行或依次执行更多的下一步动作,具体动作与类型关联。In addition, based on the second input of the user, more next actions may be performed on the currently displayed target content in batches or in sequence, and the specific actions are associated with the type.

在本实施例中,在扫描结果中,将目标类型作为节点显示,目标内容作为子节点,用户通过第二输入可对任一类型下的所有目标内容进行批量操作,从而终端设备对该类型下的所有目标内容执行批量动作,在简化用户扫描操作步骤的基础上,进一步简化了用户对扫描结果的处理步骤,进而进一步减少耗时,提高效率。In this embodiment, in the scanning result, the target type is displayed as a node, and the target content is used as a sub-node. The user can perform batch operations on all target contents of any type through the second input, so that the terminal device can perform a batch operation on all target contents of this type. All the target contents of the system perform batch actions, and on the basis of simplifying the user's scanning operation steps, the user's processing steps for the scanning results are further simplified, thereby further reducing time-consuming and improving efficiency.

在图8所示实施例的基础上,图13示出了本发明一个实施例的扫描方法的流程图,步骤S22包括:On the basis of the embodiment shown in FIG. 8 , FIG. 13 shows a flowchart of a scanning method according to an embodiment of the present invention. Step S22 includes:

步骤S221:根据至少一个图形码对应的目标内容,识别目标内容所属的目标应用程序。Step S221: Identify the target application to which the target content belongs according to the target content corresponding to at least one graphic code.

在本实施例中,可基于图形码对应的目标内容所属的目标应用程序进行分类,即将一个应用程序中的扫描结果进行集中显示,从而便于用户集中分辨和操作。In this embodiment, the classification can be performed based on the target application program to which the target content corresponding to the graphic code belongs, that is, the scanning results in one application program are displayed in a centralized manner, so as to facilitate the centralized identification and operation of the user.

步骤S222:根据至少一个图形码对应的目标内容,识别目标内容所属的目标使用场景。Step S222: Identify the target usage scene to which the target content belongs according to the target content corresponding to at least one graphic code.

在本实施例中,可基于图形码对应的目标内容所属的目标使用场景进行分类,即将一种使用场景中的扫描结果进行集中显示,从而便于用户集中分辨和操作。In this embodiment, the classification can be performed based on the target usage scenario to which the target content corresponding to the graphic code belongs, that is, the scanning results in one usage scenario are displayed in a centralized manner, so as to facilitate the centralized identification and operation of the user.

例如,可将用于支付场景的目标内容显示在同一类型下;将用于社交场景的目标内容显示在同一类型下;将用于物流场景的目标内容显示在同一类型下。For example, target content for payment scenarios may be displayed under the same type; target content for social scenarios may be displayed under the same type; and target content for logistics scenarios may be displayed under the same type.

优选地,可依据目标内容所属的目标应用程序或者目标使用场景进行分类;还可结合目标内容所属的目标应用程序和目标使用场景进行分类。Preferably, the classification can be performed according to the target application program or the target usage scenario to which the target content belongs; the classification can also be performed in combination with the target application program and the target usage scenario to which the target content belongs.

优选地,多个维度的类型可同时存在。Preferably, types of multiple dimensions can exist simultaneously.

参见图14,其中,对于扫描器无法识别的图形码的图像数据,可以直接将扫描结果回显到扫描界面,提供用户查看、复制或跳转浏览器访问url地址。Referring to FIG. 14 , for the image data of the graphic code that cannot be recognized by the scanner, the scanning result can be directly echoed to the scanning interface, providing the user to view, copy or jump to the browser to access the url address.

进一步地,将无法识别的图形码的图像数据,作为一种类型进行集中显示。Further, the image data of the unrecognized graphic code is displayed as one type in a centralized manner.

综上,本发明实施例是对图形码扫描的交互方式进行创新,提供了一种方便、快捷的图形码扫描识别和跳转方法,优化图形码扫描的步骤,缩短操作时间,提高效率,提升用户体验。其中,至少可应用于多次单个图形码的扫描方式和单次多个图形码的扫描方式。To sum up, the embodiment of the present invention innovates the interactive mode of graphic code scanning, provides a convenient and fast graphic code scanning identification and jumping method, optimizes the steps of graphic code scanning, shortens operation time, improves efficiency, and improves user experience. Among them, at least it can be applied to the scanning mode of multiple single graphic codes and the scanning mode of multiple graphic codes at a time.

图15示出了本发明另一个实施例的终端设备的框图,包括:FIG. 15 shows a block diagram of a terminal device according to another embodiment of the present invention, including:

扫描模块10,用于在扫描界面通过摄像头对至少一个图形码进行扫描;The scanning module 10 is used for scanning at least one graphic code through the camera on the scanning interface;

显示模块20,用于分别识别至少一个图形码对应的目标内容,并将目标内容显示在扫描界面。The display module 20 is used for identifying the target content corresponding to at least one graphic code respectively, and displaying the target content on the scanning interface.

这样,在本发明实施例中,用户在使用终端设备的扫描功能时,基于一次操作进入扫描界面后,可在扫描界面对准至少一个图形码,并通过通过摄像头对至少一个图形码进行扫描,从而终端设备基于对图形码的图形数据的分析,识别图形码所对应的目标内容,并将图形码所对应的目标内容显示在扫描界面。可见,相比于现有技术,用户在扫描图形码时,特别是扫描多个图形码时,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描及识别后,在扫描界面显示图形码对应的目标内容,用户可在扫描界面看到扫描结果,节省了用户在应用界面和扫描界面之间的切换操作,从而缩短用户在扫描事件中的耗时,提高效率。In this way, in this embodiment of the present invention, when using the scanning function of the terminal device, after entering the scanning interface based on one operation, the user can align at least one graphic code on the scanning interface, and scan the at least one graphic code through the camera, Therefore, based on the analysis of the graphic data of the graphic code, the terminal device identifies the target content corresponding to the graphic code, and displays the target content corresponding to the graphic code on the scanning interface. It can be seen that, compared with the prior art, when a user scans a graphic code, especially when scanning multiple graphic codes, there is no need to perform repeated interface switching operations, and only one operation is required to enter the scanning interface. The interface displays the target content corresponding to the graphic code, and the user can see the scanning result on the scanning interface, which saves the user's switching operation between the application interface and the scanning interface, thereby shortening the time-consuming of the user in the scanning event and improving the efficiency.

优选地,终端设备还包括:Preferably, the terminal device further includes:

第一输入接收模块,用于接收对目标内容的第一输入;a first input receiving module for receiving a first input to the target content;

第一输入响应模块,用于响应于第一输入,对目标内容执行与第一输入关联的动作。A first input response module, configured to perform an action associated with the first input on the target content in response to the first input.

优选地,显示模块20包括:Preferably, the display module 20 includes:

识别单元,用于分别识别至少一个图形码对应的目标内容;an identification unit for identifying the target content corresponding to at least one graphic code respectively;

分类单元,用于根据至少一个图形码对应的目标内容,识别目标内容所属的目标类型;A classification unit for identifying the target type to which the target content belongs according to the target content corresponding to at least one graphic code;

分类显示单元,用于在扫描界面中,将目标内容显示在所属的目标类型的目录下。The classification display unit is used to display the target content in the directory of the target type it belongs to in the scanning interface.

优选地,终端设备还包括:Preferably, the terminal device further includes:

第二输入接收模块,用于接收对目标类型的第二输入;a second input receiving module for receiving a second input of the target type;

第二输入响应模块,用于响应于第二输入,对目标类型的目录下包括的目标内容执行与第二输入关联的动作。The second input response module is configured to, in response to the second input, perform an action associated with the second input on the target content included in the target type directory.

优选地,分类单元包括:Preferably, the classification unit includes:

第一分类子单元,用于根据至少一个图形码对应的目标内容,识别目标内容所属的目标应用程序;和/或,A first classification subunit, used for identifying the target application to which the target content belongs according to the target content corresponding to at least one graphic code; and/or,

第二分类子单元,用于根据至少一个图形码对应的目标内容,识别目标内容所属的目标使用场景。The second classification subunit is configured to identify the target usage scene to which the target content belongs according to the target content corresponding to at least one graphic code.

本发明实施例提供的终端设备能够实现图1至图14的方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided in the embodiment of the present invention can implement each process implemented by the terminal device in the method embodiments of FIG. 1 to FIG. 14 , and to avoid repetition, details are not repeated here.

图16为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图16中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。16 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present invention. The terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , the user input unit 107 , the interface unit 108 , the memory 109 , the processor 110 , and the power supply 111 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 16 does not constitute a limitation on the terminal device, and the terminal device may include more or less components than those shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the terminal device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器110,用于在扫描界面通过摄像头对至少一个图形码进行扫描;分别识别至少一个图形码对应的目标内容,并将目标内容显示在扫描界面。The processor 110 is configured to scan at least one graphic code through a camera on the scanning interface; identify the target content corresponding to the at least one graphic code, and display the target content on the scanning interface.

这样,在本发明实施例中,用户在使用终端设备的扫描功能时,基于一次操作进入扫描界面后,可在扫描界面对准至少一个图形码,并通过通过摄像头对至少一个图形码进行扫描,从而终端设备基于对图形码的图形数据的分析,识别图形码所对应的目标内容,并将图形码所对应的目标内容显示在扫描界面。可见,相比于现有技术,用户在扫描图形码时,特别是扫描多个图形码时,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描及识别后,在扫描界面显示图形码对应的目标内容,用户可在扫描界面看到扫描结果,节省了用户在应用界面和扫描界面之间的切换操作,从而缩短用户在扫描事件中的耗时,提高效率。In this way, in this embodiment of the present invention, when using the scanning function of the terminal device, after entering the scanning interface based on one operation, the user can align at least one graphic code on the scanning interface, and scan the at least one graphic code through the camera, Therefore, based on the analysis of the graphic data of the graphic code, the terminal device identifies the target content corresponding to the graphic code, and displays the target content corresponding to the graphic code on the scanning interface. It can be seen that, compared with the prior art, when a user scans a graphic code, especially when scanning multiple graphic codes, there is no need to perform repeated interface switching operations, and only one operation is required to enter the scanning interface. The interface displays the target content corresponding to the graphic code, and the user can see the scanning result on the scanning interface, which saves the user's switching operation between the application interface and the scanning interface, thereby shortening the time-consuming of the user in the scanning event and improving the efficiency.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals in the process of sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 110; The uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.

终端设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides the user with wireless broadband Internet access through the network module 102, such as helping the user to send and receive emails, browse web pages, and access streaming media.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into audio signals and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102 . The microphone 1042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.

终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可基于环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 based on the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and the display panel 1061 when the terminal device 100 moves to the ear. / or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 1071). operate). The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110基于触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图16中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be covered on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event based on the touch The type of event provides corresponding visual output on display panel 1061 . Although in FIG. 16 , the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the terminal device, but in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated The input and output functions of the terminal device are implemented, which is not specifically limited here.

接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the terminal device 100 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 may be used to receive input from external devices (eg, data information, power, etc.) and transmit the received input to one or more elements within the terminal device 100 or may be used between the terminal device 100 and external Transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储基于手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器110是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal device, uses various interfaces and lines to connect various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 109, and calls the data stored in the memory 109. , perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .

终端设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some unshown functional modules, which are not repeated here.

优选的,本发明实施例还提供一种终端设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a terminal device, including a processor 110 , a memory 109 , a computer program stored in the memory 109 and running on the processor 110 , when the computer program is executed by the processor 110 Various processes of the above scanning method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing scanning method embodiment can be realized, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (11)

1. A scanning method, comprising:
scanning at least one graphic code through a camera on a scanning interface;
and respectively identifying target content corresponding to the at least one graphic code, and displaying the target content on the scanning interface.
2. The method according to claim 1, wherein the respectively identifying and displaying the target content corresponding to the at least one graphic code after the scanning interface further comprises:
receiving a first input to the target content;
in response to the first input, performing an action associated with the first input on the target content.
3. The method according to claim 1, wherein the respectively identifying and displaying the target content corresponding to the at least one graphic code on the scanning interface comprises:
respectively identifying target contents corresponding to the at least one graphic code;
identifying a target type to which the target content belongs according to the target content corresponding to the at least one graphic code;
and displaying the target content under the catalogue of the target type in the scanning interface.
4. The method of claim 3, wherein after displaying the target content under a directory of the target type in the scanning interface, further comprising:
receiving a second input to the target type;
in response to the second input, performing an action associated with the second input on target content included under the directory of the target type.
5. The method according to claim 3, wherein the identifying, according to the target content corresponding to the at least one graphic code, the target type to which the target content belongs comprises:
identifying a target application program to which the target content belongs according to the target content corresponding to the at least one graphic code; and/or the presence of a gas in the gas,
and identifying a target use scene to which the target content belongs according to the target content corresponding to the at least one graphic code.
6. A terminal device, comprising:
the scanning module is used for scanning at least one graphic code through the camera on the scanning interface;
and the display module is used for respectively identifying the target content corresponding to the at least one graphic code and displaying the target content on the scanning interface.
7. The terminal device according to claim 6, wherein the terminal device further comprises:
a first input receiving module for receiving a first input to the target content;
a first input response module to perform an action associated with the first input on the target content in response to the first input.
8. The terminal device of claim 6, wherein the display module comprises:
the identification unit is used for respectively identifying the target content corresponding to the at least one graphic code;
the classification unit is used for identifying the target type of the target content according to the target content corresponding to the at least one graphic code;
and the classification display unit is used for displaying the target content under the catalogue of the target type in the scanning interface.
9. The terminal device according to claim 8, wherein the terminal device further comprises:
a second input receiving module for receiving a second input to the target type;
a second input response module for performing an action associated with the second input on target content included under the directory of the target type in response to the second input.
10. The terminal device according to claim 8, wherein the classifying unit comprises:
the first classification subunit is used for identifying a target application program to which the target content belongs according to the target content corresponding to the at least one graphic code; and/or the presence of a gas in the gas,
and the second classification subunit is used for identifying a target use scene to which the target content belongs according to the target content corresponding to the at least one graphic code.
11. A terminal device, characterized in that it comprises a processor, a memory, a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the scanning method according to any one of claims 1 to 5.
CN201910876993.1A 2019-09-17 2019-09-17 Scanning method and terminal equipment Active CN110674662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910876993.1A CN110674662B (en) 2019-09-17 2019-09-17 Scanning method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910876993.1A CN110674662B (en) 2019-09-17 2019-09-17 Scanning method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110674662A true CN110674662A (en) 2020-01-10
CN110674662B CN110674662B (en) 2023-09-01

Family

ID=69077110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910876993.1A Active CN110674662B (en) 2019-09-17 2019-09-17 Scanning method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110674662B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274842A (en) * 2020-02-25 2020-06-12 维沃移动通信有限公司 Coded image recognition method and electronic device
CN111444737A (en) * 2020-03-25 2020-07-24 维沃移动通信有限公司 A kind of graphic code identification method and electronic equipment
CN111553673A (en) * 2020-05-07 2020-08-18 支付宝(杭州)信息技术有限公司 A kind of information display method and device based on graphic code recognition
CN112699703A (en) * 2019-10-22 2021-04-23 连普乐士株式会社 Pattern recognition method and apparatus, and computer-readable recording medium
CN112749769A (en) * 2020-08-19 2021-05-04 腾讯科技(深圳)有限公司 Graphic code detection method and device, computer equipment and storage medium
CN113010815A (en) * 2021-04-12 2021-06-22 维沃移动通信(杭州)有限公司 Display method and electronic device
CN113128244A (en) * 2021-03-12 2021-07-16 维沃移动通信有限公司 Scanning method and device and electronic equipment
CN114330403A (en) * 2020-10-09 2022-04-12 腾讯科技(深圳)有限公司 Graphic code processing method, device, equipment and medium
CN117422461A (en) * 2023-12-15 2024-01-19 金财数科(北京)信息技术有限公司 Mobile phone batch payment system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875181A (en) * 2017-02-28 2017-06-20 努比亚技术有限公司 A kind of barcode scanning payment processing method and mobile terminal
CN107133834A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 Method for information display and device
CN107194690A (en) * 2017-06-23 2017-09-22 珠海市魅族科技有限公司 A kind of two-dimensional code scanning method and terminal, computer installation and readable storage medium storing program for executing
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A method and device for identifying target pattern codes
CN108122105A (en) * 2017-12-21 2018-06-05 维沃移动通信有限公司 A kind of method of payment and mobile terminal
WO2019101097A1 (en) * 2017-11-23 2019-05-31 维沃移动通信有限公司 Code scanning method, code scanning device and mobile terminal
CN110210271A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of information processing method and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133834A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 Method for information display and device
CN106875181A (en) * 2017-02-28 2017-06-20 努比亚技术有限公司 A kind of barcode scanning payment processing method and mobile terminal
CN107194690A (en) * 2017-06-23 2017-09-22 珠海市魅族科技有限公司 A kind of two-dimensional code scanning method and terminal, computer installation and readable storage medium storing program for executing
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A method and device for identifying target pattern codes
WO2019101097A1 (en) * 2017-11-23 2019-05-31 维沃移动通信有限公司 Code scanning method, code scanning device and mobile terminal
CN108122105A (en) * 2017-12-21 2018-06-05 维沃移动通信有限公司 A kind of method of payment and mobile terminal
CN110210271A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of information processing method and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王红勤: "高校设备管理系统中Android客户端的设计与实现", 《电脑知识与技术》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699703A (en) * 2019-10-22 2021-04-23 连普乐士株式会社 Pattern recognition method and apparatus, and computer-readable recording medium
CN111274842A (en) * 2020-02-25 2020-06-12 维沃移动通信有限公司 Coded image recognition method and electronic device
CN111274842B (en) * 2020-02-25 2024-05-24 维沃移动通信有限公司 Coded image recognition method and electronic device
CN111444737A (en) * 2020-03-25 2020-07-24 维沃移动通信有限公司 A kind of graphic code identification method and electronic equipment
CN111553673A (en) * 2020-05-07 2020-08-18 支付宝(杭州)信息技术有限公司 A kind of information display method and device based on graphic code recognition
CN114119008A (en) * 2020-05-07 2022-03-01 支付宝(杭州)信息技术有限公司 Information display method and device based on graphic code identification
CN112749769A (en) * 2020-08-19 2021-05-04 腾讯科技(深圳)有限公司 Graphic code detection method and device, computer equipment and storage medium
CN112749769B (en) * 2020-08-19 2024-06-14 腾讯科技(深圳)有限公司 Graphic code detection method, graphic code detection device, computer equipment and storage medium
CN114330403A (en) * 2020-10-09 2022-04-12 腾讯科技(深圳)有限公司 Graphic code processing method, device, equipment and medium
WO2022073419A1 (en) * 2020-10-09 2022-04-14 腾讯科技(深圳)有限公司 Graphic code processing method and apparatus, and device and medium
CN114330403B (en) * 2020-10-09 2023-07-25 腾讯科技(深圳)有限公司 Graphic code processing method, device, equipment and medium
US11809951B2 (en) * 2020-10-09 2023-11-07 Tencent Technology (Shenzhen) Company Limited Graphic code processing method, apparatus, and device, and medium
WO2022188803A1 (en) * 2021-03-12 2022-09-15 维沃移动通信有限公司 Scanning method and apparatus, and electronic device
CN113128244A (en) * 2021-03-12 2021-07-16 维沃移动通信有限公司 Scanning method and device and electronic equipment
CN113010815A (en) * 2021-04-12 2021-06-22 维沃移动通信(杭州)有限公司 Display method and electronic device
CN117422461A (en) * 2023-12-15 2024-01-19 金财数科(北京)信息技术有限公司 Mobile phone batch payment system and method
CN117422461B (en) * 2023-12-15 2024-03-22 金财数科(北京)信息技术有限公司 Mobile phone batch payment system and method

Also Published As

Publication number Publication date
CN110674662B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN110674662B (en) Scanning method and terminal equipment
CN107943390B (en) Character copying method and mobile terminal
CN108924037A (en) A kind of display methods and mobile terminal of rich media communications RCS message
CN110865745A (en) Screen capturing method and terminal equipment
CN108519850A (en) A kind of keyboard interface display methods and mobile terminal
CN111124223A (en) Application interface switching method and electronic device
CN109753202B (en) Screen capturing method and mobile terminal
CN111610903A (en) Information display method and electronic device
CN111698550A (en) Information display method and device, electronic equipment and medium
CN110795002A (en) A screenshot method and terminal device
CN108510267B (en) Account information acquisition method and mobile terminal
CN110673770A (en) Message display method and terminal equipment
CN110825475A (en) An input method and electronic device
CN108305342A (en) A kind of Work attendance method and mobile terminal
CN107967652B (en) A kind of information sharing method sends lateral terminal, receives lateral terminal and server
CN110796438B (en) Message sending method and mobile terminal
CN108536355A (en) A kind of message display method and mobile terminal
CN108121642A (en) A kind of failure solves method, server and mobile terminal
CN110703967A (en) Short message processing method and terminal equipment thereof
CN111342979A (en) An information processing method and electronic device
CN110750318A (en) Message reply method and device and mobile terminal
CN108366167B (en) A kind of message reminding method and mobile terminal
CN110536010A (en) Interface display method, device and terminal equipment
CN107967086B (en) Method and device for arranging icons of mobile terminal, and mobile terminal
CN109976844A (en) A kind of message display method and mobile terminal

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