Movatterモバイル変換


[0]ホーム

URL:


CN110866465A - Electronic device control method and electronic device - Google Patents

Electronic device control method and electronic device
Download PDF

Info

Publication number
CN110866465A
CN110866465ACN201911040338.9ACN201911040338ACN110866465ACN 110866465 ACN110866465 ACN 110866465ACN 201911040338 ACN201911040338 ACN 201911040338ACN 110866465 ACN110866465 ACN 110866465A
Authority
CN
China
Prior art keywords
target
electronic device
feature information
scene mode
user
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.)
Pending
Application number
CN201911040338.9A
Other languages
Chinese (zh)
Inventor
陈文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201911040338.9ApriorityCriticalpatent/CN110866465A/en
Publication of CN110866465ApublicationCriticalpatent/CN110866465A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides a control method of electronic equipment and the electronic equipment, which are applied to the technical field of communication and are used for solving the problems of complicated operation steps and long time consumption in the whole process of manually switching scene modes by a user. The method comprises the following steps: the electronic equipment acquires a face image of a first user and target characteristic information of the face image, wherein the target characteristic information is used for representing a target local five sense organs posture of the first user; setting the scene mode of the electronic equipment as a target scene mode under the condition that the face image is matched with a preset face image and the target characteristic information is matched with the preset characteristic information; wherein the predetermined characteristic information is used for representing a predetermined local facial feature posture of the first user; the target scene mode is as follows: and the scene mode corresponding to the preset local five-sense organ posture.

Description

Translated fromChinese
电子设备的控制方法及电子设备Electronic device control method and electronic device

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及电子设备的控制方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a control method of an electronic device and an electronic device.

背景技术Background technique

随着电子设备(如,手机)技术的发展,电子设备逐渐成为我们工作、生活和学习中必不可少的工具,由于我们使用电子设备时所处的环境多样,为方便我们在不同的环境下使用,电子设备提供了适用于在不同环境下使用的场景模式,如,响铃模式、静音模式、护眼模式、儿童模式、访客模式和驾驶模式等。With the development of electronic devices (such as mobile phones) technology, electronic devices have gradually become an indispensable tool in our work, life and study. Due to the diverse environments in which we use electronic devices, in order to facilitate our In use, the electronic device provides scene modes suitable for use in different environments, such as a ringer mode, a silent mode, an eye protection mode, a child mode, a visitor mode, and a driving mode.

然而,由于传统的场景模式切换需要用户手动进行切换。如此,导致整个切换过程步骤繁琐、且耗时较长。However, due to the traditional scene mode switching, the user needs to manually switch. In this way, the whole switching process is complicated and time-consuming.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供的电子设备的控制方法及电子设备,以解决用户在手动切换场景模式的整个过程中,操作步骤繁琐,耗时较长的问题。The electronic device control method and electronic device provided by the embodiments of the present invention solve the problems of complicated operation steps and long time-consuming in the whole process of manually switching the scene mode by the user.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本发明实施例提供的电子设备的控制方法,该方法包括:电子设备获取第一用户的人脸图像以及该人脸图像的目标特征信息,该目标特征信息用于表征第一用户的目标局部五官姿态;在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,电子设备将该电子设备的场景模式设置为目标场景模式;其中,上述预定特征信息用于表征上述第一用户的预定局部五官姿态;上述目标场景模式为:上述预定局部五官姿态对应的场景模式。In a first aspect, an embodiment of the present invention provides a control method for an electronic device, the method comprising: the electronic device acquires a face image of a first user and target feature information of the face image, where the target feature information is used to represent the first user the target local facial features; in the case that the above-mentioned face image matches the predetermined face image, and the above-mentioned target feature information matches the predetermined feature information, the electronic device sets the scene mode of the electronic device as the target scene mode; wherein , the predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: a scene mode corresponding to the predetermined partial facial features.

第二方面,本发明实施例还提供了一种电子设备,该电子设备包括:获取模块,用于获取第一用户的人脸图像以及该人脸图像的目标特征信息,该目标特征信息用于表征上述第一用户的目标局部五官的五官形态;设置模块,用于在上述获取模块获取的上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,将上述电子设备的场景模式设置为目标场景模式;其中,上述预定特征信息用于表征上述第一用户的预定局部五官姿态;上述目标场景模式为:上述预定局部五官姿态对应的场景模式。In a second aspect, an embodiment of the present invention further provides an electronic device, the electronic device includes: an acquisition module configured to acquire a face image of the first user and target feature information of the face image, where the target feature information is used for Characterization of the facial features of the target local facial features of the above-mentioned first user; setting module, for the above-mentioned face image acquired by the above-mentioned acquisition module and the predetermined face image are matched, and the above-mentioned target feature information and predetermined feature information are matched under the situation , set the scene mode of the electronic device as the target scene mode; wherein, the predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: the scene mode corresponding to the predetermined partial facial features.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的电子设备的控制方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the control method for an electronic device described in one aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的电子设备的控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the control method for an electronic device according to the first aspect is implemented A step of.

在本发明实施例中,电子设备通过获取第一用户人脸图像以及该人脸图像的目标特征信息,由于该目标特征信息用于表征第一用户的目标局部五官姿态,且预定至少一种局部五官姿态对应一种场景模式,因此,在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,该电子设备可以基于用户的五官姿态来将该电子设备的场景模式设置为目标场景模式,从而简化了用户对场景模式切换的操作步骤,避免了传统的场景模式切换的整个过程操作步骤繁琐,耗时较长的问题。In this embodiment of the present invention, the electronic device obtains the face image of the first user and the target feature information of the face image, because the target feature information is used to represent the target local facial features of the first user, and at least one local feature is predetermined. The facial features correspond to a scene mode. Therefore, in the case that the above-mentioned face image matches the predetermined face image, and the above-mentioned target feature information matches the predetermined feature information, the electronic device can be based on the user's facial features. The scene mode of the electronic device is set to the target scene mode, which simplifies the user's operation steps for scene mode switching, and avoids the problems of complicated operation steps and long time-consuming in the entire process of traditional scene mode switching.

附图说明Description of drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的电子设备的控制方法流程示意图;2 is a schematic flowchart of a control method for an electronic device provided by an embodiment of the present invention;

图3为本发明实施例提供的电子设备的控制的示意图之一;3 is one of the schematic diagrams of the control of the electronic device provided by the embodiment of the present invention;

图4为本发明实施例提供的电子设备的控制界面的示意图之二;4 is a second schematic diagram of a control interface of an electronic device provided by an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备的可能的结构示意图;FIG. 5 is a possible schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

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

需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that “/” in this document means or, for example, A/B can mean A or B; “and/or” in this document is only an association relationship that describes an associated object, indicating that there may be three A relationship, for example, A and/or B, can mean the existence of A alone, the existence of both A and B, and the existence of B alone.

需要说明的是,本文中的“多个”是指两个或多于两个。It should be noted that the "plurality" herein refers to two or more than two.

需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明实施例中,采用了“第一”、“第二”等字样对功能或作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。例如,第一特征信息和第二特征信息是用于区别不同的特征信息,而不是用于描述该特征信息的特定顺序。It should be noted that, in order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to describe the same or similar items that have basically the same function or effect. For distinction, those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order. For example, the first feature information and the second feature information are used to distinguish different feature information, rather than used to describe a specific order of the feature information.

本发明实施例提供的电子设备的控制方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该电子设备的控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。The execution subject of the control method of the electronic device provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the control method of the electronic device. The usage requirement is determined, which is not limited in the embodiment of the present invention.

示例性的,以上述电子设备为终端设备为例,该终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。Exemplarily, taking the above electronic device as a terminal device as an example, the terminal device may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention does not specifically limit it.

本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的电子设备的控制方法所应用的软件环境。Taking the Android operating system as an example below, the software environment to which the method for controlling an electronic device provided by the embodiment of the present invention is applied will be described.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的电子设备的控制方法的软件程序,从而使得该电子设备的控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的电子设备的控制方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the control method for an electronic device provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The control method of the electronic device may run based on the Android operating system as shown in FIG. 1 . That is, the processor or the electronic device can implement the control method of the electronic device provided by the embodiment of the present invention by running the software program in the Android operating system.

下面结合图2所示的电子设备的控制方法流程图对本发明实施例的电子设备的控制方法进行说明,图2为本发明实施例提供的电子设备的控制方法流程示意图,包括步骤201和步骤202:The following describes a control method for an electronic device according to an embodiment of the present invention with reference to the flow chart of the control method for the electronic device shown in FIG. 2 . FIG. 2 is a schematic flowchart for the control method for the electronic device according to the embodiment of the present invention, includingstep 201 and step 202 :

步骤201:电子设备获取第一用户的人脸图像以及该人脸图像的目标特征信息。Step 201: The electronic device acquires a face image of the first user and target feature information of the face image.

在本发明实施例中,上述目标特征信息用于表征第一用户的目标局部五官姿态。示例性的,五官指的是眼睛、耳朵、鼻子、眉毛和嘴巴脸部器官;上述目标局部五官指的是第一用户的五官中的至少一个器官。In the embodiment of the present invention, the above-mentioned target feature information is used to represent the target partial facial features of the first user. Exemplarily, the facial features refer to the eyes, ears, nose, eyebrows, and facial organs of the mouth; the above-mentioned target partial facial features refer to at least one of the facial features of the first user.

可选的,在本发明实施例中,上述目标特征信息包括N个第一特征信息,任一第一特征信息用于表征上述第一用户的一种局部五官,N为正整数。Optionally, in this embodiment of the present invention, the target feature information includes N pieces of first feature information, any one of the first feature information is used to represent a local facial feature of the first user, and N is a positive integer.

可选的,在本发明实施例中,以目标局部五官为眼睛为例,该眼睛的五官形态可以为,眼睛睁开、眼睛闭合状态、眼睛注视电子设备、眼睛未注视电子设备、该眼睛被遮挡或眼睛未遮挡等;或者,以目标局部五官为嘴巴为例,该嘴巴的五官姿态可以为,嘴巴张开、嘴巴闭合、嘴巴被遮挡或嘴巴未遮挡等;或者,以目标局部五官为耳朵为例,耳朵的五官姿态可以为耳朵被遮挡或耳朵未遮挡等;或者,以目标局部五官为鼻子为例,鼻子的五官姿态可以为,鼻子被遮挡或鼻子未遮挡等;或者,以目标局部五官为眉毛为例,眉毛的五官姿态可以为,眉毛挑起或眉毛未挑起等;Optionally, in this embodiment of the present invention, taking the target local facial features as the eyes as an example, the facial features of the eyes can be as follows: the eyes are open, the eyes are closed, the eyes are looking at the electronic device, the eyes are not looking at the electronic device, and the eyes are closed. Blocked or unblocked eyes, etc.; or, taking the target local facial features as the mouth as an example, the facial features of the mouth can be, the mouth is open, the mouth is closed, the mouth is blocked or the mouth is not blocked, etc.; or, the target local facial features are the ears. For example, the facial features of the ears can be blocked or unblocked, etc.; or, taking the target local facial features as the nose, the facial features of the nose can be, the nose is blocked or the nose is not blocked, etc.; For example, the facial features are eyebrows, the facial features of the eyebrows can be, the eyebrows are raised or the eyebrows are not raised, etc.;

可选的,在本发明实施例中,电子设备在执行上述步骤201时,可以通过摄像头采集待识别人脸图像,在采集到待识别人脸图像后,便可对该待识别人脸图像进行人脸匹配,在上述待识别人脸图像与预定人脸图像相匹配的情况下,电子设备进一步获取该待识别人脸图像的目标特征信息,或者,电子设备可以在通过摄像头采集到待识别人脸图像后,直接获取该人脸图像的目标特征信息。Optionally, in this embodiment of the present invention, when the electronic device performs theabove step 201, it may collect the face image to be recognized through a camera, and after collecting the face image to be recognized, the face image to be recognized can be processed. Face matching, in the case that the above-mentioned face image to be identified matches the predetermined face image, the electronic device further obtains the target feature information of the face image to be identified, or the electronic device can collect the face image to be identified through the camera. After the face image is obtained, the target feature information of the face image is directly obtained.

步骤202:在上述人脸图像与预定人脸图像相匹配、且目标特征信息与预定特征信息相匹配的情况下,电子设备将该电子设备的场景模式设置为目标场景模式。Step 202: When the above-mentioned face image matches the predetermined face image and the target feature information matches the predetermined feature information, the electronic device sets the scene mode of the electronic device as the target scene mode.

在本发明实施例中,上述预定特征信息用于表征上述第一用户的预定局部五官的预定局部五官姿态。In the embodiment of the present invention, the predetermined feature information is used to represent the predetermined partial facial features of the predetermined partial facial features of the first user.

在本发明实施例中,上述目标场景模式为:上述第一用户的预定局部五官姿态对的场景模式。上述的目标场景模式包括至少一种场景模式。In the embodiment of the present invention, the target scene mode is: a scene mode of a predetermined partial facial feature gesture pair of the first user. The above-mentioned target scene mode includes at least one scene mode.

示例性的,上述场景模式可以包括以下至少一种:响铃模式、静音模式、震动模式、护眼模式、儿童模式、游戏模式、访客模式、驾驶模式或飞行模式等。在一种示例中,护眼模式可以有以下两种实现方式:降低电子设备的屏幕亮度或将电子设备的主题设置为暗黑主题。在一种示例中,上述的场景模式可以是在电子设备存在专用设置控件的场景模式,例如飞行模式,还可以为该电子设备中的一个专用的APP对应的场景模式,例如,儿童模式。Exemplarily, the above scene modes may include at least one of the following: a ringing mode, a silent mode, a vibration mode, an eye protection mode, a children's mode, a game mode, a guest mode, a driving mode, an airplane mode, and the like. In one example, the eye protection mode can be implemented in the following two ways: reducing the screen brightness of the electronic device or setting the theme of the electronic device to a dark theme. In an example, the above-mentioned scene mode may be a scene mode with dedicated setting controls in the electronic device, such as an airplane mode, or a scene mode corresponding to a dedicated APP in the electronic device, such as a child mode.

可选的,在本发明实施例中,上述预定特征信息包括M个第二特征信息,任一第二特征信息用于表征上述第一用户的一个预定局部五官的至少一种预定姿态,M为正整数。Optionally, in this embodiment of the present invention, the predetermined feature information includes M pieces of second feature information, and any second feature information is used to represent at least one predetermined posture of a predetermined partial facial feature of the first user, and M is positive integer.

可选的,在本发明实施例中,上述目标特征信息包括N个第一特征信息的情况下,上述目标特征信息与预定特征信息相匹配包括:该N个第一特征信息指示的局部五官姿态与该预定特征信息指示的局部五官姿态全部匹配,或者,该N个第一特征信息中的部分第一特征信息指示的局部五官姿态与该预定特征信息指示的局部五官姿态全部匹配。Optionally, in the embodiment of the present invention, when the above-mentioned target characteristic information includes N pieces of first characteristic information, the matching of the above-mentioned target characteristic information with predetermined characteristic information includes: the local facial features indicated by the N pieces of first characteristic information. All of the local facial features indicated by the predetermined feature information match, or, the local facial features indicated by part of the first feature information in the N pieces of first feature information all match the local facial features indicated by the predetermined feature information.

可选的,在本发明实施例中,电子设备预存有一个或多个特征信息,其中,一个特征信息用于表征第一用户的一个或多个局部五官的至少一种五官姿态,一个场景模式对应至少一个特征信息。示例性的,上述的预定特征信息为该电子设备预存有一个或多个特征信息中的至少一个特征信息。Optionally, in this embodiment of the present invention, the electronic device pre-stores one or more feature information, wherein one feature information is used to represent at least one facial feature of one or more partial facial features of the first user, and a scene mode Corresponds to at least one feature information. Exemplarily, the above-mentioned predetermined feature information is that the electronic device pre-stores at least one feature information among one or more feature information.

在一种示例中,一种局部五官姿态对应一个场景模式。例如,第一用户的嘴巴被遮挡这一种嘴巴形态对应静音模式,第一用户的眼睛闭合这一眼睛形态对应护眼模式,第一用户的眼睛未注视终端这一眼睛形态对应访客模式。In one example, one local facial feature corresponds to one scene mode. For example, the mouth shape of the first user whose mouth is covered corresponds to the silent mode, the eye shape of the first user's eyes closed corresponds to the eye protection mode, and the eye shape of the first user's eyes not looking at the terminal corresponds to the visitor mode.

在另一种示例中,多种局部五官姿态的组合对应一个场景模式。例如,第一用户的眼睛未注视电子设备且第一用户的嘴巴被遮挡这一组合五官形态对应儿童模式,第一用户的眼睛未注视电子设备且第一用户的嘴巴闭合这一组合五官姿态对应访客模式。In another example, the combination of multiple local facial features corresponds to one scene mode. For example, the combined facial features of the first user's eyes not looking at the electronic device and the first user's mouth are blocked corresponds to the child mode, and the combined facial features of the first user's eyes not looking at the electronic device and the first user's mouth being closed corresponds to Guest mode.

在另一种示例中,多种局部五官姿态可能对应同一场景模式。例如,第一用户的嘴巴被遮挡或嘴巴闭合这两种嘴巴形态均对应静音模式。In another example, multiple local facial features may correspond to the same scene mode. For example, the first user's mouth is blocked or the mouth is closed, both of which correspond to the mute mode.

举例说明,以目标局部五官为眼睛为例,当用户想要设置护眼模式时,首先,用户可以通过按压电子设备的电源键,来触发电子设备的人脸识别功能。此时,如图3所示,用户紧闭双眼,使得电子设备采集到该用户紧闭双眼的待识别人脸图像。然后,在该待识别人脸图像与预定人脸图像相匹配的情况下,电子设备进一步获取该待识别人脸图像的目标特征信息,其中,该目标特征信息包含用于表征该用户的眼睛处于闭合状态的眼睛特征信息。由于该电子设备中预存有的用于表征该用户的眼睛处于闭合状态的预定特征信息,且该预定特征信息对应的场景模式为护眼模式,因此,当电子设备将上述目标特征信息与电子设备中预存的预定特征信息进行匹配后,则可以直接将场景模式设置为护眼模式。For example, taking the target partial facial features as the eyes as an example, when the user wants to set the eye protection mode, first, the user can trigger the face recognition function of the electronic device by pressing the power button of the electronic device. At this time, as shown in FIG. 3 , the user closes his eyes tightly, so that the electronic device collects the face image to be recognized with the user's eyes closed. Then, in the case that the face image to be identified matches the predetermined face image, the electronic device further acquires target feature information of the face image to be identified, wherein the target feature information contains information used to indicate that the user's eyes are in Eye feature information in the closed state. Since the electronic device has pre-stored predetermined feature information to indicate that the user's eyes are in a closed state, and the scene mode corresponding to the predetermined feature information is the eye protection mode, when the electronic device associates the above target feature information with the electronic device After matching the predetermined feature information pre-stored in the device, you can directly set the scene mode to the eye protection mode.

本发明实施例提供的电子设备的控制方法,电子设备通过获取第一用户人脸图像以及该人脸图像的目标特征信息,由于该目标特征信息用于表征第一用户的目标局部五官姿态,且预定至少一种局部五官姿态对应一种场景模式,因此,在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,该电子设备可以基于用户的五官姿态来将该电子设备的场景模式设置为目标场景模式,从而简化了用户对场景模式切换的操作步骤,避免了传统的场景模式切换的整个过程操作步骤繁琐,耗时较长的问题。In the control method for an electronic device provided by the embodiment of the present invention, the electronic device obtains the face image of the first user and the target feature information of the face image, since the target feature information is used to represent the target local facial features of the first user, and The predetermined at least one local facial features corresponds to a scene mode. Therefore, in the case that the above-mentioned face image matches the predetermined face image, and the above-mentioned target feature information matches the predetermined feature information, the electronic device can be based on the user's The facial features are used to set the scene mode of the electronic device to the target scene mode, which simplifies the user's operation steps for scene mode switching, and avoids the problem that the entire process of traditional scene mode switching is cumbersome and time-consuming.

可选的,在本发明实施例中,在M大于1的情况下,上述步骤202之前,该方法还包括步骤A1和步骤A2:Optionally, in this embodiment of the present invention, when M is greater than 1, before theabove step 202, the method further includes step A1 and step A2:

步骤A1:电子设备在第一界面显示M个标识。Step A1: The electronic device displays M logos on the first interface.

其中,一个标识指示一个一种场景模式,每种场景模式对应一个上述第二特征信息对应预定局部五官的一种预定姿态。示例性的,上述M个标识为电子设备的M个目标场景模式图标,例如,当与目标特征信息相匹配的预定特征信息对应多个场景模式时,则可以将该多个场景模式以场景模式图标的形式显示在第一界面上。Wherein, one identifier indicates one scene mode, and each scene mode corresponds to a predetermined posture of the predetermined partial facial features corresponding to the second feature information. Exemplarily, the above-mentioned M target scene mode icons identified as electronic devices, for example, when the predetermined feature information matched with the target feature information corresponds to multiple scene modes, the multiple scene modes may be displayed as scene modes. The form of icons is displayed on the first interface.

需要说明的是,本发明实施例对于场景模式图标的大小、形状、样式、颜色以及透明度不做限定。It should be noted that the embodiment of the present invention does not limit the size, shape, style, color, and transparency of the scene mode icon.

步骤A2:电子设备接收针对目标标识的第一输入。Step A2: The electronic device receives the first input for the target identifier.

其中,上述目标标识为上述M个标识中的至少一个。Wherein, the above-mentioned target identifier is at least one of the above-mentioned M identifiers.

可选的,在本发明实施例中,上述步骤202包括步骤202a:Optionally, in this embodiment of the present invention, the foregoingstep 202 includes step 202a:

