Movatterモバイル変換


[0]ホーム

URL:


CN110674662B - Scanning method and terminal equipment - Google Patents

Scanning method and terminal equipment
Download PDF

Info

Publication number
CN110674662B
CN110674662BCN201910876993.1ACN201910876993ACN110674662BCN 110674662 BCN110674662 BCN 110674662BCN 201910876993 ACN201910876993 ACN 201910876993ACN 110674662 BCN110674662 BCN 110674662B
Authority
CN
China
Prior art keywords
target content
target
scanning
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.)
Active
Application number
CN201910876993.1A
Other languages
Chinese (zh)
Other versions
CN110674662A (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 LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201910876993.1ApriorityCriticalpatent/CN110674662B/en
Publication of CN110674662ApublicationCriticalpatent/CN110674662A/en
Application grantedgrantedCritical
Publication of CN110674662BpublicationCriticalpatent/CN110674662B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种扫描方法及终端设备,涉及通信技术领域,以解决现有的扫描方法使得用户在扫描多个二维码时具有耗时长、效率低的问题。其中,所述扫描方法,包括:在扫描界面通过摄像头对至少一个图形码进行扫描;分别识别所述至少一个图形码对应的目标内容,并将所述目标内容显示在所述扫描界面。本发明实施例中的扫描方法应用于终端设备中。

Embodiments of the present invention provide a scanning method and a terminal device, which relate to the field of communication technology, to solve the problem that the existing scanning method makes it time-consuming and inefficient for users to scan multiple two-dimensional codes. Wherein, the scanning method includes: scanning at least one graphic code through a camera on the scanning interface; respectively identifying the 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 present invention is applied to a terminal device.

Description

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

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种扫描方法及终端设备。The embodiments of the present invention relate to the technical field of communication, 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 applied to scenarios such as reading data, jumping to web pages, adding friends, and paying.

其中,现有的扫描方法为:用户打开终端设备的扫描界面,屏幕弹出扫描窗口,用户将扫描窗口对准二维码进行扫描,当终端设备成功识别二维码后,屏幕跳转至二维码对应的显示界面。其中,显示界面如数据回显界面、网页访问界面、添加好友界面、支付费用界面等。Among them, the existing scanning method is: the user opens the scanning interface of the terminal device, a scanning window pops up on the screen, the user aligns the scanning window with the QR code to scan, and when the terminal device successfully recognizes the QR code, the screen jumps to the QR code code corresponding to the display interface. Wherein, the display interface includes a data echo interface, a webpage 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 is successfully recognized and jumps to the display interface, the user needs to switch back to the scanning interface to scan the next QR code. QR code to scan. 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.

发明内容Contents of the invention

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

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

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

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

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

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述扫描方法的步骤。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 the embodiment of the present invention, when the user uses 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 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 scanning a graphic code, especially when scanning multiple graphic codes, the user does not need to perform repeated interface switching operations, and only needs one operation 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 user's time-consuming scanning events and improving efficiency.

附图说明Description of drawings

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

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

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

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

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

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

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

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

图9是本发明实施例的终端设备的显示界面示意图之四;FIG. 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是本发明实施例的扫描方法的操作示意图之三;Fig. 11 is the third schematic diagram of the operation of the scanning method according to the embodiment of the present invention;

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

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

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

图15是本发明实施例的终端设备的框图之一;FIG. 15 is one of the block diagrams of a terminal device according to an 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 following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

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

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

优选地,扫描界面包括扫描窗口显示区域,扫描窗口显示区域用于扫描图形码。Preferably, the scanning interface includes a scanning window display area 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, the scanning window is aligned with one graphic code, and the scanning window is continuously aligned with multiple graphic codes in sequence.

在另一种优选方案中,用户打开终端设备的扫描界面,扫描窗口通对准多个图形码进行扫描,即多个图形码同框出现。In another preferred solution, the user opens the scanning interface of the terminal device, and the scanning window is aligned with multiple graphic codes to scan, 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, and display the target content on the scanning interface.

优选地,图形码扫描器内置部分图形码识别的功能,如支付宝图形码、微信图形码、共享单车图形码、快递图形码等,从而图形码扫描器可根据获取的图形码的图像数据,识别图形码对应的目标内容。Preferably, the graphic code scanner has a built-in part of the graphic code recognition function, 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 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 segment the image data in the scanning window to segment the image data of multiple graphic codes, so as to obtain the image of each graphic code separately data, thereby identifying the target content corresponding to each graphic code.

优选地,显示界面还包括扫描结果显示区域,扫描结果显示区域用于显示每个图形码对应的目标内容。Preferably, the display interface further includes a scanning result display area, which 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, courier information, etc. For example, for the graphic code of a friend's business card, the target content is the name of the friend, 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 instead of directly jumping the interface, especially for multiple graphic codes, synchronous scanning and synchronous display of results can be achieved 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 the embodiment of the present invention, when the user uses 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 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 scanning a graphic code, especially when scanning multiple graphic codes, the user does not need to perform repeated interface switching operations, and only needs one operation 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 user's time-consuming scanning events and improving 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 continuously and sequentially 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, it also 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 and air gestures. 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, various ways of implementing the first input and associated actions corresponding thereto may be designed based on user requirements.

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

示例性地,用户点击任一条目标内容,显示界面跳转至该目标内容所在的应用界面,用户可在应用界面进行下一步操作,或查看目标内容的详细信息。Exemplarily, when the user clicks 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 detailed information of the target content.

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

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

可参考地,目标内容为好友信息时,操作框显示“添加目标内容(如图6和图7中的张三)为新的好友”,操作选项如“是”和“否”,通过用户点击“是”和“否”选项的操作,终端设备可对当前显示的目标内容执行添加好友动作。For reference, when the target content is friend information, the operation box displays "add target content (such as Zhang San in Figure 6 and Figure 7) as a new friend", and the operation options are "Yes" and "No". For the operation of the "Yes" and "No" options, the terminal device can perform the action of adding friends 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". After the user clicks the "yes" and "no" options, the terminal device can check the currently displayed target The content executes the payment action.

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

在本实施例中,显示界面切换至扫描界面后,用户可在扫描界面对至少一个图形码进行扫描,从而基于扫描结果,终端设备可提取其中的部分信息作为目标内容,并将至少一个图形码对应的目标内容直接显示在扫描界面,进而用户对扫描结果一目了然。进一步地,用户通过第一输入可对扫描结果中的目标内容进行快捷操作,从而终端设备对该目标内容执行对应动作。相比于扫描后直接将显示界面切换至图形码对应的应用界面,本实施例提供了一种新颖的显示方式,一方面,实现了多个图形码的扫描结果同界面显示,另一方面,便于用户在扫描界面选择性地对扫描结果进行快捷操作,在简化用户操作步骤的基础上,还可针对性地满足用户对每个目标内容的操作需求,提高用户操作效率,进一步减少用户在扫描事件中的耗时。In this embodiment, after the display interface is switched to the scanning interface, the user can scan at least one graphic code on the scanning interface, so that based on the scanning result, the terminal device can extract part of the information as the target content, and store at least one graphic code The corresponding target content is directly displayed on the scanning interface, so that users can see the scanning results 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 method. 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 perform quick operations on the scanning results on the scanning interface. On the basis of simplifying the user operation steps, it can also meet the user's operation requirements for each target content in a targeted manner, improve user operation efficiency, and further reduce the user's time spent on scanning. Time elapsed 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, and step S2 includes:

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

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

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

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

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

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

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

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

进一步地,若比对失败,则判定为不存在目标类型,可在历史扫描数据中新建目标类型。Further, if the comparison fails, it is determined that the target type does not exist, 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 display of batch scanning results of graphic codes, it is necessary to save the historical scanning results on the terminal device. Further, the data in the historical scanning result queue is stored in a classified manner for comparison with the target type.

因此,在该步骤中,将同类的扫描结果对应的目标内容放置在相同分类中。参见图9,扫描界面显示多个目标类型,如支付宝、微信,且每个目标类型的目录下可分别显示目标内容,如支付宝类型下的支付宝-支付1、微信类型下的微信-支付1。Therefore, in this step, the target content corresponding to the scan results of the same type is 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 category 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, 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 identifies the target type to which the target content corresponding to the graphic code belongs, and based on different target types, respectively Targeted content of the same type is displayed together. 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 operate once 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 multiple graphic codes on the scanning interface, and multiple graphic codes 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, it also includes:

步骤S5:接收对目标类型的第二输入。Step S5: Receive the 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 category 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 and air gestures. 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 second input implementations and associated actions corresponding thereto can be designed based on user requirements.

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

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

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

目标类型为支付类型时,批量操作选项如“一键支付”,通过用户点击“一键支付”选项的操作,终端设备可以对当前显示的此类目标内容执行批量支付动作。进一步地,用户点击“一键支付”选项后,显示界面跳转至支付界面,用户可填入支付金额,完成批量支付。When the target type is the payment type, the batch operation option is "one-click payment". After the user clicks the "one-click payment" option, the terminal device can perform batch payment actions on the currently displayed target content. Furthermore, 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, the batch operation option is "Add Friend". After the user clicks the "Add Friend" option, the terminal device can perform a batch add friend action on this type of target content currently displayed. The batch operation option is another example of "create group chat". After the user clicks on the "create group chat" option, the terminal device can execute the action of adding group chat in batches to the currently displayed target content.

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

在本实施例中,在扫描结果中,将目标类型作为节点显示,目标内容作为子节点,用户通过第二输入可对任一类型下的所有目标内容进行批量操作,从而终端设备对该类型下的所有目标内容执行批量动作,在简化用户扫描操作步骤的基础上,进一步简化了用户对扫描结果的处理步骤,进而进一步减少耗时,提高效率。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 content of any type through the second input, so that the terminal device downloads the target content of the type Batch actions are executed for all the target content. On the basis of simplifying the user's scanning operation steps, it further simplifies the user's processing steps for the scanning results, 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, and step S22 includes:

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

在本实施例中,可基于图形码对应的目标内容所属的目标应用程序进行分类,即将一个应用程序中的扫描结果进行集中显示,从而便于用户集中分辨和操作。In this embodiment, the classification can be 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 collectively displayed, so as to facilitate centralized identification and operation by the user.

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

在本实施例中,可基于图形码对应的目标内容所属的目标使用场景进行分类,即将一种使用场景中的扫描结果进行集中显示,从而便于用户集中分辨和操作。In this embodiment, the classification can be 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 collectively displayed, so as to facilitate centralized identification and operation by the user.

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

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

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

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

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

综上,本发明实施例是对图形码扫描的交互方式进行创新,提供了一种方便、快捷的图形码扫描识别和跳转方法,优化图形码扫描的步骤,缩短操作时间,提高效率,提升用户体验。其中,至少可应用于多次单个图形码的扫描方式和单次多个图形码的扫描方式。In summary, the embodiment of the present invention innovates the interactive mode of graphic code scanning, provides a convenient and fast graphic code scanning identification and jump 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 in one 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 to scan at least one graphic code through the camera on the scanning interface;

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

这样,在本发明实施例中,用户在使用终端设备的扫描功能时,基于一次操作进入扫描界面后,可在扫描界面对准至少一个图形码,并通过通过摄像头对至少一个图形码进行扫描,从而终端设备基于对图形码的图形数据的分析,识别图形码所对应的目标内容,并将图形码所对应的目标内容显示在扫描界面。可见,相比于现有技术,用户在扫描图形码时,特别是扫描多个图形码时,无需进行重复的界面切换操作,只需一次操作进入扫描界面,待完成扫描及识别后,在扫描界面显示图形码对应的目标内容,用户可在扫描界面看到扫描结果,节省了用户在应用界面和扫描界面之间的切换操作,从而缩短用户在扫描事件中的耗时,提高效率。In this way, in the embodiment of the present invention, when the user uses 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 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 scanning a graphic code, especially when scanning multiple graphic codes, the user does not need to perform repeated interface switching operations, and only needs one operation 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 user's time-consuming scanning events and improving efficiency.

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

第一输入接收模块,用于接收对目标内容的第一输入;The first input receiving module is configured to receive the first input of the target content;

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

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

识别单元,用于分别识别至少一个图形码对应的目标内容;A recognition unit, configured to respectively recognize target content corresponding to at least one graphic code;

分类单元,用于根据至少一个图形码对应的目标内容,识别目标内容所属的目标类型;A classification unit, configured to identify 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 configured to display the target content under the category of the target type in the scanning interface.

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

第二输入接收模块,用于接收对目标类型的第二输入;A second input receiving module, configured to receive 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 contained in the target type category.

优选地,分类单元包括:Preferably, taxa include:

第一分类子单元,用于根据至少一个图形码对应的目标内容,识别目标内容所属的目标应用程序;和/或,The first classification subunit is configured to identify the target application program 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 scenario to which the target content belongs according to the target content corresponding to the at least one graphic code.

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

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

其中,处理器110,用于在扫描界面通过摄像头对至少一个图形码进行扫描;分别识别至少一个图形码对应的目标内容,并将目标内容显示在扫描界面。Wherein, the processor 110 is configured to scan at least one graphic code through a camera on the scanning interface; respectively 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 the embodiment of the present invention, when the user uses 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 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 scanning a graphic code, especially when scanning multiple graphic codes, the user does not need to perform repeated interface switching operations, and only needs one operation 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 user's time-consuming scanning events and improving efficiency.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 110 processes it; 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 users with wireless broadband Internet access through the network module 102, such as helping users 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 an audio signal 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 processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The 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 media) or sent 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 may be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in the case of a phone 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 / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of terminal equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be 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 (Liquid Crystal Display, LCD), an organic light-emitting diode (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 can be used to receive input numbers or character information, and generate key signal input related to user settings 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 touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 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, and 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 sends it to the For the processor 110, receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. 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 repeated here.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110基于触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图16中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 may be covered on the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it will be sent to the processor 110 to determine the type of the touch event, and then the processor 110 will The type of event provides a corresponding visual output on the 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, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the terminal device 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, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

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

处理器110是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal equipment, uses various interfaces and lines to connect various parts of the entire terminal equipment, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , execute 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 foregoing modem processor may not be integrated into the processor 110 .

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

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

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

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述扫描方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned scanning method embodiment is realized, and the same technical effect can be achieved. , to avoid repetition, it will not be repeated here. Wherein, 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, and the like.

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

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

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。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 implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.

Claims (9)

Translated fromChinese
1.一种扫描方法,其特征在于,包括:1. A scanning method, characterized in that, comprising:在扫描界面通过摄像头对至少一个图形码进行扫描;Scan at least one graphic code through the camera on the scanning interface;分别识别所述至少一个图形码对应的目标内容;respectively identifying the target content corresponding to the at least one graphic code;根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标类型;identifying the target type to which the target content belongs according to the target content corresponding to the at least one graphic code;在所述扫描界面中,将所述目标内容显示在所属的目标类型的目录下。In the scanning interface, the target content is displayed under the category of the target type.2.根据权利要求1所述的方法,其特征在于,所述分别识别所述至少一个图形码对应的目标内容,并将所述目标内容显示在所述扫描界面之后,还包括:2. The method according to claim 1, wherein the identifying the target content corresponding to the at least one graphic code, and displaying the target content after the scanning interface further comprises:接收对所述目标内容的第一输入;receiving a first input of the targeted content;响应于所述第一输入,对所述目标内容执行与所述第一输入关联的动作。In response to the first input, an action associated with the first input is performed on the target content.3.根据权利要求1所述的方法,其特征在于,所述在所述扫描界面中,将所述目标内容显示在所属的目标类型的目录下之后,还包括:3. The method according to claim 1, wherein, in the scanning interface, after displaying the target content under the category of the target type, further comprising:接收对所述目标类型的第二输入;receiving a second input of the target type;响应于所述第二输入,对所述目标类型的目录下包括的目标内容执行与所述第二输入关联的动作。In response to the second input, an action associated with the second input is performed on the target content included under the category of the target type.4.根据权利要求1所述的方法,其特征在于,所述根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标类型,包括:4. The method according to claim 1, wherein the identifying the target type to which the target content belongs according to the target content corresponding to the at least one graphic code comprises:根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标应用程序;和/或,According to the target content corresponding to the at least one graphic code, identify the target application program to which the target content belongs; and/or,根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标使用场景。According to the target content corresponding to the at least one graphic code, identify the target usage scenario to which the target content belongs.5.一种终端设备,其特征在于,包括:5. A terminal device, characterized in that, comprising:扫描模块,用于在扫描界面通过摄像头对至少一个图形码进行扫描;A scanning module, configured to scan at least one graphic code through a camera on the scanning interface;显示模块,用于分别识别所述至少一个图形码对应的目标内容,并将所述目标内容显示在所述扫描界面;A display module, configured to respectively identify the target content corresponding to the at least one graphic code, and display the target content on the scanning interface;所述显示模块包括:The display module includes:识别单元,用于分别识别所述至少一个图形码对应的目标内容;A recognition unit, configured to respectively recognize the target content corresponding to the at least one graphic code;分类单元,用于根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标类型;A classification unit, configured to identify the target type to which the target content belongs according to the target content corresponding to the at least one graphic code;分类显示单元,用于在所述扫描界面中,将所述目标内容显示在所属的目标类型的目录下。The classification display unit is configured to display the target content under the category of the target type in the scanning interface.6.根据权利要求5所述的终端设备,其特征在于,所述终端设备还包括:6. The terminal device according to claim 5, further comprising:第一输入接收模块,用于接收对所述目标内容的第一输入;A first input receiving module, configured to receive a first input to the target content;第一输入响应模块,用于响应于所述第一输入,对所述目标内容执行与所述第一输入关联的动作。The first input response module is configured to execute an action associated with the first input on the target content in response to the first input.7.根据权利要求5所述的终端设备,其特征在于,所述终端设备还包括:7. The terminal device according to claim 5, further comprising:第二输入接收模块,用于接收对所述目标类型的第二输入;a second input receiving module, configured to receive 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 category of the target type.8.根据权利要求5所述的终端设备,其特征在于,所述分类单元包括:8. The terminal device according to claim 5, wherein the classification unit comprises:第一分类子单元,用于根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标应用程序;和/或,The first classification subunit is configured to, according to the target content corresponding to the at least one graphic code, identify the target application program to which the target content belongs; and/or,第二分类子单元,用于根据所述至少一个图形码对应的目标内容,识别所述目标内容所属的目标使用场景。The second classification subunit is configured to, according to the target content corresponding to the at least one graphic code, identify the target usage scenario to which the target content belongs.9.一种终端设备,其特征在于,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的扫描方法的步骤。9. A terminal device, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the scanning method described in any one of claims 1 to 4.
CN201910876993.1A2019-09-172019-09-17Scanning method and terminal equipmentActiveCN110674662B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910876993.1ACN110674662B (en)2019-09-172019-09-17Scanning method and terminal equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910876993.1ACN110674662B (en)2019-09-172019-09-17Scanning method and terminal equipment

Publications (2)

Publication NumberPublication Date
CN110674662A CN110674662A (en)2020-01-10
CN110674662Btrue CN110674662B (en)2023-09-01

Family

ID=69077110

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910876993.1AActiveCN110674662B (en)2019-09-172019-09-17Scanning method and terminal equipment

Country Status (1)

CountryLink
CN (1)CN110674662B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR102273198B1 (en)*2019-10-222021-07-05라인플러스 주식회사Method and device for recognizing visually coded patterns
CN111274842B (en)*2020-02-252024-05-24维沃移动通信有限公司 Coded image recognition method and electronic device
CN111444737A (en)*2020-03-252020-07-24维沃移动通信有限公司 A kind of graphic code identification method and electronic equipment
CN114119008A (en)*2020-05-072022-03-01支付宝(杭州)信息技术有限公司Information display method and device based on graphic code identification
CN112749769B (en)*2020-08-192024-06-14腾讯科技(深圳)有限公司Graphic code detection method, graphic code detection device, computer equipment and storage medium
CN114330403B (en)*2020-10-092023-07-25腾讯科技(深圳)有限公司Graphic code processing method, device, equipment and medium
CN113128244A (en)*2021-03-122021-07-16维沃移动通信有限公司Scanning method and device and electronic equipment
CN113010815A (en)*2021-04-122021-06-22维沃移动通信(杭州)有限公司Display method and electronic device
CN117422461B (en)*2023-12-152024-03-22金财数科(北京)信息技术有限公司Mobile phone batch payment system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106875181A (en)*2017-02-282017-06-20努比亚技术有限公司A kind of barcode scanning payment processing method and mobile terminal
CN107133834A (en)*2016-02-292017-09-05阿里巴巴集团控股有限公司Method for information display and device
CN107194690A (en)*2017-06-232017-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-172018-01-19阿里巴巴集团控股有限公司 A method and device for identifying target pattern codes
CN108122105A (en)*2017-12-212018-06-05维沃移动通信有限公司A kind of method of payment and mobile terminal
WO2019101097A1 (en)*2017-11-232019-05-31维沃移动通信有限公司Code scanning method, code scanning device and mobile terminal
CN110210271A (en)*2019-05-312019-09-06维沃移动通信有限公司A kind of information processing method and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107133834A (en)*2016-02-292017-09-05阿里巴巴集团控股有限公司Method for information display and device
CN106875181A (en)*2017-02-282017-06-20努比亚技术有限公司A kind of barcode scanning payment processing method and mobile terminal
CN107194690A (en)*2017-06-232017-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-172018-01-19阿里巴巴集团控股有限公司 A method and device for identifying target pattern codes
WO2019101097A1 (en)*2017-11-232019-05-31维沃移动通信有限公司Code scanning method, code scanning device and mobile terminal
CN108122105A (en)*2017-12-212018-06-05维沃移动通信有限公司A kind of method of payment and mobile terminal
CN110210271A (en)*2019-05-312019-09-06维沃移动通信有限公司A kind of information processing method and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高校设备管理系统中Android客户端的设计与实现;王红勤;《电脑知识与技术》;20160425(第12期);全文*

Also Published As

Publication numberPublication date
CN110674662A (en)2020-01-10

Similar Documents

PublicationPublication DateTitle
CN110674662B (en)Scanning method and terminal equipment
CN108469965A (en)A kind of setting method and mobile terminal of application program
CN109523253B (en) A payment method and device
CN108446058A (en)A kind of operating method and mobile terminal of mobile terminal
CN108764001A (en)A kind of information processing method and mobile terminal
CN107450744B (en)Personal information input method and mobile terminal
CN110865745A (en)Screen capturing method and terminal equipment
CN110196667A (en)A kind of processing method and terminal of notification message
CN108510267B (en)Account information acquisition method and mobile terminal
CN108256853A (en)A kind of method of payment and mobile terminal
CN110046015A (en)Using sharing method and terminal
CN109062709A (en)A kind of processing method and mobile terminal of notification message
CN108366221A (en)A kind of video call method and terminal
WO2021083091A1 (en)Screenshot capturing method and terminal device
CN108898040A (en)A kind of recognition methods and mobile terminal
CN108196781A (en) Interface display method and mobile terminal
CN110189123A (en) Payment privilege method and mobile terminal
CN107967652B (en) An information sharing method, a sending side terminal, a receiving side terminal and a server
CN109033913A (en) An identification code identification method and mobile terminal
CN108121642A (en)A kind of failure solves method, server and mobile terminal
CN108536355A (en)A kind of message display method and mobile terminal
CN108287644A (en)A kind of method for information display and mobile terminal of application program
CN107797728A (en)The method and mobile terminal of a kind of access application
CN110703967A (en) A method for processing a short message and a terminal device thereof
CN110516495B (en)Code scanning method and mobile terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp