[go: up one dir, main page]

CN108846271A - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN108846271A
CN108846271A CN201810753098.6A CN201810753098A CN108846271A CN 108846271 A CN108846271 A CN 108846271A CN 201810753098 A CN201810753098 A CN 201810753098A CN 108846271 A CN108846271 A CN 108846271A
Authority
CN
China
Prior art keywords
finger
fingerprint information
slide
touch operation
touch
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
CN201810753098.6A
Other languages
Chinese (zh)
Other versions
CN108846271B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810753098.6A priority Critical patent/CN108846271B/en
Publication of CN108846271A publication Critical patent/CN108846271A/en
Application granted granted Critical
Publication of CN108846271B publication Critical patent/CN108846271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a device control method and device, a storage medium and an electronic device, wherein the electronic device in the embodiment of the application can identify whether a touch operation is a multi-finger sliding operation when the touch operation is received. And when the touch operation is the multi-finger sliding operation, acquiring the fingerprint information of a plurality of finger contacts in the multi-finger sliding operation to obtain a plurality of fingerprint information. And verifying the acquired fingerprint information to obtain a verification result. And when the verification result is that the verification passes, determining the operation to be executed corresponding to the multi-finger sliding operation, and executing the determined operation to be executed. Therefore, the fingerprint information verification is added to the touch control of the electronic equipment, so that the safety of the touch control of the electronic equipment can be improved.

Description

设备控制方法、装置、存储介质及电子设备Device control method, device, storage medium and electronic device

技术领域technical field

本申请涉及电子设备技术领域,具体涉及一种设备控制方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and in particular to an equipment control method, device, storage medium and electronic equipment.

背景技术Background technique

目前,如手机、平板电脑等电子设备均支持触摸操作,用户可以通过电子设备的触摸屏、触摸背板等触摸输入模组向电子设备输入触摸操作,来对电子设备进行控制,比如,可以通过特定的滑动手势来启动电子设备上的支付应用。然而,正是由于触摸操作的便捷性,使得任何人均可以对电子设备进行触摸控制,降低了电子设备进行触摸控制的安全性。。At present, electronic devices such as mobile phones and tablet computers support touch operations. Users can input touch operations to electronic devices through touch input modules such as touch screens and touch panels of electronic devices to control electronic devices. swipe gesture to launch the payment application on the electronic device. However, just because of the convenience of the touch operation, anyone can control the electronic device by touch, which reduces the security of the touch control of the electronic device. .

发明内容Contents of the invention

本申请实施例提供了一种设备控制方法、装置、存储介质及电子设备,能够提升对电子设备进行触摸控制的安全性。Embodiments of the present application provide a device control method, device, storage medium and electronic device, which can improve the security of touch control of the electronic device.

第一方面,本申请实施例提供了一种设备控制方法,应用于电子设备中,该设备控制方法包括:In the first aspect, the embodiment of the present application provides a device control method, which is applied to an electronic device, and the device control method includes:

在接收到触摸操作时,识别所述触摸操作是否为多指滑动操作;When a touch operation is received, identify whether the touch operation is a multi-finger slide operation;

在所述触摸操作为多指滑动操作时,获取所述多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息;When the touch operation is a multi-finger sliding operation, acquiring fingerprint information of multiple finger contacts in the multi-finger sliding operation to obtain multiple fingerprint information;

对获取到的多个所述指纹信息进行验证,得到验证结果;Verifying the acquired plurality of fingerprint information to obtain a verification result;

在所述验证结果为验证通过时,确定对应所述多指滑动操作的待执行操作,并执行确定的所述待执行操作。When the verification result is that the verification is passed, determining an operation to be performed corresponding to the multi-finger sliding operation, and executing the determined operation to be performed.

第二方面,本申请实施例提供了一种设备控制装置,应用于电子设备中,该设备控制装置包括:In the second aspect, the embodiment of the present application provides a device control device, which is applied to electronic devices, and the device control device includes:

识别模块,用于在接收到触摸操作时,识别所述触摸操作是否为多指滑动操作;An identification module, configured to identify whether the touch operation is a multi-finger slide operation when a touch operation is received;

获取模块,用于在所述触摸操作为多指滑动操作时,获取所述多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息;An acquiring module, configured to acquire fingerprint information of multiple finger contacts in the multi-finger sliding operation when the touch operation is a multi-finger sliding operation, and obtain multiple fingerprint information;

验证模块,用于对获取到的多个所述指纹信息进行验证,得到验证结果;A verification module, configured to verify the acquired plurality of fingerprint information to obtain a verification result;

执行模块,用于在所述验证结果为验证通过时,确定对应所述多指滑动操作的待执行操作,并执行确定的所述待执行操作。An execution module, configured to determine an operation to be performed corresponding to the multi-finger slide operation when the verification result is passed, and execute the determined operation to be performed.

第三方面,本申请实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的设备控制方法。In the third aspect, the storage medium provided by the embodiments of the present application stores a computer program thereon, and when the computer program runs on the computer, the computer executes the device control method provided in any embodiment of the present application.

第四方面,本申请实施例提供的电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请任一实施例提供的设备控制方法。In a fourth aspect, the electronic device provided by the embodiment of the present application includes a processor and a memory, the memory has a computer program, and the processor is used to execute the device provided by any embodiment of the present application by calling the computer program Control Method.

本申请实施例中,电子设备可以在接收到触摸操作时,识别该触摸操作是否为多指滑动操作。在该触摸操作为多指滑动操作时,获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。对获取到的多个指纹信息进行验证,得到验证结果。在验证结果为验证通过时,确定对应多指滑动操作的待执行操作,并执行确定的所述待执行操作。由此,通过在对电子设备的触摸控制中加入指纹信息的验证,可以提高对电子设备进行触摸控制的安全性。In the embodiment of the present application, when receiving a touch operation, the electronic device may identify whether the touch operation is a multi-finger slide operation. When the touch operation is a multi-finger sliding operation, the fingerprint information of multiple finger contacts in the multi-finger sliding operation is acquired to obtain multiple fingerprint information. The obtained multiple fingerprint information is verified to obtain a verification result. When the verification result is that the verification is passed, an operation to be performed corresponding to the multi-finger slide operation is determined, and the determined operation to be performed is executed. Therefore, by adding the verification of fingerprint information in the touch control of the electronic device, the security of the touch control of the electronic device can be improved.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的设备控制方法的一流程示意图。FIG. 1 is a schematic flowchart of a device control method provided by an embodiment of the present application.

图2是本申请实施例中确定出的有效接触区域的示意图。Fig. 2 is a schematic diagram of the effective contact area determined in the embodiment of the present application.

图3是本申请实施例中确定出的最小外接矩形区域的示意图。FIG. 3 is a schematic diagram of the minimum circumscribed rectangular area determined in the embodiment of the present application.

图4是本申请实施例中通过双指滑动操作来控制电子设备熄屏的示意图。FIG. 4 is a schematic diagram of controlling the electronic device to turn off the screen through a two-finger sliding operation in an embodiment of the present application.

图5是本申请实施例提供的设备控制方法的另一流程示意图。Fig. 5 is another schematic flowchart of the device control method provided by the embodiment of the present application.

图6是本申请实施例提供的设备控制装置的一结构示意图。Fig. 6 is a schematic structural diagram of an equipment control device provided by an embodiment of the present application.

图7是本申请实施例提供的电子设备的一结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图8是本申请实施例提供的电子设备的另一结构示意图。FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, wherein the same reference numerals represent the same components, the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.

在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principle of the present application is described in the above text, which is not meant to be a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.

本文所使用的术语“模块”可看做为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" as used herein may be considered a software object that executes on the computing system. The various components, modules, engines and services described herein can be considered as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, and of course can also be implemented in hardware, all of which are within the protection scope of the present application.

本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例提供一种设备控制方法,该设备控制方法的执行主体可以是本申请实施例提供的设备控制装置,或者集成了该设备控制装置的电子设备,其中该设备控制装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。An embodiment of the present application provides a device control method. The device control method may be executed by the device control device provided in the embodiment of the present application, or an electronic device integrated with the device control device. The device control device may use hardware or realized by software. Wherein, the electronic device may be a device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.

请参照图1,图1为本申请实施例提供的设备控制方法的流程示意图。如图1所示,本申请实施例提供的设备控制方法的流程可以如下:Please refer to FIG. 1 , which is a schematic flowchart of a device control method provided in an embodiment of the present application. As shown in Figure 1, the flow of the device control method provided in the embodiment of the present application may be as follows:

101、在接收到触摸操作时,判断接收到的触摸操作是否为多指滑动操作。101. When a touch operation is received, determine whether the received touch operation is a multi-finger slide operation.

本申请实施例中,电子设备可以调用系统中的手势监听接口来监听触控区域是否接收到触摸操作。比如,在电子设备的操作系统为安卓系统时,电子设备可以调用OnGestureListener接口对用户输入的触摸操作进行监听,还可以调用GestureDetector对用户输入的触摸操作进行监听等。In the embodiment of the present application, the electronic device can call the gesture monitoring interface in the system to monitor whether the touch area receives a touch operation. For example, when the operating system of the electronic device is the Android system, the electronic device can call the OnGestureListener interface to monitor the touch operation input by the user, and can also call GestureDetector to monitor the touch operation input by the user.

需要说明的是,电子设备的触控区域可以设置在电子设备的正面,并覆盖电子设备的显示屏,也可以设置在电子设备的背面,还可以设置在其它位置,此处不再赘述。比如,电子设备包括触控屏,触控屏包括触控板和显示屏,触控板位于显示屏之上,并覆盖显示屏。触控板用于接收触头(如用户手指、触控笔等)输入的信号的区域即为触控区域,而显示屏用于显示画面的区域则称为显示区域。其中,触控区域可以与显示区域完全重合,也可以完全覆盖显示区域并向外延伸。It should be noted that the touch area of the electronic device can be set on the front of the electronic device and cover the display screen of the electronic device, or it can be set on the back of the electronic device, or it can be set in other positions, which will not be repeated here. For example, the electronic device includes a touch screen, the touch screen includes a touch pad and a display screen, and the touch pad is located on the display screen and covers the display screen. The area of the touch panel for receiving signals input by contacts (such as user's finger, stylus, etc.) is the touch area, and the area of the display screen for displaying images is called the display area. Wherein, the touch area may completely overlap with the display area, or may completely cover the display area and extend outward.

电子设备在接收到基于触控区域输入的触摸操作时,进一步识别该触摸操作是否为多指滑动操作,比如,可以根据该触摸操作包括的、发生位置变化的手指触点个数来判断其是否为多指滑动操作。在一实施方式中,判断该滑动操作是否为多指滑动操作,包括:When the electronic device receives a touch operation based on the input of the touch area, it further identifies whether the touch operation is a multi-finger slide operation, for example, it can be judged according to the number of finger contacts included in the touch operation and whose positions change. It is a multi-finger swipe operation. In one embodiment, judging whether the sliding operation is a multi-finger sliding operation includes:

(1)在接收到触摸操作时,确定该触摸操作包括的手指触点个数;(1) When a touch operation is received, determine the number of finger contacts included in the touch operation;

(2)在接收到的触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作。(2) When the received touch operation includes more than two finger contacts, and the positions of more than two finger contacts change, identify the touch operation as a multi-finger slide operation.

其中,电子设备可以通过移动事件对象来确定触摸操作包括的手指触点个数,若该触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作。应当理解的是,两个以上的手指触点包括两个手指触点,以及三个、四个等大于两个的手指触点。Among them, the electronic device can determine the number of finger contacts involved in the touch operation by moving the event object. If the touch operation includes more than two finger contacts, and when the positions of more than two finger contacts change, the The touch operation is identified as a multi-finger slide operation. It should be understood that more than two finger contacts include two finger contacts, and three, four, etc. greater than two finger contacts.

比如,在电子设备的操作系统为安卓系统时,电子设备可以在监听到触控区域接收到触摸操作时,通过MotionEvent对象获取该触摸操作包括的手指触点的坐标,若获取到一个手指触点的坐标,则确定该触摸操作包括一个手指触点,若获取到两个手指触点的坐标,则确定该触摸操作包括两个手指触点,若获取到三个手指触点的坐标,则确定该触摸操作包括三个手指触点,若获取到四个手指触点的坐标,则确定该触摸操作包括四个手指触点,若获取到五个手指触点的坐标,则确定该触摸操作包括五个手指触点,等等。For example, when the operating system of the electronic device is the Android system, the electronic device can obtain the coordinates of the touch operation included in the touch operation through the MotionEvent object when the electronic device detects that the touch area receives a touch operation. coordinates, it is determined that the touch operation includes a finger contact, if the coordinates of two finger contacts are obtained, it is determined that the touch operation includes two finger contacts, and if the coordinates of three finger contacts are obtained, it is determined The touch operation includes three finger contacts. If the coordinates of four finger contacts are obtained, it is determined that the touch operation includes four finger contacts. If the coordinates of five finger contacts are obtained, it is determined that the touch operation includes Five finger contacts, and so on.

此外,随着触摸操作中手指触点位置的变化,MotionEvent对象记录的手指触点的坐标将随之变化。电子设备可以根据MotionEvent对象记录的手指触点的坐标,来判断手指触点的位置是否发生变化。比如,在MotionEvent对象记录的一个手指触点的坐标发生变化时,可以确定有一个手指触点的位置发生化;在MotionEvent对象记录的两个手指触点的坐标发生变化时,可以确定有两个手指触点的位置发生化;在MotionEvent对象记录的三个手指触点的坐标发生变化时,可以确定有三个手指触点的位置发生化;在MotionEvent对象记录的四个手指触点的坐标发生变化时,可以确定有四个手指触点的位置发生化;在MotionEvent对象记录的五个手指触点的坐标发生变化时,可以确定有戊个手指触点的位置发生化,等等。In addition, as the position of the finger contact changes during the touch operation, the coordinates of the finger contact recorded by the MotionEvent object will change accordingly. The electronic device can judge whether the position of the finger touch point changes according to the coordinates of the finger touch point recorded by the MotionEvent object. For example, when the coordinates of a finger contact recorded by the MotionEvent object change, it can be determined that the position of one finger contact changes; when the coordinates of two finger contacts recorded by the MotionEvent object change, it can be determined that there are two The position of the finger contact changes; when the coordinates of the three finger contacts recorded in the MotionEvent object change, it can be determined that the positions of the three finger contacts change; the coordinates of the four finger contacts recorded in the MotionEvent object change , it can be determined that the positions of four finger contacts change; when the coordinates of five finger contacts recorded by the MotionEvent object change, it can be determined that there are five finger contacts that change, and so on.

在一实施方式中,在接收到的触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作,包括:In one embodiment, when the received touch operation includes more than two finger contacts, and the positions of more than two finger contacts change, the touch operation is identified as a multi-finger slide operation, including:

在接收到的触摸操作包括两个手指触点,且两个手指触点的位置发生变化时,将该触摸操作标识为双指滑动操作。When the received touch operation includes two finger contacts and the positions of the two finger contacts change, the touch operation is identified as a two-finger slide operation.

比如,当用户使用右手食指和中指对电子设备的触控区域进行滑动时,电子设备将监听到前述食指和中指滑动触控区域所产生的触摸操作,并确定该触摸操作包括两个手指触点(分别对应食指和中指),且两个手指触点的位置发生了变化,此时,电子设备将触控区域接收到的触摸操作标识为双指滑动操作。For example, when the user uses the right index finger and middle finger to slide the touch area of the electronic device, the electronic device will monitor the touch operation generated by the aforementioned index finger and middle finger sliding the touch area, and determine that the touch operation includes two finger contacts (respectively corresponding to the index finger and the middle finger), and the positions of the contacts of the two fingers have changed. At this time, the electronic device identifies the touch operation received by the touch area as a two-finger sliding operation.

102、在接收到的触摸操作为多指滑动操作时,获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。102. When the received touch operation is a multi-finger slide operation, acquire fingerprint information of multiple finger contacts in the multi-finger slide operation to obtain multiple fingerprint information.

其中,电子设备包括指纹传感器,该指纹传感器被配置为对接触于触控区域的手指进行指纹信息采集。这样,电子设备在通过触控区域接收到多指滑动操作时,可以通过指纹传感器来采集该多指滑动操作的指纹信息,得到多个指纹信息。比如,电子设备在通过触控区域接收到多指滑动操作时,可以通过指纹传感器对整个触控区域进行指纹扫描,从而采集得到该多指滑动操作中多个手指触点的指纹信息,若该多指滑动操作包括两个手指触点,将采集到两个手指触点的指纹信息,若该多指滑动操作包括三个手指触点,将采集到三个手指触点的指纹信息,若该多指滑动操作包括四个手指触点,将采集到四个手指触点的指纹信息,若该多指滑动操作包括五个手指触点,将采集到五个手指触点的指纹信息。Wherein, the electronic device includes a fingerprint sensor, and the fingerprint sensor is configured to collect fingerprint information of a finger touching the touch area. In this way, when the electronic device receives the multi-finger sliding operation through the touch area, the fingerprint sensor can collect the fingerprint information of the multi-finger sliding operation to obtain multiple fingerprint information. For example, when an electronic device receives a multi-finger slide operation through the touch area, it can scan the fingerprint of the entire touch area through the fingerprint sensor, so as to collect the fingerprint information of multiple finger contacts in the multi-finger slide operation. If the multi-finger slide operation includes two finger contacts, the fingerprint information of the two finger contacts will be collected. If the multi-finger slide operation includes three finger contacts, the fingerprint information of the three finger contacts will be collected. If the If the multi-finger sliding operation includes four finger contacts, the fingerprint information of the four finger contacts will be collected; if the multi-finger sliding operation includes five finger contacts, the fingerprint information of the five finger contacts will be collected.

在一实施方式中,在接收到的多指滑动操作被标识为双指滑动操作时,获取多指滑动操作中多个手指触点的指纹信息,包括:In one embodiment, when the received multi-finger sliding operation is identified as a two-finger sliding operation, the fingerprint information of multiple finger contacts in the multi-finger sliding operation is acquired, including:

(1)确定双指滑动操作中手指触点的有效接触区域;(1) Determine the effective contact area of the finger contact in the two-finger sliding operation;

(2)根据有效接触区域确定手指触点的指纹采集区域;(2) Determine the fingerprint collection area of the finger contact according to the effective contact area;

(3)对指纹采集区域进行指纹扫描,得到手指触点的指纹信息。(3) Perform fingerprint scanning on the fingerprint collection area to obtain the fingerprint information of the finger contact.

需要说明的是,在用户使用手指滑动电子设备的触控区域的过程中,用户手指和触控区域的接触区域是不断变化的,在用户手指和触控区域的接触区域过小时,指纹传感器将无法采集到用户手指的指纹信息。It should be noted that when the user slides the touch area of the electronic device with the finger, the contact area between the user's finger and the touch area is constantly changing. When the contact area between the user's finger and the touch area is too small, the fingerprint sensor will The fingerprint information of the user's finger cannot be collected.

因此,电子设备可以首先确定双指滑动操作中手指触点的有效接触区域,该有效接触区域为触控区域中可能采集到指纹信息的子区域,此时,将确定出分别对应两个手指触点的两个有效接触区域。Therefore, the electronic device can first determine the effective contact area of the finger contact in the two-finger sliding operation. The effective contact area is a sub-area in the touch area where fingerprint information may be collected. The two effective contact areas of the point.

在确定手指触点的有效接触区域之后,电子设备可以基于有效接触区域进一步确定出手指触点的指纹采集区域,此时将确定出分别对应两个手指触点的两个指纹采集区域。其中,电子设备可以直接将手指触点的有效接触区域作为其指纹采集区域,也可以按照预设规则(如按设定的比例,对有效接触区域),对有效接触区域进行扩大,并将扩大后的有效接触区域作为指纹采集区域。After determining the effective contact area of the finger contact, the electronic device may further determine the fingerprint collection area of the finger contact based on the effective contact area, and at this time, two fingerprint collection areas respectively corresponding to the two finger contacts will be determined. Among them, the electronic device can directly use the effective contact area of the finger touch point as its fingerprint collection area, or it can expand the effective contact area according to the preset rules (such as the effective contact area according to the set ratio), and will expand The final effective contact area is used as the fingerprint collection area.

在确定出手指触点的指纹采集区域之后,电子设备可以通过指纹传感器对触控区域中确定出的指纹采集区域进行指纹扫描,得到手指触点的指纹信息,此时将扫描得到两个手指触点的指纹信息。After determining the fingerprint collection area of the finger contact, the electronic device can scan the fingerprint collection area determined in the touch area through the fingerprint sensor to obtain the fingerprint information of the finger contact. Point fingerprint information.

在一实施方式中,确定双指滑动操作中手指触点的有效接触区域,包括:In one embodiment, determining the effective contact area of the finger touch point in the two-finger sliding operation includes:

(1)根据手指触点的位置信息,确定手指触点对应的连通区域;(1) Determine the connected area corresponding to the finger contact according to the position information of the finger contact;

(2)获取连通区域的特征信息,其中,特征信息包括连通区域的形状信息和/或尺寸信息;(2) Acquiring feature information of the connected region, wherein the feature information includes shape information and/or size information of the connected region;

(3)若特征信息满足预设条件,则将连通区域作为手指触点的有效接触区域。(3) If the feature information satisfies the preset condition, the connected area is used as the effective contact area of the finger touch point.

其中,电子设备根据手指触点在当前时刻的位置信息,也即是手指触点在当前时刻的坐标,确定出手指触点对应的连通区域。连通区域为手指触点对应的用户手指在当前时刻与触控区域接触,所形成的一个封闭区域。Wherein, the electronic device determines the connected area corresponding to the finger contact according to the position information of the finger contact at the current moment, that is, the coordinates of the finger contact at the current moment. The connected area is a closed area formed by the user's finger corresponding to the finger touch point touching the touch area at the current moment.

电子设备在确定出手指触点在当前时刻的连通区域之后,对确定出的连通区域进行特征信息的提取,以获取到该连通区域的特征信息。该特征信息包括连通区域的形状信息和/或尺寸信息。After determining the connected area of the finger contact at the current moment, the electronic device performs feature information extraction on the determined connected area, so as to obtain the feature information of the connected area. The feature information includes shape information and/or size information of the connected regions.

在获取到前述连通区域的特征信息之后,电子设备判断获取到的特征信息是否满足预设条件,若是,则将前述连通区域作为前述手指触点的有效接触区域。比如,可以将预设条件配置为“连通区域的形状与预设形状(如椭圆形)的相似度达到预设相似度”,还可以将预设条件配置为“连通区域的尺寸与预设尺寸的尺寸差值小于或等于预设差值”,还可以将预设条件配置为“连通区域的形状与预设形状的相似度达到预设相似度,且连通区域的尺寸与预设尺寸的尺寸差值小于或等于预设差值”等。After acquiring the feature information of the aforementioned connected area, the electronic device judges whether the acquired feature information satisfies a preset condition, and if so, uses the aforementioned connected area as an effective contact area of the aforementioned finger touch point. For example, the preset condition can be configured as "the similarity between the shape of the connected region and the preset shape (such as an ellipse) reaches the preset similarity", and the preset condition can also be configured as "the size of the connected region is equal to the preset size The size difference of the connected region is less than or equal to the preset difference", and the preset condition can also be configured as "the similarity between the shape of the connected region and the preset shape reaches the preset similarity, and the size of the connected region is the same as the preset size The difference is less than or equal to the preset difference", etc.

此外,若获取到的特征信息不满足预设条件,则电子设备继续确定出手指触点在下一时刻的连通区域,再次进行判断,直至确定出特征信息满足预设条件的连通区域,将其作为前述手指触点的有效接触区域。In addition, if the acquired characteristic information does not meet the preset condition, the electronic device will continue to determine the connected area of the finger contact at the next moment, and judge again until the connected area whose characteristic information satisfies the preset condition is determined, and take it as The effective contact area of the aforementioned finger touch point.

在一实施方式中,根据有效接触区域确定手指触点的指纹采集区域,包括:In one embodiment, determining the fingerprint collection area of the finger contact according to the effective contact area includes:

(1)确定有效接触区域的最小外接矩形区域;(1) Determine the minimum circumscribed rectangular area of the effective contact area;

(2)将最小外接矩形区域作为手指触点的指纹采集区域。(2) The smallest circumscribed rectangular area is used as the fingerprint collection area of the finger contact.

比如,请参照图2,电子设备在某一时刻确定出分别对应两个手指触点的两个有效接触区域:第一有效接触区域和第二有效接触区域;请参照图3,电子设备进一步确定出第一有效接触区域的第一最小外接矩形区域,确定出第二有效接触区域的第二最小外接矩形区域,将第一最小外接矩形区域和第二最小外接矩形区域分别作为两个手指触点的指纹采集区域。For example, please refer to Figure 2, the electronic device determines two effective contact areas corresponding to two finger contacts at a certain moment: the first effective contact area and the second effective contact area; please refer to Figure 3, the electronic device further determines The first minimum circumscribed rectangular area of the first effective contact area is determined, the second minimum circumscribed rectangular area of the second effective contact area is determined, and the first minimum circumscribed rectangular area and the second minimum circumscribed rectangular area are respectively used as two finger contacts fingerprint collection area.

103、对获取到的多个指纹信息进行验证,得到验证结果。103. Verify the multiple acquired fingerprint information to obtain a verification result.

其中,接收到的多指滑动操作包括多少个手指触点,电子设备将获取到多少个指纹信息,比如,接收到的多指滑动操作包括两个手指触点,将获取到两个手指触点的指纹信息;接收到的多指滑动操作包括三个手指触点,将获取到三个手指触点的指纹信息,以此类推。Among them, how many finger contacts are included in the received multi-finger sliding operation, and how many fingerprint information will be obtained by the electronic device, for example, if the received multi-finger sliding operation includes two finger contacts, two finger contact points will be obtained The fingerprint information of the received multi-finger swipe operation includes three finger contacts, and the fingerprint information of the three finger contacts will be obtained, and so on.

在获取到多指滑动操作中的多个手指触点的指纹信息之后,对获取到的多个指纹信息进行验证,也即是对多指滑动操作的输入者进行身份验证,在一实施方式中,对获取到多个指纹信息进行验证,包括:After obtaining the fingerprint information of multiple finger contacts in the multi-finger sliding operation, verify the obtained multiple fingerprint information, that is, perform identity verification on the inputter of the multi-finger sliding operation. In one embodiment , to verify multiple fingerprint information obtained, including:

(1)获取预设的指纹列表,该指纹列表中包括多组预设指纹信息,每组预设指纹信息中包括多个预设指纹信息;(1) Obtain a preset fingerprint list, which includes multiple sets of preset fingerprint information, and each set of preset fingerprint information includes multiple preset fingerprint information;

(2)将获取到的多个指纹信息与指纹列表中的每一组预设指纹信息进行比对;(2) comparing the multiple fingerprint information obtained with each group of preset fingerprint information in the fingerprint list;

(3)在指纹列表中存在与前述多个指纹信息匹配的一组预设指纹信息时,得到验证通过的验证结果。(3) When there is a set of preset fingerprint information matching the aforementioned plurality of fingerprint information in the fingerprint list, a verification result of passing the verification is obtained.

其中,指纹列表中的一组预设指纹信息可以是电子设备预先采集的、机主的指纹信息,也可以是机主授权的其他用户的指纹信息。Wherein, a set of preset fingerprint information in the fingerprint list may be the fingerprint information of the owner of the device collected in advance by the electronic device, or may be the fingerprint information of other users authorized by the owner of the device.

在采集指纹信息时,机主和/或机主授权的其他用户可以根据自身使用习惯提供多个手指供电子设备采集指纹信息,比如,机主可以提供右手的食指和中指供电子设备采集指纹信息,这样,电子设备将采集到机主右手食指和中指的指纹信息,并将采集到两个指纹信息标识为预设指纹信息,作为一组预设指纹信息存入预设的指纹列表中;又比如,机主授权的其他用户可以提供右手的食指和拇指供电子设备采集指纹信息,这样,电子设备将采集到该其他用户右手食指和拇指的指纹信息,并将采集到两个指纹信息标识为预设指纹信息,作为另一组预设指纹信息存入预设的指纹列表中。由此,指纹列表中将包括两组预设指纹信息,其中一组预设指纹信息为机主右手食指和中指的指纹信息,而另一组预设指纹信息为其他用户右手食指和拇指的指纹信息。When collecting fingerprint information, the owner and/or other users authorized by the owner can provide multiple fingers for the electronic device to collect fingerprint information according to their own usage habits. For example, the owner can provide the index finger and middle finger of the right hand for the electronic device to collect fingerprint information In this way, the electronic device will collect the fingerprint information of the owner's right index finger and middle finger, and identify the collected two fingerprint information as preset fingerprint information, and store them as a set of preset fingerprint information in the preset fingerprint list; and For example, other users authorized by the owner of the device can provide the index finger and thumb of the right hand for the electronic device to collect fingerprint information. In this way, the electronic device will collect the fingerprint information of the other user's right index finger and thumb, and mark the collected two fingerprint information as The preset fingerprint information is stored in the preset fingerprint list as another set of preset fingerprint information. Therefore, the fingerprint list will include two sets of preset fingerprint information, one set of preset fingerprint information is the fingerprint information of the owner's right index finger and middle finger, and the other set of preset fingerprint information is the fingerprint information of other users' right index finger and thumb information.

电子设备在获取到多指滑动操作中多个手指触点的指纹信息之后,对获取到的多个指纹信息进行验证。After acquiring the fingerprint information of multiple finger contacts in the multi-finger sliding operation, the electronic device verifies the acquired multiple fingerprint information.

首先,电子设备将获取到的多个指纹信息与指纹列表中的每组预设指纹信息一一进行比对,得到前述多个指纹信息中各指纹信息与每组预设指纹信息中各指纹信息的相似度。First, the electronic device compares the acquired multiple fingerprint information with each set of preset fingerprint information in the fingerprint list one by one, and obtains each fingerprint information in the aforementioned multiple fingerprint information and each fingerprint information in each set of preset fingerprint information. similarity.

然后,判断是否存在一组预设指纹信息包括分别与前述多个指纹信息的相似度达到预设相似度的多个预设指纹信息,若存在,则判断该组预设指纹信息与前述多个指纹信息匹配,得到前述多个指纹信息验证通过的验证结果。Then, it is judged whether there is a group of preset fingerprint information including a plurality of preset fingerprint information whose similarity with the aforementioned plurality of fingerprint information reaches a preset similarity, and if it exists, it is judged that the group of preset fingerprint information is similar to the aforementioned plurality of fingerprint information. The fingerprint information is matched to obtain a verification result that the aforementioned plurality of fingerprint information pass the verification.

104、在得到的验证结果为验证通过时,确定对应接收到的多指滑动操作的待执行操作,并执行确定的待执行操作。104. When the obtained verification result is that the verification is passed, determine an operation to be performed corresponding to the received multi-finger slide operation, and execute the determined operation to be performed.

其中,电子设备在完成对前述多个指纹信息的验证,且得到的验证结果为验证通过时,即可根据预先设定的多指滑动操作和待执行操作的对应关系,确定对应接收到的多指滑动操作的待执行操作。Wherein, when the electronic device completes the verification of the aforementioned plurality of fingerprint information, and the obtained verification result is that the verification is passed, it can determine the corresponding received multi-finger swipe operation according to the preset corresponding relationship Refers to the pending action for the swipe action.

在一实施方式中,在接收到的多指滑动操作被标识为双指滑动操作时,确定对应接收到的多指滑动操作的待执行操作,包括:In one embodiment, when the received multi-finger sliding operation is identified as a two-finger sliding operation, determining the operation to be performed corresponding to the received multi-finger sliding operation includes:

(1)在双指滑动操作中两个手指触点的滑动方向相同,且均向预设方向滑动时,判断当前状态是否为亮屏状态;(1) In the two-finger sliding operation, when the sliding directions of the two finger contacts are the same and both slide in the preset direction, determine whether the current state is the bright screen state;

(2)在当前状态为亮屏状态时,确定待执行操作为切换当前状态至熄屏状态。(2) When the current state is the on-screen state, determine that the operation to be performed is to switch the current state to the off-screen state.

其中,预设方向可以由本领域技术人员根据实际需要进行设置。比如,可以设置预设方向为向下,请参照图4,当用户使用双指向下滑动电子设备的触控区域时,电子设备将接收到滑动方向向下的双指滑动操作,并确定对应该双指滑动操作的待执行操作为切换当前状态至熄屏状态,这样,在执行确定的待执行操作时,将当前状态由亮屏状态切换至熄屏状态,如图4所示。Wherein, the preset direction can be set by those skilled in the art according to actual needs. For example, the preset direction can be set as downward. Please refer to Figure 4. When the user uses two fingers to slide down the touch area of the electronic device, the electronic device will receive the downward two-finger sliding operation and determine the corresponding The pending operation of the two-finger sliding operation is to switch the current state to the off-screen state. In this way, when the determined to-be-executed operation is performed, the current state is switched from the on-screen state to the off-screen state, as shown in FIG. 4 .

在一实施方式中,判断当前状态是否为亮屏状态之后,还包括:In one embodiment, after judging whether the current state is the bright screen state, it also includes:

在当前状态处于熄屏状态,且未开启勿扰模式时,确定待执行操作为开启勿扰模式。When the current status is off and the Do Not Disturb mode is not turned on, determine that the operation to be performed is to turn on the Do Not Disturb mode.

其中,电子设备的勿扰模式是指:电子设备在处于熄屏状态时,若接收到电话、短信或应用程序的推送信息等情况时,不会对这些电话、短信或推送信息等进行提示,仅会保留相应记录。比如,当用户使用双指向下滑动电子设备的方式控制电子设备切换至熄屏状态之后,若不想被电话或短信等打扰,可以再次使用双指向下滑动电子设备的触控区域,由于电子设备已处于熄屏状态,此时电子设备将开启勿扰模式,避免用户被打扰。Among them, the Do Not Disturb mode of the electronic device means that when the electronic device is in the off-screen state, if it receives a phone call, text message, or push message from an application program, it will not prompt for these calls, text messages, or push messages. Only corresponding records will be kept. For example, after the user uses two fingers to slide down the electronic device to control the electronic device to switch to the off-screen state, if he does not want to be disturbed by calls or text messages, he can use two fingers to slide down the touch area of the electronic device again. When the screen is off, the electronic device will turn on the Do Not Disturb mode to avoid disturbing the user.

由上可知,本申请实施例中的电子设备可以在接收到触摸操作时,识别该触摸操作是否为多指滑动操作。在该触摸操作为多指滑动操作时,获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。对获取到的多个指纹信息进行验证,得到验证结果。在验证结果为验证通过时,确定对应多指滑动操作的待执行操作,并执行确定的所述待执行操作。由此,通过在对电子设备的触摸控制中加入指纹信息的验证,可以提高对电子设备进行触摸控制的安全性。It can be known from the above that, when receiving a touch operation, the electronic device in the embodiment of the present application may identify whether the touch operation is a multi-finger slide operation. When the touch operation is a multi-finger sliding operation, the fingerprint information of multiple finger contacts in the multi-finger sliding operation is acquired to obtain multiple fingerprint information. The obtained multiple fingerprint information is verified to obtain a verification result. When the verification result is that the verification is passed, an operation to be performed corresponding to the multi-finger slide operation is determined, and the determined operation to be performed is executed. Therefore, by adding the verification of fingerprint information in the touch control of the electronic device, the security of the touch control of the electronic device can be improved.

下面将在上述实施例描述的方法基础上,对本申请的设备控制方法做进一步介绍。请参照图5,该设备控制方法可以包括:The device control method of the present application will be further introduced below on the basis of the methods described in the above embodiments. Referring to Figure 5, the device control method may include:

201、在接收到触摸操作时,确定该触摸操作包括的手指触点个数。201. When a touch operation is received, determine the number of finger contacts included in the touch operation.

本申请实施例中,电子设备可以调用系统中的手势监听接口来监听触控区域是否接收到触摸操作。比如,在电子设备的操作系统为安卓系统时,电子设备可以调用OnGestureListener接口对用户输入的触摸操作进行监听,还可以调用GestureDetector对用户输入的触摸操作进行监听等。In the embodiment of the present application, the electronic device can call the gesture monitoring interface in the system to monitor whether the touch area receives a touch operation. For example, when the operating system of the electronic device is the Android system, the electronic device can call the OnGestureListener interface to monitor the touch operation input by the user, and can also call GestureDetector to monitor the touch operation input by the user.

需要说明的是,电子设备的触控区域可以设置在电子设备的正面,并覆盖电子设备的显示屏,也可以设置在电子设备的背面,还可以设置在其它位置,此处不再赘述。比如,电子设备包括触控屏,触控屏包括触控板和显示屏,触控板位于显示屏之上,并覆盖显示屏。触控板用于接收触头(如用户手指、触控笔等)输入的信号的区域即为触控区域,而显示屏用于显示画面的区域则称为显示区域。其中,触控区域可以与显示区域完全重合,也可以完全覆盖显示区域并向外延伸。It should be noted that the touch area of the electronic device can be set on the front of the electronic device and cover the display screen of the electronic device, or it can be set on the back of the electronic device, or it can be set in other positions, which will not be repeated here. For example, the electronic device includes a touch screen, the touch screen includes a touch pad and a display screen, and the touch pad is located on the display screen and covers the display screen. The area of the touch panel for receiving signals input by contacts (such as user's finger, stylus, etc.) is the touch area, and the area of the display screen for displaying images is called the display area. Wherein, the touch area may completely overlap with the display area, or may completely cover the display area and extend outward.

电子设备在接收到基于触控区域输入的触摸操作时,进一步确定该触摸操作包括的手指触点个数。其中,电子设备可以通过移动事件对象来确定触摸操作包括的手指触点个数,若该触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作。应当理解的是,两个以上的手指触点包括两个手指触点,以及三个、四个等大于两个的手指触点。When the electronic device receives a touch operation input based on the touch area, it further determines the number of finger contacts included in the touch operation. Among them, the electronic device can determine the number of finger contacts involved in the touch operation by moving the event object. If the touch operation includes more than two finger contacts, and when the positions of more than two finger contacts change, the The touch operation is identified as a multi-finger slide operation. It should be understood that more than two finger contacts include two finger contacts, and three, four, etc. greater than two finger contacts.

比如,在电子设备的操作系统为安卓系统时,电子设备可以在监听到触控区域接收到触摸操作时,通过MotionEvent对象获取该触摸操作包括的手指触点的坐标,若获取到一个手指触点的坐标,则确定该触摸操作包括一个手指触点,若获取到两个手指触点的坐标,则确定该触摸操作包括两个手指触点,若获取到三个手指触点的坐标,则确定该触摸操作包括三个手指触点,若获取到四个手指触点的坐标,则确定该触摸操作包括四个手指触点,若获取到五个手指触点的坐标,则确定该触摸操作包括五个手指触点,等等。For example, when the operating system of the electronic device is the Android system, the electronic device can obtain the coordinates of the touch operation included in the touch operation through the MotionEvent object when the electronic device detects that the touch area receives a touch operation. coordinates, it is determined that the touch operation includes a finger contact, if the coordinates of two finger contacts are obtained, it is determined that the touch operation includes two finger contacts, and if the coordinates of three finger contacts are obtained, it is determined The touch operation includes three finger contacts. If the coordinates of four finger contacts are obtained, it is determined that the touch operation includes four finger contacts. If the coordinates of five finger contacts are obtained, it is determined that the touch operation includes Five finger contacts, and so on.

此外,随着触摸操作中手指触点位置的变化,MotionEvent对象记录的手指触点的坐标将随之变化。电子设备可以根据MotionEvent对象记录的手指触点的坐标,来判断手指触点的位置是否发生变化。比如,在MotionEvent对象记录的一个手指触点的坐标发生变化时,可以确定有一个手指触点的位置发生化;在MotionEvent对象记录的两个手指触点的坐标发生变化时,可以确定有两个手指触点的位置发生化;在MotionEvent对象记录的三个手指触点的坐标发生变化时,可以确定有三个手指触点的位置发生化;在MotionEvent对象记录的四个手指触点的坐标发生变化时,可以确定有四个手指触点的位置发生化;在MotionEvent对象记录的五个手指触点的坐标发生变化时,可以确定有戊个手指触点的位置发生化,等等。In addition, as the position of the finger contact changes during the touch operation, the coordinates of the finger contact recorded by the MotionEvent object will change accordingly. The electronic device can judge whether the position of the finger touch point changes according to the coordinates of the finger touch point recorded by the MotionEvent object. For example, when the coordinates of a finger contact recorded by the MotionEvent object change, it can be determined that the position of one finger contact changes; when the coordinates of two finger contacts recorded by the MotionEvent object change, it can be determined that there are two The position of the finger contact changes; when the coordinates of the three finger contacts recorded in the MotionEvent object change, it can be determined that the positions of the three finger contacts change; the coordinates of the four finger contacts recorded in the MotionEvent object change , it can be determined that the positions of four finger contacts change; when the coordinates of five finger contacts recorded by the MotionEvent object change, it can be determined that there are five finger contacts that change, and so on.

202、在前述触摸操作包括两个手指触点,且前述两个手指触点的位置发生变化时,将前述触摸操作标识为双指滑动操作。202. When the foregoing touch operation includes two finger contacts, and the positions of the foregoing two finger contacts change, identify the foregoing touch operation as a two-finger sliding operation.

比如,当用户使用右手食指和中指对电子设备的触控区域进行滑动时,电子设备将监听到前述食指和中指滑动触控区域所产生的触摸操作,并确定该触摸操作包括两个手指触点(分别对应食指和中指),且两个手指触点的位置发生了变化,此时,电子设备将触控区域接收到的触摸操作标识为双指滑动操作。For example, when the user uses the right index finger and middle finger to slide the touch area of the electronic device, the electronic device will monitor the touch operation generated by the aforementioned index finger and middle finger sliding the touch area, and determine that the touch operation includes two finger contacts (respectively corresponding to the index finger and the middle finger), and the positions of the contacts of the two fingers have changed. At this time, the electronic device identifies the touch operation received by the touch area as a two-finger sliding operation.

203、获取前述双指滑动操作中两个手指触点的指纹信息,得到两个指纹信息。203. Obtain the fingerprint information of the two finger contacts in the aforementioned two-finger sliding operation to obtain two fingerprint information.

其中,电子设备包括指纹传感器,该指纹传感器被配置为对接触于触控区域的手指进行指纹信息采集。这样,电子设备在通过触控区域接收到双指滑动操作时,可以通过指纹传感器来采集该双指滑动操作的指纹信息,得到两个指纹信息。Wherein, the electronic device includes a fingerprint sensor, and the fingerprint sensor is configured to collect fingerprint information of a finger touching the touch area. In this way, when the electronic device receives a two-finger sliding operation through the touch area, the fingerprint sensor can collect the fingerprint information of the two-finger sliding operation to obtain two fingerprint information.

204、对获取到的两个指纹信息进行验证,得到验证结果。204. Verify the two acquired fingerprint information, and obtain a verification result.

在获取到多指滑动操作中的多个手指触点的指纹信息之后,对获取到的多个指纹信息进行验证,也即是对多指滑动操作的输入者进行身份验证,在一实施方式中,对获取到多个指纹信息进行验证,包括:After obtaining the fingerprint information of multiple finger contacts in the multi-finger sliding operation, verify the obtained multiple fingerprint information, that is, perform identity verification on the inputter of the multi-finger sliding operation. In one embodiment , to verify multiple fingerprint information obtained, including:

(1)获取预设的指纹列表,该指纹列表中包括多组预设指纹信息,每组预设指纹信息中包括多个预设指纹信息;(1) Obtain a preset fingerprint list, which includes multiple sets of preset fingerprint information, and each set of preset fingerprint information includes multiple preset fingerprint information;

(2)将获取到的多个指纹信息与指纹列表中的每一组预设指纹信息进行比对;(2) comparing the multiple fingerprint information obtained with each group of preset fingerprint information in the fingerprint list;

(3)在指纹列表中存在与前述多个指纹信息匹配的一组预设指纹信息时,得到验证通过的验证结果。(3) When there is a set of preset fingerprint information matching the aforementioned plurality of fingerprint information in the fingerprint list, a verification result of passing the verification is obtained.

其中,指纹列表中的一组预设指纹信息可以是电子设备预先采集的、机主的指纹信息,也可以是机主授权的其他用户的指纹信息。Wherein, a set of preset fingerprint information in the fingerprint list may be the fingerprint information of the owner of the device collected in advance by the electronic device, or may be the fingerprint information of other users authorized by the owner of the device.

在采集指纹信息时,机主和/或机主授权的其他用户可以根据自身使用习惯提供多个手指供电子设备采集指纹信息,比如,机主可以提供右手的食指和中指供电子设备采集指纹信息,这样,电子设备将采集到机主右手食指和中指的指纹信息,并将采集到两个指纹信息标识为预设指纹信息,作为一组预设指纹信息存入预设的指纹列表中;又比如,机主授权的其他用户可以提供右手的食指和拇指供电子设备采集指纹信息,这样,电子设备将采集到该其他用户右手食指和拇指的指纹信息,并将采集到两个指纹信息标识为预设指纹信息,作为另一组预设指纹信息存入预设的指纹列表中。由此,指纹列表中将包括两组预设指纹信息,其中一组预设指纹信息为机主右手食指和中指的指纹信息,而另一组预设指纹信息为其他用户右手食指和拇指的指纹信息。When collecting fingerprint information, the owner and/or other users authorized by the owner can provide multiple fingers for the electronic device to collect fingerprint information according to their own usage habits. For example, the owner can provide the index finger and middle finger of the right hand for the electronic device to collect fingerprint information In this way, the electronic device will collect the fingerprint information of the owner's right index finger and middle finger, and identify the collected two fingerprint information as preset fingerprint information, and store them as a set of preset fingerprint information in the preset fingerprint list; and For example, other users authorized by the owner of the device can provide the index finger and thumb of the right hand for the electronic device to collect fingerprint information. In this way, the electronic device will collect the fingerprint information of the other user's right index finger and thumb, and mark the collected two fingerprint information as The preset fingerprint information is stored in the preset fingerprint list as another set of preset fingerprint information. Therefore, the fingerprint list will include two sets of preset fingerprint information, one set of preset fingerprint information is the fingerprint information of the owner's right index finger and middle finger, and the other set of preset fingerprint information is the fingerprint information of other users' right index finger and thumb information.

电子设备在获取到多指滑动操作中多个手指触点的指纹信息之后,对获取到的多个指纹信息进行验证。After acquiring the fingerprint information of multiple finger contacts in the multi-finger sliding operation, the electronic device verifies the acquired multiple fingerprint information.

首先,电子设备将获取到的多个指纹信息与指纹列表中的每组预设指纹信息一一进行比对,得到前述多个指纹信息中各指纹信息与每组预设指纹信息中各指纹信息的相似度。First, the electronic device compares the acquired multiple fingerprint information with each set of preset fingerprint information in the fingerprint list one by one, and obtains each fingerprint information in the aforementioned multiple fingerprint information and each fingerprint information in each set of preset fingerprint information. of similarity.

然后,判断是否存在一组预设指纹信息包括分别与前述多个指纹信息的相似度达到预设相似度的多个预设指纹信息,若存在,则判断该组预设指纹信息与前述多个指纹信息匹配,得到前述多个指纹信息验证通过的验证结果。Then, it is judged whether there is a group of preset fingerprint information including a plurality of preset fingerprint information whose similarity with the aforementioned plurality of fingerprint information reaches a preset similarity, and if it exists, it is judged that the group of preset fingerprint information is similar to the aforementioned plurality of fingerprint information. The fingerprint information is matched to obtain a verification result that the aforementioned plurality of fingerprint information pass the verification.

205、在验证结果为验证通过时,若双指滑动操作中两个手指触点的滑动方向相同,且均向预设方向滑动,则判断当前状态是否为亮屏状态。205. When the verification result is that the verification is passed, if the sliding directions of the two finger contacts in the two-finger sliding operation are the same and both slide in the preset direction, determine whether the current state is the bright screen state.

206、在当前状态为亮屏状态时,切换当前状态至熄屏状态。206. When the current state is the on-screen state, switch the current state to the off-screen state.

其中,预设方向可以由本领域技术人员根据实际需要进行设置。比如,可以设置预设方向为向下,请参照图4,当用户使用双指向下滑动电子设备的触控区域时,电子设备将接收到滑动方向向下的双指滑动操作,并确定对应该双指滑动操作的待执行操作为切换当前状态至熄屏状态,这样,在执行确定的待执行操作时,将当前状态由亮屏状态切换至熄屏状态,如图4所示。Wherein, the preset direction can be set by those skilled in the art according to actual needs. For example, the preset direction can be set as downwards. Please refer to Figure 4. When the user uses two fingers to slide down the touch area of the electronic device, the electronic device will receive the downward two-finger sliding operation and determine the corresponding The to-be-executed operation of the two-finger slide operation is to switch the current state to the off-screen state. In this way, when the determined to-be-executed operation is performed, the current state is switched from the on-screen state to the off-screen state, as shown in FIG. 4 .

207、在当前状态为熄屏状态,且未开启勿扰模式时,开启勿扰模式。207. When the current state is the screen-off state and the do-not-disturb mode is not enabled, enable the do-not-disturb mode.

其中,电子设备的勿扰模式是指:电子设备在处于熄屏状态时,若接收到电话、短信或应用程序的推送信息等情况时,不会对这些电话、短信或推送信息等进行提示,仅会保留相应记录。比如,当用户使用双指向下滑动电子设备的方式控制电子设备切换至熄屏状态之后,若不想被电话或短信等打扰,可以再次使用双指向下滑动电子设备的触控区域,由于电子设备已处于熄屏状态,此时电子设备将开启勿扰模式,避免用户被打扰。Among them, the Do Not Disturb mode of the electronic device means that when the electronic device is in the off-screen state, if it receives a phone call, text message, or push information from an application program, it will not prompt these calls, text messages, or push information, etc. Only corresponding records will be kept. For example, after the user uses two fingers to slide down the electronic device to control the electronic device to switch to the off-screen state, if he does not want to be disturbed by calls or text messages, he can use two fingers to slide down the touch area of the electronic device again. When the screen is off, the electronic device will turn on the Do Not Disturb mode to avoid disturbing the user.

在一实施例中,还提供了一种设备控制装置。请参照图6,图6为本申请实施例提供的设备控制装置400的结构示意图。其中,该设备控制装置应用于电子设备,该设备控制装置包括识别模块401、获取模块402、验证模块403和执行模块404,如下:In an embodiment, an equipment control device is also provided. Please refer to FIG. 6 , which is a schematic structural diagram of an equipment control apparatus 400 provided in an embodiment of the present application. Wherein, the device control device is applied to electronic devices, and the device control device includes an identification module 401, an acquisition module 402, a verification module 403 and an execution module 404, as follows:

识别模块401,用于在接收到触摸操作时,判断接收到的触摸操作是否为多指滑动操作。The identification module 401 is configured to, when receiving a touch operation, determine whether the received touch operation is a multi-finger slide operation.

获取模块402,用于在接收到的触摸操作为多指滑动操作时,获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。The obtaining module 402 is configured to obtain fingerprint information of multiple finger contacts in the multi-finger sliding operation to obtain multiple fingerprint information when the received touch operation is a multi-finger sliding operation.

验证模块403,用于对获取到的多个指纹信息进行验证,得到验证结果。The verification module 403 is configured to verify the acquired multiple fingerprint information to obtain a verification result.

执行模块404,用于在得到的验证结果为验证通过时,确定对应接收到的多指滑动操作的待执行操作,并执行确定的待执行操作。The execution module 404 is configured to determine the operation to be performed corresponding to the received multi-finger slide operation and execute the determined operation to be performed when the obtained verification result is that the verification is passed.

在一实施方式中,识别模块401可以用于:In one embodiment, the identification module 401 can be used to:

在接收到触摸操作时,确定该触摸操作包括的手指触点个数;When a touch operation is received, determine the number of finger contacts included in the touch operation;

在接收到的触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作。When the received touch operation includes more than two finger contacts, and the positions of more than two finger contacts change, the touch operation is identified as a multi-finger slide operation.

在一实施方式中,识别模块401可以用于:In one embodiment, the identification module 401 can be used to:

在接收到的触摸操作包括两个手指触点,且两个手指触点的位置发生变化时,将该触摸操作标识为双指滑动操作。When the received touch operation includes two finger contacts and the positions of the two finger contacts change, the touch operation is identified as a two-finger slide operation.

在一实施方式中,在接收到的多指滑动操作被标识为双指滑动操作时,获取模块402可以用于:In one embodiment, when the received multi-finger slide operation is identified as a two-finger slide operation, the acquiring module 402 may be used to:

确定双指滑动操作中手指触点的有效接触区域;Determine the effective contact area of the finger touch point in the two-finger sliding operation;

根据有效接触区域确定手指触点的指纹采集区域;Determine the fingerprint collection area of the finger contact according to the effective contact area;

对指纹采集区域进行指纹扫描,得到手指触点的指纹信息。Scan the fingerprint collection area to obtain the fingerprint information of the finger contact.

在一实施方式中,获取模块402可以用于:In one embodiment, the acquisition module 402 can be used to:

根据手指触点的位置信息,确定手指触点对应的连通区域;Determine the connected area corresponding to the finger touch point according to the position information of the finger touch point;

获取连通区域的特征信息,其中,特征信息包括连通区域的形状信息和/或尺寸信息;Acquiring feature information of the connected region, wherein the feature information includes shape information and/or size information of the connected region;

若特征信息满足预设条件,则将连通区域作为手指触点的有效接触区域。If the characteristic information satisfies the preset condition, the connected area is used as an effective contact area of the finger touch point.

在一实施方式中,获取模块402可以用于:In one embodiment, the acquisition module 402 can be used to:

确定有效接触区域的最小外接矩形区域;Determine the minimum circumscribed rectangular area of the effective contact area;

将最小外接矩形区域作为手指触点的指纹采集区域。The smallest circumscribed rectangular area is used as the fingerprint collection area of the finger contact.

在一实施方式中,验证模块403可以用于:In one embodiment, the verification module 403 can be used to:

获取预设的指纹列表,该指纹列表中包括多组预设指纹信息,每组预设指纹信息中包括多个预设指纹信息;Acquiring a preset fingerprint list, the fingerprint list includes multiple sets of preset fingerprint information, and each set of preset fingerprint information includes multiple preset fingerprint information;

将获取到的多个指纹信息与指纹列表中的每一组预设指纹信息进行比对;Comparing the acquired multiple fingerprint information with each set of preset fingerprint information in the fingerprint list;

在指纹列表中存在与前述多个指纹信息匹配的一组预设指纹信息时,得到验证通过的验证结果。When there is a set of preset fingerprint information matching the aforementioned plurality of fingerprint information in the fingerprint list, a verification result of passing the verification is obtained.

在一实施方式中,在接收到的多指滑动操作被标识为双指滑动操作时,执行模块404可以用于:In one embodiment, when the received multi-finger slide operation is identified as a two-finger slide operation, the executing module 404 may be used to:

在双指滑动操作中两个手指触点的滑动方向相同,且均向预设方向滑动时,判断当前状态是否为亮屏状态;In the two-finger sliding operation, when the sliding directions of the two finger contacts are the same and both slide in the preset direction, determine whether the current state is the bright screen state;

在当前状态为亮屏状态时,确定待执行操作为切换当前状态至熄屏状态。When the current state is the on-screen state, it is determined that the operation to be performed is to switch the current state to the off-screen state.

在一实施方式中,在判断当前状态是否为亮屏状态之后,执行模块404可以用于:In one embodiment, after judging whether the current state is a bright screen state, the execution module 404 can be used to:

在当前状态处于熄屏状态,且未开启勿扰模式时,确定待执行操作为开启勿扰模式。When the current status is off and the Do Not Disturb mode is not turned on, determine that the operation to be performed is to turn on the Do Not Disturb mode.

其中,设备控制装置400中各模块执行的步骤可以参考上述方法实施例描述的方法步骤。该设备控制装置400可以集成在电子设备中,如手机、平板电脑等。Wherein, for the steps executed by each module in the device control apparatus 400, reference may be made to the method steps described in the foregoing method embodiments. The device control device 400 can be integrated into electronic devices, such as mobile phones, tablet computers, and the like.

具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。During specific implementation, each of the above modules can be implemented as an independent entity, or can be combined arbitrarily as the same or several entities. The specific implementation of each of the above units can refer to the previous embodiments, and will not be repeated here.

由上可知,本实施例的设备控制装置应用于电子设备,在接收到触摸操作时,可以由识别模块401识别该触摸操作是否为多指滑动操作。在该触摸操作为多指滑动操作时,由获取模块402获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。由验证模块403对获取到的多个指纹信息进行验证,得到验证结果。在验证结果为验证通过时,由执行模块404确定对应多指滑动操作的待执行操作,并执行确定的所述待执行操作。由此,通过在对电子设备的触摸控制中加入指纹信息的验证,可以提高对电子设备进行触摸控制的安全性。It can be known from the above that the device control apparatus of this embodiment is applied to electronic devices, and when a touch operation is received, the identification module 401 can identify whether the touch operation is a multi-finger slide operation. When the touch operation is a multi-finger sliding operation, the acquiring module 402 acquires fingerprint information of multiple finger contacts in the multi-finger sliding operation to obtain multiple fingerprint information. The verification module 403 verifies the acquired multiple fingerprint information to obtain a verification result. When the verification result is that the verification is passed, the execution module 404 determines the operation to be performed corresponding to the multi-finger slide operation, and executes the determined operation to be performed. Therefore, by adding the verification of fingerprint information in the touch control of the electronic device, the security of the touch control of the electronic device can be improved.

在一实施例中,还提供一种电子设备。请参照图7,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。In an embodiment, an electronic device is also provided. Please refer to FIG. 7 , an electronic device 500 includes a processor 501 and a memory 502 . Wherein, the processor 501 is electrically connected with the memory 502 .

处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据。The processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading computer programs stored in the memory 502 and calling data stored in the memory 502, the processor 500 executes electronic various functions of the device 500 and process data.

存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502 . Memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating systems, computer programs required by at least one function (such as sound playback function, image playback function, etc.); Data created by the use of electronic devices, etc. In addition, the memory 502 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. Correspondingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502 .

在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 502, and run the instructions stored in the memory 502 by the processor 501. The computer program in the computer, so as to realize various functions, as follows:

在接收到触摸操作时,判断接收到的触摸操作是否为多指滑动操作。When a touch operation is received, it is determined whether the received touch operation is a multi-finger slide operation.

在接收到的触摸操作为多指滑动操作时,获取该多指滑动操作中多个手指触点的指纹信息,得到多个指纹信息。When the received touch operation is a multi-finger sliding operation, the fingerprint information of multiple finger contacts in the multi-finger sliding operation is acquired to obtain multiple fingerprint information.

对获取到的多个指纹信息进行验证,得到验证结果。The obtained multiple fingerprint information is verified to obtain a verification result.

在得到的验证结果为验证通过时,确定对应接收到的多指滑动操作的待执行操作,并执行确定的待执行操作。When the obtained verification result is that the verification is passed, the operation to be performed corresponding to the received multi-finger sliding operation is determined, and the determined operation to be performed is executed.

请一并参阅图8,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。Please also refer to FIG. 8 , in some implementation manners, the electronic device 500 may further include: a display 503 , a radio frequency circuit 504 , an audio circuit 505 and a power supply 506 . Wherein, the display 503 , the radio frequency circuit 504 , the audio circuit 505 and the power supply 506 are respectively electrically connected to the processor 501 .

显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器503可以包括显示面板,在某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 503 can be used to display information input by or provided to the user and various graphical user interfaces, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display 503 may include a display panel. In some implementation manners, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 504 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment.

音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.

电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 506 may be used to power various components of the electronic device 500 . In some embodiments, the power supply 506 may be logically connected to the processor 501 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.

尽管图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8 , the electronic device 500 may also include a camera, a Bluetooth module, etc., which will not be repeated here.

在某些实施方式中,在判断接收到的触摸操作是否为多指滑动操作时,处理器501可以执行以下步骤:In some implementation manners, when judging whether the received touch operation is a multi-finger slide operation, the processor 501 may perform the following steps:

在接收到触摸操作时,确定该触摸操作包括的手指触点个数;When a touch operation is received, determine the number of finger contacts included in the touch operation;

在接收到的触摸操作包括两个以上的手指触点,且有两个以上的手指触点的位置发生变化时,将该触摸操作标识为多指滑动操作。When the received touch operation includes more than two finger contacts, and the positions of more than two finger contacts change, the touch operation is identified as a multi-finger slide operation.

在某些实施方式中,处理器501可以执行以下步骤:In some implementations, the processor 501 may perform the following steps:

在接收到的触摸操作包括两个手指触点,且两个手指触点的位置发生变化时,将该触摸操作标识为双指滑动操作。When the received touch operation includes two finger contacts and the positions of the two finger contacts change, the touch operation is identified as a two-finger slide operation.

在某些实施方式中,若接收到的多指滑动操作被标识为双指滑动操作,在获取该多指滑动操作中多个手指触点的指纹信息时,处理器501可以执行以下步骤:In some implementations, if the received multi-finger sliding operation is identified as a two-finger sliding operation, the processor 501 may perform the following steps when acquiring fingerprint information of multiple finger contacts in the multi-finger sliding operation:

确定双指滑动操作中手指触点的有效接触区域;Determine the effective contact area of the finger touch point in the two-finger sliding operation;

根据有效接触区域确定手指触点的指纹采集区域;Determine the fingerprint collection area of the finger contact according to the effective contact area;

对指纹采集区域进行指纹扫描,得到手指触点的指纹信息。Scan the fingerprint collection area to obtain the fingerprint information of the finger contact.

在某些实施方式中,在确定双指滑动操作中手指触点的有效接触区域时,处理器501可以执行以下步骤:In some implementation manners, when determining the effective contact area of the finger touch point in the two-finger sliding operation, the processor 501 may perform the following steps:

根据手指触点的位置信息,确定手指触点对应的连通区域;Determine the connected area corresponding to the finger touch point according to the position information of the finger touch point;

获取连通区域的特征信息,其中,特征信息包括连通区域的形状信息和/或尺寸信息;Acquiring feature information of the connected region, wherein the feature information includes shape information and/or size information of the connected region;

若特征信息满足预设条件,则将连通区域作为手指触点的有效接触区域。If the characteristic information satisfies the preset condition, the connected area is used as an effective contact area of the finger touch point.

在某些实施方式中,在根据有效接触区域确定手指触点的指纹采集区域时,处理器501可以执行以下步骤:In some implementations, when determining the fingerprint collection area of the finger contact according to the effective contact area, the processor 501 may perform the following steps:

确定有效接触区域的最小外接矩形区域;Determine the minimum circumscribed rectangular area of the effective contact area;

将最小外接矩形区域作为手指触点的指纹采集区域。The smallest circumscribed rectangular area is used as the fingerprint collection area of the finger contact.

在某些实施方式中,在对获取到的多个指纹信息进行验证时,处理器501可以执行以下步骤:In some implementation manners, when verifying the acquired multiple fingerprint information, the processor 501 may perform the following steps:

获取预设的指纹列表,该指纹列表中包括多组预设指纹信息,每组预设指纹信息中包括多个预设指纹信息;Acquiring a preset fingerprint list, the fingerprint list includes multiple sets of preset fingerprint information, and each set of preset fingerprint information includes multiple preset fingerprint information;

将获取到的多个指纹信息与指纹列表中的每一组预设指纹信息进行比对;Comparing the acquired multiple fingerprint information with each set of preset fingerprint information in the fingerprint list;

在指纹列表中存在与前述多个指纹信息匹配的一组预设指纹信息时,得到验证通过的验证结果。When there is a set of preset fingerprint information matching the aforementioned plurality of fingerprint information in the fingerprint list, a verification result of passing the verification is obtained.

在某些实施方式中,若接收到的多指滑动操作被标识为双指滑动操作,在确定对应接收到的多指滑动操作的待执行操作时,处理器501可以执行以下步骤:In some implementations, if the received multi-finger slide operation is identified as a two-finger slide operation, when determining the operation to be performed corresponding to the received multi-finger slide operation, the processor 501 may perform the following steps:

在双指滑动操作中两个手指触点的滑动方向相同,且均向预设方向滑动时,判断当前状态是否为亮屏状态;In the two-finger sliding operation, when the sliding directions of the two finger contacts are the same and both slide in the preset direction, determine whether the current state is the bright screen state;

在当前状态为亮屏状态时,确定待执行操作为切换当前状态至熄屏状态。When the current state is the on-screen state, it is determined that the operation to be performed is to switch the current state to the off-screen state.

在某些实施方式中,在判断当前状态是否为亮屏状态之后,处理器501可以执行以下步骤:In some implementations, after judging whether the current state is the screen-on state, the processor 501 may perform the following steps:

在当前状态处于熄屏状态,且未开启勿扰模式时,确定待执行操作为开启勿扰模式。When the current status is off and the Do Not Disturb mode is not turned on, determine that the operation to be performed is to turn on the Do Not Disturb mode.

本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一实施例中的设备控制方法,比如:通过触摸感应模组侦测Home键接收到的滑动操作。在Home键接收到滑动滑动操作时,通过指纹识别模组获取接收到的滑动滑动操作的指纹信息。判断获取到的指纹信息是否与预设指纹信息匹配。在获取到的指纹信息与预设指纹信息匹配时,确定对应前述滑动滑动操作的待执行操作,并执行确定的待执行操作。An embodiment of the present application also provides a storage medium, the storage medium stores a computer program, and when the computer program is run on a computer, the computer is made to execute the device control method in any of the above embodiments, for example: by The touch sensing module detects the sliding operation received by the Home button. When the Home key receives a slide operation, the fingerprint information of the received slide operation is acquired through the fingerprint identification module. Judging whether the acquired fingerprint information matches the preset fingerprint information. When the acquired fingerprint information matches the preset fingerprint information, determine the to-be-executed operation corresponding to the aforementioned sliding operation, and execute the determined to-be-executed operation.

本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)或者随机存取器(Random Access Memory,RAM)等。In this embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), or the like.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