步骤202a:响应于上述第一输入,电子设备将该电子设备的场景模式设置为该目标标识对应的目标场景模式。Step 202a: In response to the above-mentioned first input, the electronic device sets the scene mode of the electronic device to the target scene mode corresponding to the target identifier.

示例性的,上述用户针对目标标识的输入可以包括:用户对该目标标识的点击输入,或者,用户对该目标标识的滑动输入,或者,用户对该目标标识的其他可行性输入,具体的可以根据实际使用需求确定,本发明实施例不作限定。其中,上述目标标识用于指示该电子设备将场景模式设置为目标标识对应的场景模式,例如,访客模式图标用于指示电子设备将该场景模式设置为访客模式。Exemplarily, the above-mentioned user input on the target identifier may include: the user's click input on the target identifier, or the user's sliding input on the target identifier, or the user's other feasible input on the target identifier. It is determined according to actual use requirements, which is not limited in the embodiment of the present invention. The above target identifier is used to instruct the electronic device to set the scene mode to the scene mode corresponding to the target identifier. For example, the visitor mode icon is used to instruct the electronic device to set the scene mode to the visitor mode.

示例性的,上述的点击输入可以为单击输入、双击输入或任意次数的点击输入等;上述的点击输入还可以为长按输入或短按输入。上述滑动输入可以为向任意方向的滑动输入,例如向上滑动、向下滑动、向左滑动或者向右滑动等,且上述滑动输入的滑动轨迹可以是直线,也可以是曲线,具体的可以根据实际需求设定。Exemplarily, the above-mentioned click input may be a single-click input, a double-click input, or an arbitrary number of click input, etc.; the above-mentioned click input may also be a long-press input or a short-press input. The above-mentioned sliding input can be a sliding input in any direction, such as sliding up, sliding down, sliding to the left, or sliding to the right, etc., and the sliding trajectory of the above-mentioned sliding input can be a straight line or a curve. Demand setting.

示例性的,在上述与该目标特征信息相匹配的预定特征信息对应多个场景模式的情况下,电子设备会将该多个场景模式以场景模式图标的形式显示在该电子设备的第一界面上,电子设备在接收到用户对目标场景模式对应的场景模式图标的点击输入后,该电子设备直接将场景模式设置为该目标场景模式。Exemplarily, in the case that the predetermined feature information matching the target feature information corresponds to multiple scene modes, the electronic device will display the multiple scene modes in the form of scene mode icons on the first interface of the electronic device. In the above, after the electronic device receives the user's click input on the scene mode icon corresponding to the target scene mode, the electronic device directly sets the scene mode to the target scene mode.

举例说明,当用户想要将场景模式设置为访客模式时,如图4中(a)所示,用户在开启人脸识别功能后,不注视电子设备,使得该电子设备采集到用户不注视该电子设备的待识别人脸图像。由于该电子设备预存的用于表征眼睛不注视电子设备的特征信息对应了三种场景模式,且这三种场景模式分别为“驾驶模式”、“访客模式”和“儿童模式”。如图4中(b)所示,在完成匹配后,电子设备会在第一界面(如图4中(b)所示的41)上显示“驾驶模式”图标、“访客模式”图标和“儿童模式”图标。然后,用户可以通过点击“访客模式”图标(即上述的目标标识,如图4中(b)所示的42),使得电子设备将场景模式设置为访客模式。For example, when the user wants to set the scene mode to the guest mode, as shown in (a) in FIG. 4 , after the face recognition function is turned on, the user does not look at the electronic device, so that the electronic device collects that the user does not look at the The face image to be recognized of the electronic device. Because the feature information pre-stored by the electronic device for indicating that the eyes are not looking at the electronic device corresponds to three scene modes, and the three scene modes are "driving mode", "visitor mode" and "child mode" respectively. As shown in Fig. 4(b), after the matching is completed, the electronic device will display a "driving mode" icon, a "visitor mode" icon and " Kids Mode" icon. Then, the user can make the electronic device set the scene mode to the guest mode by clicking the "visitor mode" icon (ie, the above-mentioned target identifier, as shown in 42 in (b) of FIG. 4 ).

这样,当电子设备识别出的人脸图像中所包括的局部五官姿态的特征信息对应多个预定局部五官特征信息时,将多个预定局部五官特征信息对应的多个场景模式以图标的形式显示在该电子设备的第一界面上,从而方便用户选择。In this way, when the feature information of the local facial features included in the face image recognized by the electronic device corresponds to a plurality of predetermined local facial feature information, the multiple scene modes corresponding to the plurality of predetermined local facial feature information are displayed in the form of icons On the first interface of the electronic device, it is convenient for the user to choose.

图5为实现本发明实施例提供的一种电子设备的可能的结构示意图,如图5所示,电子设备500包括:获取模块501和设置模块502,其中:FIG. 5 is a schematic diagram of a possible structure for implementing an electronic device provided by an embodiment of the present invention. As shown in FIG. 5 , theelectronic device 500 includes: anacquisition module 501 and asetting module 502, wherein:

获取模块501,用于获取第一用户的人脸图像以及该人脸图像的目标特征信息,该目标特征信息用于表征该第一用户的目标局部五官姿态。The obtainingmodule 501 is configured to obtain a face image of the first user and target feature information of the face image, where the target feature information is used to represent the target local facial features of the first user.

