技术领域technical field
本申请涉及电子设备技术领域,特别涉及一种应用启动方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and in particular to an application starting method, device, storage medium and electronic equipment.
背景技术Background technique
随着电子技术的发展,诸如智能手机等电子设备的功能越来越丰富,电子设备上可以安装的应用越来越多。例如,电子设备上可以安装多个社交应用、支付应用等。With the development of electronic technology, electronic devices such as smart phones have more and more functions, and more and more applications can be installed on the electronic devices. For example, multiple social applications, payment applications, etc. may be installed on the electronic device.
通常,电子设备上安装的社交应用、支付应用等应用内都存储有用户的隐私信息。用户在不同场合下启动这些应用时,可能造成用户隐私信息泄露。Usually, applications such as social networking applications and payment applications installed on electronic devices store user's private information. When users launch these applications on different occasions, user privacy information may be leaked.
发明内容Contents of the invention
本申请实施例提供一种应用启动方法、装置、存储介质及电子设备,可以提高电子设备的信息安全性。Embodiments of the present application provide an application starting method, device, storage medium, and electronic equipment, which can improve information security of the electronic equipment.
本申请实施例提供一种应用启动方法,包括:An embodiment of the present application provides an application startup method, including:
当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;When it is detected that the preset application is activated, acquire the facial expression of the user and the duration of the facial expression;
根据所述面部表情以及所述持续时长计算用户的情绪参数,所述情绪参数用于表示用户所处的情绪状态;Calculate the user's emotional parameters according to the facial expression and the duration, the emotional parameters are used to represent the emotional state of the user;
根据所述情绪参数获取用户所处的环境状态;Obtaining the environmental state of the user according to the emotional parameters;
根据所述环境状态进入与所述环境状态对应的应用界面。Entering an application interface corresponding to the environmental state according to the environmental state.
本申请实施例还提供一种应用启动装置,包括:The embodiment of the present application also provides an application launching device, including:
第一获取模块,用于当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;The first acquisition module is used to acquire the user's facial expression and the duration of the facial expression when it is detected that the preset application is activated;
计算模块,用于根据所述面部表情以及所述持续时长计算用户的情绪参数,所述情绪参数用于表示用户所处的情绪状态;A calculation module, configured to calculate the user's emotional parameters according to the facial expression and the duration, the emotional parameters are used to represent the emotional state of the user;
第二获取模块,用于根据所述情绪参数获取用户所处的环境状态;The second acquisition module is used to acquire the environmental state of the user according to the emotional parameters;
应用启动模块,用于根据所述环境状态进入与所述环境状态对应的应用界面。An application starting module, configured to enter an application interface corresponding to the environment state according to the environment state.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述应用启动方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the above method for starting an application.
本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述应用启动方法。The embodiment of the present application also provides an electronic device, including a processor and a memory, the memory stores a computer program, and the processor invokes the computer program stored in the memory to execute the above-mentioned application starting method .
本申请实施例提供的应用启动方法,包括:当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;根据所述面部表情以及所述持续时长计算用户的情绪参数;根据所述情绪参数获取用户所处的环境状态;根据所述环境状态进入与所述环境状态对应的应用界面。所述应用启动方法中,电子设备可以根据用户的面部表情以及所述面部表情的持续时长计算用户的情绪参数,并根据所述情绪参数获取用户所处的环境状态,并对应进入不同的应用界面,从而可以对用户的隐私信息进行保护,提高电子设备的信息安全性。The application starting method provided by the embodiment of the present application includes: when it is detected that a preset application is started, acquiring the user's facial expression and the duration of the facial expression; calculating the user's emotion according to the facial expression and the duration parameter; acquire the environmental state of the user according to the emotional parameter; enter the application interface corresponding to the environmental state according to the environmental state. In the application starting method, the electronic device can calculate the user's emotional parameters according to the user's facial expression and the duration of the facial expression, and obtain the user's environmental state according to the emotional parameter, and enter different application interfaces correspondingly , so that the privacy information of the user can be protected, and the information security 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 following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1为电子设备中启动应用时的界面示意图。FIG. 1 is a schematic diagram of an interface when an application is started in an electronic device.
图2为本申请实施例提供的应用启动方法的流程示意图。FIG. 2 is a schematic flowchart of an application startup method provided by an embodiment of the present application.
图3为本申请实施例提供的应用启动方法的另一流程示意图。Fig. 3 is another schematic flow chart of the method for starting an application provided by the embodiment of the present application.
图4为本申请实施例提供的应用启动方法的应用场景示意图。FIG. 4 is a schematic diagram of an application scenario of an application startup method provided by an embodiment of the present application.
图5为本申请实施例提供的应用启动方法的另一应用场景示意图。Fig. 5 is a schematic diagram of another application scenario of the method for starting an application provided by the embodiment of the present application.
图6为本申请实施例提供的应用启动装置的结构示意图。FIG. 6 is a schematic structural diagram of an application launching device provided by an embodiment of the present application.
图7为本申请实施例提供的应用启动装置的另一结构示意图。FIG. 7 is another schematic structural diagram of the application launching device provided by the embodiment of the present application.
图8为本申请实施例提供的应用启动装置的又一结构示意图。FIG. 8 is another schematic structural diagram of the application launching device provided by the embodiment of the present application.
图9为本申请实施例提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图10为本申请实施例提供的电子设备的另一结构示意图。FIG. 10 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.
本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if any) in the description and claims of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, an electronic device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, devices, electronic equipment or systems.
参考图1,图1为电子设备中启动应用时的界面示意图。其中,所述应用可以是社交应用、支付应用等。图1所示仅以所述应用为社交应用为例。当用户启动所述应用时,所述应用可以进入预先设定的界面,例如可以进入联系人界面。Referring to FIG. 1 , FIG. 1 is a schematic diagram of an interface when an application is started in an electronic device. Wherein, the application may be a social application, a payment application, and the like. As shown in FIG. 1, the application is only a social application as an example. When the user starts the application, the application may enter a preset interface, for example, may enter a contacts interface.
本申请实施例提供一种应用启动方法,所述应用启动方法可以应用于电子设备中。所述电子设备可以是智能手机、平板电脑等设备。如图2所示,所述应用启动方法,可以包括以下步骤:An embodiment of the present application provides a method for starting an application, and the method for starting an application can be applied to an electronic device. The electronic device may be a smart phone, a tablet computer or the like. As shown in Figure 2, the application startup method may include the following steps:
S110,当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长。S110, when it is detected that the preset application is started, acquire the facial expression of the user and the duration of the facial expression.
其中,预设应用可以是电子设备中预先设置的应用。所述预设应用中存储有用户的隐私信息。所述隐私信息可以包括用户的个人身份信息、联系人信息、用户与其他人的聊天信息、用户的财产信息等。例如,所述预设应用可以为电子设备中安装的社交应用、支付应用等。Wherein, the preset application may be an application preset in the electronic device. The user's privacy information is stored in the preset application. The private information may include the user's personal identity information, contact information, chat information between the user and other people, property information of the user, and the like. For example, the preset application may be a social application, a payment application, etc. installed in the electronic device.
此外,电子设备中设置有摄像头。例如,电子设备可以设置有前置摄像头。电子设备可以通过摄像头采集用户的面部表情。In addition, a camera is provided in the electronic device. For example, an electronic device may be provided with a front camera. The electronic device can collect the user's facial expression through the camera.
当电子设备检测到所述预设应用被启动时,例如用户点击了预设应用的图标,或者用户通过扫描二维码等其他方式启动预设应用时,电子设备可以调用摄像头,通过所述摄像头获取用户的面部表情以及所述面部表情的持续时长。When the electronic device detects that the preset application is started, for example, when the user clicks the icon of the preset application, or the user starts the preset application by scanning a QR code or other means, the electronic device can call the camera, and through the camera Obtain the user's facial expression and the duration of the facial expression.
其中,所述面部表情的持续时长为用户的面部表情未发生改变的持续时长,也即用户表情持续不变的时长。电子设备可以通过摄像头持续获取用户的面部表情,并对获取到的面部表情进行识别,从而可以确定出用户的面部表情的持续时长。Wherein, the duration of the facial expression is the duration during which the user's facial expression does not change, that is, the duration during which the user's facial expression remains unchanged. The electronic device can continuously acquire the user's facial expression through the camera, and recognize the acquired facial expression, so as to determine the duration of the user's facial expression.
S120,根据所述面部表情以及所述持续时长计算用户的情绪参数,所述情绪参数用于表示用户所处的情绪状态。S120. Calculate an emotional parameter of the user according to the facial expression and the duration, where the emotional parameter is used to represent the emotional state of the user.
电子设备获取到用户的面部表情以及所述面部表情的持续时长后,即可根据所述面部表情以及所述持续时长计算用户的情绪参数。所述情绪参数用于表示用户所处的情绪状态,也即用户的情绪好坏。其中,情绪参数越大,表示用户的情绪状态越好;情绪参数越小,表示用户的情绪状态越差。After acquiring the user's facial expression and the duration of the facial expression, the electronic device can calculate the user's emotional parameter according to the facial expression and the duration. The emotion parameter is used to represent the emotional state of the user, that is, the user's mood is good or bad. Wherein, a larger emotional parameter indicates a better emotional state of the user; a smaller emotional parameter indicates a worse emotional state of the user.
可以理解的,用户处于不同的情绪状态时,用户的表情是不同的,并且用户的表情所持续的时长也是不同的。It can be understood that when the user is in different emotional states, the user's expression is different, and the duration of the user's expression is also different.
例如,当用户的情绪状态为开心时,用户的面部表情可以为大笑或微笑等表示开心的表情,并且用户的表情可能持续一段较长的时长,例如1s(秒),也即1000ms(毫秒)。而当用户的情绪状态为难过时,用户的表情可以为失望,或者一闪而逝的沮丧,此时用户表情的持续时间很短,例如100ms。For example, when the user's emotional state is happy, the user's facial expression can be a happy expression such as laughing or smiling, and the user's expression may last for a long period of time, such as 1s (second), that is, 1000ms (milliseconds). ). And when the user's emotional state is sad, the user's expression can be disappointment, or fleeting depression, and the duration of the user's expression at this time is very short, for example, 100ms.
因此,用户的面部表情以及所述面部表情所持续的时长可以反应出用户的情绪状态。Therefore, the user's facial expression and the duration of the facial expression can reflect the user's emotional state.
S130,根据所述情绪参数获取用户所处的环境状态。S130. Acquire the environmental state of the user according to the emotional parameter.
电子设备计算出用户的情绪参数后,可以根据所述情绪参数获取用户所处的环境状态。所述环境状态表示用户所处的环境。例如,所述环境状态可以为正常状态或异常状态。其中,正常状态下用户可以处于私密环境或公共环境,此时用户的隐私信息不会受到威胁。异常状态下用户处于不安全的环境中,此时用户的隐私信息受到威胁,也即用户的隐私信息可能会泄露。After the electronic device calculates the emotional parameters of the user, it can acquire the environmental state of the user according to the emotional parameters. The environment state represents the environment in which the user is located. For example, the environmental state may be a normal state or an abnormal state. Wherein, in a normal state, the user may be in a private environment or a public environment, and at this time, the user's private information will not be threatened. In an abnormal state, the user is in an unsafe environment, and at this time, the user's private information is threatened, that is, the user's private information may be leaked.
可以理解的,当用户所处的环境状态为正常状态时,用户的情绪会表现出愉快或轻松等类型的状态。而当用户处于异常状态时,用户的情绪会表现出紧张或焦虑等类型的状态。从而,用户的情绪状态与用户所处的环境状态之间具有对应关系。电子设备可以根据计算得到的用户的情绪参数来获取用户所处的环境状态。It is understandable that when the user's environment is in a normal state, the user's mood will show a happy or relaxed state. And when the user is in an abnormal state, the user's emotions will show a state of tension or anxiety. Therefore, there is a corresponding relationship between the user's emotional state and the user's environmental state. The electronic device can acquire the environmental state of the user according to the calculated emotional parameters of the user.
S140,根据所述环境状态进入与所述环境状态对应的应用界面。S140. Enter an application interface corresponding to the environment state according to the environment state.
电子设备获取到用户所处的环境状态后,即可根据所述环境状态进入与所述环境状态对应的应用界面。其中,不同的环境状态所对应的应用界面是不同的。After the electronic device obtains the environmental state of the user, it can enter an application interface corresponding to the environmental state according to the environmental state. Wherein, the application interfaces corresponding to different environmental states are different.
当用户所处的环境状态表明用户的隐私信息受到威胁时,也即用户的隐私信息处于危险状态时,电子设备可以进入所述应用中预先设置的隐私保护界面,以对用户的隐私信息进行保护。When the environmental state of the user indicates that the user's private information is threatened, that is, when the user's private information is in a dangerous state, the electronic device can enter the preset privacy protection interface in the application to protect the user's private information .
当用户所处的环境状态表明用户的隐私信息未受到威胁时,也即用户的隐私信息处于安全状态时,电子设备可以进入所述应用的正常界面,例如所述应用的主界面。When the environment status of the user indicates that the user's private information is not threatened, that is, when the user's private information is in a safe state, the electronic device may enter a normal interface of the application, such as the main interface of the application.
在一些实施例中,如图3所示,步骤S120、根据所述面部表情以及所述持续时长计算用户的情绪参数,包括以下步骤:In some embodiments, as shown in FIG. 3, step S120, calculating the user's emotional parameters according to the facial expression and the duration, includes the following steps:
S121,根据所述面部表情获取所述面部表情对应的第一权重值;S121. Acquire a first weight value corresponding to the facial expression according to the facial expression;
S122,根据所述持续时长获取所述持续时长对应的第二权重值;S122. Acquire a second weight value corresponding to the duration according to the duration;
S123,根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数。S123. Calculate the user's emotional parameters according to the facial expression, the first weight value, the duration, and the second weight value.
其中,电子设备中可以预先对用户的面部表情设置第一权重值,对用户的面部表情的持续时长设置第二权重值。所述第一权重值、第二权重值用于共同形容用户的表情。在一些实施例中,所述第一权重值与所述第二权重值之和为1。Wherein, the electronic device may pre-set a first weight value for the user's facial expression, and set a second weight value for the duration of the user's facial expression. The first weight value and the second weight value are used to jointly describe the user's expression. In some embodiments, the sum of the first weight value and the second weight value is 1.
在一些实施例中,对于用户不同的面部表情,所述第一权重值与所述第二权重值的占比可以是不同的。例如,对于面部表情为愉快,所述第一权重值可以为0.6,所述第二权重值可以为0.4;对于面部表情为紧张,所述第一权重值可以为0.5,所述第二权重值可以为0.5,等等。In some embodiments, for different facial expressions of the user, the proportions of the first weight value and the second weight value may be different. For example, for a happy facial expression, the first weight value can be 0.6, and the second weight value can be 0.4; for a tense facial expression, the first weight value can be 0.5, and the second weight value can be 0.4. Can be 0.5, etc.
电子设备获取到用户的面部表情以及所述面部表情的持续时长后,可以根据所述面部表情获取所述面部表情对应的第一权重值,并根据所述持续时长获取所述持续时长对应的第二权重值。随后,电子设备可以根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数。After the electronic device acquires the user's facial expression and the duration of the facial expression, it may acquire the first weight value corresponding to the facial expression according to the facial expression, and acquire the first weight value corresponding to the duration according to the duration. Double weight. Subsequently, the electronic device may calculate the user's emotional parameters according to the facial expression, the first weight value, the duration and the second weight value.
在一些实施例中,根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数时,电子设备根据以下公式进行计算:In some embodiments, when calculating the user's emotional parameter according to the facial expression, the first weight value, the duration and the second weight value, the electronic device performs the calculation according to the following formula:
W=A×x+B×yW=A×x+B×y
其中,W为所述情绪参数,A为所述面部表情对应的表情值,x为所述第一权重值,B为所述持续时长,y为所述第二权重值。Wherein, W is the emotional parameter, A is the expression value corresponding to the facial expression, x is the first weight value, B is the duration, and y is the second weight value.
电子设备中可以预先对用户的每一个面部表情设置一个对应的表情值,也即通过数值对用户的面部表情进行量化。例如,愉快的面部表情对应的表情值可以为200,紧张的面部表情对应的表情值可以为80,等等。此外,由于面部表情的持续时长通常比较短,因此可以通过毫秒计量所述持续时长B。A corresponding expression value can be set in advance for each facial expression of the user in the electronic device, that is, the user's facial expression can be quantified by a numerical value. For example, the expression value corresponding to a happy facial expression may be 200, the expression value corresponding to a tense facial expression may be 80, and so on. In addition, since the duration of facial expressions is usually relatively short, the duration B can be measured in milliseconds.
在一些实施例中,如图3所示,步骤S130、根据所述情绪参数获取用户所处的环境状态的步骤包括:In some embodiments, as shown in FIG. 3, step S130, the step of obtaining the environmental state of the user according to the emotional parameters includes:
S131,确定所述情绪参数所处的情绪参数区间;S131. Determine the emotional parameter interval where the emotional parameter is located;
S132,根据所述情绪参数区间获取用户所处的环境状态。S132. Obtain the environmental state of the user according to the emotional parameter interval.
其中,电子设备中可以针对用户的情绪参数预先设置多个情绪参数区间。例如,可以针对用户的情绪参数预先设置(0,300]、(300,600]两个情绪参数区间。Wherein, multiple emotional parameter intervals may be preset in the electronic device for the user's emotional parameters. For example, two emotional parameter intervals (0, 300] and (300, 600] may be preset for the emotional parameter of the user.
电子设备计算得到用户的情绪参数后,可以将所述情绪参数与预先设置的多个情绪参数区间逐一进行匹配,以确定所述情绪参数所处的情绪参数区间。随后,根据确定出的所述情绪参数区间获取用户所处的环境状态。After the electronic device calculates the emotional parameter of the user, it may match the emotional parameter with a plurality of preset emotional parameter intervals one by one, so as to determine the emotional parameter interval in which the emotional parameter is located. Subsequently, the environmental state of the user is acquired according to the determined range of the emotional parameter.
在一些实施例中,电子设备中还可以预先设置情绪参数区间与用户所处的环境状态之间的对应关系。例如,情绪参数区间(0,300]对应的环境状态为异常状态,情绪参数区间(300,600]对应的环境状态为正常状态。In some embodiments, the electronic device may also preset the corresponding relationship between the emotional parameter range and the user's environment state. For example, the environmental state corresponding to the emotional parameter interval (0, 300] is an abnormal state, and the environmental state corresponding to the emotional parameter interval (300, 600] is a normal state.
例如,电子设备计算得到的情绪参数为200。则所述情绪参数所处的情绪参数区间为(0,300]。随后,电子设备可以根据情绪参数区间与环境状态之间的对应关系获取到用户所处的环境状态为异常状态。For example, the emotional parameter calculated by the electronic device is 200. Then the emotional parameter interval of the emotional parameter is (0, 300]. Subsequently, the electronic device can acquire that the environmental state of the user is an abnormal state according to the correspondence between the emotional parameter interval and the environmental state.
需要说明的是,上述仅以电子设备中预先设置两个情绪参数区间为例进行说明。在其他一些实施例中,电子设备中设置的情绪参数区间的数量还可以为多个,例如三个、四个等。此外,环境状态也可以包括多个状态,例如包括第一环境状态、第二环境状态、第三环境状态等。其中,环境状态的数量与情绪参数区间的数量相等,并且环境状态与情绪参数区间之间一一对应。It should be noted that, the above only takes two emotional parameter intervals preset in the electronic device as an example for illustration. In some other embodiments, the number of emotional parameter intervals set in the electronic device may also be multiple, such as three, four, and so on. In addition, the environmental state may also include multiple states, such as a first environmental state, a second environmental state, a third environmental state, and the like. Wherein, the number of environmental states is equal to the number of emotional parameter intervals, and there is a one-to-one correspondence between the environmental states and the emotional parameter intervals.
在一些实施例中,所述环境状态至少包括第一环境状态和第二环境状态。其中,所述第一环境状态下用户的隐私信息处于安全状态,也即所述第一环境状态为上述正常状态;所述第二环境状态下用户的隐私信息处于危险状态,也即所述第二环境状态为上述异常状态。如图3所示,步骤S140、根据所述环境状态进入与所述环境状态对应的应用界面的步骤包括:In some embodiments, the environmental status includes at least a first environmental status and a second environmental status. Wherein, the user's private information is in a safe state in the first environmental state, that is, the first environmental state is the above-mentioned normal state; the user's private information is in a dangerous state in the second environmental state, that is, the first environmental state 2. The environmental state is the above-mentioned abnormal state. As shown in FIG. 3, step S140, the step of entering the application interface corresponding to the environmental state according to the environmental state includes:
S141,当所述环境状态为所述第一环境状态时,进入所述预设应用的主界面;当所述环境状态为所述第二环境状态时,进入所述预设应用的隐私保护界面。S141, when the environmental state is the first environmental state, enter the main interface of the preset application; when the environmental state is the second environmental state, enter the privacy protection interface of the preset application .
其中,所述预设应用的主界面为预设应用中预先设置的界面。例如,当所述预设应用为社交应用时,所述预设应用的主界面可以为联系人界面、会话界面等。Wherein, the main interface of the preset application is a preset interface in the preset application. For example, when the preset application is a social application, the main interface of the preset application may be a contact interface, a conversation interface, and the like.
所述预设应用的隐私保护界面也可以是预先设置的界面,其中,隐私保护界面可以是所述预设应用中被修改过的界面,也可以是虚假界面(也即与所述预设应用无关的其他界面)。所述隐私保护界面中,不显示用户真实的隐私信息。也即,所述隐私保护界面中可以不显示用户的隐私信息,或者也可以显示修改过的用户隐私信息,也即显示虚假的用户隐私信息,从而起到对用户隐私信息进行保护的作用。The privacy protection interface of the preset application may also be a preset interface, wherein the privacy protection interface may be a modified interface in the preset application, or a false interface (that is, an interface different from that of the preset application) irrelevant other interfaces). In the privacy protection interface, the real privacy information of the user is not displayed. That is, the privacy protection interface may not display the user's private information, or may also display modified user's private information, that is, display false user's private information, so as to protect the user's private information.
电子设备获取到用户所处的环境状态后,当所述环境状态为所述第一环境状态时,进入所述预设应用的主界面,如图4所示;当所述环境状态为所述第二环境状态时,进入所述预设应用的隐私保护界面,如图5所示。After the electronic device acquires the environmental state of the user, when the environmental state is the first environmental state, enter the main interface of the preset application, as shown in FIG. 4; when the environmental state is the In the second environment state, enter the privacy protection interface of the preset application, as shown in FIG. 5 .
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously in the case of no conflict.
由上可知,本申请实施例提供的应用启动方法,包括:当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;根据所述面部表情以及所述持续时长计算用户的情绪参数;根据所述情绪参数获取用户所处的环境状态;根据所述环境状态进入与所述环境状态对应的应用界面。所述应用启动方法中,电子设备可以根据用户的面部表情以及所述面部表情的持续时长计算用户的情绪参数,并根据所述情绪参数获取用户所处的环境状态,并对应进入不同的应用界面,从而可以对用户的隐私信息进行保护,提高电子设备的信息安全性。As can be seen from the above, the application starting method provided by the embodiment of the present application includes: when it is detected that a preset application is started, acquiring the user's facial expression and the duration of the facial expression; Calculate the user's emotional parameters; acquire the user's environmental state according to the emotional parameters; enter the application interface corresponding to the environmental state according to the environmental state. In the application starting method, the electronic device can calculate the user's emotional parameters according to the user's facial expression and the duration of the facial expression, and obtain the user's environmental state according to the emotional parameter, and enter different application interfaces correspondingly , so that the privacy information of the user can be protected, and the information security of the electronic device can be improved.
本申请实施例还提供一种应用启动装置,所述应用启动装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。The embodiment of the present application also provides an application launching device, and the application launching device may be integrated in an electronic device, and the electronic device may be a smart phone, a tablet computer, and the like.
如图6所示,应用启动装置200可以包括:第一获取模块201、计算模块202、第二获取模块203以及应用启动模块204。As shown in FIG. 6 , the application launching device 200 may include: a first acquiring module 201 , a computing module 202 , a second acquiring module 203 and an application launching module 204 .
第一获取模块201,用于当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长。The first obtaining module 201 is configured to obtain the facial expression of the user and the duration of the facial expression when it is detected that the preset application is activated.
其中,预设应用可以是电子设备中预先设置的应用。所述预设应用中存储有用户的隐私信息。所述隐私信息可以包括用户的个人身份信息、联系人信息、用户与其他人的聊天信息、用户的财产信息等。例如,所述预设应用可以为电子设备中安装的社交应用、支付应用等。Wherein, the preset application may be an application preset in the electronic device. The user's privacy information is stored in the preset application. The private information may include the user's personal identity information, contact information, chat information between the user and other people, property information of the user, and the like. For example, the preset application may be a social application, a payment application, etc. installed in the electronic device.
此外,电子设备中设置有摄像头。例如,电子设备可以设置有前置摄像头。电子设备可以通过摄像头采集用户的面部表情。In addition, a camera is provided in the electronic device. For example, an electronic device may be provided with a front camera. The electronic device can collect the user's facial expression through the camera.
当检测到所述预设应用被启动时,例如用户点击了预设应用的图标,或者用户通过扫描二维码等其他方式启动预设应用时,第一获取模块201可以调用摄像头,通过所述摄像头获取用户的面部表情以及所述面部表情的持续时长。When it is detected that the preset application is started, for example, when the user clicks the icon of the preset application, or the user starts the preset application by scanning a two-dimensional code or other means, the first acquisition module 201 can call the camera, through the The camera captures the user's facial expression and the duration of said facial expression.
其中,所述面部表情的持续时长为用户的面部表情未发生改变的持续时长,也即用户表情持续不变的时长。第一获取模块201可以通过摄像头持续获取用户的面部表情,并对获取到的面部表情进行识别,从而可以确定出用户的面部表情的持续时长。Wherein, the duration of the facial expression is the duration during which the user's facial expression does not change, that is, the duration during which the user's facial expression remains unchanged. The first acquisition module 201 can continuously acquire the user's facial expression through the camera, and recognize the acquired facial expression, so as to determine the duration of the user's facial expression.
计算模块202,用于根据所述面部表情以及所述持续时长计算用户的情绪参数,所述情绪参数用于表示用户所处的情绪状态。The calculation module 202 is configured to calculate the user's emotional parameter according to the facial expression and the duration, and the emotional parameter is used to represent the emotional state of the user.
第一获取模块201获取到用户的面部表情以及所述面部表情的持续时长后,计算模块202即可根据所述面部表情以及所述持续时长计算用户的情绪参数。所述情绪参数用于表示用户所处的情绪状态,也即用户的情绪好坏。其中,情绪参数越大,表示用户的情绪状态越好;情绪参数越小,表示用户的情绪状态越差。After the first acquisition module 201 acquires the user's facial expression and the duration of the facial expression, the calculation module 202 can calculate the user's emotional parameters according to the facial expression and the duration. The emotion parameter is used to represent the emotional state of the user, that is, the user's mood is good or bad. Wherein, a larger emotional parameter indicates a better emotional state of the user; a smaller emotional parameter indicates a worse emotional state of the user.
可以理解的,用户处于不同的情绪状态时,用户的表情是不同的,并且用户的表情所持续的时长也是不同的。It can be understood that when the user is in different emotional states, the user's expression is different, and the duration of the user's expression is also different.
例如,当用户的情绪状态为开心时,用户的面部表情可以为大笑或微笑等表示开心的表情,并且用户的表情可能持续一段较长的时长,例如1s(秒),也即1000ms(毫秒)。而当用户的情绪状态为难过时,用户的表情可以为失望,或者一闪而逝的沮丧,此时用户表情的持续时间很短,例如100ms。For example, when the user's emotional state is happy, the user's facial expression can be a happy expression such as laughing or smiling, and the user's expression may last for a long period of time, such as 1s (second), that is, 1000ms (milliseconds). ). And when the user's emotional state is sad, the user's expression can be disappointment, or fleeting depression, and the duration of the user's expression at this time is very short, for example, 100ms.
因此,用户的面部表情以及所述面部表情所持续的时长可以反应出用户的情绪状态。Therefore, the user's facial expression and the duration of the facial expression can reflect the user's emotional state.
第二获取模块203,用于根据所述情绪参数获取用户所处的环境状态。The second obtaining module 203 is configured to obtain the environmental state of the user according to the emotional parameter.
计算模块202计算出用户的情绪参数后,第二获取模块203可以根据所述情绪参数获取用户所处的环境状态。所述环境状态表示用户所处的环境。例如,所述环境状态可以为正常状态或异常状态。其中,正常状态下用户可以处于私密环境或公共环境,此时用户的隐私信息不会受到威胁。异常状态下用户处于不安全的环境中,此时用户的隐私信息受到威胁,也即用户的隐私信息可能会泄露。After the calculation module 202 calculates the user's emotional parameters, the second acquisition module 203 can acquire the user's environment state according to the emotional parameters. The environment state represents the environment in which the user is located. For example, the environmental state may be a normal state or an abnormal state. Wherein, in a normal state, the user may be in a private environment or a public environment, and at this time, the user's private information will not be threatened. In an abnormal state, the user is in an unsafe environment, and at this time, the user's private information is threatened, that is, the user's private information may be leaked.
可以理解的,当用户所处的环境状态为正常状态时,用户的情绪会表现出愉快或轻松等类型的状态。而当用户处于异常状态时,用户的情绪会表现出紧张或焦虑等类型的状态。从而,用户的情绪状态与用户所处的环境状态之间具有对应关系。第二获取模块203可以根据计算得到的用户的情绪参数来获取用户所处的环境状态。It is understandable that when the user's environment is in a normal state, the user's mood will show a happy or relaxed state. And when the user is in an abnormal state, the user's emotions will show a state of tension or anxiety. Therefore, there is a corresponding relationship between the user's emotional state and the user's environmental state. The second obtaining module 203 may obtain the environmental state of the user according to the calculated emotional parameters of the user.
应用启动模块204,用于根据所述环境状态进入与所述环境状态对应的应用界面。The application starting module 204 is configured to enter an application interface corresponding to the environment state according to the environment state.
第二获取模块203获取到用户所处的环境状态后,应用启动模块204即可根据所述环境状态进入与所述环境状态对应的应用界面。其中,不同的环境状态所对应的应用界面是不同的。After the second acquiring module 203 acquires the environment state of the user, the application starting module 204 can enter the application interface corresponding to the environment state according to the environment state. Wherein, the application interfaces corresponding to different environmental states are different.
当用户所处的环境状态表明用户的隐私信息受到威胁时,也即用户的隐私信息处于危险状态时,应用启动模块204可以进入所述应用中预先设置的隐私保护界面,以对用户的隐私信息进行保护。When the environmental state of the user indicates that the user's private information is threatened, that is, when the user's private information is in a dangerous state, the application starting module 204 can enter the preset privacy protection interface in the application to protect the user's private information for protection.
当用户所处的环境状态表明用户的隐私信息未受到威胁时,也即用户的隐私信息处于安全状态时,应用启动模块204可以进入所述应用的正常界面,例如所述应用的主界面。When the environment status of the user indicates that the user's private information is not threatened, that is, the user's private information is in a safe state, the application starting module 204 may enter the normal interface of the application, such as the main interface of the application.
在一些实施例中,如图7所示,计算模块202包括:第一获取子模块2021、计算子模块2022。In some embodiments, as shown in FIG. 7 , the calculation module 202 includes: a first acquisition submodule 2021 and a calculation submodule 2022 .
第一获取子模块2021,用于根据所述面部表情获取所述面部表情对应的第一权重值;The first acquiring submodule 2021 is configured to acquire a first weight value corresponding to the facial expression according to the facial expression;
所述第一获取子模块2021,还用于根据所述持续时长获取所述持续时长对应的第二权重值;The first acquiring submodule 2021 is further configured to acquire a second weight value corresponding to the duration according to the duration;
计算子模块2022,用于根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数。The calculation sub-module 2022 is used to calculate the user's emotional parameters according to the facial expression, the first weight value, the duration and the second weight value.
其中,电子设备中可以预先对用户的面部表情设置第一权重值,对用户的面部表情的持续时长设置第二权重值。所述第一权重值、第二权重值用于共同形容用户的表情。在一些实施例中,所述第一权重值与所述第二权重值之和为1。Wherein, the electronic device may pre-set a first weight value for the user's facial expression, and set a second weight value for the duration of the user's facial expression. The first weight value and the second weight value are used to jointly describe the user's expression. In some embodiments, the sum of the first weight value and the second weight value is 1.
在一些实施例中,对于用户不同的面部表情,所述第一权重值与所述第二权重值的占比可以是不同的。例如,对于面部表情为愉快,所述第一权重值可以为0.6,所述第二权重值可以为0.4;对于面部表情为紧张,所述第一权重值可以为0.5,所述第二权重值可以为0.5,等等。In some embodiments, for different facial expressions of the user, the proportions of the first weight value and the second weight value may be different. For example, for a happy facial expression, the first weight value can be 0.6, and the second weight value can be 0.4; for a tense facial expression, the first weight value can be 0.5, and the second weight value can be 0.4. Can be 0.5, etc.
第一获取模块201获取到用户的面部表情以及所述面部表情的持续时长后,第一获取子模块2021可以根据所述面部表情获取所述面部表情对应的第一权重值,并根据所述持续时长获取所述持续时长对应的第二权重值。随后,计算子模块2022可以根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数。After the first acquisition module 201 acquires the user's facial expression and the duration of the facial expression, the first acquisition sub-module 2021 can acquire the first weight value corresponding to the facial expression according to the facial expression, and The duration acquires the second weight value corresponding to the duration. Subsequently, the calculation sub-module 2022 may calculate the user's emotional parameters according to the facial expression, the first weight value, the duration and the second weight value.
在一些实施例中,计算子模块2022根据以下公式计算用户的情绪参数:In some embodiments, the calculation submodule 2022 calculates the user's emotional parameters according to the following formula:
W=A×x+B×yW=A×x+B×y
其中,W为所述情绪参数,A为所述面部表情对应的表情值,x为所述第一权重值,B为所述持续时长,y为所述第二权重值。Wherein, W is the emotional parameter, A is the expression value corresponding to the facial expression, x is the first weight value, B is the duration, and y is the second weight value.
电子设备中可以预先对用户的每一个面部表情设置一个对应的表情值,也即通过数值对用户的面部表情进行量化。例如,愉快的面部表情对应的表情值可以为200,紧张的面部表情对应的表情值可以为80,等等。此外,由于面部表情的持续时长通常比较短,因此可以通过毫秒计量所述持续时长B。A corresponding expression value can be set in advance for each facial expression of the user in the electronic device, that is, the user's facial expression can be quantified by a numerical value. For example, the expression value corresponding to a happy facial expression may be 200, the expression value corresponding to a tense facial expression may be 80, and so on. In addition, since the duration of facial expressions is usually relatively short, the duration B can be measured in milliseconds.
在一些实施例中,如图8所示,第二获取模块203包括:确定子模块2031、第二获取子模块2032。In some embodiments, as shown in FIG. 8 , the second acquiring module 203 includes: a determining submodule 2031 and a second acquiring submodule 2032 .
确定子模块2031,用于确定所述情绪参数所处的情绪参数区间;A determination submodule 2031, configured to determine the emotional parameter interval where the emotional parameter is located;
第二获取子模块2032,用于根据所述情绪参数区间获取用户所处的环境状态。The second acquisition sub-module 2032 is configured to acquire the environmental state of the user according to the emotional parameter range.
其中,电子设备中可以针对用户的情绪参数预先设置多个情绪参数区间。例如,可以针对用户的情绪参数预先设置(0,300]、(300,600]两个情绪参数区间。Wherein, multiple emotional parameter intervals may be preset in the electronic device for the user's emotional parameters. For example, two emotional parameter intervals (0, 300] and (300, 600] may be preset for the emotional parameter of the user.
计算模块202计算得到用户的情绪参数后,确定子模块2031可以将所述情绪参数与预先设置的多个情绪参数区间逐一进行匹配,以确定所述情绪参数所处的情绪参数区间。随后,第二获取子模块2032根据确定出的所述情绪参数区间获取用户所处的环境状态。After the calculation module 202 calculates the emotional parameter of the user, the determination sub-module 2031 can match the emotional parameter with a plurality of preset emotional parameter intervals one by one, so as to determine the emotional parameter interval in which the emotional parameter is located. Subsequently, the second acquiring submodule 2032 acquires the environmental state of the user according to the determined emotional parameter interval.
在一些实施例中,电子设备中还可以预先设置情绪参数区间与用户所处的环境状态之间的对应关系。例如,情绪参数区间(0,300]对应的环境状态为异常状态,情绪参数区间(300,600]对应的环境状态为正常状态。In some embodiments, the electronic device may also preset the corresponding relationship between the emotional parameter range and the user's environment state. For example, the environmental state corresponding to the emotional parameter interval (0, 300] is an abnormal state, and the environmental state corresponding to the emotional parameter interval (300, 600] is a normal state.
例如,电子设备计算得到的情绪参数为200。则所述情绪参数所处的情绪参数区间为(0,300]。随后,第二获取子模块2032可以根据情绪参数区间与环境状态之间的对应关系获取到用户所处的环境状态为异常状态。For example, the emotional parameter calculated by the electronic device is 200. Then the emotional parameter interval where the emotional parameter is located is (0, 300]. Subsequently, the second acquisition submodule 2032 can acquire that the environmental state of the user is an abnormal state according to the correspondence between the emotional parameter interval and the environmental state .
需要说明的是,上述仅以电子设备中预先设置两个情绪参数区间为例进行说明。在其他一些实施例中,电子设备中设置的情绪参数区间的数量还可以为多个,例如三个、四个等。此外,环境状态也可以包括多个状态,例如包括第一环境状态、第二环境状态、第三环境状态等。其中,环境状态的数量与情绪参数区间的数量相等,并且环境状态与情绪参数区间之间一一对应。It should be noted that, the above only takes two emotional parameter intervals preset in the electronic device as an example for illustration. In some other embodiments, the number of emotional parameter intervals set in the electronic device may also be multiple, such as three, four, and so on. In addition, the environmental state may also include multiple states, such as a first environmental state, a second environmental state, a third environmental state, and the like. Wherein, the number of environmental states is equal to the number of emotional parameter intervals, and there is a one-to-one correspondence between the environmental states and the emotional parameter intervals.
在一些实施例中,所述环境状态至少包括第一环境状态和第二环境状态。其中,所述第一环境状态下用户的隐私信息处于安全状态,也即所述第一环境状态为上述正常状态;所述第二环境状态下用户的隐私信息处于危险状态,也即所述第二环境状态为上述异常状态。In some embodiments, the environmental status includes at least a first environmental status and a second environmental status. Wherein, the user's private information is in a safe state in the first environmental state, that is, the first environmental state is the above-mentioned normal state; the user's private information is in a dangerous state in the second environmental state, that is, the first environmental state 2. The environmental state is the abnormal state mentioned above.
应用启动模块204用于执行以下步骤:The application starting module 204 is used to perform the following steps:
当所述环境状态为所述第一环境状态时,进入所述预设应用的主界面;当所述环境状态为所述第二环境状态时,进入所述预设应用的隐私保护界面。When the environmental state is the first environmental state, enter the main interface of the preset application; when the environmental state is the second environmental state, enter the privacy protection interface of the preset application.
其中,所述预设应用的主界面为预设应用中预先设置的界面。例如,当所述预设应用为社交应用时,所述预设应用的主界面可以为联系人界面、会话界面等。Wherein, the main interface of the preset application is a preset interface in the preset application. For example, when the preset application is a social application, the main interface of the preset application may be a contact interface, a conversation interface, and the like.
所述预设应用的隐私保护界面也可以是预先设置的界面,其中,隐私保护界面可以是所述预设应用中被修改过的界面,也可以是虚假界面(也即与所述预设应用无关的其他界面)。所述隐私保护界面中,不显示用户真实的隐私信息。也即,所述隐私保护界面中可以不显示用户的隐私信息,或者也可以显示修改过的用户隐私信息,也即显示虚假的用户隐私信息,从而起到对用户隐私信息进行保护的作用。The privacy protection interface of the preset application may also be a preset interface, wherein the privacy protection interface may be a modified interface in the preset application, or a false interface (that is, an interface different from that of the preset application) irrelevant other interfaces). In the privacy protection interface, the real privacy information of the user is not displayed. That is, the privacy protection interface may not display the user's private information, or may also display modified user's private information, that is, display false user's private information, so as to protect the user's private information.
第二获取模块203获取到用户所处的环境状态后,当所述环境状态为所述第一环境状态时,应用启动模块204进入所述预设应用的主界面。当所述环境状态为所述第二环境状态时,应用启动模块204进入所述预设应用的隐私保护界面。After the second acquiring module 203 acquires the environment state of the user, when the environment state is the first environment state, the application launching module 204 enters the main interface of the preset application. When the environment state is the second environment state, the application starting module 204 enters the privacy protection interface of the preset application.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
由上可知,本申请实施例提供的应用启动装置200,通过第一获取模块201在检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;计算模块202根据所述面部表情以及所述持续时长计算用户的情绪参数;第二获取模块203根据所述情绪参数获取用户所处的环境状态;应用启动模块204根据所述环境状态进入与所述环境状态对应的应用界面。所述应用启动装置200可以根据用户的面部表情以及所述面部表情的持续时长计算用户的情绪参数,并根据所述情绪参数获取用户所处的环境状态,并对应进入不同的应用界面,从而可以对用户的隐私信息进行保护,提高电子设备的信息安全性。It can be known from the above that the application starting device 200 provided by the embodiment of the present application acquires the user's facial expression and the duration of the facial expression when the first obtaining module 201 detects that the preset application is started; The facial expression and the duration calculate the user's emotional parameters; the second acquiring module 203 acquires the environmental state of the user according to the emotional parameters; the application starting module 204 enters the application corresponding to the environmental state according to the environmental state interface. The application launching device 200 can calculate the user's emotional parameters according to the user's facial expression and the duration of the facial expression, and obtain the environmental state of the user according to the emotional parameter, and correspondingly enter different application interfaces, so as to be able to Protect the privacy information of users and improve the information security of electronic devices.
本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。如图9所示,电子设备300包括处理器301和存储器302。其中,处理器301与存储器302电性连接。The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer or the like. As shown in FIG. 9 , an electronic device 300 includes a processor 301 and a memory 302 . Wherein, the processor 301 is electrically connected with the memory 302 .
处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器302内的计算机程序,以及调用存储在存储器302内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备300中的处理器301会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的计算机程序,从而实现各种功能:In this embodiment, the processor 301 in the electronic device 300 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 302, and the instructions stored in the memory 302 will be executed by the processor 301. The computer program in, thereby realizes various functions:
当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;When it is detected that the preset application is activated, acquire the facial expression of the user and the duration of the facial expression;
根据所述面部表情以及所述持续时长计算用户的情绪参数,所述情绪参数用于表示用户所处的情绪状态;Calculate the user's emotional parameters according to the facial expression and the duration, the emotional parameters are used to represent the emotional state of the user;
根据所述情绪参数获取用户所处的环境状态;Obtaining the environmental state of the user according to the emotional parameters;
根据所述环境状态进入与所述环境状态对应的应用界面。Entering an application interface corresponding to the environmental state according to the environmental state.
在一些实施例中,根据所述面部表情以及所述持续时长计算用户的情绪参数时,处理器301执行以下步骤:In some embodiments, when calculating the user's emotional parameter according to the facial expression and the duration, the processor 301 performs the following steps:
根据所述面部表情获取所述面部表情对应的第一权重值;Acquiring a first weight value corresponding to the facial expression according to the facial expression;
根据所述持续时长获取所述持续时长对应的第二权重值;Acquiring a second weight value corresponding to the duration according to the duration;
根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数。Calculate the user's emotion parameter according to the facial expression, the first weight value, the duration and the second weight value.
在一些实施例中,根据所述面部表情、第一权重值、持续时长以及第二权重值计算用户的情绪参数时,处理器301根据以下公式进行计算:In some embodiments, when calculating the user's emotional parameter according to the facial expression, the first weight value, the duration and the second weight value, the processor 301 performs the calculation according to the following formula:
W=A×x+B×yW=A×x+B×y
其中,W为所述情绪参数,A为所述面部表情对应的表情值,x为所述第一权重值,B为所述持续时长,y为所述第二权重值。Wherein, W is the emotional parameter, A is the expression value corresponding to the facial expression, x is the first weight value, B is the duration, and y is the second weight value.
在一些实施例中,根据所述情绪参数获取用户所处的环境状态时,处理器301执行以下步骤:In some embodiments, when acquiring the environmental state of the user according to the emotional parameters, the processor 301 performs the following steps:
确定所述情绪参数所处的情绪参数区间;Determining the emotional parameter interval where the emotional parameter is located;
根据所述情绪参数区间获取用户所处的环境状态。The environmental state of the user is acquired according to the emotional parameter interval.
在一些实施例中,根据所述环境状态进入与所述环境状态对应的应用界面时,处理器301执行以下步骤:In some embodiments, when entering the application interface corresponding to the environment state according to the environment state, the processor 301 performs the following steps:
当所述环境状态为所述第一环境状态时,进入所述预设应用的主界面;When the environmental state is the first environmental state, enter the main interface of the preset application;
当所述环境状态为所述第二环境状态时,进入所述预设应用的隐私保护界面。When the environmental state is the second environmental state, enter the privacy protection interface of the preset application.
存储器302可用于存储计算机程序和数据。存储器302存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器301通过调用存储在存储器302的计算机程序,从而执行各种功能应用以及数据处理。Memory 302 may be used to store computer programs and data. The computer program stored in the memory 302 includes instructions executable by the processor. Computer programs can be composed of various functional modules. The processor 301 executes various functional applications and data processing by calling computer programs stored in the memory 302 .
在一些实施例中,如图10所示,电子设备300还包括:射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309。其中,处理器301分别与射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309电性连接。In some embodiments, as shown in FIG. 10 , the electronic device 300 further includes: a radio frequency circuit 303 , a display screen 304 , a control circuit 305 , an input unit 306 , an audio circuit 307 , a sensor 308 and a power supply 309 . Wherein, the processor 301 is electrically connected to the radio frequency circuit 303 , the display screen 304 , the control circuit 305 , the input unit 306 , the audio circuit 307 , the sensor 308 and the power supply 309 .
射频电路303用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 303 is used to send and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.
显示屏304可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 304 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of images, texts, icons, videos and any combination thereof.
控制电路305与显示屏304电性连接,用于控制显示屏304显示信息。The control circuit 305 is electrically connected to the display screen 304 for controlling the display screen 304 to display information.
输入单元306可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元306可以包括指纹识别模组。The input unit 306 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Wherein, the input unit 306 may include a fingerprint recognition module.
音频电路307可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 307 can provide an audio interface between the user and the electronic device through a speaker or a microphone.
传感器308用于采集外部环境信息。传感器308可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。The sensor 308 is used to collect external environment information. The sensor 308 may include one or more of sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.
电源309用于给电子设备300的各个部件供电。在一些实施例中,电源309可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 309 is used to supply power to various components of the electronic device 300 . In some embodiments, the power supply 309 may be logically connected to the processor 301 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system.
尽管图10中未示出,电子设备300还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 10 , the electronic device 300 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:当检测到预设应用被启动时,获取用户的面部表情以及所述面部表情的持续时长;根据所述面部表情以及所述持续时长计算用户的情绪参数;根据所述情绪参数获取用户所处的环境状态;根据所述环境状态进入与所述环境状态对应的应用界面。所述电子设备可以根据用户的面部表情以及所述面部表情的持续时长计算用户的情绪参数,并根据所述情绪参数获取用户所处的环境状态,并对应进入不同的应用界面,从而可以对用户的隐私信息进行保护,提高电子设备的信息安全性。It can be known from the above that the embodiment of the present application provides an electronic device, and the electronic device performs the following steps: when it is detected that the preset application is activated, acquire the facial expression of the user and the duration of the facial expression; according to the The facial expression and the duration calculate the user's emotional parameters; obtain the user's environmental state according to the emotional parameters; enter the application interface corresponding to the environmental state according to the environmental state. The electronic device can calculate the user's emotional parameters according to the user's facial expression and the duration of the facial expression, and obtain the environmental state of the user according to the emotional parameter, and correspondingly enter different application interfaces, so that the user can Protect the private information of electronic devices and improve the information security of electronic devices.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的应用启动方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer executes the method for starting an application described in any one of the above embodiments.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium In this example, the storage medium may include but not limited to: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
以上对本申请实施例所提供的应用启动方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The application startup method, device, storage medium, and electronic equipment provided by the embodiments of the present application are described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only for 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, the content of this specification does not It should be understood as a limitation on the application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711466350.7ACN108200282B (en) | 2017-12-28 | 2017-12-28 | Application starting method and device, storage medium and electronic equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711466350.7ACN108200282B (en) | 2017-12-28 | 2017-12-28 | Application starting method and device, storage medium and electronic equipment |
| Publication Number | Publication Date |
|---|---|
| CN108200282Atrue CN108200282A (en) | 2018-06-22 |
| CN108200282B CN108200282B (en) | 2020-11-13 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711466350.7AExpired - Fee RelatedCN108200282B (en) | 2017-12-28 | 2017-12-28 | Application starting method and device, storage medium and electronic equipment |
| Country | Link |
|---|---|
| CN (1) | CN108200282B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109240759A (en)* | 2018-08-01 | 2019-01-18 | Oppo广东移动通信有限公司 | Application startup method, apparatus, terminal device and readable storage medium |
| CN109522109A (en)* | 2018-11-01 | 2019-03-26 | Oppo广东移动通信有限公司 | Application operation control method and device, storage medium and electronic equipment |
| CN109522059A (en)* | 2018-11-28 | 2019-03-26 | 广东小天才科技有限公司 | program awakening method and system |
| CN111202533A (en)* | 2019-12-25 | 2020-05-29 | Oppo广东移动通信有限公司 | Information processing methods and related products |
| CN115721831A (en)* | 2021-08-25 | 2023-03-03 | 中兴通讯股份有限公司 | Mobile terminal control method, electronic device, and computer-readable storage medium |
| CN118648899A (en)* | 2024-06-25 | 2024-09-17 | 暨南大学 | A method and device for analyzing emotion of electroencephalogram signal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102355527A (en)* | 2011-07-22 | 2012-02-15 | 深圳市无线开锋科技有限公司 | Mood induction apparatus of mobile phone and method thereof |
| CN104202718A (en)* | 2014-08-05 | 2014-12-10 | 百度在线网络技术(北京)有限公司 | Method and device for providing information for user |
| CN105354527A (en)* | 2014-08-20 | 2016-02-24 | 南京普爱射线影像设备有限公司 | Negative expression recognizing and encouraging system |
| CN105829995A (en)* | 2013-10-22 | 2016-08-03 | 谷歌公司 | Capture media content based on viewer expressions |
| CN106030598A (en)* | 2014-02-23 | 2016-10-12 | 高通股份有限公司 | Trust broker authentication method for mobile devices |
| WO2017040228A1 (en)* | 2015-09-03 | 2017-03-09 | Microsoft Technology Licensing, Llc | Modifying captured stroke information into an actionable form |
| US20170178287A1 (en)* | 2015-12-21 | 2017-06-22 | Glen J. Anderson | Identity obfuscation |
| CN107111710A (en)* | 2014-09-13 | 2017-08-29 | 先进元素科技公司 | Method and system for secure and secure identity-based computing |
| CN107169409A (en)* | 2017-03-31 | 2017-09-15 | 北京奇艺世纪科技有限公司 | A kind of emotion identification method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102355527A (en)* | 2011-07-22 | 2012-02-15 | 深圳市无线开锋科技有限公司 | Mood induction apparatus of mobile phone and method thereof |
| CN105829995A (en)* | 2013-10-22 | 2016-08-03 | 谷歌公司 | Capture media content based on viewer expressions |
| CN106030598A (en)* | 2014-02-23 | 2016-10-12 | 高通股份有限公司 | Trust broker authentication method for mobile devices |
| CN104202718A (en)* | 2014-08-05 | 2014-12-10 | 百度在线网络技术(北京)有限公司 | Method and device for providing information for user |
| CN105354527A (en)* | 2014-08-20 | 2016-02-24 | 南京普爱射线影像设备有限公司 | Negative expression recognizing and encouraging system |
| CN107111710A (en)* | 2014-09-13 | 2017-08-29 | 先进元素科技公司 | Method and system for secure and secure identity-based computing |
| WO2017040228A1 (en)* | 2015-09-03 | 2017-03-09 | Microsoft Technology Licensing, Llc | Modifying captured stroke information into an actionable form |
| US20170178287A1 (en)* | 2015-12-21 | 2017-06-22 | Glen J. Anderson | Identity obfuscation |
| CN107169409A (en)* | 2017-03-31 | 2017-09-15 | 北京奇艺世纪科技有限公司 | A kind of emotion identification method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109240759A (en)* | 2018-08-01 | 2019-01-18 | Oppo广东移动通信有限公司 | Application startup method, apparatus, terminal device and readable storage medium |
| CN109522109A (en)* | 2018-11-01 | 2019-03-26 | Oppo广东移动通信有限公司 | Application operation control method and device, storage medium and electronic equipment |
| CN109522059A (en)* | 2018-11-28 | 2019-03-26 | 广东小天才科技有限公司 | program awakening method and system |
| CN109522059B (en)* | 2018-11-28 | 2023-01-06 | 广东小天才科技有限公司 | Program awakening method and system |
| CN111202533A (en)* | 2019-12-25 | 2020-05-29 | Oppo广东移动通信有限公司 | Information processing methods and related products |
| CN115721831A (en)* | 2021-08-25 | 2023-03-03 | 中兴通讯股份有限公司 | Mobile terminal control method, electronic device, and computer-readable storage medium |
| CN118648899A (en)* | 2024-06-25 | 2024-09-17 | 暨南大学 | A method and device for analyzing emotion of electroencephalogram signal |
| Publication number | Publication date |
|---|---|
| CN108200282B (en) | 2020-11-13 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108200282B (en) | Application starting method and device, storage medium and electronic equipment | |
| CN106529339A (en) | Picture display method, device and terminal | |
| CN106062763B (en) | A method, device and electronic device for displaying applications and pictures | |
| CN109117635B (en) | Virus detection method and device for application program, computer equipment and storage medium | |
| CN107832110A (en) | A kind of information processing method and mobile terminal | |
| CN108052818A (en) | Using startup method, apparatus, storage medium and electronic equipment | |
| CN107765853A (en) | Application closing method, device, storage medium and electronic equipment | |
| KR20200117183A (en) | Electronic device for displaying message and operating method thereof | |
| CN108229171B (en) | Driver processing method, device and storage medium | |
| CN107958161A (en) | A kind of multitask display methods and mobile terminal | |
| CN107945733A (en) | Display screen brightness adjusting method and device, storage medium and electronic equipment | |
| CN108898649A (en) | Image processing method and device | |
| JP2023502414A (en) | Target display method and electronic equipment | |
| CN107679377A (en) | Application interface switching method, device, storage medium and electronic equipment | |
| CN108388456A (en) | A kind of application starts method, mobile terminal | |
| CN112001442B (en) | Feature detection method, device, computer equipment and storage medium | |
| CN108287738A (en) | A kind of application control method and device | |
| CN113987602B (en) | Image data processing method and electronic equipment | |
| CN110889692A (en) | Mobile payment method and electronic equipment | |
| CN119854529A (en) | Live broadcast processing method and device, electronic equipment and storage medium | |
| CN111897709B (en) | Method, device, electronic equipment and medium for monitoring user | |
| CN110222506A (en) | Detection method, device, equipment and storage medium are applied fastly | |
| KR20200101067A (en) | Electronic device for displaying execution screen of application and controlling method thereof | |
| CN108763908B (en) | Behavior vector generation method, device, terminal and storage medium | |
| CN114238756B (en) | Message recommendation method, device, equipment and medium |
| 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 | ||
| CB02 | Change of applicant information | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20201113 | |
| CF01 | Termination of patent right due to non-payment of annual fee |