需要说明的是,对本申请实施例的设备控制方法而言,本领域普通测试人员可以理解实现本申请实施例的设备控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如设备控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the device control method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the device control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program , the computer program may be stored in a computer-readable storage medium, such as stored in a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include, for example, a device control method. Example flow. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.

对本申请实施例的设备控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the equipment control device of the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .

以上对本申请实施例所提供的一种设备控制方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The device control method, device, storage medium and electronic equipment provided by the embodiment of the present application are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present application. The description of the above embodiment is only It is used to help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, this specification The content should not be construed as a limitation of the application.

Claims (12)

1. a kind of apparatus control method, it is applied to electronic equipment, which is characterized in that the apparatus control method includes:
When receiving touch operation, identify whether the touch operation is to refer to slide more;
When the touch operation is to refer to slide more, the fingerprint letter for more referring to multiple finger contacts in slide is obtained Breath, obtains multiple finger print informations;
The multiple finger print informations got are verified, result is verified;
When the verification result is to be verified, the corresponding pending operation for more referring to slide is determined, and execute true The fixed pending operation.
2. apparatus control method as described in claim 1, which is characterized in that when receiving touch operation, identify the touching Touch operation whether be refer to slide, including:
When receiving touch operation, the finger contact number that the touch operation includes is determined;
It include more than two finger contacts in the touch operation, and there are two the positions of above finger contact to change When, the touch operation is identified as mostly finger slide.
3. equipment control mode as claimed in claim 2, which is characterized in that in the touch operation include more than two hands When referring to contact, and changing there are two the position of above finger contact, the touch operation is identified as and refers to sliding behaviour more Make, including:
It include two finger contacts in the touch operation, and when the position of described two finger contacts changes, it will be described Touch operation is identified as two fingers slide.
4. apparatus control method as claimed in claim 3, which is characterized in that obtain multiple fingers in the mostly finger slide The finger print information of contact, including:
Determine effective contact area of finger contact in the two fingers slide;
The fingerprint collecting region of the finger contact is determined according to effective contact area;
Finger scan is carried out to the fingerprint collecting region, obtains the finger print information of the finger contact.
5. apparatus control method as claimed in claim 4, which is characterized in that determine finger contact in the two fingers slide Effective contact area, including:
According to the location information of the finger contact, the corresponding connected region of the finger contact is determined;
Obtain the characteristic information of the connected region, wherein the characteristic information include the connected region shape information and/ Or dimension information;
If the characteristic information meets preset condition, using the connected region as effective contact zone of the finger contact Domain.
6. apparatus control method as claimed in claim 4, which is characterized in that determine the hand according to effective contact area Refer to the fingerprint collecting region of contact, including:
Determine the minimum circumscribed rectangle region of effective contact area;
Using the minimum circumscribed rectangle region as the fingerprint collecting region of the finger contact.
7. such as the described in any item apparatus control methods of claim 3-6, which is characterized in that determine that corresponding described more refer to slides behaviour The pending operation of work, including:
The glide direction of two finger contacts is identical in the two fingers slide, and judges to when preset direction sliding Whether current state is bright screen state;
When current state is bright screen state, determine that the pending operation is switching current state to putting out screen state.
8. such as the described in any item apparatus control methods of claim 3-6, which is characterized in that judge whether current state is bright screen After state, further include:
It is to put out screen state, and when not opening do-not-disturb mode, determine the pending operation to open do-not-disturb mode in current state.
9. apparatus control method as claimed in any one of claims 1 to 6, which is characterized in that the multiple fingerprints got Information is verified, including:
It obtains preset fingerprint list, includes multiple groups preset fingerprint information in the fingerprint list, in every group of preset fingerprint information Including multiple preset fingerprint information;
Multiple finger print informations are compared with each group of preset fingerprint information in the fingerprint list;
When there is one group of preset fingerprint information matched with multiple finger print informations in the fingerprint list, it is verified logical The verification result crossed.
10. a kind of plant control unit, it is applied to electronic equipment, which is characterized in that the plant control unit includes:
Identification module, for when receiving slide, identifying whether the slide is to refer to slide more;
Module is obtained, for when the slide is to refer to slide more, acquisition is described to refer to multiple hands in slide more The finger print information for referring to contact, obtains multiple finger print informations;
Authentication module is verified result for verifying to the multiple finger print informations got;
Execution module, for when the verification result is to be verified, determining the pending of the corresponding mostly finger slide Operation, and execute the determining pending operation.
11. a kind of storage medium, is stored thereon with computer program, which is characterized in that real when described program is executed by processor Existing apparatus control method as described in any one of claim 1 to 9.
12. a kind of electronic equipment, including processor and memory, the memory storage have computer program, which is characterized in that The processor is by calling the computer program, for executing equipment controlling party as described in any one of claim 1 to 9 Method.
CN201810753098.6A 2018-07-10 2018-07-10 Device control method, device, storage medium and electronic device Active CN108846271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810753098.6A CN108846271B (en) 2018-07-10 2018-07-10 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810753098.6A CN108846271B (en) 2018-07-10 2018-07-10 Device control method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108846271A true CN108846271A (en) 2018-11-20
CN108846271B CN108846271B (en) 2020-06-19