设置模块502,用于在上述获取模块501获取的人脸图像与预定人脸图像相匹配、且目标特征信息与预定特征信息相匹配的情况下,将电子设备500的场景模式设置为目标场景模式;其中,上述预定特征信息用于表征上述第一用户的预定局部五官姿态;上述目标场景模式为:上述预定局部五官姿态对应的场景模式。Thesetting module 502 is used to set the scene mode of theelectronic device 500 to the target scene mode when the face image obtained by the above-mentioned obtainingmodule 501 matches the predetermined face image and the target feature information matches the predetermined feature information wherein, the predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: a scene mode corresponding to the predetermined partial facial features.

可选的,上述目标特征信息包括N个第一特征信息,任一第一特征信息用于表征上述第一用户的一个局部五官姿态,N为正整数。Optionally, the target feature information includes N pieces of first feature information, any one of the first feature information is used to represent a partial facial feature of the first user, and N is a positive integer.

可选的,上述预定特征信息包括M个第二特征信息,任一第二特征信息用于表征上述第一用户的一个预定局部五官的一种预定局部五官形态,M为正整数。Optionally, the predetermined feature information includes M pieces of second feature information, any second feature information is used to represent a predetermined partial facial feature shape of a predetermined partial facial feature of the first user, and M is a positive integer.

可选的,如图5所示,上述电子设备500还包括:显示模块503和接收模块504,其中:显示模块503,用于在第一界面显示M个标识,一个标识指示一种场景模式,每种场景模式对应一个上述第二特征信息对应预定局部五官的一种预定姿态;接收模块504,用于接收针对上述目标标识的第一输入,上述目标标识为上述M个标识中的至少一个;上述设置模块502,具体用于响应于上述接收模块504接收的第一输入,将上述电子设备的场景模式设置为上述目标标识对应的目标场景模式。Optionally, as shown in FIG. 5, the above-mentionedelectronic device 500 further includes: adisplay module 503 and areceiving module 504, wherein: thedisplay module 503 is used for displaying M signs on the first interface, one sign indicating a scene mode, Each scene mode corresponds to a predetermined posture in which the above-mentioned second feature information corresponds to a predetermined partial facial feature; the receivingmodule 504 is used for receiving the first input for the above-mentioned target identifier, and the above-mentioned target identifier is at least one of the above-mentioned M identifiers; The above-mentionedsetting module 502 is specifically configured to, in response to the first input received by the above-mentionedreceiving module 504, set the scene mode of the above-mentioned electronic device to the target scene mode corresponding to the above-mentioned target identifier.

可选的,上述目标局部五官姿态为:上述第一用户的嘴巴被遮挡,上述目标场景模式为静音模式或振动模式。Optionally, the above-mentioned target partial facial features are: the mouth of the above-mentioned first user is blocked, and the above-mentioned target scene mode is a silent mode or a vibration mode.

本发明实施例提供的电子设备,该电子设备通过获取第一用户人脸图像以及该人脸图像的目标特征信息,由于该目标特征信息用于表征第一用户的目标局部五官姿态,且预定至少一种局部五官姿态对应一种场景模式,因此,在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,该电子设备可以基于用户的五官姿态来将该电子设备的场景模式设置为目标场景模式,从而简化了用户对场景模式切换的操作步骤,避免了传统的场景模式切换的整个过程操作步骤繁琐,耗时较长的问题。In the electronic device provided by the embodiment of the present invention, the electronic device acquires the face image of the first user and the target feature information of the face image, because the target feature information is used to represent the target local facial features of the first user, and is predetermined at least A local facial feature corresponds to a scene mode, therefore, in the case that the above-mentioned face image matches the predetermined face image, and the above-mentioned target feature information matches the predetermined feature information, the electronic device can be based on the user's facial features. To set the scene mode of the electronic device as the target scene mode, the user's operation steps for scene mode switching are simplified, and the problems of complicated operation steps and long time consuming in the whole process of traditional scene mode switching are avoided.

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

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

其中,输入单元104,用于获取第一用户的人脸图像以及该人脸图像的目标特征信息,该目标特征信息用于表征该第一用户的目标局部五官姿态;处理器110,用于响应于输入单元104接收的第一用户的人脸图像,在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,将该终端设备100的场景模式设置为目标场景模式;其中,上述预定特征信息用于表征上述第一用户的预定局部五官姿态;上述目标场景模式为:上述预定局部五官姿态对应的场景模式。Theinput unit 104 is used to obtain the face image of the first user and target feature information of the face image, and the target feature information is used to represent the target local facial features of the first user; theprocessor 110 is used to respond In the face image of the first user received by theinput unit 104, in the case that the above-mentioned face image matches the predetermined face image and the above-mentioned target feature information matches the predetermined feature information, the scene mode of theterminal device 100 Set as the target scene mode; wherein, the predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: the scene mode corresponding to the predetermined partial facial features.

本发明实施例提供的终端设备,该终端设备通过获取第一用户人脸图像以及该人脸图像的目标特征信息,由于该目标特征信息用于表征第一用户的目标局部五官姿态,且预定至少一种局部五官姿态对应一种场景模式,因此,在上述人脸图像与预定人脸图像相匹配、且上述目标特征信息与预定特征信息相匹配的情况下,该终端设备可以基于用户的五官姿态来将该终端设备的场景模式设置为目标场景模式,从而简化了用户对场景模式切换的操作步骤,避免了传统的场景模式切换的整个过程操作步骤繁琐,耗时较长的问题。In the terminal device provided by the embodiment of the present invention, the terminal device obtains the face image of the first user and the target feature information of the face image, because the target feature information is used to represent the target local facial features of the first user, and is predetermined at least One kind of local facial features corresponds to a scene mode, therefore, in the case that the above-mentioned face image matches the predetermined face image, and the above-mentioned target feature information matches the predetermined feature information, the terminal device can be based on the user's facial features. To set the scene mode of the terminal device as the target scene mode, the user's operation steps for scene mode switching are simplified, and the traditional scene mode switching process of the entire process is cumbersome and time-consuming.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Claims (12)

