A method and terminal for controlling output operation prompts
By obtaining the user's pupil parameters and facial light intensity, it determines the user's difficulty level and automatically outputs operation prompts, which solves the problem of the terminal being unable to intelligently guide users to operate on complex interfaces, and improves operation efficiency and interaction performance.
Patent Information
- Application Number
- CN201911024412.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-10-25
AI Technical Summary
Existing terminals cannot intelligently guide users to operate on complex interfaces, and especially cannot provide timely help when users encounter difficulties.
By obtaining the user's pupil parameters and facial light intensity, it is determined whether the user's current pupil size is larger than the standard pupil size. If it is larger, operation prompts are automatically output to help the user perform operations on the terminal interface.
It achieves timely guidance when users encounter operational difficulties, and improves users' operational efficiency and human-computer interaction performance on complex interfaces.
Smart Images

Figure CN112711325B
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method and a terminal for controlling output operation prompts. Background Art
[0002] With the popularization of terminal technology, terminals (also called terminal devices) are being used more and more widely. Some terminals usually display some information guiding user operations on the terminal interface during the user's first use, so that the user can know how to operate on the terminal interface, and no longer display information guiding user operations during the subsequent use of the terminal. However, for some interfaces with complex operation methods, even if it is not the first time to use the terminal, the user may encounter the problem of not knowing how to operate. In this case, the terminal cannot intelligently guide the user to operate on the interface. Summary of the invention
[0003] The embodiments of the present application provide a method and a terminal for controlling output of operation prompts, so as to solve the problem in the prior art that the terminal cannot intelligently guide the user to perform operations on the interface.
[0004] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
[0005] In a first aspect, a method for controlling the output of operation prompts is provided, which is applied to a terminal. The method may include: obtaining a first pupil parameter used to characterize a user's current pupil size, and obtaining a first light intensity on the user's face; then determining the user's standard pupil parameter under the first light intensity (the standard pupil parameter is used to characterize the user's standard pupil size), and when the user's current pupil size is larger than the standard pupil size, automatically outputting an operation prompt for guiding the user to perform an operation on an interface currently displayed on the terminal.
[0006] In the method for controlling the output of operation prompts provided in an embodiment of the present application, when the terminal determines that the current pupil size of the user is greater than the standard pupil size based on the first pupil parameter of the user under the first light intensity and the standard pupil parameter of the user under the first light intensity, it confirms that the user has encountered difficulties in performing operations on the interface currently displayed by the terminal. At this time, operation prompts can be automatically output to guide the user's operation, thereby intelligently guiding the user to operate on the interface.
[0007] In a possible implementation, the first pupil parameter may be one of the following two possible situations:
[0008] The first case: the first pupil parameter is the ratio of the user's pupil size to the iris size.
[0009] The pupil size includes pupil radius, pupil diameter or pupil area, and the iris size includes iris radius, iris diameter or iris area. When the pupil size is the pupil radius, the iris size is the iris radius; when the pupil size is the pupil diameter, the iris size is the iris diameter; when the pupil size is the pupil area, the iris size is the iris area.
[0010] The second case: the first pupil parameter is the user's pupil size.
[0011] The pupil size includes pupil radius, pupil diameter or pupil area.
[0012] In the embodiment of the present application, a variety of possibilities for the first pupil parameter are provided, providing a data basis for flexibly and diversely implementing the method for controlling the output operation prompt provided in the embodiment of the present application.
[0013] In a possible implementation, the method for obtaining the first pupil parameter of the user and the method for obtaining the first light intensity of the user's face may be implemented in the following two ways:
[0014] Method 1: when it is detected that the operation interval duration of the user on the interface currently displayed by the terminal is greater than or equal to the preset duration, the first pupil parameter of the user and the first light intensity of the user's face are obtained.
[0015] Method 2: When it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number, the first pupil parameter of the user and the first light intensity of the user's face are obtained.
[0016] Among them, the terminal can determine that the user's operation on the interface currently displayed by the terminal is not smooth when it detects that the interval between the user's operations on the interface currently displayed by the terminal is greater than or equal to the preset duration, or when the terminal detects that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number of times.
[0017] In an embodiment of the present application, after determining that the user's operation on the interface currently displayed on the terminal is not smooth, the user's first pupil parameter and the first light intensity can be obtained, so that it can be further accurately judged whether the user encounters operational difficulties on the current interface of the terminal. Moreover, since the user's first pupil parameter and the first light intensity are no longer obtained after determining that the user does not have smooth operation on the interface currently displayed on the terminal, the power consumption of the terminal can also be saved.
[0018] In a possible implementation, when the current pupil size of the user is larger than the standard pupil size of the user, automatically outputting the operation prompt can be implemented in the following two ways:
[0019] Method 1: When the user's current pupil size is larger than the standard pupil size and it is detected that the user's operation interval for the interface currently displayed on the terminal is greater than or equal to the preset time, the operation prompt is automatically output.
[0020] Mode 2: When the user's current pupil size is larger than the standard pupil size and it is detected that the number of times the user performs the same operation on the interface currently displayed on the terminal within a preset time is greater than or equal to a preset number, an operation prompt is automatically output.
[0021] In an embodiment of the present application, when it is determined that the user's pupil is dilated, it can be further judged by whether the user's operation on the interface currently displayed by the terminal is smooth, whether the user has encountered difficulties in operating on the interface currently displayed by the terminal. When the user's pupil is dilated and the user's operation on the interface currently displayed by the terminal is not smooth, it is determined that difficulties have been encountered in the process of executing the operation on the interface currently displayed by the terminal, thereby improving the judgment accuracy, automatically outputting operation prompts to the user more accurately, and further improving the human-computer interaction performance.
[0022] In a possible implementation, the above-mentioned method of automatically outputting operation prompts when the user's current pupil size is larger than the user's standard pupil size may also include: automatically outputting operation prompts when the user's current pupil size is enlarged by a preset multiple compared to the standard pupil size, and the preset multiple is greater than 1.
[0023] In an embodiment of the present application, the terminal can output prompt information when the user's current pupil size is enlarged by a preset multiple compared to the standard pupil size. That is to say, when the user's current pupil size is enlarged to a certain extent compared to the standard pupil size, prompt information is output. This can avoid the situation where the user mistakenly outputs prompt information due to the influence of other factors on the pupil, thereby improving the accuracy of the output prompt information.
[0024] In a possible implementation, in an embodiment of the present application, before determining the standard pupil parameters of the user under the first light intensity, the second pupil parameters of the user and the second light intensity of the user's face may be obtained first.
[0025] Furthermore, the above method for determining the standard pupil parameters of the user under the first light intensity may include: calculating the standard pupil parameters of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter, the third pupil parameter being the pupil parameter under the third light intensity, and the third light intensity being a light intensity different from the second light intensity.
[0026] In one possible implementation, for different types of pupil parameters, the method for calculating the user's standard pupil parameters under the first light intensity is different in the embodiments of the present application based on the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter.
[0027] Among them, the first pupil parameter can be divided into the following two types:
[0028] The first type: the first pupil parameter includes: any one of the ratio of pupil radius to iris radius, the ratio of pupil diameter to iris diameter, pupil radius and pupil diameter.
[0029] The second type: the first pupil parameter includes: the ratio of pupil area to iris area, and any one of pupil area.
[0030] When the first pupil parameter is of the first type, the terminal can calculate the standard pupil parameter of the user under the first light intensity based on the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with Formula 1.
[0031] The above formula 1 is:
[0032] Among them, R′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, and R k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0033] In the embodiment of the present application, the specific values of the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter can be substituted into the above formula 1 to obtain the value of the standard pupil parameter under the first light intensity.
[0034] When the first pupil parameter is of the second type, the terminal can calculate the standard pupil parameter of the user under the first light intensity based on the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with Formula 2.
[0035] The above formula 2 is:
[0036] Among them, S′ is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0037] In the embodiment of the present application, the specific values of the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter can be substituted into the above formula 2 to obtain the value of the standard pupil parameter under the first light intensity.
[0038] In the embodiment of the present application, different applicable formulas are provided for two different types of first pupil parameters to calculate the standard pupil parameters of the user under the first light intensity, so that the implementation method of the embodiment of the present application is more flexible and diverse.
[0039] In one possible implementation, before determining the standard pupil parameters of the user under a first light intensity, the second pupil parameters of the user and the second light intensity of the user's face may be obtained first, and the standard pupil parameters under different light intensities of at least one light intensity may be calculated based on at least one light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter to obtain at least one standard pupil parameter, the third pupil parameter being the pupil parameter under a third light intensity, and the third light intensity being a light intensity different from the second light intensity; further, the terminal may determine the standard pupil parameters under the first light intensity from at least one standard pupil parameter.
[0040] In an embodiment of the present application, compared to calculating the standard pupil parameters of the user under the first light intensity according to the formula in real time, at least one standard pupil parameter under different light intensities is calculated in advance, and when the standard pupil parameters under the first light intensity are needed, the method of obtaining them from the at least one standard pupil parameter can improve the calculation efficiency and reduce the terminal power consumption.
[0041] In one possible implementation, the first pupil parameter is the ratio of the user's pupil size to the iris size (that is, the first case mentioned above). The implementation method of obtaining the user's first pupil parameter may include: collecting first image information including the user's facial information; determining a first number of pixels corresponding to the user's pupil size and a second number of pixels corresponding to the user's iris size from the first image information; calculating the ratio of the first number to the second number, and using the ratio as the first pupil parameter.
[0042] In the embodiment of the present application, since the iris size generally does not change due to external factors, when the terminal uses the ratio of the first number to the second number as the first pupil parameter of the user to characterize the current pupil size of the user, there is no need to consider the influence of the distance between the terminal and the user on the accuracy of the detected first pupil parameter, thereby simplifying the method of obtaining the first pupil parameter and ensuring the accuracy of obtaining the first pupil parameter.
[0043] In one possible implementation, the first pupil parameter is the user's pupil size (that is, the second case mentioned above). The implementation method of obtaining the user's first pupil parameter may include: detecting the cone angle of the cone formed by the user's pupil and a reference point, where the reference point is any point on the plane where the terminal's display screen is located; detecting the straight-line distance between the center point of the user's pupil and the reference point; and calculating the user's first pupil parameter based on the cone angle and the distance.
[0044] In an embodiment of the present application, when detecting the first pupil parameter, the straight-line distance between the center point of the user's pupil and the reference point is taken into account, and the first pupil parameter of the user is calculated based on the cone angle of the cone formed by the user's pupil and the reference point and the distance, so that the first pupil parameter of the user can be accurately calculated.
[0045] In a possible implementation manner, when the first light intensity is less than or equal to a preset light intensity, a standard pupil parameter of the user under the first light intensity may be determined.
[0046] In the embodiment of the present application, before determining the standard pupil parameters under the first light intensity, it can be determined whether the first light intensity is less than or equal to the preset light intensity. Based on this, some abnormal situations when the light intensity is too large can be excluded, thereby increasing the accuracy of determining the standard pupil parameters.
[0047] In a possible implementation, in the embodiment of the present application, operation prompts can be automatically output in at least one of voice, text, logo, and animation.
[0048] The embodiments of the present application provide a variety of ways to output operation prompts, so that the terminal can provide guidance to the user in a flexible and varied manner, thereby improving the human-computer interaction performance of the terminal.
[0049] In a second aspect, a terminal is provided, which includes: an acquisition module for acquiring a first pupil parameter of a user and a first light intensity of the user's face, the first pupil parameter being used to characterize the user's current pupil size; a determination module for determining a standard pupil parameter of the user under the first light intensity, the standard pupil parameter being used to characterize the user's standard pupil size; and an output module for automatically outputting an operation prompt when the user's current pupil size is greater than the standard pupil size, the operation prompt being used to guide the user to perform an operation on an interface currently displayed on the terminal.
[0050] According to a third aspect, a terminal is provided, comprising: a processor and a memory storing computer instructions; when the processor executes the computer instructions, the processor is used to obtain a first pupil parameter of a user and a first light intensity of the user's face, the first pupil parameter being used to characterize the user's current pupil size; determining a standard pupil parameter of the user under the first light intensity, the standard pupil parameter being used to characterize the user's standard pupil size; and automatically outputting an operation prompt when the user's current pupil size is greater than the standard pupil size, the operation prompt being used to guide the user to perform an operation on an interface currently displayed on the terminal.
[0051] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for controlling output operation prompts as in the first aspect or any possible implementation thereof is implemented.
[0052] In a fifth aspect, a computer program product is provided, which includes computer instructions. When the computer program product runs on a processor, the processor executes the computer instructions to implement a method for controlling output operation prompts as in the first aspect or any possible implementation thereof.
[0053] Among them, the technical effects of the above-mentioned second aspect to the above-mentioned fifth aspect or any possible implementation method thereof can be referred to the description of the technical effects of different implementation methods in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0055] Figure 1 A schematic diagram of the architecture of a possible Android operating system provided in an embodiment of the present application;
[0056] Figure 2 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 1 ;
[0057] Figure 3 A schematic diagram of a pupil and iris in a human eye provided in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of pupil dilation and contraction provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of an interface displayed by a terminal provided in an embodiment of the present application Figure 1 ;
[0060] Figure 6 A schematic diagram of an interface displayed by a terminal provided in an embodiment of the present application Figure 2 ;
[0061] Fig. 7A A schematic diagram of an interface displayed by a terminal provided in an embodiment of the present application Figure 3 ;
[0062] Figure 7B A schematic diagram of an interface displayed by a terminal provided in an embodiment of the present application Figure 4 ;
[0063] Figure 8 A schematic diagram of an interface displayed by a terminal provided in an embodiment of the present application Figure 5 ;
[0064] Fig. 9 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 2 ;
[0065] Fig.10 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 3 ;
[0066] Fig.11 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 4 ;
[0067] Fig.12 A schematic diagram of a cone angle formed by a user's pupil and a reference point provided in an embodiment of the present application;
[0068] Fig.13 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 5 ;
[0069] Fig.14 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 6 ;
[0070] Fig.15 Schematic diagram 7 of a method for controlling output operation prompts provided in an embodiment of the present application;
[0071] Fig.16 A schematic diagram of a method for controlling output operation prompts provided in an embodiment of the present application Figure 8 ;
[0072] Fig.17 A schematic diagram of a terminal structure provided in an embodiment of the present application Figure 1 ;
[0073] Fig.18 A schematic diagram of a terminal structure provided in an embodiment of the present application Figure 2 ;
[0074] Fig.19 A hardware schematic diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0076] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first pupil parameter and a second pupil parameter are used to distinguish different pupil parameters rather than to describe a specific order of the pupil parameters.
[0077] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0078] Some terminals usually display some information guiding user operations on the terminal interface when the user uses the terminal for the first time, so that the user can know how to operate on the terminal interface. The information guiding the user operation is no longer displayed during the subsequent use of the terminal. However, for some interfaces with more complicated operations, even if it is not the first time to use the terminal, the user may encounter the problem of not knowing how to operate, so the terminal cannot intelligently guide the user to operate on the interface.
[0079] In one possible implementation, the terminal can obtain the user's eye information (including the frequency of eye blinking, the amplitude of eye blinking, the frequency of eye rotation, and the amplitude of eye rotation) through the camera, and judge whether the user is tired based on the user's eye information, and display a prompt message to the user on the terminal's display screen when it is judged that the user is tired. For example, "You have used the terminal for too long, please take a break" is displayed on the terminal's display screen. This optional method can prompt the user to take a break if the user is tired, but it is not suitable for situations where the user encounters difficulties during operation (for example, when the user does not know how to select the photo mode in the photo interface).
[0080] The human pupil is a sensitive indicator of human thinking activities. When a person is calm and there is no external stimulation, the pupil generally remains constant. However, when a person performs a more difficult task, the pupil will dilate for a short period of time (for example, the pupil can dilate 50% in 5 seconds).
[0081] Based on the characteristics of human pupils, in response to situations where users encounter difficulties during operation, embodiments of the present application provide a method and terminal for controlling the output of operation prompts, by obtaining a first pupil parameter used to characterize the current pupil size of the user, a first light intensity on the current user's face, and a standard pupil parameter used to characterize the standard pupil size of the user under the first light intensity, and judging whether the current pupil size of the user is greater than the standard pupil size based on the first pupil parameter and the standard pupil parameter, and if the current pupil size of the user is greater than the standard pupil size, determining that the user has encountered difficulties during operation on an interface currently displayed on the terminal, and automatically outputting operation prompts to guide the user to perform operations on the interface currently displayed on the terminal, so that the terminal can intelligently guide the user to perform operations on the interface displayed on the terminal.
[0082] The terminal in the embodiment of the present application may be a terminal with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0083] Taking the Android operating system as an example, the software environment used by the method for controlling output operation prompts provided in the embodiment of the present application is introduced below.
[0084] like Figure 1 , which is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present application. Figure 1 The architecture of the Android operating system includes four layers: application layer, application framework layer, system runtime layer and kernel layer (specifically, the Linux kernel layer).
[0085] The application layer includes various applications in the Android operating system (including system applications and third-party applications), such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, and short message applications.
[0086] The application framework layer is the framework of the application, providing the application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
[0087] Among them, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0088] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the display screen, and capture the display screen.
[0089] Content providers can be used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history, bookmarks, and phone books.
[0090] The view system includes visual controls. For example, controls that display text and controls that display images. The view system can be used to build applications, and the display interface can be composed of one or more views. For example, the display interface of a text notification icon can include a view that displays text and a view that displays images.
[0091] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0092] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the display in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0093] The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The libraries mainly provide the Android operating system with various resources it needs. The Android operating system runtime environment is used to provide a software environment for the Android operating system and is responsible for the scheduling and management of the Android system.
[0094] The library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the core library of Android.
[0095] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management.
[0096] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0097] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0098] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, MP3, AAC, AMR, JPG and PNG encoding formats.
[0099] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
[0100] A 2D graphics engine is a drawing engine for 2D drawings.
[0101] The kernel layer is the operating system layer of the Android operating system. It 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. Among them, the kernel layer can include display drivers, camera drivers, audio drivers, sensor drivers, and speaker drivers.
[0102] Taking the Android operating system as an example, in the embodiment of the present application, developers can Figure 1 The system architecture of the Android operating system shown in the figure is used to develop a software program to implement the method for controlling the output of operation prompts provided in the embodiment of the present application, so that the method for controlling the output of operation prompts can be based on the following example. Figure 1The Android operating system shown is running. That is, the processor or terminal can implement the method for controlling the output operation prompt provided in the embodiment of the present application by running the software program in the Android operating system.
[0103] Optionally, when implementing the method for controlling the output operation prompt in the embodiment of the present application, the processor of the terminal can obtain the user's first pupil parameter by running the software program of the method in the Android operating system. Specifically, the processor can drive the front camera of the terminal to obtain image information including the user's facial features through the camera driver of the kernel layer, and then obtain the user's first pupil parameter from the image information; or the processor can drive the structured light sensor and the angle sensor in the terminal to detect the cone angle of the cone formed by the user's pupil and the reference point through the sensor driver in the kernel layer, and drive the distance sensor in the terminal to detect the straight-line distance between the center point of the user's pupil and the reference point through the sensor driver in the kernel layer, and calculate the user's first pupil parameter based on the cone angle and distance.
[0104] Furthermore, the processor may drive the light intensity sensor in the terminal through a sensor driver at the kernel layer in the Android operating system to obtain a first light intensity on the user's face when the user obtains the first pupil parameter.
[0105] Then, the standard pupil parameters under the first light intensity can be calculated using the calculation formula saved in the system runtime layer in the Android operating system, or the standard pupil parameters under the first light intensity can be obtained from the standard pupil parameters under multiple light intensities saved in the system runtime layer in the Android operating system, and then, based on the first light intensity and the standard light intensity, it is determined whether the user's current pupil size is greater than the standard pupil size.
[0106] When the system runtime layer determines that the user's current pupil size is larger than the standard pupil size, the pre-saved operation prompt audio can be obtained through the content provider in the application framework layer, and the speaker driver at the kernel layer in the Android operating system can be used to drive the speaker in the terminal to play the audio to output the operation prompt in voice form.
[0107] When the system runtime layer determines that the current pupil size of the user is larger than the standard pupil size, the pre-saved operation prompt interface can be obtained through the view system in the application framework layer, and the display driver can be used to drive the terminal display screen to display these interfaces (for example, the following Figures 5 to 8 in any interface).
[0108] The terminal in the embodiment of the present application may also be generally referred to as a terminal device, and the terminal may be a mobile terminal or a non-mobile terminal. The mobile terminal may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc.; the non-mobile terminal may be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc.; the embodiment of the present application does not specifically limit this.
[0109] The execution subject of the method for controlling the output operation prompt provided in the embodiment of the present application can be the above-mentioned terminal (including mobile terminals and non-mobile terminals), or it can be a functional module and / or functional entity in the terminal that can implement the method for controlling the output operation prompt. The specific method can be determined according to actual use requirements, and the embodiment of the present application is not limited. The following takes the terminal as the execution subject of the method for controlling the output operation prompt provided in the embodiment of the present application as an example to exemplarily illustrate the method for controlling the output operation prompt provided in the embodiment of the present application.
[0110] like Figure 2 As shown, an embodiment of the present application provides a method for controlling output operation prompts, the method comprising:
[0111] 101. The terminal obtains a first pupil parameter of a user.
[0112] The first pupil parameter is used to characterize the current pupil size of the user.
[0113] Optionally, the first pupil parameter may be one of the following two possible cases:
[0114] The first case: the first pupil parameter is the ratio of the user's pupil size to the iris size.
[0115] The pupil size includes pupil radius, pupil diameter or pupil area, and the iris size includes iris radius, iris diameter or iris area. When the pupil size is the pupil radius, the iris size is the iris radius; when the pupil size is the pupil diameter, the iris size is the iris diameter; when the pupil size is the pupil area, the iris size is the iris area.
[0116] The iris is commonly known as the "black eyeball". There is a small round hole in the center of the iris, called the pupil, and light usually enters the eye from the pupil. The iris includes smooth muscles arranged around the pupil, called the mydriatic muscle (also called the pupillary sphincter), which is controlled by the parasympathetic nerves to constrict the pupil; the smooth muscles arranged radially from the pupil are called the mydriatic muscle (also called the pupillary dilator muscle), which is controlled by the sympathetic nerves to dilate the pupil. Usually when strong light shines on the eyes, the pupillary sphincter contracts to limit the entry of light; when the light is dim, or when the user encounters difficulties (for example, the user does not know how to operate on the interface currently displayed on the terminal), the pupillary dilator muscle dilates the pupil to increase the amount of light entering. For example, such as Figure 3 Figure 2 is a schematic diagram of the pupil and iris in a human eye.
[0117] For example, Figure 4 The diagram shows the pupil dilation and contraction, which shows the pupil size when there is no external stimulation, the pupil size after the pupil is contracted, and the pupil size after the pupil is dilated. It can be seen that the iris size usually does not change, but the pupil will dilate or contract due to external stimulation.
[0118] The second case: the first pupil parameter is the user's pupil size.
[0119] The pupil size includes pupil radius, pupil diameter or pupil area.
[0120] Optionally, the first pupil parameter may be any other parameter that can characterize the current pupil size of the user in addition to the first and second cases mentioned above, and the embodiment of the present application is not limited thereto.
[0121] In the embodiment of the present application, a variety of possibilities for the first pupil parameter are provided, providing a data basis for flexibly and diversely implementing the method for controlling the output operation prompt provided in the embodiment of the present application.
[0122] In the embodiments of the present application, in addition to the first pupil parameter, multiple other pupil parameter concepts are also involved, for example, a standard pupil parameter, a second pupil parameter, and a third pupil parameter.
[0123] It should be noted that the concepts of pupil parameters involved in the embodiments of the present application are all used to characterize the size of the pupil, wherein the words first, second, third and standard are only used to distinguish different pupil parameters, for example, the first pupil parameter and the second pupil parameter only represent two different pupil parameters, but do not represent their order. Based on this, the concepts of pupil parameters involved in the subsequent embodiments of the present application will not be repeatedly explained.
[0124] In the embodiment of the present application, the specific implementation method of the terminal obtaining the first pupil parameter of the user will be described in the content of the subsequent embodiments.
[0125] 102. The terminal obtains a first light intensity of the user's face.
[0126] Optionally, in an embodiment of the present application, the above-mentioned first light intensity may be a first light intensity of the user's face obtained when the terminal obtains the user's first pupil parameter.
[0127] Optionally, the terminal can detect the intensity of reflected light from the user's face by a light intensity sensor arranged in the terminal to obtain a first light intensity on the user's face; the terminal can also obtain an image including the user's face through a front camera, and determine the first light intensity on the user's face based on the brightness of the user's facial image in the image.
[0128] 103. The terminal determines a standard pupil parameter of the user under a first light intensity.
[0129] The above standard pupil parameters are used to characterize the standard pupil size of the user.
[0130] Optionally, the standard pupil parameter under the first light intensity may be the pupil size of the user detected in advance under the first light intensity when the user is not exposed to external stimulation.
[0131] As an optional implementation method, in an embodiment of the present application, standard pupil parameters under the first light intensity can be pre-recorded based on a situation in which the user normally uses the terminal and can operate smoothly on the terminal interface.
[0132] Optionally, the embodiment of the present application may also pre-record standard pupil parameters under multiple light intensities. When obtaining the standard pupil parameters under a first light intensity, the standard pupil parameters under the first light intensity may be obtained from the pre-recorded standard pupil parameters under multiple light intensities.
[0133] As another optional implementation, the standard pupil parameters under the first light intensity may also be normal pupil parameters of the user under the first light intensity calculated based on pupil parameters pre-entered by the user under a certain light intensity. Specifically, a method for calculating the standard pupil parameters of the user under the first light intensity based on pupil parameters pre-entered by the user under any light intensity will be described in the content of subsequent embodiments.
[0134] In the embodiment of the present application, since light intensity will have different effects on the dilation and contraction of the pupil, when the above-mentioned first pupil parameter is the current pupil parameter of the user under the first light intensity, the terminal needs to correspondingly determine the standard pupil parameter of the user under the first light intensity as a basis for subsequent judgment of whether the user's pupil is dilated, thereby improving the accuracy of the judgment.
[0135] It should be noted that in the embodiment of the present application, the physical quantities represented by the first pupil parameter, the standard pupil parameter, the second pupil parameter and the third pupil parameter are consistent. Taking the first pupil parameter and the standard pupil parameter as examples, when the first pupil parameter is the pupil radius, the corresponding standard pupil parameter is also the pupil radius; when the first pupil parameter is the pupil diameter, the corresponding standard pupil parameter is also the pupil diameter; when the first pupil parameter is the pupil area, the corresponding standard pupil parameter is also the pupil area; when the first pupil parameter is the ratio of the pupil radius to the iris radius, the corresponding standard pupil parameter is also the ratio of the pupil radius to the iris radius; when the first pupil parameter is the ratio of the pupil diameter to the iris diameter, the corresponding standard pupil parameter is also the ratio of the pupil diameter to the iris diameter; when the first pupil parameter is the ratio of the pupil area to the iris area, the corresponding standard pupil parameter is also the ratio of the pupil area to the iris area.
[0136] Optionally, before the above 103, in the embodiment of the present application, the identity of the user may be verified first, and then the standard pupil parameters of the user under the first light intensity may be determined.
[0137] Exemplarily, the terminal can obtain the biometric information of the user, and compare the obtained biometric information of the user with the biometric information of all pre-stored users in sequence. When the obtained biometric information of the user matches the biometric information of the target user in the biometric information of all pre-stored users, the user can be determined to be the target user, and the standard pupil parameters of the target user under the first light intensity can be further determined.
[0138] Optionally, the above-mentioned biometric feature information may be at least one of facial feature information and iris feature information.
[0139] The terminal may acquire image information including facial features of the user through a front camera, and extract at least one of facial feature information and iris feature information of the user from the image information.
[0140] Furthermore, the identity of the user may be verified by using face recognition technology or iris recognition technology, and standard pupil parameters corresponding to the identity of the user may be obtained.
[0141] Due to the influence of the user's age and individual differences on pupil size, the standard pupil parameters under the first light intensity will be different for different users. Therefore, in an embodiment of the present application, comparing a user's current pupil size with the standard pupil size of the user under the same light intensity can improve the accuracy of subsequent judgment of whether the user's pupil is dilated.
[0142] 104. The terminal determines whether the current pupil size of the user is larger than the standard pupil size.
[0143] In the embodiment of the present application, when the user's current pupil size is larger than the standard pupil size, the following 105 is executed; when the user's current pupil size is not larger than the standard pupil size, the process may return to execute the above 101.
[0144] 105. The terminal automatically outputs operation prompts.
[0145] Among them, the operation prompt is used to guide the user to perform operations on the interface currently displayed by the terminal. In the embodiment of the present application, the first pupil parameter can characterize the current pupil size of the user, that is, it can characterize the current pupil size of the user under the first light intensity, and the standard pupil size under the first light intensity can characterize the normal pupil size of the user under the first light intensity. Through the first pupil parameter and the standard pupil parameter, the current pupil size of the user and the standard pupil size of the user under the first light intensity can be respectively known. By comparing the two, it is possible to accurately know whether the user's pupil is enlarged relative to normal conditions, and in the case of determining that the user's pupil is enlarged, it is considered that the user has encountered difficulties in the process of operating on the interface currently displayed by the terminal, and the terminal automatically outputs an operation prompt for the user to intelligently guide the user to operate on the interface.
[0146] The interface currently displayed by the terminal may be any interface displayed by the terminal, for example, an interface of a system application in the terminal or an interface of a third-party application in the terminal.
[0147] Optionally, in an embodiment of the present application, the terminal automatically outputs the operation prompt, including: the terminal automatically outputs the operation prompt through at least one of voice, text, logo and animation.
[0148] It can be understood that in the embodiments of the present application, when the terminal automatically outputs the operation prompt, the operation prompt can be automatically output in any one of the following ways: voice, text, logo and animation, or the operation prompt can be automatically output in two or more of the following ways: voice, text, logo and animation.
[0149] Several ways of outputting operation prompts by a terminal will be described below by way of examples and in conjunction with the accompanying drawings.
[0150] For example, Figure 5 As shown, the terminal currently displays a photo preview interface. At this time, if the user's pupil is dilated as determined in step 104, an operation prompt "Do you want to try more photo functions" can be output in text form. Further, optionally, on the basis of outputting the operation prompt "Do you want to try more photo functions", multiple photo function options can also be displayed on the photo preview interface, such as Figure 5As shown in , options of photo function X, photo function Y and photo function Z can be displayed for user selection.
[0151] Exemplary, combined Figure 5 ,like Figure 6 As shown, on the basis of outputting the operation prompt in text form, the terminal can also output the operation prompt in voice form at the same time, for example, Figure 6 The speaker 11 of the terminal shown outputs a voice message "Do you want to try more camera functions?" to guide the user to select different camera functions.
[0152] For example, Fig. 7A and Figure 7B As shown, the terminal currently displays the alarm setting interface. At this time, if it is determined through the above 104 that the user's pupil is dilated, an animation showing the alarm setting process can be played in animation form.
[0153] For example, Figure 8 As shown, the terminal currently displays a photo preview interface, and multiple shooting modes are displayed in the photo preview interface. At this time, the user can be guided by gestures and arrows to trigger the display of more photo modes that are not shown by sliding gestures. Furthermore, the text "Swipe in the direction of the arrow to display more shooting modes" can be output to guide the user to trigger the display of more photo modes that are not shown by sliding gestures.
[0154] It should be noted that the embodiments of the present application only describe some possible methods and interfaces for outputting prompt information. In actual applications, operation prompts can also be output in other ways besides the above-mentioned voice, text, logo and animation, so as to guide the user to perform operations on the interface currently displayed on the terminal. The embodiments of the present application do not limit this.
[0155] Optionally, in the embodiment of the present application, when the user's current pupil size is larger than the standard pupil size, it may be determined that an operation prompt needs to be output. However, the specific operation prompt to be output may be determined based on the user's currently displayed interface and the user's most recent operations on the currently displayed interface.
[0156] In the embodiment of the present application, the terminal can save at least one operation prompt corresponding to different interfaces.
[0157] Optionally, when the terminal stores only one operation prompt corresponding to the currently displayed interface, this operation prompt is output.
[0158] Optionally, when the terminal stores two or more operation prompts corresponding to the currently displayed interface, the terminal may provide the user with corresponding prompts based on the user's most recent operations on the currently displayed interface.
[0159] For example, when the user Fig. 7A If the most recent operation on the alarm setting interface shown is to click on the area where the number "07" is located, the terminal can display the following Fig. 7A The finger operation animation shown in the figure demonstrates that the hours can be increased by operating the area where the "+" is located above "07", and the hours can be decreased by operating the area where the "-" is located below "07"; Fig. 7A If the most recent operation on the alarm setting interface shown is to click on the area where the number "00" is located, the terminal can display the following Figure 7B The animation of finger operation shown demonstrates that the minutes can be increased to "20" by operating the area where the "+" is located above "00", and the hours can be decreased by operating the area where the "-" is located below "00".
[0160] For example, when the user Figure 8 The most recent operations on the photo preview interface are to click on the areas where "Mode 4" and "Mode 5" are located, and the terminal can display Figure 8 The arrow and finger icons in the middle and the text "Swipe in the direction of the arrow to display more shooting modes" are displayed to guide users on how to select more shooting modes.
[0161] The embodiments of the present application provide a variety of ways to output operation prompts, so that the terminal can provide guidance to the user in a flexible and varied manner, thereby improving the human-computer interaction performance of the terminal.
[0162] In the method for controlling the output of operation prompts provided in the embodiment of the present application, the terminal can obtain the user's first pupil parameter (used to characterize the user's current pupil size) and the first light intensity of the user's face, and determine the user's standard pupil parameter under the first light intensity (used to characterize the user's standard pupil size), and then obtain the user's current pupil size according to the first pupil parameter. When the user's standard pupil size under the first light intensity is obtained according to the standard pupil size, compare whether the user's current pupil size is greater than the standard pupil size, and when the user's current pupil size is greater than the standard pupil size, output an operation prompt for guiding the user to perform an operation on the interface currently displayed by the terminal. Through this solution, when it is determined that the user's current pupil size is greater than the standard pupil size, it can be confirmed that the user encounters difficulties in performing an operation on the interface currently displayed by the terminal. At this time, an operation prompt can be automatically output to guide the user's operation, so that the user can be intelligently guided to perform operations on the interface.
[0163] Optionally, in an embodiment of the present application, the terminal automatically outputs an operation prompt when the user's current pupil size is larger than the above-mentioned standard pupil size, including: automatically outputting an operation prompt when the user's current pupil size is enlarged by a preset multiple compared to the standard pupil size, and the preset multiple is greater than 1.
[0164] Exemplary, combined Figure 2 ,like Fig. 9 As shown, the present application embodiment provides a method for controlling output operation prompts, the above Figure 2 The 104 in the figure can be replaced by the following 104a.
[0165] 104a. The terminal determines whether the current pupil size of the user is enlarged by a preset multiple compared to the standard pupil size.
[0166] In the embodiment of the present application, when the current pupil size of the user is enlarged by a preset multiple compared to the standard pupil size of the user, the above 105 is executed; when the current pupil size of the user is not enlarged by the preset multiple compared to the standard pupil size of the user, the above 101 is executed.
[0167] The preset multiple may be a preset multiple value, which may be determined based on actual experimental results.
[0168] Exemplarily, data on the magnification of pupils of multiple groups of users when they see an interface they cannot operate compared to the standard pupils of the users can be collected, and the average magnification can be calculated using the multiple groups of data, and the average value can be used as the preset multiple.
[0169] Optionally, in the embodiment of the present application, the above-mentioned preset multiple can be 1.3, 1.5 or 2. The determination of the specific value of the preset multiple is not limited in the embodiment of the present application and can be set according to actual conditions.
[0170] In an embodiment of the present application, the terminal can output prompt information when the user's current pupil size is enlarged by a preset multiple compared to the standard pupil size. That is, when the user's current pupil size is enlarged to a certain extent compared to the standard pupil size, prompt information is output. This can avoid the situation where the user's prompt information is mistakenly output due to the influence of other factors on the pupil, thereby improving the accuracy of the output prompt information.
[0171] Optionally, for the first case and the second case of the first pupil parameter, the implementation method of the above 101 is different, and the first case and the second case of the above first pupil parameter will be described below respectively.
[0172] For the first case:
[0173] Exemplary, combined Figure 2 ,like Fig.10 As shown, the present application embodiment provides a method for controlling output operation prompts, the above Figure 2 The 101 in the figure can be replaced by the following 101a, 101b, 101c and 101d.
[0174] 101a. The terminal collects first image information including facial information of the user.
[0175] In the embodiment of the present application, the terminal may use an image acquisition device disposed in the terminal to acquire first image information including facial information of the user.
[0176] Among them, the above-mentioned image acquisition device can be a front camera of the terminal.
[0177] 101b. The terminal determines, from the first image information, a first number of pixels corresponding to the pupil size of the user and a second number of pixels corresponding to the iris size of the user.
[0178] In an embodiment of the present application, after collecting first image information including facial information of the user, the terminal can first determine an area of image information including eye information of the user from the first image information, and then determine the pixel points corresponding to the pupil size of the user and the pixel points corresponding to the iris size of the user from the area, and then determine a first number of pixel points corresponding to the pupil size and a second number of pixel points corresponding to the iris size.
[0179] Exemplarily, assuming that the pupil size is the pupil radius and the iris size is the iris radius, the terminal first determines the image area of the image information including the user's eye information from the first image, and then determines the number of pixels corresponding to the user's pupil radius from the image area, and determines the second number of pixels corresponding to the user's iris radius from the area; assuming that the pupil size is the pupil diameter and the iris size is the iris diameter, the terminal first determines the area of the image information including the user's eye information from the first image, and then determines the number of pixels corresponding to the user's pupil diameter from the area, and determines the second number of pixels corresponding to the user's iris diameter from the area; assuming that the pupil size is the pupil area and the iris size is the iris area, the terminal first determines the area of the image information including the user's eye information from the first image, and then determines the number of pixels corresponding to the user's pupil area from the area, and determines the second area of pixels corresponding to the user's iris radius from the area.
[0180] 101c. The terminal calculates a ratio of the first quantity to the second quantity.
[0181] 101d. The terminal uses the quantity ratio as the first pupil parameter.
[0182] Since the iris size usually does not change due to external factors, when the terminal uses the ratio of the first number to the second number as the first pupil parameter of the user to characterize the current pupil size of the user, there is no need to consider the influence of the distance between the terminal and the user on the accuracy of the detected first pupil parameter, thereby simplifying the method of obtaining the first pupil parameter and ensuring the accuracy of obtaining the first pupil parameter.
[0183] For the second case, combined with Figure 2 ,like Fig.11 As shown, the present application embodiment provides a method for controlling output operation prompts, the above Figure 2 The 101 in the figure can be replaced by the following 101e, 101f and 101g.
[0184] 101e. The terminal detects the cone angle of the cone formed by the user's pupil and the reference point.
[0185] The reference point is any point on the plane where the display screen of the terminal is located.
[0186] In the embodiment of the present application, the terminal can determine the cone angle of an imaginary cone formed by the user's pupil and any point on the plane where the display screen is located through a structured light sensor, and use an angle sensor to measure the angle value of the cone angle.
[0187] The structured light sensor is a sensor that uses 3D structured light technology. 3D structured light technology mainly uses near-infrared lasers to emit light with certain structural characteristics, which is projected onto the object to be measured. A special infrared camera is then used to capture the image. Since this light with a certain structure can detect different depth areas of the object to be measured, the image generated after the acquisition changes relative to the original light structure. The change in structure is then converted into depth information through the computing unit, and we obtain the three-dimensional structure of the object to be measured.
[0188] In the embodiment of the present application, when a structured light sensor is used to detect the user's face (specifically, the user's pupil), the three-dimensional structure of the user's pupil can be obtained, and the pupil is used as the bottom surface of the cone, and a point on the plane where the terminal display screen is located is used as the vertex of the cone to construct an imaginary cone. For example, Fig.12 As shown, an imaginary cone is constructed based on the pupil as the base X of the cone and a point O on the plane where the terminal display screen is located as the vertex of the cone, wherein the angle α is the cone angle of the cone.
[0189] Furthermore, the terminal may use an angle sensor to measure the angle value of the cone angle of the constructed imaginary cone.
[0190] Angle sensors are also commonly referred to as rotary encoders. The interior of the angle sensor includes a rotatable shaft, which detects the angle by rotating the shaft and cutting the grating. Taking a 360-pulse angle sensor as an example, 360 pulses are output for each rotation, and one pulse represents 1°. In an embodiment of the present application, when detecting the angle, the shaft in the angle sensor can be rotated with one side of the cone angle of the imaginary vertebra as a reference until it rotates to the other side of the vertebra of the car, stops rotating, and counts the number of pulses output during the process to calculate the angle value of the cone angle of the imaginary vertebra.
[0191] Optionally, since in actual applications there may be a situation where the user is not looking directly at the display screen of the terminal, the structured light sensor may detect an elliptical cone whose cone angle is not unique. In the embodiment of the present application, the maximum cone angle of the elliptical cone can be taken to calculate the user's first pupil parameter.
[0192] Optionally, in an embodiment of the present application, the structured light sensor may also obtain cone angles of multiple vertebrae through multiple detections, and calculate the first pupil parameter of the user by taking the average value of the cone angles of the multiple vertebrae.
[0193] 101f. The terminal detects the straight-line distance between the center point of the pupil of the user and the reference point.
[0194] In the embodiment of the present application, the terminal can obtain the straight-line distance between the center point of the user's pupil and the reference point through a distance sensor.
[0195] 101g. The terminal calculates the first pupil parameter of the user based on the cone angle and the distance.
[0196] Exemplarily, taking the calculation of pupil radius as an example, the pupil radius can be calculated according to Formula 3: R=L*tan(α / 2).
[0197] Among them, R represents the pupil radius, L is the straight-line distance between the center point of the user's pupil detected by the terminal and the reference point, and α is the angle value of the cone angle formed by the user's pupil and the reference point.
[0198] Optionally, in an embodiment of the present application, the above 103 can be implemented in two optional ways, which will be described below using two optional implementation methods respectively.
[0199] In an embodiment of the present application, when detecting the first pupil parameter, the straight-line distance between the center point of the user's pupil and the reference point is taken into account, and the first pupil parameter of the user is calculated based on the cone angle of the cone formed by the user's pupil and the reference point and the distance, so that the first pupil parameter of the user can be accurately calculated.
[0200] The first optional implementation method combines Figure 2 ,like Fig.13 As shown, the embodiment of the present application provides a method for controlling output operation prompts. Figure 2 Before step 103, the embodiment of the present application also includes the following step 106.
[0201] 106. The terminal obtains a second pupil parameter of the user and a second light intensity of the user's face.
[0202] In the embodiment of the present application, the second pupil parameter of the user may be pre-recorded, and the second light intensity when the second pupil parameter of the user is recorded may be obtained.
[0203] Optionally, in an embodiment of the present application, when the user unlocks the terminal using a face recognition function, the terminal may execute the above 106 to pre-record the second pupil parameters of the user and obtain the second light intensity when the second pupil parameters of the user are recorded.
[0204] In an embodiment of the present application, the user's pupil parameters and light intensity can be recorded based on the user's emotions when facing questions of different difficulty levels.
[0205] As a possible implementation method, in an embodiment of the present application, when a user uses the terminal, the terminal may ask the user a series of questions that require thinking from easy to difficult, and record situations where the user cannot answer or needs a long time to answer, and enter the user's pupil parameters under the current emotion as the above-mentioned second pupil parameters, and use the light intensity of the user's face collected by the light intensity sensor at this time as the above-mentioned second light intensity.
[0206] As another possible implementation method, in an embodiment of the present application, the terminal can display some interfaces from easy to difficult, record the situations in which the user cannot operate smoothly, enter the pupil parameters of the user under the current emotion as the above-mentioned second pupil parameters, and use the light intensity of the user's face collected by the light intensity sensor at this time as the above-mentioned second light intensity.
[0207] Optionally, in the process of obtaining the user's pupil parameters and facial light intensity using the above possible implementation methods, it can also be performed based on different scenes. For example, the user's pupil parameters and facial light intensity can be recorded based on different scenes such as offices, classrooms, gyms, and outdoors where the terminal stays. Accordingly, the standard pupil parameters under different light intensities in different scenes can be calculated through the recorded user's pupil parameters and facial light intensity.
[0208] Based on the above optional method, the embodiment of the present application can also determine the scene where the user is located based on the location when the terminal detects the first pupil parameter, and then obtain the standard pupil parameter of the user under the first light intensity in the scene, and compare the current pupil size of the user indicated by the first pupil parameter with the standard pupil parameter of the user represented by the standard pupil parameter to determine whether the user encounters difficulties in the process of operating on the interface currently displayed by the terminal. This can avoid the influence of different scenes on the user's pupil, which affects the accuracy of the judgment.
[0209] Specifically, the specific method of obtaining the second pupil parameter of the user is similar to the specific method of obtaining the first pupil parameter of the user mentioned above, and the method of obtaining the second light intensity of the user's face is similar to the method of obtaining the first light intensity of the user mentioned above. Therefore, for the method in which the terminal obtains the first pupil parameter of the user and the second light intensity of the user's face here, you can refer to the method in which the terminal obtains the first pupil parameter of the user and obtains the first light intensity of the user's face, and no repeated description will be given here.
[0210] It should be noted that the execution order of the above 101 and 102 and the above 106 is not limited in the embodiment of the present application, that is, 101 and 102 can be executed first, and then 106; or 106 can be executed first, and then 101 and 102.
[0211] Fig.13In the above Figure 2 The 103 in the figure can be replaced by the following 103a.
[0212] 103a. The terminal calculates a standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter.
[0213] The third pupil parameter is a pupil parameter under a third light intensity, and the third light intensity is a light intensity different from the second light intensity.
[0214] A possible situation: the third light intensity may be when the light intensity is 0, and the third pupil parameter may be a pupil parameter of a person when the light intensity is 0.
[0215] When the light intensity is 0, the pupil parameters of a person are generally fixed. For example, when the light intensity is 0, the ratio of the pupil radius to the iris radius is usually 0.5. There are only slight differences for people of different races and / or different countries.
[0216] Optionally, in an embodiment of the present application, different pupil parameters when the light intensity is 0 may be determined for people of different races and / or different countries. Exemplarily, corresponding pupil parameters when the light intensity is 0 may be set for terminals sold to people of different races and / or different countries. As another example, multiple options may be set for each terminal, wherein the race and / or country corresponding to each option may be different, and the user may select the corresponding pupil parameter when the light intensity is 0 according to his / her own race and / or country.
[0217] In another possible situation, when the third light intensity is not 0, the third pupil parameter may be the same as the second pupil parameter, which is a pre-recorded pupil parameter of the same user, and the third light intensity may be the light intensity of the user's face when the third pupil parameter is recorded.
[0218] Optionally, when pre-recording the user's pupil parameters, the above-mentioned second pupil parameter can be recorded once, and the second light intensity of the user's face when the second pupil parameter is recorded can be obtained. Then the terminal can adjust the brightness value of the display screen to change the light intensity of the user's face, and then the above-mentioned third pupil parameter can be recorded once again, and the third light intensity of the user's face when the third pupil parameter is recorded can be obtained.
[0219] Optionally, for different types of pupil parameters, the above 103a may be implemented differently.
[0220] In the embodiment of the present application, the first pupil parameter can be divided into the following two types:
[0221] The first type: the first pupil parameter includes: any one of the ratio of pupil radius to iris radius, the ratio of pupil diameter to iris diameter, pupil radius and pupil diameter.
[0222] The second type: the first pupil parameter includes: the ratio of pupil area to iris area, and any one of pupil area.
[0223] In the case where the first pupil parameter is of the first type, the specific implementation method of 103a includes:
[0224] A. The terminal calculates the standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with formula 1.
[0225] The above formula 1 is:
[0226] Among them, R′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, and R k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0227] In the embodiment of the present application, the specific values of the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter can be substituted into the above formula 1 to obtain the value of the standard pupil parameter under the first light intensity.
[0228] In the case where the first pupil parameter is of the second type, the specific implementation method of step 103a includes:
[0229] B. The terminal calculates the standard pupil parameter of the user under the first light intensity based on the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with formula 2.
[0230] The above formula 2 is:
[0231] Among them, S′ is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0232] In the embodiment of the present application, the specific values of the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter can be substituted into the above formula 2 to obtain the value of the standard pupil parameter under the first light intensity.
[0233] In the embodiment of the present application, different applicable formulas are provided for two different types of first pupil parameters to calculate the standard pupil parameters of the user under the first light intensity, so that the implementation method of the embodiment of the present application is more flexible and diverse.
[0234] The second optional implementation method combines Figure 2 ,like Fig.14 As shown, the embodiment of the present application provides a method for controlling output operation prompts. Figure 2 Before step 103, the embodiment of the present application also includes the following steps 106 and 107.
[0235] 106. The terminal obtains a second pupil parameter of the user and a second light intensity of the user's face.
[0236] 107. The terminal calculates standard pupil parameters under different light intensities of at least one light intensity according to the at least one light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter to obtain at least one standard pupil parameter.
[0237] The third pupil parameter is a pupil parameter under a third light intensity, and the third light intensity is a light intensity different from the second light intensity.
[0238] In the embodiment of the present application, the terminal can calculate the standard pupil parameter at different light intensities in at least one light intensity according to each light intensity in at least one light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter, wherein the standard pupil parameter at each light intensity can be calculated according to each light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter. The calculation method is similar to the method for calculating the standard pupil parameter in 103a above, and will not be repeated here.
[0239] It should be noted that the execution order of the above 101 and 102, and the above 106 and 107 is not limited in the embodiment of the present application, that is, 101 and 102 can be executed first, and then 106 and 107; or 106 and 107 can be executed first, and then 101 and 102.
[0240] Fig.14 In the above Figure 2 The 103 in can be replaced by the following 103b:
[0241] 103b. The terminal determines a standard pupil parameter under a first light intensity from at least one standard pupil parameter.
[0242] Optionally, in an embodiment of the present application, the terminal may pre-calculate different standard pupil parameters under at least one light intensity and save them in the terminal.
[0243] After the terminal determines the first light intensity, the standard pupil parameter corresponding to the first light intensity can be obtained from the stored standard pupil parameters.
[0244] Exemplarily, different light intensities and the values of standard pupil parameters under different light intensities can be saved in a corresponding relationship, so that when it is necessary to obtain the standard pupil parameters under a certain light intensity, the standard pupil parameters under the certain light intensity can be directly determined through the saved corresponding relationship.
[0245] The following is an exemplary representation of the correspondence between different light intensities and the values of standard pupil parameters under different light intensities in the form of a correspondence table, as shown in Table 1 below.
[0246] Table 1
[0247]
[0248]
[0249] In which, in combination with Table 1, when the first light intensity is determined, the standard pupil parameter under the first light intensity can be determined as the first standard pupil parameter by querying Table 1.
[0250] In an embodiment of the present application, compared to calculating the standard pupil parameters of the user under the first light intensity according to the formula in real time, at least one standard pupil parameter under different light intensities is calculated in advance, and when the standard pupil parameters under the first light intensity are needed, the method of obtaining them from at least one standard pupil parameter can improve calculation efficiency and reduce terminal power consumption.
[0251] Optionally, in an embodiment of the present application, the terminal obtains a first pupil parameter of the user and a first light intensity of the user's face, including: when the terminal detects that the user's operation on the interface currently displayed on the terminal is not smooth, the terminal obtains the first pupil parameter of the user and the first light intensity of the user's face.
[0252] Optionally, the terminal detects that the user's operation on the interface currently displayed by the terminal is not smooth, including: the terminal detects that the interval duration of the user's operation on the interface currently displayed by the terminal is greater than or equal to a preset duration, or the terminal detects that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number of times.
[0253] Optionally, the preset duration can be obtained by pre-counting multiple times of operation intervals of the user on the interface currently displayed on the terminal under normal circumstances, and taking the maximum operation interval as the preset duration.
[0254] Optionally, the terminal detects that the interval duration of the user's operations on the interface currently displayed by the terminal is greater than or equal to a preset duration, which may specifically include: the terminal detects that the interval duration of the user's operations on the interface currently displayed by the terminal is longer than the preset duration by a certain proportion (for example, the terminal detects that the interval duration of the user's operations on the interface currently displayed by the terminal is longer than the preset duration by more than 30%).
[0255] Exemplarily, assuming the preset duration is 5 seconds, when it is detected that the operation interval between two operations of the user on the currently displayed interface is 10 seconds (100% longer than 5 seconds), it is determined that the user's operation on the interface currently displayed on the terminal is not smooth.
[0256] In addition, the preset number of times may be 2, 3 or 5 times, and the preset time may be 3 seconds, 5 seconds or 6 seconds. The specific preset number of times may be set according to actual conditions, and the present application embodiment does not limit it.
[0257] Optionally, when the terminal detects that the number of times the same operation is performed on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number, it means that the user may repeatedly trigger the same function control on the interface within a short period of time because he or she does not know how to operate on the interface. Therefore, it can be determined that the user's operation on the interface currently displayed by the terminal is not smooth.
[0258] That is to say, the terminal obtains the first pupil parameter of the user, and obtains the first light intensity of the user's face, including: when the terminal detects that the interval duration of the user's operation on the interface currently displayed by the terminal is greater than or equal to the preset duration, the terminal obtains the first pupil parameter of the user and the first light intensity of the user's face, or when the terminal detects that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number of times, the terminal obtains the first pupil parameter of the user and the first light intensity of the user's face.
[0259] Exemplary, combined Figure 2 ,like Fig.15 As shown, the present application embodiment provides a method for controlling output operation prompts, the above Figure 2 101 and 102 in the figure can be replaced by 108 to 111 described below.
[0260] 108. The terminal detects a duration of an operation interval of the user on the interface currently displayed on the terminal.
[0261] 109. The terminal determines whether a time interval between operations of the user on the interface currently displayed by the terminal is greater than or equal to a preset time interval.
[0262] In an embodiment of the present application, when the terminal determines that the interval length of the user's operation on the interface currently displayed by the terminal is greater than or equal to the preset duration, the following 110 and 111 are executed; when the terminal determines that the interval length of the user's operation on the interface currently displayed by the terminal is less than the preset duration, it returns to execute the above 108.
[0263] 110. The terminal obtains a first pupil parameter of the user and a first light intensity of the user's face.
[0264] 111. The terminal determines whether the first light intensity is less than or equal to a preset light intensity.
[0265] In the embodiment of the present application, when the first light intensity is less than or equal to the preset light intensity, the above 103 is executed; when the first light intensity is greater than the preset light intensity, the above 108 is returned to be executed.
[0266] In an embodiment of the present application, after determining that the user's operation on the interface currently displayed on the terminal is not smooth, the user's first pupil parameter and the first light intensity can be obtained, so that it can be further accurately judged whether the user has encountered difficulties when operating on the interface currently displayed on the terminal, and because the user's first pupil parameter and the first light intensity are no longer obtained after it is determined that the user does not have smooth operation on the interface currently displayed on the terminal, the power consumption of the terminal can be saved.
[0267] Optionally, the preset light intensity may be a maximum light intensity (marked as I max ), the above-mentioned preset light intensity can also be less than the above-mentioned I max , for example, it can be 0.7*I max , or 0.8*I max The embodiment of the present application does not specifically limit the specific value of the preset light intensity, so as to ensure that the method for controlling the output operation prompt provided in the embodiment of the present application can be executed without causing damage to the retina of the human eye.
[0268] That is to say, when the light intensity is greater than the preset light intensity, the human eye may not be able to use the mobile phone normally due to the stimulation of the larger light intensity, and the pupil dilation will also be abnormal. In this case, the method for controlling the output operation prompt provided by the embodiment of the present application should no longer be performed. Correspondingly, when the light intensity is less than or equal to the preset light intensity, the light intensity and the pupil parameters have a certain change relationship (for example, there is a linear change relationship between the light intensity and the pupil radius). In this case, the corresponding standard pupil parameters can be determined according to the light intensity, and the method for controlling the output operation prompt provided by the embodiment of the present application can be continued. Further, before determining the standard pupil parameters under the first light intensity, it can be determined whether the first light intensity is less than or equal to the preset light intensity. Based on this, some abnormal situations when the light intensity is too large can be excluded, thereby increasing the accuracy of determining the standard pupil parameters.
[0269] Optionally, when the current pupil size of the user is larger than the standard pupil size of the user, the operation prompt is automatically output, which may include the following two possible implementation methods:
[0270] In a possible implementation, when the user's current pupil size is larger than the standard pupil size and it is detected that the user's operation interval for the interface currently displayed on the terminal is greater than or equal to a preset time, an operation prompt is automatically output.
[0271] In another possible implementation, when the user's current pupil size is larger than the standard pupil size and it is detected that the user has performed the same operation on the interface currently displayed on the terminal for a number of times greater than or equal to a preset number within a preset time, an operation prompt is automatically output.
[0272] Exemplary, combined Figure 2 ,like Fig.16 As shown, the present application embodiment provides a method for controlling output operation prompts, the above Figure 2 After 102 and before 103, the above 111 may also be included. Figure 2 The above-mentioned 109 may also be included after 104 and before 105.
[0273] Fig.16 In the case where the first light intensity is less than or equal to the preset light intensity, the above 103 is executed; in the case where the first light intensity is greater than the preset light intensity, the above 101 is returned to be executed.
[0274] Fig.16 In the process, if the terminal determines that the interval length of the user's operation on the interface currently displayed on the terminal is greater than or equal to the preset time length, execute the above 105; if the terminal determines that the interval length of the user's operation on the interface currently displayed on the terminal is less than the preset time length, return to execute the above 101.
[0275] In the embodiment of the present application, the execution order of the above-mentioned determination steps 104, 109 and 111 is not limited, that is, these three steps can also be performed in the same order. Fig.15 and Fig.16 The implementation of the execution order other than the two execution orders shown shall be based on the method of controlling the output operation prompt provided by the present application.
[0276] In an embodiment of the present application, when it is determined that the user's pupil is dilated, it can be further judged whether the user has encountered difficulties in operating the interface currently displayed on the terminal by whether the user's operations on the interface currently displayed on the terminal are smooth. When the user's pupil is dilated and the user's operations on the interface currently displayed on the terminal are not smooth, it is determined that the operation on the interface currently displayed on the terminal has encountered difficulties, thereby improving the judgment accuracy, outputting operation prompts to the user more accurately, and further improving the human-computer interaction performance.
[0277] It should be noted that in the embodiments of the present application, the methods for controlling output operation prompts shown in the above-mentioned figures are all illustrated by combining one figure in the embodiments of the present application as an example. In specific implementation, the methods for controlling output operation prompts shown in the above-mentioned figures can also be implemented in combination with any other figures that can be combined as shown in the above-mentioned embodiments, and will not be repeated here.
[0278] In the above embodiments, the scheme provided by the embodiments of the present application is mainly introduced from the perspective of the terminal. It is understandable that, in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0279] The embodiment of the present application can divide the functional modules of the terminal according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0280] like Fig.17 As shown, an embodiment of the present application provides a terminal, the terminal comprising:
[0281] An acquisition module 201 is used to acquire a first pupil parameter of a user and a first light intensity of the user's face, wherein the first pupil parameter is used to characterize a current pupil size of the user;
[0282] A determination module 202, configured to determine a standard pupil parameter of the user under a first light intensity, wherein the standard pupil parameter is used to characterize a standard pupil size of the user;
[0283] The output module 203 is used to automatically output an operation prompt when the user's current pupil size is larger than the standard pupil size, and the operation prompt is used to guide the user to perform an operation on the interface currently displayed on the terminal.
[0284] Optionally, the first pupil parameter is the ratio of the user's pupil size to the iris size, wherein, when the pupil size is the pupil radius, the iris size is the iris radius; when the pupil size is the pupil diameter, the iris size is the iris diameter; when the pupil size is the pupil area, the iris size is the iris area.
[0285] Optionally, the first pupil parameter is the user's pupil size, where the pupil size includes pupil radius, pupil diameter or pupil area.
[0286] Optionally, the acquisition module 201 is specifically used to acquire the first pupil parameter of the user and the first light intensity of the user's face when it is detected that the operation interval duration of the user on the interface currently displayed by the terminal is greater than or equal to a preset duration.
[0287] Optionally, the acquisition module 201 is specifically used to acquire the user's first pupil parameter and the first light intensity of the user's face when it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number.
[0288] Optionally, the output module 203 is specifically configured to automatically output an operation prompt when the user's current pupil size is larger than the standard pupil size and it is detected that the user's operation interval for the interface currently displayed on the terminal is greater than or equal to a preset time.
[0289] Optionally, the output module 203 is specifically used to automatically output an operation prompt when the user's current pupil size is larger than the standard pupil size and it is detected that the number of times the user performs the same operation on the interface currently displayed on the terminal within a preset time is greater than or equal to a preset number.
[0290] Optionally, the output module 203 is specifically configured to automatically output an operation prompt when the user's current pupil size is enlarged by a preset multiple compared to a standard pupil size, and the preset multiple is greater than 1.
[0291] Optionally, before the determination module 202 determines the standard pupil parameters of the user under the first light intensity, the acquisition module 201 is further configured to acquire the second pupil parameters of the user and the second light intensity of the user's face.
[0292] Determination module 202 is specifically used to calculate the user's standard pupil parameters under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter, the third pupil parameter is the pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity.
[0293] Optionally, the first pupil parameter includes: any one of a ratio of a pupil radius to an iris radius, a ratio of a pupil diameter to an iris diameter, a pupil radius, and a pupil diameter; a determination module 202 is specifically configured to calculate a standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter in combination with formula 1;
[0294] Formula 1 is:
[0295] Among them, R′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, and R k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0296] Optionally, the first pupil parameter includes: a ratio of pupil area to iris area, and any one of pupil area; the determination module 202 is specifically configured to calculate a standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter in combination with formula 2;
[0297] Formula 2 is:
[0298] Among them, S is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0299] Optionally, the acquisition module 201 is also used to obtain the second pupil parameters of the user and the second light intensity of the user's face before the determination module 202 determines the standard pupil parameters of the user under the first light intensity; calculate the standard pupil parameters under different light intensities in at least one light intensity based on at least one light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter to obtain at least one standard pupil parameter, the third pupil parameter being the pupil parameter under the third light intensity, and the third light intensity being a light intensity different from the second light intensity; the determination module 202 is specifically used to determine the standard pupil parameters under the first light intensity from at least one standard pupil parameter.
[0300] Optionally, the first pupil parameter is the ratio of the user's pupil size to the iris size, and the acquisition module 201 is specifically used to collect first image information including the user's facial information; determine a first number of pixels corresponding to the user's pupil size and a second number of pixels corresponding to the user's iris size from the first image information; calculate the quantity ratio between the first number and the second number; and use the quantity ratio as the first pupil parameter.
[0301] Optionally, the first pupil parameter is the user's pupil size, and the acquisition module 201 is specifically used to detect the cone angle of the cone formed by the user's pupil and the reference point, where the reference point is any point on the plane where the terminal's display screen is located; detect the straight-line distance between the center point of the user's pupil and the reference point; and calculate the user's first pupil parameter based on the cone angle and the distance.
[0302] Optionally, the determination module 202 is specifically configured to determine a standard pupil parameter of the user under a first light intensity when the first light intensity is less than or equal to a preset light intensity.
[0303] Optionally, the acquisition module 201 is specifically configured to automatically output the operation prompt in at least one of voice, text, logo and animation.
[0304] Optionally, the acquisition module 201, the determination module 202 and the output module 203 may also be integrated into one processing module for implementation.
[0305] like Fig.18 As shown, the embodiment of the present application further provides a terminal, which includes: a processor 301 and a memory 302 storing computer instructions. The processor 301 may include one or more processing elements, and the memory 302 may include one or more storage elements.
[0306] Optional, such as Fig.18As shown, the terminal may also include a system bus 303, and the processor 301 and the memory 302 are connected via the system bus 303. The system bus 303 may include a data bus, a power bus, a control bus, and a signal status bus. Fig.18 Various buses are illustrated as a system bus 303 .
[0307] When processor 301 executes computer instructions, processor 301 is used to obtain a first pupil parameter of the user and a first light intensity of the user's face, the first pupil parameter being used to characterize the user's current pupil size; determine a standard pupil parameter of the user under the first light intensity, the standard pupil parameter being used to characterize the user's standard pupil size; and automatically output an operation prompt when the user's current pupil size is greater than the standard pupil size, the operation prompt being used to guide the user to perform an operation on the interface currently displayed on the terminal.
[0308] Optionally, the first pupil parameter is the ratio of the user's pupil size to the iris size, wherein, when the pupil size is the pupil radius, the iris size is the iris radius; when the pupil size is the pupil diameter, the iris size is the iris diameter; when the pupil size is the pupil area, the iris size is the iris area.
[0309] Optionally, the first pupil parameter is the user's pupil size, where the pupil size includes pupil radius, pupil diameter or pupil area.
[0310] Optionally, the processor 301 is specifically configured to obtain a first pupil parameter of the user and a first light intensity of the user's face when it is detected that the operation interval of the user on the interface currently displayed by the terminal is greater than or equal to a preset time length;
[0311] Optionally, when it is detected that the number of times the user performs the same operation on the interface currently displayed on the terminal within a preset time is greater than or equal to a preset number, the first pupil parameter of the user and the first light intensity of the user's face are obtained.
[0312] Optionally, the processor 301 is specifically configured to automatically output an operation prompt when the current pupil size of the user is larger than the standard pupil size and it is detected that the operation interval of the user on the interface currently displayed by the terminal is greater than or equal to a preset time length;
[0313] Optionally, the processor 301 is specifically configured to automatically output an operation prompt when the user's current pupil size is larger than the standard pupil size and it is detected that the number of times the user performs the same operation on the interface currently displayed on the terminal within a preset time is greater than or equal to a preset number.
[0314] Optionally, the processor 301 is specifically configured to automatically output an operation prompt when the user's current pupil size is enlarged by a preset multiple compared to a standard pupil size, and the preset multiple is greater than 1.
[0315] Optionally, the processor 301 is further configured to obtain a second pupil parameter of the user and a second light intensity of the user's face before determining the standard pupil parameter of the user under the first light intensity;
[0316] Optionally, the processor 301 is specifically used to calculate the user's standard pupil parameters under the first light intensity based on the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter, the third pupil parameter is the pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity.
[0317] Optionally, the first pupil parameter includes: any one of a ratio of pupil radius to iris radius, a ratio of pupil diameter to iris diameter, pupil radius and pupil diameter;
[0318] The processor 301 is specifically configured to calculate a standard pupil parameter of the user at the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with Formula 1;
[0319] Formula 1 is:
[0320] Among them, R′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, and R k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0321] Optionally, the first pupil parameter includes: any one of a ratio of pupil area to iris area and pupil area;
[0322] The processor 301 is specifically configured to calculate a standard pupil parameter of the user at the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with Formula 2;
[0323] Formula 2 is:
[0324] Among them, S is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k Used to represent the third pupil parameter, I k Used to indicate the third light intensity.
[0325] Optionally, the processor 301 is further configured to obtain a second pupil parameter of the user and a second light intensity of the user's face before determining the standard pupil parameter of the user under the first light intensity; calculate the standard pupil parameter under different light intensities of at least one light intensity according to the at least one light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter to obtain at least one standard pupil parameter, the third pupil parameter being a pupil parameter under a third light intensity, and the third light intensity being a light intensity different from the second light intensity;
[0326] The processor 301 is specifically configured to determine a standard pupil parameter under a first light intensity from at least one standard pupil parameter.
[0327] Optionally, the processor 301 is specifically used to collect first image information including facial information of the user; determine a first number of pixels corresponding to the user's pupil size and a second number of pixels corresponding to the user's iris size from the first image information; calculate a quantity ratio between the first number and the second number; and use the quantity ratio as a first pupil parameter.
[0328] Optionally, the processor 301 is specifically used to detect the cone angle of the cone formed by the user's pupil and the reference point, where the reference point is any point on the plane where the terminal's display screen is located; detect the straight-line distance between the center point of the user's pupil and the reference point; and calculate the user's first pupil parameter based on the cone angle and the distance.
[0329] Optionally, the processor 301 is specifically configured to determine a standard pupil parameter of the user under a first light intensity when the first light intensity is less than or equal to a preset light intensity.
[0330] Optionally, the processor 301 is specifically configured to automatically output operation prompts in at least one of voice, text, logo, and animation.
[0331] The terminal provided in the embodiment of the present application can implement the various processes shown in the above method embodiment and achieve the corresponding technical effects. To avoid repetition, they will not be described here.
[0332] The embodiment of the present application provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the various processes shown in the above method embodiment are implemented. The computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0333] An embodiment of the present application provides a computer program product, which includes computer instructions. When the computer program product runs on a processor, the processor executes the computer instructions to implement the various processes shown in the above method embodiments.
[0334] Fig.19 A hardware schematic diagram of a terminal for implementing each embodiment of the present application is shown as follows: Fig.19 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. Take the terminal as a mobile phone as an example for explanation:
[0335] Fig.19 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Fig.19 The mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, a processor 1180, and a power supply 1190. Those skilled in the art will appreciate that Fig.11 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0336] Combine the following Fig.19 A detailed introduction to the various components of the mobile phone:
[0337] The RF circuit 1110 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1180 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 1110 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0338] The memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input unit 1130 may be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1131 or near the touch panel 1131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1131 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 processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0339] The display unit 1140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Optionally, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1131 may cover the display panel 1141. When the touch panel 1131 detects a touch operation on or near it, it is transmitted to the processor 1180 to determine the type of touch event. Subsequently, the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of touch event. Although in Fig.19 In the embodiment, the touch panel 1131 and the display panel 1141 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1131 and the display panel 1141 can be integrated to realize the input and output functions of the mobile phone.
[0340] In the embodiment of the present application, when the operation prompt information is output in a manner that needs to be displayed, such as text, animation, or mark, the processor 1180 can control the display unit 1140 to automatically output the operation prompt information.
[0341] The mobile phone may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1141 and / or the backlight when the mobile phone is moved to the ear. 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. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0342] In the embodiment of the present application, the terminal may further include a structured light sensor, an angle sensor, and a distance sensor. In the process of obtaining the first pupil parameter of the user, the processor 1180 may first detect the cone angle of the cone formed by the user's pupil and the reference point through the structured light sensor and the angle sensor, and detect the straight-line distance between the center point of the user's pupil and the reference point through the distance sensor; then, the first pupil parameter of the user is calculated based on the cone angle and the distance. The reference point is any point on the plane where the display screen of the terminal is located.
[0343] In the embodiment of the present application, the terminal may further include a light intensity sensor, and the terminal may detect the light intensity (eg, the first light intensity) on the user's face through the light intensity sensor.
[0344] The audio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone. The audio circuit 1160 can transmit the received audio data to the speaker 1161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1160 and converted into audio data, and then the audio data is output to the processor 1180 for processing, and then sent to another mobile phone through the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.
[0345] In the embodiment of the present application, when the operation prompt information is output in the form of voice, the processor 1180 can control the speaker 1161 to automatically output the operation prompt information. WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1170. It provides users with wireless broadband Internet access. Fig.11 A WiFi module 1170 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0346] The processor 1180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1120, and calling data stored in the memory 1120, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1180.
[0347] The mobile phone also includes a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1180 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0348] The mobile phone may further include an image acquisition module 1200. Optionally, in the embodiment of the present application, the image acquisition module 1200 may be used to acquire image information including facial features of the user, and obtain pupil parameters of the user therefrom.
[0349] Although not shown, the mobile phone may also include a Bluetooth module, a USB module, etc., which will not be described in detail here.
[0350] In the embodiment of the present application, the processor 1180 included in the terminal may have the same Fig.18 The processor 301 shown has the same functionality.
[0351] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0352] Wherein, the above-mentioned computer program product may include one or more computer instructions. When loading and executing computer program instructions on a computer, a process or function according to an embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, a computer instruction may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. Available media may be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.
[0353] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for controlling output of operation prompts, applied to a terminal, characterized in that: The method comprises: Acquire a first pupil parameter of a user, and acquire a first light intensity of the user's face, wherein the first pupil parameter is used to characterize a current pupil size of the user; Acquire a second pupil parameter of the user and a second light intensity of the user's face; When the first pupil parameter includes any one of the ratio of pupil radius to iris radius, the ratio of pupil diameter to iris diameter, pupil radius and pupil diameter, the standard pupil parameter of the user under the first light intensity is calculated according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with formula 1; wherein the third pupil parameter is a pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity; the standard pupil parameter is used to characterize the standard pupil size of the user; The formula 1 is: Among them, R ′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, R k is used to represent the third pupil parameter, I k used to represent the third light intensity; When the current pupil size of the user is larger than the standard pupil size, an operation prompt is automatically output, where the operation prompt is used to guide the user to perform an operation on the interface currently displayed on the terminal.
2. The method according to claim 1, characterized in that: The obtaining of a first pupil parameter of the user and the obtaining of a first light intensity of the user's face include: When it is detected that the operation interval of the user on the interface currently displayed by the terminal is greater than or equal to the preset time length, obtaining a first pupil parameter of the user and a first light intensity of the user's face; or, When it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number, a first pupil parameter of the user and a first light intensity of the user's face are obtained.
3. The method according to claim 1, characterized in that When the current pupil size of the user is larger than the standard pupil size of the user, automatically outputting an operation prompt includes: Automatically outputting an operation prompt when the current pupil size of the user is larger than the standard pupil size and it is detected that the operation interval of the user on the interface currently displayed by the terminal is longer than or equal to a preset time length; or, When the current pupil size of the user is larger than the standard pupil size and it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number, an operation prompt is automatically output.
4. The method according to claim 1, characterized in that: When the current pupil size of the user is larger than the standard pupil size of the user, automatically outputting an operation prompt includes: When the current pupil size of the user is enlarged by a preset multiple compared to the standard pupil size, an operation prompt is automatically output, and the preset multiple is greater than 1.
5. The method according to claim 1, characterized in that When the first pupil parameter includes any one of the ratio of pupil area to iris area and pupil area, Calculating a standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity, and the third pupil parameter, comprising: Calculate the standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with formula 2; The formula 2 is: Among them, S ′ is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k is used to represent the third pupil parameter, I k Used to represent the third light intensity.
6. The method according to claim 1, characterized in that Before calculating the standard pupil parameters of the user under the first light intensity, the method further includes: Calculating standard pupil parameters under different light intensities among the at least one light intensity according to the at least one light intensity, the second pupil parameter, the second light intensity, a third light intensity and a third pupil parameter to obtain at least one standard pupil parameter, wherein the third pupil parameter is a pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity; The calculating the standard pupil parameter of the user under the first light intensity comprises: A standard pupil parameter at the first light intensity is determined from the at least one standard pupil parameter.
7. The method according to claim 1, characterized in that The first pupil parameter is a ratio of the user's pupil size to the iris size, and obtaining the first pupil parameter of the user includes: Collecting first image information including facial information of a user; Determine, from the first image information, a first number of pixels corresponding to a pupil size of the user and a second number of pixels corresponding to an iris size of the user; calculating a quantity ratio of the first quantity to the second quantity; The quantity ratio is used as the first pupil parameter.
8. The method according to claim 1, characterized in that The first pupil parameter is the pupil size of the user, and obtaining the first pupil parameter of the user includes: Detecting the cone angle of a cone formed by the pupil of the user and a reference point, where the reference point is any point on the plane where the display screen of the terminal is located; Detecting a straight-line distance between a center point of a pupil of the user and the reference point; A first pupil parameter of the user is calculated according to the cone angle and the straight-line distance.
9. The method according to any one of claims 1, 5-8, characterized in that: The calculating the standard pupil parameter of the user under the first light intensity comprises: When the first light intensity is less than or equal to a preset light intensity, a standard pupil parameter of the user under the first light intensity is determined.
10. The method according to any one of claims 1, 5-8, characterized in that: The automatically outputting the operation prompt includes: automatically outputting the operation prompt in at least one of voice, text, logo and animation.
11. A terminal, characterized in that: include: an acquisition module, used to acquire a first pupil parameter of a user, and to acquire a first light intensity of the face of the user, wherein the first pupil parameter is used to characterize a current pupil size of the user; Acquire a second pupil parameter of the user and a second light intensity of the user's face; A determination module, configured to calculate the standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter, in combination with formula 1, when the first pupil parameter includes any one of the ratio of the pupil radius to the iris radius, the ratio of the pupil diameter to the iris diameter, the pupil radius and the pupil diameter; wherein the third pupil parameter is a pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity; the standard pupil parameter is used to characterize the standard pupil size of the user; and formula 1 is: Among them, R ′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, R k is used to represent the third pupil parameter, I k used to represent the third light intensity; The output module is used to automatically output an operation prompt when the current pupil size of the user is larger than the standard pupil size, wherein the operation prompt is used to guide the user to perform an operation on the interface currently displayed on the terminal.
12. A terminal, characterized in that: include: a processor and a memory storing computer instructions; When the processor executes the computer instructions, the processor is configured to obtain a first pupil parameter of the user and a first light intensity of the face of the user, wherein the first pupil parameter is used to characterize a current pupil size of the user; Acquire a second pupil parameter of the user and a second light intensity of the user's face; When the first pupil parameter includes any one of the ratio of pupil radius to iris radius, the ratio of pupil diameter to iris diameter, pupil radius and pupil diameter, the standard pupil parameter of the user under the first light intensity is calculated according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with formula 1; wherein the third pupil parameter is a pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity; the standard pupil parameter is used to characterize the standard pupil size of the user; and formula 1 is: Among them, R ′ is used to represent the standard pupil parameter, R0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, R k is used to represent the third pupil parameter, I k Used to represent the third light intensity; when the current pupil size of the user is larger than the standard pupil size, automatically output an operation prompt, wherein the operation prompt is used to guide the user to perform an operation on the interface currently displayed on the terminal.
13. The terminal according to claim 12, characterized in that: The processor is configured to obtain a first pupil parameter of a user and obtain a first light intensity of the user's face, specifically comprising: the processor is configured to obtain the first pupil parameter of the user and the first light intensity of the user's face when detecting that the operation interval duration of the user on the interface currently displayed by the terminal is greater than or equal to a preset duration; or, The processor is specifically used to obtain the first pupil parameter of the user and the first light intensity of the user's face when it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number.
14. The terminal according to claim 12, characterized in that: The processor is specifically configured to automatically output an operation prompt when the current pupil size of the user is larger than the standard pupil size and when it is detected that the operation interval duration of the user on the interface currently displayed by the terminal is greater than or equal to a preset duration; or, The processor is specifically used to automatically output an operation prompt when the current pupil size of the user is larger than the standard pupil size and it is detected that the number of times the user performs the same operation on the interface currently displayed by the terminal within a preset time is greater than or equal to a preset number.
15. The terminal according to claim 12, characterized in that: The processor is specifically configured to automatically output an operation prompt when the current pupil size of the user is enlarged by a preset multiple compared to the standard pupil size, and the preset multiple is greater than 1.
16. The terminal according to claim 12, characterized in that: When the first pupil parameter includes any one of the ratio of pupil area to iris area and pupil area, The processor is specifically configured to calculate the standard pupil parameter of the user under the first light intensity according to the first light intensity, the second pupil parameter, the second light intensity, the third light intensity and the third pupil parameter in combination with Formula 2; The formula 2 is: Among them, S ′ is used to represent the standard pupil parameter, S0 is used to represent the second pupil parameter, I is used to represent the first light intensity, I0 is used to represent the second light intensity, S k is used to represent the third pupil parameter, I k Used to represent the third light intensity.
17. The terminal according to claim 12, characterized in that: The processor is further configured to calculate the standard pupil parameter of the user under the first light intensity before calculating the standard pupil parameter of the user under the first light intensity, based on at least one light intensity, the second pupil parameter, the second light intensity, a third light intensity and a third pupil parameter, to obtain at least one standard pupil parameter, wherein the third pupil parameter is a pupil parameter under the third light intensity, and the third light intensity is a light intensity different from the second light intensity; The processor is specifically configured to determine a standard pupil parameter under the first light intensity from the at least one standard pupil parameter.
18. The terminal according to claim 12, characterized in that: The first pupil parameter is a ratio of the user's pupil size to the iris size; The processor is specifically configured to collect first image information including facial information of a user; determine a first number of pixels corresponding to a pupil size of the user and a second number of pixels corresponding to an iris size of the user from the first image information; calculating a quantity ratio of the first quantity to the second quantity; The quantity ratio is used as the first pupil parameter.
19. The terminal according to claim 12, characterized in that: The first pupil parameter is the pupil size of the user; The processor is specifically used to detect the cone angle of the cone formed by the user's pupil and a reference point, where the reference point is any point on the plane where the display screen of the terminal is located; detect the straight-line distance between the center point of the user's pupil and the reference point; and calculate the user's first pupil parameter based on the cone angle and the straight-line distance.
20. The terminal according to any one of claims 12, 16-19, characterized in that: The processor is specifically configured to determine a standard pupil parameter of the user under the first light intensity when the first light intensity is less than or equal to a preset light intensity.
21. The terminal according to any one of claims 12, 16-19, characterized in that: The automatically outputting the operation prompt includes: automatically outputting the operation prompt in at least one of voice, text, logo and animation.
22. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method for controlling the output of operation prompts according to any one of claims 1 to 10 is implemented.
23. A computer program product, characterized in that include: The computer program product includes computer instructions. When the computer program product runs on a processor, the processor executes the computer instructions to implement the method for controlling the output of operation prompts according to any one of claims 1 to 10.