Family

ID=64196099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810753098.6A Active CN108846271B (en) 2018-07-10 2018-07-10 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108846271B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558180A (en) * 2018-11-22 2019-04-02 Oppo广东移动通信有限公司 Application function starts control method and electronic device
CN110058780A (en) * 2019-04-23 2019-07-26 深圳达闼科技控股有限公司 A kind of operating method of terminal, terminal and readable storage medium storing program for executing
CN111259687A (en) * 2018-11-30 2020-06-09 北京小米移动软件有限公司 Fingerprint unlocking device and method and electronic equipment
CN112381545A (en) * 2020-11-20 2021-02-19 惠州Tcl移动通信有限公司 Identity authentication method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825986A (en) * 2009-03-06 2010-09-08 Lg电子株式会社 Portable terminal and the method for controlling portable terminal
WO2014155749A1 (en) * 2013-03-29 2014-10-02 楽天株式会社 Information processing device, method for controlling information processing device, program, and information storage medium
TWM516194U (en) * 2015-09-17 2016-01-21 速博思股份有限公司 Multi-finger fingerprint recognition apparatus, electronic apparatus with multi-finger fingerprint recognition function
CN105447447A (en) * 2015-11-11 2016-03-30 广东欧珀移动通信有限公司 Terminal Fingerprint Recognition Method and System
WO2016208835A1 (en) * 2015-06-22 2016-12-29 엘지전자 주식회사 Smart watch and method for controlling same
CN106325752A (en) * 2016-08-26 2017-01-11 深圳众思科技有限公司 Bottom touch recognition system and method and terminal
CN106371746A (en) * 2016-08-26 2017-02-01 深圳众思科技有限公司 Interactive apparatus and method, and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825986A (en) * 2009-03-06 2010-09-08 Lg电子株式会社 Portable terminal and the method for controlling portable terminal
WO2014155749A1 (en) * 2013-03-29 2014-10-02 楽天株式会社 Information processing device, method for controlling information processing device, program, and information storage medium
WO2016208835A1 (en) * 2015-06-22 2016-12-29 엘지전자 주식회사 Smart watch and method for controlling same
US20180181733A1 (en) * 2015-06-22 2018-06-28 Lg Electronics Inc. Smart watch and method for controlling same
TWM516194U (en) * 2015-09-17 2016-01-21 速博思股份有限公司 Multi-finger fingerprint recognition apparatus, electronic apparatus with multi-finger fingerprint recognition function
CN105447447A (en) * 2015-11-11 2016-03-30 广东欧珀移动通信有限公司 Terminal Fingerprint Recognition Method and System
CN106325752A (en) * 2016-08-26 2017-01-11 深圳众思科技有限公司 Bottom touch recognition system and method and terminal
CN106371746A (en) * 2016-08-26 2017-02-01 深圳众思科技有限公司 Interactive apparatus and method, and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558180A (en) * 2018-11-22 2019-04-02 Oppo广东移动通信有限公司 Application function starts control method and electronic device
CN111259687A (en) * 2018-11-30 2020-06-09 北京小米移动软件有限公司 Fingerprint unlocking device and method and electronic equipment
CN110058780A (en) * 2019-04-23 2019-07-26 深圳达闼科技控股有限公司 A kind of operating method of terminal, terminal and readable storage medium storing program for executing
CN110058780B (en) * 2019-04-23 2021-09-28 深圳达闼科技控股有限公司 Terminal operation method, terminal and readable storage medium
CN112381545A (en) * 2020-11-20 2021-02-19 惠州Tcl移动通信有限公司 Identity authentication method, device, equipment and storage medium
CN112381545B (en) * 2020-11-20 2025-03-28 惠州Tcl移动通信有限公司 Authentication method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108846271B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US11740694B2 (en) Managing and mapping multi-sided touch
US9245165B2 (en) Auxiliary functionality control and fingerprint authentication based on a same user input
CN104205047B (en) Apparatus and method for providing for remote user interaction
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
CN107547750A (en) Control method, device and the storage medium of terminal
CN103092464B (en) End device and icon method of operating thereof
CN108846271B (en) Device control method, device, storage medium and electronic device
CN107066167A (en) A kind of regional selection method, device and graphic user interface
US9189152B2 (en) Touch device and method for dynamically setting touch inactive area, and non-transitory recording medium
US20200159900A1 (en) Smart touchscreen display
CN107608615A (en) Fingerprint identification function open method, device, terminal and storage medium
CN108958627A (en) Touch operation method and device, storage medium and electronic equipment
CN108845751A (en) Touch information processing method and device, storage medium and electronic equipment
CN108170342A (en) Application Program Interface display methods and device, terminal, readable storage medium storing program for executing
CN108664286B (en) Application preloading method, device, storage medium and mobile terminal
CN105549811A (en) Terminal interface display method and device based on protective cover window
CN108845752A (en) Touch operation method and device, storage medium and electronic equipment
CN113791725A (en) Recognition method of stylus operation, intelligent terminal and computer-readable storage medium
CN107590465A (en) A kind of image processing method and mobile terminal
CN104182120B (en) Screen interface display method and display device
WO2020118491A1 (en) Fingerprint recognition-based interaction method, electronic device and related device
CN109002339A (en) Touch operation method and device, storage medium and electronic equipment
CN107544740B (en) Application processing method and device, storage medium and electronic equipment
CN110263515A (en) A kind of deployment method and terminal device of encryption application
CN108509808A (en) Application icon hiding method and device and terminal equipment

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