Translated fromChinese
1.一种电子设备的控制方法,其特征在于,所述方法包括:1. A control method for an electronic device, wherein the method comprises:获取第一用户的人脸图像以及所述人脸图像的目标特征信息,所述目标特征信息用于表征所述第一用户的目标局部五官姿态;acquiring a face image of the first user and target feature information of the face image, where the target feature information is used to represent the target local facial features of the first user;在所述人脸图像与预定人脸图像相匹配、且所述目标特征信息与预定特征信息相匹配的情况下,将所述电子设备的场景模式设置为目标场景模式;In the case that the face image matches the predetermined face image and the target feature information matches the predetermined feature information, setting the scene mode of the electronic device to the target scene mode;其中,所述预定特征信息用于表征所述第一用户的预定局部五官姿态;所述目标场景模式为:所述预定局部五官姿态对应的场景模式。The predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: a scene mode corresponding to the predetermined partial facial features.2.根据权利要求1所述的方法,其特征在于,所述目标特征信息包括N个第一特征信息,任一第一特征信息用于表征所述第一用户的一个局部五官姿态,N为正整数。2 . The method according to claim 1 , wherein the target feature information comprises N pieces of first feature information, and any first feature information is used to represent a partial facial feature of the first user, and N is positive integer.3.根据权利要求1或2所述的方法,其特征在于,所述预定特征信息包括M个第二特征信息,任一第二特征信息用于表征所述第一用户的一个预定局部五官的至少一种预定姿态,M为正整数。3. The method according to claim 1 or 2, wherein the predetermined characteristic information comprises M pieces of second characteristic information, and any second characteristic information is used to represent a predetermined partial facial feature of the first user. At least one predetermined posture, M is a positive integer.4.根据权利要求3所述的方法,其特征在于,在M大于1的情况下,所述将所述电子设备的场景模式设置为目标场景模式之前,所述方法还包括:4. The method according to claim 3, wherein, when M is greater than 1, before the setting of the scene mode of the electronic device to the target scene mode, the method further comprises:在第一界面显示M个标识,一个标识指示一种场景模式,每种场景模式对应一个所述第二特征信息对应预定局部五官的一种预定姿态;M signs are displayed on the first interface, one sign indicates a scene mode, and each scene mode corresponds to a predetermined posture of the second feature information corresponding to a predetermined partial facial feature;接收针对目标标识的第一输入,所述目标标识为所述M个标识中的至少一个;receiving a first input for a target identifier, the target identifier being at least one of the M identifiers;所述将所述电子设备的场景模式设置为目标场景模式,包括:The setting of the scene mode of the electronic device to the target scene mode includes:响应于所述第一输入,将所述电子设备的场景模式设置为所述目标标识对应的目标场景模式。In response to the first input, the scene mode of the electronic device is set to the target scene mode corresponding to the target identifier.5.根据权利要求1所述的方法,其特征在于,所述目标局部五官姿态为:所述第一用户的嘴巴被遮挡,所述目标场景模式为静音模式或振动模式。5 . The method according to claim 1 , wherein the target partial facial features are: the mouth of the first user is blocked, and the target scene mode is a silent mode or a vibration mode. 6 .6.一种电子设备,其特征在于,所述电子设备包括:6. An electronic device, characterized in that the electronic device comprises:获取模块,用于获取第一用户人脸图像以及所述人脸图像的目标特征信息,所述目标特征信息用于表征所述第一用户的目标局部五官姿态;an acquisition module, configured to acquire a face image of the first user and target feature information of the face image, where the target feature information is used to represent the target local facial features of the first user;设置模块,用于在所述获取模块获取的所述人脸图像与预定人脸图像相匹配、且所述目标特征信息与预定特征信息相匹配的情况下,将所述电子设备的场景模式设置为目标场景模式;A setting module, configured to set the scene mode of the electronic device under the condition that the face image obtained by the obtaining module matches the predetermined face image and the target feature information matches the predetermined feature information is the target scene mode;其中,所述预定特征信息用于表征所述第一用户的预定局部五官姿态;所述目标场景模式为:所述预定局部五官姿态对应的场景模式。The predetermined feature information is used to represent the predetermined partial facial features of the first user; the target scene mode is: a scene mode corresponding to the predetermined partial facial features.7.根据权利要求6所述的电子设备,其特征在于,所述目标特征信息包括N个第一特征信息,任一第一特征信息用于表征所述第一用户的一个局部五官姿态,N为正整数。7. The electronic device according to claim 6, wherein the target feature information comprises N pieces of first feature information, and any first feature information is used to represent a partial facial feature of the first user, and N is a positive integer.8.根据权利要求6或7所述的电子设备,其特征在于,所述预定特征信息包括M个第二特征信息,任一第二特征信息用于表征所述第一用户的一个预定局部五官的至少一种预定姿态,M为正整数。8. The electronic device according to claim 6 or 7, wherein the predetermined feature information comprises M pieces of second feature information, and any second feature information is used to represent a predetermined partial facial feature of the first user at least one predetermined pose of , M is a positive integer.9.根据权利要求8所述的电子设备,其特征在于,所述电子设备还包括:9. The electronic device according to claim 8, wherein the electronic device further comprises:显示模块,用于在第一界面显示M个标识,一个标识指示一种场景模式,每种场景模式对应一个所述第二特征信息对应预定局部五官的一种预定姿态;a display module, used for displaying M signs on the first interface, one sign indicating a scene mode, and each scene mode corresponds to a predetermined posture in which the second feature information corresponds to a predetermined partial facial feature;接收模块,用于接收针对目标标识的第一输入,所述目标标识为所述M个标识中的至少一个;a receiving module, configured to receive a first input for a target identifier, where the target identifier is at least one of the M identifiers;所述设置模块,具体用于响应于所述接收模块接收的所述第一输入,将所述电子设备的场景模式设置为所述目标标识对应的目标场景模式。The setting module is specifically configured to, in response to the first input received by the receiving module, set the scene mode of the electronic device to the target scene mode corresponding to the target identifier.10.根据权利要求6所述的电子设备,其特征在于,所述目标局部五官姿态为:所述第一用户的嘴巴被遮挡,所述目标场景模式为静音模式或振动模式。10 . The electronic device according to claim 6 , wherein the target partial facial features are: the mouth of the first user is blocked, and the target scene mode is a silent mode or a vibration mode. 11 .11.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的电子设备的控制方法的步骤。11. An electronic device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the right The steps of the control method of an electronic device according to any one of claims 1 to 5.12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的电子设备的控制方法的步骤。12. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the electronic device according to any one of claims 1 to 5 is implemented. The steps of the control method of the device.
CN201911040338.9A2019-10-292019-10-29 Electronic device control method and electronic devicePendingCN110866465A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911040338.9ACN110866465A (en)2019-10-292019-10-29 Electronic device control method and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911040338.9ACN110866465A (en)2019-10-292019-10-29 Electronic device control method and electronic device

Publications (1)

Publication NumberPublication Date
CN110866465Atrue CN110866465A (en)2020-03-06

Family

ID=69654243

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911040338.9APendingCN110866465A (en)2019-10-292019-10-29 Electronic device control method and electronic device

Country Status (1)

CountryLink
CN (1)CN110866465A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112435735A (en)*2020-12-012021-03-02重庆金山医疗器械有限公司Switching method, device, equipment, medium and system
CN113473015A (en)*2021-06-082021-10-01荣耀终端有限公司Holder control method and electronic equipment
CN115225649A (en)*2022-07-192022-10-21维沃移动通信有限公司 Data synchronization method, device and electronic device
CN115866135A (en)*2022-11-302023-03-28联想(北京)有限公司Processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106557678A (en)*2016-11-092017-04-05珠海格力电器股份有限公司Intelligent terminal mode switching method and device
CN107742072A (en)*2017-09-202018-02-27维沃移动通信有限公司 Face recognition method and mobile terminal
CN110164440A (en)*2019-06-032019-08-23清华大学Electronic equipment, method and medium are waken up based on the interactive voice for sealing mouth action recognition
CN110225196A (en)*2019-05-302019-09-10维沃移动通信有限公司Terminal control method and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106557678A (en)*2016-11-092017-04-05珠海格力电器股份有限公司Intelligent terminal mode switching method and device
CN107742072A (en)*2017-09-202018-02-27维沃移动通信有限公司 Face recognition method and mobile terminal
CN110225196A (en)*2019-05-302019-09-10维沃移动通信有限公司Terminal control method and terminal device
CN110164440A (en)*2019-06-032019-08-23清华大学Electronic equipment, method and medium are waken up based on the interactive voice for sealing mouth action recognition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112435735A (en)*2020-12-012021-03-02重庆金山医疗器械有限公司Switching method, device, equipment, medium and system
CN113473015A (en)*2021-06-082021-10-01荣耀终端有限公司Holder control method and electronic equipment
CN113473015B (en)*2021-06-082022-03-08荣耀终端有限公司Holder control method and electronic equipment
CN115225649A (en)*2022-07-192022-10-21维沃移动通信有限公司 Data synchronization method, device and electronic device
CN115866135A (en)*2022-11-302023-03-28联想(北京)有限公司Processing method and device and electronic equipment

Similar Documents

PublicationPublication DateTitle
CN110752980B (en)Message sending method and electronic equipment
CN108255378B (en)Display control method and mobile terminal
CN108182019B (en)Suspension control display processing method and mobile terminal
CN110062105B (en)Interface display method and terminal equipment
CN108829304A (en)A kind of display control method and terminal
CN108762634B (en)Control method and terminal
CN109032486B (en)Display control method and terminal equipment
CN111124245B (en) A control method and electronic device
CN109240577B (en)Screen capturing method and terminal
CN110058836B (en) An audio signal output method and terminal device
CN109032468B (en)Method and terminal for adjusting equipment parameters
CN108345425B (en)Application management method and mobile terminal
CN109521937B (en)Screen display control method and mobile terminal
CN110866465A (en) Electronic device control method and electronic device
CN109857495A (en)A kind of display control method and terminal device
WO2021057290A1 (en)Information control method and electronic device
CN109613958A (en) A terminal device control method and terminal device
WO2021121398A1 (en)Video recording method and electronic device
CN108848256A (en)A kind of key control method and double screen terminal of double screen terminal
CN111399715A (en) Interface display method and electronic device
CN110007822A (en) Interface display method and terminal device
CN111352547A (en)Display method and electronic equipment
CN108958593A (en)A kind of method and mobile terminal of determining communication object
CN110196664A (en)Control method and terminal device
WO2021208889A1 (en)Application startup method, and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20200306


[8]ページ先頭

©2009-2025 Movatter.jp