CN111796749B - Output control method and device and electronic equipment - Google Patents

Output control method and device and electronic equipment Download PDF

Info

Publication number
CN111796749B
CN111796749B CN202010661849.9A CN202010661849A CN111796749B CN 111796749 B CN111796749 B CN 111796749B CN 202010661849 A CN202010661849 A CN 202010661849A CN 111796749 B CN111796749 B CN 111796749B
Authority
CN
China
Prior art keywords
display screen
state
event
sensitive detection
change information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010661849.9A
Other languages
Chinese (zh)
Other versions
CN111796749A (en
Inventor
郝嘉磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010661849.9A priority Critical patent/CN111796749B/en
Publication of CN111796749A publication Critical patent/CN111796749A/en
Application granted granted Critical
Publication of CN111796749B publication Critical patent/CN111796749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The application provides an output control method, an output control device and an electronic device, when the working state of the electronic device is detected to meet a first condition, a display screen of the electronic device is controlled to work in a sensitive mode, and then a state adjusting event aiming at the display screen is generated more reliably and accurately according to parameter change information corresponding to a plurality of sensitive detection areas in the display screen so as to respond to the state adjusting event and realize the adjustment of the output state of the display screen.

Description

Output control method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an output control method and apparatus, and an electronic device.
Background
With the development of the full-screen electronic device, the large-sized display screen occupies more layout space of the electronic device, and even occupies layout positions of some front sensors of the traditional electronic device.
Taking the layout of the under-screen distance sensor as an example, although the under-screen distance sensor does not occupy the space of the structural layer where the Display screen is located, the cost of the under-screen distance sensor is often high, the Display screen is required to be an OLED (Organic Light Emitting Display) screen, which has great limitations,
moreover, the distance sensor is arranged below the display screen of the electronic device, so that the change of the distance between the body part of the user and the display screen cannot be reliably determined, the requirement of the user on the display screen of the electronic device cannot be accurately predicted, the display state of the display screen can be adjusted, and even the electronic device can be caused to have a screen flashing problem.
Disclosure of Invention
In view of the above, in order to improve the reliability and accuracy of detecting a change in a distance between a body part of a user and a display screen during use of an electronic device by the user, the present application provides an output control method, including:
detecting that the working state of the electronic equipment meets a first condition, and controlling a display screen of the electronic equipment to work in a sensitive mode;
acquiring parameter change information respectively corresponding to a plurality of sensitive detection areas in the display screen, wherein the parameter change information can indicate the distance change between the display screen of the corresponding sensitive detection area and the body part of the user;
generating a state adjustment event aiming at the display screen according to the acquired parameter change information, wherein the state adjustment event comprises a far state event that the body part of the user is far away from the display screen or a close state event that the body part of the user is close to the display screen;
and responding to the state adjustment event, and adjusting the output state of the display screen.
Optionally, the generating a state adjustment event for the display screen according to the obtained multiple parameter change information includes:
detecting whether corresponding parameter change information in the plurality of sensitive detection areas meets a second condition;
if so, generating a proximity state event aiming at the display screen;
and if the parameter change information does not exist, determining that the parameter change information corresponding to the sensitive detection areas does not meet the second condition all the time within a preset time length, and generating a far-away state event aiming at the display screen.
Optionally, if the parameter change information includes a capacitance change area of a display screen in the corresponding sensitive detection area;
the detecting whether the corresponding parameter change information exists in the plurality of sensitive detection areas and satisfies a second condition comprises:
detecting whether the corresponding capacitance change areas in the plurality of sensitive detection areas are larger than a first area threshold value;
the determining that the parameter change information corresponding to each of the plurality of sensitive detection areas does not satisfy the second condition all the time within a preset time period includes:
determining that the capacitance change areas respectively corresponding to the plurality of sensitive detection regions acquired within a preset time period are not larger than the first area threshold all the time;
optionally, if the parameter change information includes a physical distance between the display screen in the corresponding sensitive detection region and the body part of the user:
the detecting whether the corresponding parameter change information exists in the plurality of sensitive detection areas and meets a second condition comprises the following steps:
detecting whether there is a corresponding one of the physical distances in the plurality of sensitivity detection regions that is less than a first distance threshold;
the determining that the parameter change information corresponding to each of the plurality of sensitive detection areas does not satisfy the second condition all the time within a preset time period includes:
and determining that the physical distances respectively corresponding to the plurality of sensitive detection areas acquired within a preset time length are not smaller than the first distance threshold all the time.
Optionally, the generating a state adjustment event for the display screen according to the obtained multiple parameter change information includes: detecting whether parameter change information corresponding to the plurality of sensitive detection areas respectively meets a second condition;
if the parameter change information corresponding to the sensitive detection area meets the second condition, generating a proximity event aiming at the sensitive detection area;
if the parameter change information corresponding to the sensitive detection area does not meet a second condition within a preset time length, generating a far event aiming at the sensitive detection area;
generating a state adjustment event for the display screen according to the event category generated for each of the plurality of sensitive detection areas;
if the event type generated for any sensitive detection area comprises the approach event, the state adjustment event is an approach state event;
and if the event types generated by the sensitive detection areas are the far events, the state adjustment event is a far state event.
Optionally, the detecting that the operating state of the electronic device satisfies the first condition includes:
detecting whether an application in a foreground running state in the electronic equipment is a preset application or not;
if yes, detecting whether the current posture of the electronic equipment belongs to a preset posture change range corresponding to the preset application;
if yes, detecting whether the electronic equipment is connected with external equipment corresponding to the preset application;
and if not, determining that the working state of the electronic equipment meets the first condition.
Optionally, the detecting whether the current posture of the electronic device falls within a preset posture change range corresponding to the preset application includes:
acquiring attitude information detected by an attitude sensor of the electronic equipment;
determining the current posture of the electronic equipment by utilizing the posture information;
acquiring an included angle between the electronic equipment in the current posture and a detection plane corresponding to the preset application;
and detecting whether the included angle is smaller than an included angle threshold value.
Optionally, the adjusting the output state of the display screen includes:
controlling the display screen to be switched between a first output state and a second output state, wherein the power consumption of the display screen in the first output state is smaller than the power consumption of the display screen in the second output state; and/or the presence of a gas in the atmosphere,
and adjusting the display state of the text displayed on the display screen.
The present application also proposes a display control device, the device comprising:
the detection control module is used for detecting that the working state of the electronic equipment meets a first condition and controlling a display screen of the electronic equipment to work in a sensitive mode;
the parameter change information acquisition module is used for acquiring parameter change information corresponding to each of a plurality of sensitive detection areas in the display screen, and the parameter change information can indicate the distance change between the display screen of the corresponding sensitive detection area and the body part of the user;
a state adjustment event generating module, configured to generate a state adjustment event for the display screen according to the obtained multiple pieces of parameter change information, where the state adjustment event includes a far state event in which the body part of the user is far from the display screen, or a near state event in which the body part of the user is near to the display screen;
and the output state adjusting module is used for responding to the state adjusting event and adjusting the output state of the display screen.
Optionally, the parameter change information acquiring module includes:
the system comprises a plurality of information acquisition units, a plurality of detection units and a plurality of control units, wherein each information acquisition unit is used for acquiring parameter change information corresponding to a corresponding sensitive detection area;
a plurality of state detection units for detecting whether parameter change information of the corresponding sensitive detection areas satisfies a second condition;
the state adjustment event generation module comprises:
the event analysis units are used for determining the types of the events occurring in the corresponding sensitive detection areas according to the detection results of the corresponding state detection units;
the state event determining unit is used for generating an approaching state event aiming at the display screen under the condition that the detection result of any one state detecting unit is that the parameter change information of the corresponding sensitive detection area meets the second condition; and generating a far-away state event aiming at the display screen under the condition that the detection results of the state detection units are all parameter change information of the corresponding sensitive detection areas within the preset time length and do not meet the second condition.
The present application further proposes an electronic device, which includes:
a display screen;
a memory for storing a program for implementing the output control method as described above;
and the processor is used for loading and executing the program stored in the memory so as to realize the steps of the output control method.
Therefore, compared with the prior art, the application provides an output control method, an output control device and electronic equipment, when the working state of the electronic equipment is detected to meet a first condition, the display screen of the electronic equipment is controlled to work in a sensitive mode, and then, the method and the device can more reliably and accurately generate the state adjustment event aiming at the display screen according to the parameter change information corresponding to the sensitive detection areas in the display screen, the method and the device have the advantages that the output state of the display screen is adjusted by responding to the state adjusting event, and compared with the mode that the distance between the face of the user and the display screen is detected by only one distance sensor arranged under the screen in the prior art, the distance between the body part of the user and the display screen can be determined more reliably and accurately, the application requirement of the user on the display screen of the electronic equipment can be met, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart showing an alternative example of the output control method proposed in the present application;
FIG. 2 shows a schematic flow diagram of yet another alternative example of the output control method proposed by the present application;
FIG. 3 is a flow chart diagram illustrating yet another alternative example of the output control method set forth herein;
fig. 4 is a schematic view illustrating a scene of an alternative determination manner of the electronic device posture in the output control method provided by the present application;
FIG. 5 shows a schematic flow diagram of yet another alternative example of the output control method proposed by the present application;
FIG. 6 shows a schematic flow diagram of yet another alternative example of the output control method proposed by the present application;
fig. 7a is a schematic diagram illustrating an alternative application scenario of the output control method proposed in the present application;
FIG. 7b is a schematic diagram illustrating another alternative application scenario of the output control method proposed in the present application;
FIG. 7c is a schematic diagram illustrating an alternative application scenario of the output control method proposed in the present application;
FIG. 8 is a flow chart diagram illustrating yet another alternative example of the output control method set forth herein;
FIG. 9 is a flow chart diagram illustrating yet another alternative example of the output control method set forth in the present application;
fig. 10 is a schematic structural view showing an alternative example of the output control apparatus proposed in the present application;
fig. 11 is a schematic structural diagram showing still another alternative example of the output control apparatus proposed by the present application;
fig. 12 is a schematic configuration diagram showing an alternative example of an electronic device suitable for use in the output control method proposed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be understood that "system", "apparatus", "unit" and/or "module" as used in this application is a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this application and in the claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to include the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising an … …" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
Wherein in the description of the embodiments of the present application, "/" indicates an inclusive meaning, for example, a/B may indicate a or B; "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two. The terms "first", "second" and the like are used hereinafter for descriptive purposes only and are not to be construed as indicating or implying relative importance or as implying any indication of the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
Additionally, flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
Referring to fig. 1, a schematic flowchart of an optional example of the output control method provided in the present application, the method may be applied to an electronic device, which may include but is not limited to a smart phone, a tablet computer, a wearable device, a tablet computer, a Personal Digital Assistant (PDA), an e-book reader, and the like, as shown in fig. 1, and the output control method may include:
step S11, detecting that the working state of the electronic equipment meets a first condition, and controlling the display screen of the electronic equipment to work in a sensitive mode;
the sensitive mode of the display screen of the electronic device may refer to: the operating mode enables the output state of the display screen to be dynamically adjusted as the distance between the user of the electronic device (hereinafter referred to as the user) and the display screen changes.
However, in a process that a user uses an electronic device, in some scenarios, in order to improve user experience and/or avoid misoperation, the output state of the display screen needs to be changed along with a change in a distance between the user and the display screen, but in other scenarios, in order to meet a display requirement of the user on the electronic device, the output state of the display screen is not required to be changed along with a change in a distance between the user and the display screen, and even the output state of the display screen needs to be maintained. Therefore, the display screen of the electronic device does not need to be always in the sensitive mode to work, and the display screen of the electronic device is controlled to enter the sensitive mode to work when the working state of the electronic device meets a specific condition (namely a first condition) and the electronic device works in a specific scene. It should be noted that, the content of the first condition is not limited in the present application, and the content of the first condition may be flexibly determined or adjusted according to the actual application.
In practical applications in some embodiments, specifically, the output state is taken as the brightness of the display screen for example, when a user uses the electronic device to perform a voice call, when the user brings a receiver of the electronic device close to an ear and the display screen is close to the face of the user, the display screen can be controlled to be turned off in order to avoid mistakenly touching the touch display screen, so that electric power is saved; however, in this case, if the earphone is inserted into the electronic device, the user can hear the voice interactive content through the earphone, and the display screen may not be turned off; if the user watches the video by using the electronic equipment, the display screen is close to the face of the user, and the display screen does not need to be turned off.
Therefore, the first condition can be determined according to one or more aspects such as the working characteristics and user requirements of each application that the electronic device has, the posture of the electronic device when running a specific application, and/or the device type of the external device that the electronic device is currently connected to, such as whether the device type meets the use requirements of the specific application, but the first condition may include, but is not limited to, the content of the condition listed in the present application, and for the output states of different contents, the content of the first condition may be adapted and adjusted, specifically, refer to, but is not limited to, the first condition determined for adjusting the brightness of the display screen, and the present application is not described in detail.
Based on the above analysis, in the practical application of this embodiment, the working state of the electronic device may be obtained, where the working state may include a running application type of the electronic device, whether the electronic device is communicatively connected with an external device, and if so, a device type and a working parameter of the external device, parameters sensed by a plurality of basic sensors configured in the electronic device, and the like. Then, whether the working state of the electronic equipment meets a first condition or not can be detected, and if the working state of the electronic equipment meets the first condition, the display screen of the electronic equipment can be controlled to work in a sensitive mode; if the first condition is not met, the display screen can continue to work in the current mode, and the working state of the electronic equipment can also continue to be detected according to the above, so that the display screen can be timely controlled to work in a sensitive mode under the condition that the working state of the electronic equipment meets the first condition, and the application requirements of a user are met.
Step S12, acquiring parameter change information corresponding to each of a plurality of sensitive detection areas in a display screen;
in this embodiment, the parameter change information may indicate a change in a distance between the display screen of the corresponding sensitive detection area and the body part of the user, and the content of the parameter change information is not limited in this application. In practical application, the detector matched with the parameter can be used to detect the parameter, for example, a distance sensor detects the distance between the display screen and the body part of the user, or other detectors sense the parameter capable of representing the distance, so that the parameter change information is obtained from the detected parameters at different moments.
To solve the problems of the prior art described in the background section, in order to improve the reliability and accuracy of detecting the distance between a user body part and a display screen, the present application proposes to deploy a plurality of sensitive detection regions in the whole region corresponding to the display screen of an electronic device, that is, a region for detecting the change in the distance between the user body part and the display screen. Optionally, the multiple sensitive detection regions deployed in the present application may be located in a display region and/or a non-display region where the capacitance change sensing unit is deployed in the display screen, and the corresponding deployment positions of the multiple sensitive detection regions on the display screen are not limited in the present application, which may be determined according to the circumstances.
In an optional embodiment of the present application, it is possible to determine a plurality of corresponding sensitive detection regions for the application category in the foreground running state, that is, for applications of different categories, if it is necessary for the display screen to enter a sensitive mode to operate, it is possible to determine a plurality of different sensitive detection regions, so as to obtain parameter change information corresponding to each of the plurality of sensitive detection regions corresponding to the application. It can be seen that, in this embodiment, the number and the positions of the sensitive detection regions corresponding to the different types of applications may be different, and a correspondence between the different types of applications and the different sensitive detection regions may be pre-constructed (this application may refer to a type of application corresponding to multiple sensitive detection regions), where the correspondence may be determined according to factors such as a usage habit of a user to the type of application, a working characteristic of the type of application itself, and a shape of a display screen of an electronic device, and a determination mode, an indication mode, a storage mode, and the like of the correspondence are not limited by this application.
In another optional embodiment of the present application, for different types of applications that need to operate in a sensitive mode, the same multiple sensitive detection regions may also be configured (the configuration manner of the multiple sensitive detection regions is similar to that described above, and the present application is not limited), that is, the number and positions of the sensitive detection regions of the display screen of the electronic device may be determined, so that, no matter which application that needs to operate in the sensitive mode is in a foreground operation mode in the electronic device, parameter change information corresponding to each of the multiple fixed sensitive detection regions may be obtained.
The plurality of sensitive detection areas can be selected by a user in a self-defined manner, or can be configured by an electronic device developer, and the like, and the determination manner of the sensitive detection areas on the display screen of the electronic device includes, but is not limited to, the manner described above.
Step S13, generating a state adjustment event aiming at the display screen according to the acquired parameter change information;
in this application, the state adjustment event may include a far state event in which a body part of a user is far from the display screen, or a near state event in which the body part of the user is near to the display screen, which needs to be described.
It should be understood that, in the present application, whether a far-away state event or a near-to state event is determined by combining a plurality of parameter change information respectively corresponding to a plurality of sensitive detection regions, and for determining a state adjustment implementation manner according to one parameter change information, accuracy and reliability of a generated state adjustment event are greatly improved, and further reliability of an operation executed according to the state adjustment event is improved, so that user requirements can be better met, and user experience is improved.
In some embodiments, after the state adjustment event finally generated for the display screen is determined, history parameter change information cached in association with the history state adjustment event generated adjacent to the state adjustment event may be cleared, so as to avoid affecting accuracy of subsequent event detection, and a specific implementation process is not described in detail.
In step S14, the output state of the display screen is adjusted in response to the state adjustment event.
In combination with the above description about the acquisition process and purpose of the state adjustment event, during the period that the display screen of the electronic device is in the sensitive mode, after the electronic device determines the state adjustment event for the display screen, the electronic device adjusts the corresponding configuration parameters of the electronic device (which may be, but is not limited to, adjusting the configuration parameters of the display screen itself) according to the adjustment direction indicated by the state adjustment event, so as to change the output state of the display screen and meet the user requirements. It should be noted that, the present application does not describe in detail the specific implementation process of the electronic device responding to the generated state adjustment event.
To sum up, in this embodiment, when it is detected that the operating state of the electronic device satisfies the first condition, the display screen of the electronic device is controlled to enter the sensitive mode to operate, during which the electronic device acquires the parameter change information corresponding to each of the plurality of sensitive detection areas in the display screen, so as to generate a state adjustment event for the display screen more reliably and accurately according to the parameter change information, to respond to the state adjustment event, to implement adjustment of the output state of the display screen, and compared with the prior art that only one distance sensor disposed under the display screen is used to implement distance detection between the user's face and the display screen, the present application can determine the distance and the relative position relationship between the user's body and the display screen more reliably and accurately, thereby not only meeting the application requirements of the user on the display screen of the electronic device, and the adjustment of the application of other functions of the electronic equipment can be realized according to the determined relative position relationship, so that the user experience is greatly improved.
Referring to fig. 2, which is a schematic flow chart of another optional example of the output control method proposed in the present application, this embodiment may be an optional detailed implementation method of the output control method proposed in the foregoing embodiment, but is not limited to the detailed implementation method described in this embodiment, and as shown in fig. 2, the method may include:
step S21, acquiring an application in a foreground running state in the electronic equipment;
step S22, detecting whether the application is a preset application, if yes, entering step S23; if not, go to step S27;
following the analysis of the corresponding portions of the above embodiments, the display screen of the electronic device is only required to enter the agile mode to operate when the user uses a particular application of the electronic device, and for other types of applications (i.e., applications that the electronic device has other than the particular application), the display screen is not required to enter the agile mode to operate. The specific application may be preset according to actual requirements, and one or more preset specific applications are collectively referred to as a preset application, so that the preset application of the present application may not be a fixed application but refer to a type of application having the same function.
Based on this, before controlling the display screen to work in the sensitive mode, the application in the foreground running state of the electronic device may be detected first whether the application is a preset application, for example, whether an application identifier of the application currently in the foreground running state exists in the application identifiers of the preset application may be detected, if the application identifier exists, it is indicated that the application in the foreground running state belongs to the preset application, and the display screen of the electronic device may be directly controlled to work in the sensitive mode; in still other embodiments, in order to improve the sensitivity mode control reliability, the application may further detect from other aspects, and determine whether to control the display screen to enter the sensitivity mode.
It should be noted that, regarding to an implementation manner for detecting whether an application in a foreground running state is a preset application, the implementation manner is not limited to the above listed application identification comparison manner, and the content of the application identification is not limited in the present application, and may be a unique identification code during application installation, or a unique identification configured after installation is completed, and the detection manner of the step S22 may be flexibly adjusted according to actual requirements, and the present application is not described in detail.
Illustratively, if preset voice communication is applied to a voice call process, a display screen of the electronic device needs to enter a sensitive mode, so that a user can attach the display screen (the display screen is a touch display screen) of the electronic device to the face of the user, a receiver is close to an ear, and the display screen is controlled to be turned off in the process of listening to voice call content of the other party, so as to avoid misoperation caused by collision of the face or fingers on the display screen. Based on the above, the preset application can be a voice communication application, so that when the voice communication application is detected to be in a foreground running state, the situation that a user uses the voice communication application to carry out voice communication is shown, and a display screen of the electronic equipment can be directly controlled to enter a sensitive mode to work; alternatively, the determination of whether to control the display of the electronic device to enter the active mode may be made in conjunction with other information, such as, but not limited to, those listed below.
Step S23, acquiring the current posture of the electronic equipment and the preset posture change range corresponding to the preset application;
step S24, detecting whether the current posture belongs to the preset posture change range, if yes, entering step S25, if not, executing step S27;
in combination with the above description of the preset application, the voice communication application is still taken as an example for explanation, when the user uses the voice communication application to perform voice call, if the user starts the voice playing function of the electronic device, or inserts an earphone to perform voice call, the user usually does not approach the earphone of the electronic device to the ear, and the user will not touch the electronic device easily because of approaching the earphone of the electronic device to the ear and approaching the face to the display screen, so that in this case, the user can work in a sensitive mode without using the display screen of the electronic device.
Therefore, in the actual use process of the preset application, the user often holds the electronic device by hand to enable the electronic device to be in a certain posture, so that a certain relative position relation is presented between the electronic device and the user, the problem that the user does not touch the electronic device or other problems may occur, and the display screen needs to work in a sensitive mode to avoid the problem; however, when the electronic device is in a certain posture, that is, when the electronic device and the user present a certain relative positional relationship, these problems do not occur, and the display screen of the electronic device may not be controlled to enter the sensitive mode to operate, that is, the electronic device is not in all postures (that is, when the electronic device and the user present any relative positional relationship), the display screen of the electronic device is required to enter the sensitive mode to operate.
Based on the analysis, under the condition that the application in the foreground running state in the electronic equipment is determined to be the preset application, the embodiment of the application further analyzes the current posture of the electronic equipment, so that the switching control of the sensitive mode of the display screen is more accurately and reliably realized by combining the current posture of the electronic equipment. Specifically, according to the use requirements of the preset application, the use habits of the user on the preset application and other factors, it is predetermined which postures the electronic device is in under the foreground running state, and the display screen of the electronic device needs to enter the sensitive mode to work, so that the change ranges of the postures are determined as the preset posture change ranges corresponding to the preset application, and the preset posture change ranges and the preset application are stored in an associated manner. The determination mode and the storage mode of the preset posture change range are not limited, and can be determined according to the situation.
During the period of acquiring the current posture of the electronic equipment, a preset posture change range corresponding to a preset application currently in a foreground running state can be acquired, and whether the current posture of the electronic equipment belongs to the preset posture change range or not is determined through comparison so as to judge whether a display screen of the electronic equipment needs to enter a sensitive mode or not from the posture of the electronic equipment. The comparison process may be determined by combining information included in the current posture of the electronic device, which is not limited in this application.
In an optional embodiment of the present application, as to whether the current posture of the electronic device is in the implementation process within the preset posture variation range corresponding to the preset application, that is, the specific implementation method of the step S23 and the step S24 is as shown in fig. 3, and it may include, but is not limited to, the following steps:
step S31, acquiring attitude information detected by an attitude sensor of the electronic equipment;
step S32, determining the current posture of the electronic equipment by using the posture information;
the attitude sensor may be a basic sensor of the electronic device, such as a gravity sensor, an acceleration sensor, a gyroscope, and the like, which can be used to detect a change in the attitude of the electronic device, and records a parameter detected by such a sensor as attitude information to determine the current attitude of the electronic device (i.e., the spatial attitude of the electronic device). The present application does not limit the type and number of sensors included in the attitude sensor, that is, the content included in the attitude information is not limited, and is not limited to the parameters sensed by the above listed sensors, and may be determined according to actual needs and the configuration structure of the electronic device, and the present application is not described in detail herein.
It should be noted that, for determining the current posture of the electronic device, the present application does not limit the representation manner thereof, and may determine the current posture according to the content included in the obtained posture information, the use requirement of the electronic device, and other factors.
Step S33, acquiring an included angle between the electronic equipment in the current posture and a detection plane corresponding to a preset application;
in the embodiment of the application, the above description of the preset application is combined, for different preset applications, when a user needs to enter the sensitive mode to work in the using process of the user, the relevant position relationship between the electronic device and the user may be different, and the manner for representing the relevant position relationship may also be different.
For example, still taking the preset application as the voice communication application as an example for explanation, when a user brings an earpiece of an electronic device (e.g., a mobile phone) close to an ear to listen to voice content, the mobile phone held by the user is often erected, as shown in fig. 4, so that an included angle α is formed between the mobile phone and a vertical plane (e.g., a plane where a Z axis is located in fig. 4), that is, an inclination angle of the mobile phone, in this scenario, the plane where the Z axis is located may be determined as a detection plane of the voice communication application. For other types of applications, the corresponding detection plane may also be determined according to the actual situation of the user using the type of application in this manner, and the specific implementation process is not described in detail in this embodiment.
The included angle α can be obtained by calculating attitude information detected by an attitude sensor, and a specific calculation method is not described in detail in the present application. It should be understood that, for correspondence between different preset applications and each detection plane, there may be a plurality of preset applications corresponding to the same detection plane, or a plurality of preset applications corresponding to different detection planes.
Step S34, detecting whether the included angle is smaller than the included angle threshold value, if yes, entering the step S35; if not, go to step S36;
in this embodiment, the specific numerical value of the included angle threshold may be determined by combining the above description of the preset posture change range of the corresponding preset application, that is, the posture change range of the electronic device may be determined when the display screen needs to enter the sensitive mode according to the preset application, the included angle threshold corresponding to different preset applications may be different, or the preset application corresponding to the same included angle threshold may exist, and the specific numerical value of the included angle threshold corresponding to each preset application is not limited in the present application.
Step S35, determining that the current posture of the electronic equipment belongs to a preset posture change range corresponding to the preset application;
step S36; and determining that the current posture of the electronic equipment does not belong to a preset posture change range corresponding to the preset application.
As described above, after comparing the included angle between the electronic device in the current posture and the detection plane corresponding to the preset application (the included angle between the electronic device and the Z axis in the above example, but not limited thereto) with the included angle threshold corresponding to the preset application, it may be determined whether the current posture of the electronic device belongs to the preset posture change range corresponding to the preset application in the foreground operation state, that is, whether the current posture of the electronic device satisfies the preset application operation, and the condition that the display screen enters the sensitive mode is triggered; and otherwise, the current posture of the electronic equipment does not meet the condition of triggering the display screen to enter the sensitive mode to work.
Under the condition that the current posture of the electronic equipment meets the condition of triggering the display screen to work in the sensitive mode, the display screen can be directly controlled to work in the sensitive mode; of course, the working state of other aspects of the electronic equipment can be combined, whether the display screen needs to be controlled to work in a sensitive mode or not is further detected, and the reliability of control over the sensitive mode of the display screen is further improved. And under the condition that the current posture of the electronic equipment does not meet the condition of triggering the display screen to work in the sensitive mode, the display screen can be controlled to work in the insensitive mode.
It should be noted that, regarding whether the current posture of the electronic device belongs to the preset posture change range corresponding to the preset application in the foreground operating state, the implementation method is not limited to the above-described manner, and can be flexibly adjusted according to the actual situation, and detailed description is not given in this application.
Step S25, detecting whether the electronic equipment is connected with external equipment corresponding to the preset application, if not, entering step S26; if yes, go to step S27;
in this case, there is no situation that the ear of the user is close to the earpiece of the electronic device to perform the voice call, and therefore, false triggering operation cannot be generated, so the electronic device may not control the display screen to work in a sensitive mode, and the user may operate the display screen of the electronic device in the process of wearing the earpiece.
Therefore, after it is determined that the application in the foreground operating state is the preset application and the current posture of the electronic device falls within the preset posture variation range of the preset application, the method and the device for processing the electronic device can further detect whether the electronic device is connected with the external device (such as the above-mentioned earphone) corresponding to the preset application, and if a signal generated by each communication interface of the electronic device can be detected, determine whether the communication interface is connected with the external device, further determine the device information of the external device, and determine whether the external device is the external device corresponding to the preset application in the foreground operating state, and the specific implementation method is not limited in the present application.
It should be noted that, for different types of preset applications, the external devices corresponding to the preset applications and affecting whether the display screen enters the sensitive mode may be different, including but not limited to the audio devices such as the headphones listed above.
Step S26, determining that the working state of the electronic equipment meets a first condition, and controlling the display screen of the electronic equipment to work in a sensitive mode;
it can be seen that, in this embodiment, detecting that an application of the electronic device currently in a foreground operating state is a preset application, and a current posture of the electronic device belongs to a preset posture change range corresponding to the preset application, and the electronic device is not currently connected with an external device corresponding to the preset application, may determine that a working state of the electronic device satisfies a first condition, and control a display screen of the electronic device to operate in a sensitive mode; if any one of the three aspects does not meet the requirement, the working state of the electronic equipment can be determined not to meet the first condition, and the display screen of the electronic equipment is controlled to be kept working in the insensitive mode.
It should be noted that the present application does not limit how to control the display screen to operate in the sensitive mode and how to operate the display screen after entering the sensitive mode, since the content of the first condition in this application includes, but is not limited to, the preset application listed in this embodiment being in a foreground running state, the electronic device being operated in a gesture within the preset gesture range corresponding to the preset application, and the electronic device not being connected to an external device corresponding to the preset application, the content of the first condition can be adjusted according to the actual situation, the specific implementation method for detecting that the working state of the electronic equipment meets the first condition is correspondingly adjusted, for example, the content of the foregoing one or both aspects or in combination with other aspects is detected, the implementation method of the foregoing step S11 is not limited to the implementation manner described in the foregoing step S21 to step S25, and the present application is only schematically described by way of example.
Step S27, controlling the display screen of the electronic equipment to work in a non-sensitive mode;
step S28, when the display screen is in a sensitive mode, acquiring parameter change information corresponding to each of a plurality of sensitive detection areas in the display screen;
regarding the implementation process of step S28, reference may be made to the description of the corresponding parts in the foregoing embodiments, which is not described in detail in this embodiment.
Step S29, detecting whether corresponding parameter change information in a plurality of sensitivity detection areas meets a second condition; if yes, the process proceeds to step S210, and if not, step S211 is executed;
step S210, generating an approaching state event aiming at a display screen;
in combination with the above description about the deployment of the plurality of sensitive detection regions on the display screen, according to the above manner, after the parameter change information corresponding to each sensitive detection region is obtained, it may be detected whether the parameter change information satisfies a second condition, where the second condition may be a condition indicating that a body part of the user is close to the corresponding sensitive detection region, more specifically, a condition indicating that a distance between the body part of the user and the display screen of the corresponding sensitive detection region is smaller than a first threshold, and may also be referred to as a close condition, and a content of the second condition may be determined according to an information content included in the parameter change information.
According to the detection mode, whether the parameter change information corresponding to each sensitive detection area meets the second condition is detected, if the parameter change information corresponding to at least one sensitive detection area meets the second condition, and in combination with the description of the meaning expressed by the second condition, the body part of the user can be considered to be close to the display screen of the electronic equipment, and a close state event aiming at the display screen is generated. The generation and representation of the proximity status event are not described in detail herein.
Step S211, determining that the parameter change information corresponding to each of the plurality of sensitive detection areas does not meet a second condition within a preset time length, and generating a far-away state event for the display screen;
according to the analysis, it is determined that parameter change information corresponding to a part of sensitive detection areas acquired at the current moment does not satisfy a second condition, and parameter change information corresponding to another part of sensitive detection areas satisfies the second condition, which indicates that a body part of a user at the current moment is close to some sensitive detection areas of the display screen and is far away from other sensitive detection areas, because a plurality of sensitive detection areas on the display screen are often distributed on the same plane, the detection result indicates that the posture of the electronic equipment is changed, if a user uses a mobile phone to make a call, one end of a non-handset of the mobile phone is slightly far away from the face of the user, but one end of a handset of the mobile phone is still close to the face and the ear of the user, the scene may cause that parameter change information of a part of the sensitive detection areas satisfies the second condition, and parameter change information of another part of the sensitive detection areas does not satisfy the detection result of the second condition, however, in this scenario, the display of the electronic device is not actually completely away from the user's body (e.g., the user's face), and the generated state is still close to the event.
Based on the above, the parameter change information corresponding to each sensitive detection area obtained at the current moment is determined not to meet the second condition, it can be considered that the user's body part is far from the display screen of the corresponding sensitive detection area at the present moment, but this may be due to a change in the distance between the user's body part and the display screen caused by shaking, rather than the user's true intention of wanting the display screen to be far from the body part, therefore, in order to improve the detection reliability and accuracy of the state adjustment event, the method can delay a certain time and then report the detection result, that is, it is verified whether the parameter change information of each of the plurality of sensitive detection regions does not satisfy the second condition within the preset time period all the time, that is, the body part of the user is away from each of the sensitive detection regions within the preset time period all the time, and under such a condition, the away state event for the display screen is generated.
Specifically, since the parameter change information of each sensitive detection area changes as time advances, if the parameter change information acquired by any sensitive detection area at the first time after the current time meets the second condition, and the parameter change information acquired at the second time or the third time does not meet the second condition, it is indicated that the electronic device has a shaking event, that is, the display screen of the electronic device continuously and rapidly approaches the body part of the user, and the user does not really keep the display screen of the electronic device away from the body part of the user at the current time, and the electronic device does not determine the detected transient away event as the state away event and report the state away event, and can directly ignore data generated by the situation.
Therefore, in order to avoid the interference of the detection result that the body part of the user is away from the display screen for a short time in the detection process of the jitter event, in the embodiment of the present application, when the approach state event is generated, the historical parameter change information used for generating the adjacent historical state adjustment event or the detection result is deleted before the approach state event is generated, for example, after the approach state event is generated at the first time, whether the plurality of parameter change information obtained at the previous time (i.e., the current time described above) meets the detection result of the second condition or not and the historical parameter change information obtained and cached at the previous time are deleted, so that when the parameter change information corresponding to each sensitive detection area does not meet the second condition at the second time, the timing is restarted from the second time, and the process is advanced until it is determined that the parameter change information corresponding to each sensitive detection area does not meet the second condition within the preset time length, the application can generate the far-away state event aiming at the display screen
In step S212, the output state of the display screen is adjusted in response to the generated approach state event or the departure state event.
After the approach state event or the departure state event is generated according to the above, the electronic device may respond to the corresponding state adjustment event according to a preset adjustment rule for the output state of the display screen, so as to adjust the output state of the display screen.
For example, still taking the voice communication application as an example, in the process of carrying out voice interaction by a user holding the electronic device close to the face, the detection is performed in the manner described above, it is determined that the parameter change information of any sensitive detection area satisfies the second condition, an approach state event is generated, the electronic device responds to the approach state event, and the display screen of the electronic device can be controlled to be turned off, so that the electronic device does not respond to touch operation on the display screen any more in the period, and misoperation of the electronic device due to mistaken touch on the display screen when the display screen is in a bright screen state in the voice communication process of the user in the manner described above is avoided.
If the user is in the voice communication process, the electronic equipment is quickly close to the face after the display screen of the electronic equipment is temporarily far away from the face only due to hand shaking of holding the electronic equipment, and the electronic equipment is kept in a close state event and a far state event cannot be generated in the detection and analysis mode. Only when the user keeps the electronic equipment away from the face and keeps the preset duration, the electronic equipment generates a away state event according to the detected result, the electronic equipment responds to the away state event and can control the display screen to be bright, and at the moment, the user can continue to perform touch operation on the display screen of the electronic equipment.
It should be noted that, based on the use of other types of preset applications, the adjustment process of the output state of the display screen is similar, and the present application may be combined with the description of the corresponding parts of the above embodiments, and the detailed description of the present embodiment is not described here. In general, in response to the far state event and the near state event, the adjustment directions of the output states of the display screen are often opposite, such as the brightness adjustment manners of the on-screen and the off-screen, but not limited to the brightness adjustment manner of the display screen, and the adjustment of the enlargement and the reduction of the output contents of the display screen, which may be determined as the case may be.
To sum up, in this embodiment, it may be determined comprehensively from multiple aspects, such as the application type in the foreground operating state, the current posture of the electronic device, and the type of the connected external device, whether the operating state of the electronic device satisfies the first condition, that is, it is detected that the application in the foreground operating state in the electronic device is the preset application, and the current posture of the electronic device belongs to the preset posture range corresponding to the preset application, and when the electronic device is not connected to the external device corresponding to the preset application, it is determined that the operating state of the electronic device satisfies the first condition, the display screen of the electronic device is controlled to enter the sensitive mode to operate, and then the electronic device monitors whether the parameter change information of each of the plurality of sensitive detection regions of the display screen satisfies the second condition, if there is a sensitive detection region in which the parameter change information satisfies the second condition, a proximity status event may be generated that would determine that a body part of the user is proximate to a display screen corresponding to the sensitive detection region.
And under the condition that the parameter change information does not exist in the sensitive detection area which meets the second condition, the embodiment of the application detects the parameter change information which corresponds to the plurality of sensitive detection areas respectively, whether the second condition is not met within the preset time length all the time or not is judged, if yes, the far state event is generated, otherwise, the near state event is generated, and therefore the interference of the body part of the user to the continuous and quick approach of the body part of the user to the display screen, namely the shaking event to the adjustment of the output state of the display screen is eliminated. After it is determined that the approaching state event or the departing state event is generated in the above manner, adjustment of the output state of the display screen may be achieved in response to the event.
Referring to fig. 5, which is a schematic flow chart of yet another optional example of the output control method provided in the present application, this embodiment may be an optional detailed implementation method of the output control method provided in the foregoing embodiment, and mainly performs refinement on an implementation process of determining whether to generate a far-state event or a near-state event by determining whether parameter change information corresponding to each sensitive detection region satisfies a second condition, but is not limited to the detailed implementation method described in this embodiment. As shown in fig. 5, the method may include:
step S51, detecting that the working state of the electronic equipment meets a first condition, and controlling the display screen of the electronic equipment to work in a sensitive mode;
for the implementation process of step S51, reference may be made to the description of the corresponding parts in the above embodiments, and details are not repeated.
Step S52, acquiring capacitance change areas corresponding to a plurality of sensitive detection areas in a display screen;
in order to realize the distance detection between the body part of the user and the display screen of the electronic device, unlike the conventional distance sensor, the present embodiment will adopt the virtual distance sensor realized by the support of the algorithm logic to realize the distance detection. Specifically, for the capacitive display screen of the electronic device, the capacitance of the display screen can change due to the fact that the body part of the user is close to the display screen, and the area where the capacitance changes is increased gradually along with the reduction of the distance. Therefore, the virtual distance sensor can acquire the capacitance change areas corresponding to the predetermined sensitive detection areas respectively after the display screen enters a sensitive mode, namely the areas of the capacitance change areas occur in the display screen of the sensitive detection areas, and the specific acquisition process of the capacitance change areas is not detailed in the application.
In combination with the above description about the multiple sensitive sensing regions, the positions of the multiple sensitive sensing regions where the multiple sensitive sensing regions are disposed are not limited, in order to reliably determine the relative position relationship between the body part of the user and the display screen of the electronic device, if the multiple sensitive sensing regions are close to or far away from the display screen, the capacitance change of the display screen corresponding to the multiple sensitive sensing regions needs to be detected, the area of the display screen where the capacitance change occurs is counted and recorded as the area of the capacitance change, how the capacitance change of each sensitive sensing region is sensed by the capacitance change sensing unit is counted, and the implementation process of counting the area of the capacitance change is not detailed.
Step S53, detecting whether corresponding capacitance change areas in the multiple sensitive detection areas are larger than a first area threshold value, if so, entering step S54; if not, go to step S55;
step S54, generating an approaching state event aiming at the display screen;
in practical application of the embodiment, because the display screen operates in the sensitive mode, it is often able to respond to a small change, and a touch screen touch event (i.e., a ghost point) is more easily generated due to interference, so that the embodiment may require that after the capacitance change area is larger than a certain proportion of the sensitive detection area, it is determined that a body part of a user is close to (including being attached to) the display screen of the sensitive detection area, and an approaching state event for the display screen is generated. It can be seen that the first area threshold may be determined according to an area of a corresponding sensitive detection region, and specifically may be a certain proportion of the area of the sensitive detection region, and a specific proportion value is not limited.
Based on this, this embodiment can detect whether the display screen corresponding to each sensitive detection region has capacitance change, for the sensitive detection region having capacitance change, the capacitance change area of the display screen having capacitance change can be further counted, and then the capacitance change area is compared with the first area threshold, and if the capacitance change area is greater than the first area threshold, it can be determined that the corresponding sensitive detection region has a proximity event, that is, an event that a user body part is in proximity to the sensitive detection region. At which point the electronic device will generate a proximity status event for the display screen.
If the areas of the preset sensitive detection regions are different, the first area threshold value for each sensitive detection region can be determined according to a certain proportion by using the area of each sensitive detection region, namely, the corresponding first area threshold value is determined according to the area of each sensitive detection region, so that the obtained first area threshold values for different sensitive detection regions are different, and more reliable and accurate detection results can be obtained compared with the adoption of the unified first area threshold value.
It should be understood that, if the area between the multiple sensitive detection regions is the same, the present application may configure a first area threshold for the multiple sensitive detection regions, so as to compare the obtained capacitance change area of each sensitive detection region, and also ensure the reliability of the obtained detection result. It should be noted that the configuration of the first area threshold is not limited to the above-mentioned implementation of the embodiment.
Step S55, determining that the capacitance change areas corresponding to the multiple sensitive detection areas are not greater than a first area threshold value all the time within a preset time length, and generating a far-away state event aiming at the display screen.
According to the detection method described above, if the capacitance change areas corresponding to the plurality of sensitive detection regions are not greater than the corresponding first area threshold, it is described that each sensitive detection region is in a remote state at this time, that is, the body part of the user is away from the display screen at this time, but it cannot be determined whether the sensitive detection region is reliably away, a time delay is required, that is, a preset time duration, it is determined whether the sensitive detection region maintains the remote state unchanged, if the sensitive detection region maintains the remote state within the preset time duration, it can be considered that the sensitive detection region has a remote event, it is further determined that all the sensitive detection regions have a remote event, and the electronic device can generate a remote state event.
For each preset sensitive detection area of the electronic device, according to the above detection mode, the process of obtaining the comparison result between the capacitance change area corresponding to the sensitive detection area and the corresponding first area threshold may be equivalent to a process of detecting, by a virtual distance sensor, whether a body part of a user is close to or far from the corresponding sensitive detection area, so as to determine whether a far event or a near event occurs in the sensitive detection area. As analyzed above, it is determined that any one of the virtual distance sensors generates a proximity event, and the electronic device may determine to generate a proximity state event; and once a certain virtual distance sensor generates a close event within the preset time length, the electronic equipment continues to maintain the close event, and counts the maintaining time of the close event again according to the mode.
In step S56, the output state of the display screen is adjusted in response to the generated approach state event or the departure state event.
For a specific implementation process of step S56, reference may be made to the description of the corresponding parts in the foregoing embodiments, and details are not described in this embodiment.
In practical applications, if the output states of the display screen may include a first output state and a second output state, the electronic device may control the display screen to switch between the first output state and the second output state in response to the determined state adjustment event, where power consumption of the display screen in the first output state is smaller than power consumption of the display screen in the second output state, and if the preset application in the foreground running state is a voice call application (but not limited to this), the first output state may be a screen-off state, and the second output state may be a screen-on state, so that the display screen may be controlled to switch from the screen-on state to the screen-off state in response to the approach state event; conversely, the display screen may be controlled to switch from the off-screen state to the on-screen state in response to the off-state event, but is not limited thereto.
If the preset application in the foreground running state is a text display application, the application may specifically adjust the output state of the display screen by: the display state of the text displayed on the display screen, such as the font size, the font type, the font color, the background color, etc., is adjusted, which is not limited in the present application and may be determined as the case may be.
To sum up, in the embodiment of the present application, after the operating state of the electronic device meets the first condition, and the display screen is controlled to operate in the sensitive mode, the capacitance change areas corresponding to the multiple sensitive detection areas on the display screen may be obtained in real time, and whether the capacitance change area is greater than the corresponding first area threshold value is detected, so as to determine whether the corresponding sensitive detection area is approached by a user body part, and if the capacitance change area corresponding to any sensitive detection area is greater than the first area threshold value, the electronic device may generate an approaching state event, thereby implementing adjustment of the corresponding direction of the output state of the display screen; if the capacitance change areas corresponding to the sensitive detection areas are not larger than the first area threshold value, and the detection result is maintained for a preset time, a far-state event is generated, so that the adjustment of the corresponding direction of the output state of the display screen is realized, the user requirement is met, and the reliability of the running and application of the electronic equipment is ensured.
Based on the description of the above embodiments, the output control method provided by the present application will be explained below by taking an application scenario in which two virtual distance sensors capable of implementing a distance detection function are used to implement an automatic screen-off function in a voice call process as an example, and it should be understood that the application scenario to which the output control method provided by the present application is applied is not limited to the application scenario described below, and even in the application scenario, a manner of implementing the output control method is not limited to the implementation method described below, that is, the output control method described below and applied to the application scenario is an optional implementation method.
Assuming that two sensitive detection regions are arranged on the front surface of a display screen (i.e., a touch screen) of the electronic device and are recorded as a first sensitive detection region and a second sensitive detection region, the above description is combined with the use of a virtual distance sensor to implement the related description of the detection of the distance change between the body part of the user and the display screen, which is equivalent to that the first sensitive detection region and the second sensitive detection region of the embodiment are respectively provided with a virtual distance sensor, and the virtual distance sensor is used to independently detect the distance change between the display screen of the corresponding sensitive detection region and the body part of the user, thereby determining whether the body part of the user and the whole display screen of the electronic device are in a far state or a close state.
Specifically, referring to the flowchart shown in fig. 6, chip Firmware (TP IC Firmware) of a Touch Panel (TP) may detect whether capacitance of the Touch Panel changes, report an event that the capacitance changes to a driver (e.g., Kernel layer Kernel in fig. 6), and read event data, that is, capacitance change areas corresponding to different sensitive detection regions by the driver, in this embodiment, capacitance change areas of a first sensitive detection region and a second sensitive detection region may be obtained, and it is determined whether the detected capacitance change area is greater than a first area threshold of the corresponding sensitive detection region, and if there is a sensitive detection region that is greater than the first area threshold, it may be considered that a body part of the user is close to the sensitive detection region, and the sensitive detection region has an approaching event.
When the user makes a voice call, as shown in fig. 7a, the electronic device is picked up and the earphone part (which may be located in the first sensitive detection area) is brought close to the face of the user, in the approaching process, the voltage change area of the display screen of the first sensitive detection area is gradually increased, when the voltage change area detected at a certain time is larger than the corresponding first area threshold value, it is assumed that a proximity event has occurred in the first sensitive detection region, and in this case, as can be seen from the above description of the method for determining a proximity event, if it is determined that a proximity event has occurred in any one of the sensitive detection regions, the approach state event can be determined to occur on the whole display screen, the embodiment can not care whether the approach event occurs in the second sensitive detection area, when the approach event occurs in the first sensitive detection area, the approach state event aiming at the display screen can be directly reported.
In practical applications, if the application needs to further determine a relative positional relationship between the whole display screen of the electronic device and the body part of the user, for example, a display plane of the electronic device forms a certain included angle with the face of the user (as shown in fig. 7 a), or the display plane of the electronic device is approximately parallel to the face of the user (as shown in fig. 7 b), the embodiment of the application may also detect that a capacitance change area corresponding to the second sensitive detection region is larger than a corresponding first area threshold according to the above detection manner, determine the display screen of the user's face close to the second sensitive detection region, at this time, a close event also occurs in the second sensitive detection region, and then the electronic device may determine the relative positional relationship between the display screen and the face of the user based on a distribution positional relationship of the first sensitive detection region and the second sensitive detection region on the whole display screen, the specific implementation method of the present embodiment will not be described in detail.
It can be seen that, in the case that it is determined that a proximity state event occurs between the display screen and the face of the user, it may be that a proximity event occurs in the first sensitive detection area or the second sensitive detection area of this embodiment, or it may be that a proximity event occurs in both the first sensitive detection area and the second sensitive detection area, which is not limited in this application.
For the far-away state event between the display screen and the face of the user, in order to ensure the detection reliability of the far-away state event, in combination with the description of the corresponding part of the above embodiment, this embodiment needs to detect whether a far-away event occurs in each sensitive detection region, that is, whether the display screen of each sensitive detection region is far away from a body part of the user (this embodiment takes the face of the user as an example, but is not limited to the body part of the face). Specifically, the capacitance change areas of the first sensitive detection region and the second sensitive detection region are independently detected according to the above manner, and it is determined that there is no sensitive detection region in which the detected capacitance change areas are larger than the corresponding first area threshold, that is, the capacitance change areas of the first sensitive detection region and the second sensitive detection region are not larger than the corresponding first area threshold, and it can be considered that the first sensitive detection region and the second sensitive detection region are in a distant state at the corresponding moment, but this does not mean that the touch screen of the sensitive detection region is away from the event, possibly instantaneously.
In order to eliminate the above jitter event, in this embodiment, the remote status determined at a certain time is not reported, but delay detection is performed according to a preset delay time (that is, a preset time duration in the above embodiment, for example, 850ms and the like), and it is determined that the corresponding sensitive detection areas are maintained in the remote status within the preset time duration.
Then, the driving may be performed by reporting the obtained approaching state event or the obtained departing state event to a HAL (Hardware Abstraction Layer) through a non-contact sensor input device (e.g., a palm sensor input device in fig. 6), and encapsulating each sensitive sensing region into a virtual distance sensor through the HAL and a Framework Layer (application Framework Layer) on an upper Layer, so that the above-described detection process for each sensitive sensing region is equivalently implemented by using its corresponding virtual distance sensor.
As shown in fig. 6, when reporting an approaching state event, the driver only needs to have one virtual distance sensor to generate the approaching event; for reporting the far-away state event, all the virtual distance sensors are required to generate the far-away event, and the far-away state event can be determined to occur. It should be noted that, for the electronic device, more virtual distance sensors are deployed (that is, the number of deployed sensitive detection areas is greater than 2), the detection processes of the far and near events of the corresponding sensitive detection areas are similar, and detailed descriptions are not given in this application.
In some embodiments, in detecting whether the touch screen of each sensitive detection area is close to or far from the face of the user, typically, the face of the user is moving from the touch screen of the electronic device to close to and further away from the touch screen, therefore, after obtaining the capacitance change area corresponding to each sensitive detection area, or directly detecting whether the capacitance change area is smaller than a second area threshold value, if so, it can be considered that the touch screen of the sensitive detection area is maintained in a distant state from the face of the user at this moment, and, in the above-described manner, the event of reporting the sensitive detection area can be delayed for a preset time, and particularly, whether the sensitive detection area is maintained in a leaving state within the preset time can be detected, if the sensitive detection area is stably kept in the leaving state within 850ms, if yes, the sensitive detection area can be determined to have a leaving event; if the capacitance change area is not smaller than the second area threshold, the related data detected in the previous leaving state can be deleted, the touch screen of the sensitive detection area is considered to be in a close state with the face of the user, and the close event of the sensitive detection area is determined to occur.
Therefore, the method and the device can be used for detecting the states of the touch screen and the face of the user in each sensitive detection area based on the first area threshold or the second area threshold, and can be used for detecting different sensitive detection areas according to the same or different area thresholds, and the method and the device are not limited in the method and the device. The first area threshold is not smaller than the second area threshold, but the application does not limit the specific values of the two area thresholds.
In some embodiments of the present application, the critical value for determining the approaching or departing state between the user's face and a sensitive detection region may be the first area threshold or the second area threshold described in the above embodiments, or may be two area thresholds used to respectively determine an approaching state event and a departing state event, where a specific implementation process is different from the detection determination process described in the above embodiments, that is, the present application may pre-configure that the detected capacitance change area of one sensitive detection region is greater than a third area threshold, determine that the capacitance change area of the sensitive detection region meets the approaching condition, and generate the approaching event; and determining that the capacitance change area of each of the detected sensitive detection areas is smaller than a fourth area threshold value within a preset time period, and generating a far event when the capacitance change area of the sensitive detection area meets a far condition. And the fourth area threshold is smaller than the third area threshold, and the specific numerical value is not limited.
Based on the above, in the process that the touch screen of the electronic device continuously approaches the face of the user, when the detected capacitance change area gradually increases until the detected capacitance change area is larger than a third area threshold value, the face of the user is considered to approach the touch screen of the corresponding sensitive detection area, and an approach event of the sensitive detection area is generated; on the contrary, in the process that the touch screen of the electronic device is continuously close to the face of the user, the detected capacitance change area is gradually reduced until the detected capacitance change area is smaller than the fourth area threshold value, and when the detected capacitance change area is always smaller than the fourth area threshold value within the preset duration, the face of the user can be considered to be far away from the touch screen of the corresponding sensitive detection area, and a far-away event of the sensitive detection area is generated. Then, according to the above manner, the event categories corresponding to all the sensitive detection areas can be integrated to determine whether the state adjustment event for the touch screen is a close state event or a far state event, and the specific implementation process is not repeated.
Based on the output control method described in the foregoing embodiments, after the drive is completed to detect the approaching or departing event of each sensitive detection area, the drive may be directly reported to the Framework layer through the HAL layer, so as to determine whether the display screen of the electronic device has the approaching state event or the departing state event in the foregoing manner, so as to implement the determined state adjustment event, and implement adjustment of the output state of the display screen.
Specifically, still taking the above-mentioned voice call scenario in which the first sensitive detection area and the second sensitive detection area are deployed as an example for description, referring to a schematic flow diagram shown in fig. 8, and combining the detection methods of the respective states of the first sensitive detection area and the second sensitive detection area described in the above embodiments, after determining that an approaching event or a departing event occurs in each sensitive detection area, the event may be reported to the HAL layer through a non-contact palm recognition sensor input device of the sensitive detection area, which is equivalent to a non-contact palm recognition sensor (i.e., a virtual distance sensor) corresponding to the sensitive detection area, and the event is obtained and reported to a sensor management module of the Framework layer for analysis, at this time, the sensor management module may generate an event type (e.g., a departing event or an approaching event) for each sensitive detection area in accordance with the manner described in the above embodiments, and generating a close state event or a far state event aiming at the touch screen so as to realize the adjustment of the output state of the touch screen, such as controlling the touch screen to be on or off.
In addition, in this embodiment, a relative position relationship between a display screen of the electronic device and a face of the user, such as the face is located in the center of the touch screen, or is located to the left or right, may be determined according to an approaching event or a departing event of each sensitive detection area reported by each virtual distance sensor and a current posture of the voice call of the electronic device, and then the electronic device may determine a relative position between an ear of the user and an earpiece (i.e., a sound outlet of a speaker) according to the relative position, so as to adjust a sound output direction of the sound player according to the relative position, thereby improving experience of the user in the voice call process. It should be noted that, regarding the electronic device using the relative position relationship between the display screen of the electronic device and the face of the user, the other application functions that are satisfied are not limited to the sound playing function, and the function adjustment of the sound player is not limited to the adjustment of the sound output direction, which can be determined according to actual requirements, and the embodiments of the present application are not described in detail.
Based on the analysis of the foregoing embodiment, in the case that the preset application is a voice communication application, after parameter change information corresponding to each of a plurality of sensitive detection areas in a display screen is acquired, as shown in fig. 9, the method may further include, but is not limited to, the following steps:
step S91, detecting whether the parameter change information corresponding to each of the plurality of sensitive detection areas meets a second condition;
step S92, if the parameter change information corresponding to the sensitive detection area meets a second condition, generating an approach event aiming at the sensitive detection area;
step S93, if the parameter change information corresponding to the sensitive detection area does not meet the second condition all the time within the preset duration, generating a far event aiming at the sensitive detection area;
in combination with the above analysis, after the electronic device obtains the event categories generated for each of the plurality of sensitive detection regions, the electronic device may generate the state adjustment event for the display screen according to the event categories generated for each of the plurality of sensitive detection regions. As can be seen from the above description of the generation process of the state adjustment event, if the event category generated for any sensitive detection area includes a proximity event, the state adjustment event generated here is a proximity state event; if the event types generated for each of the plurality of sensitive detection areas are all far events, the state adjustment event generated here is a far state event.
Step S94 of determining a first relative position between the user' S face and the display screen of the electronic device using the event categories generated for each of the plurality of sensitive detection regions;
based on the description of the foregoing embodiment, the present application may respectively perform detection and analysis on parameter change information (such as the capacitance change area of the foregoing embodiment, but not limited thereto) of each sensitive detection region according to, but not limited to, several detection manners enumerated above, and determine that an event occurs in the sensitive detection region, which is not described in detail in this embodiment of the specific determination process, and the electronic device may determine the first relative position between the user's face and the display screen of the electronic device by using the event type occurring in each sensitive detection region.
For example, as shown in fig. 7a, according to the detection method, it may be determined that a first sensitive detection region is close to an event, and a second sensitive detection region is far from the event, and under the condition that the deployment position relationship between the first sensitive detection region and the second sensitive detection region is known, it may be known that the face of the user is close to the first sensitive detection region and far from the second sensitive detection region; if it is determined that a proximity event has occurred in both the first sensitive detection region and the second sensitive detection region, as shown in fig. 7b, it may be determined that the user's face is proximate to the entire display screen.
It should be understood that the greater the number of the sensitive detection areas deployed on the display screen, the more reliably and accurately the first relative position between the face of the user and the display screen of the electronic device can be determined in the above manner.
Step S95, obtaining the distribution information of the user' S organ and the position relation between the sound output area of the electronic equipment and the display screen;
step S96, determining a second relative position between the ear of the user and the sound output region using the first relative position, the positional relationship, and the current posture of the electronic device;
in combination with the above analysis, the sound output region may refer to the above earphone region, and in order to implement the adjustment of the sound output direction, the present embodiment needs to know the current relative position relationship between the user 'S ear and the sound output region, so that, after determining the first relative position between the user' S face and the display screen and determining the distribution relationship between the user 'S ear and the face according to the above manner, after determining the position relationship between the sound output region and the entire display screen, the present embodiment may determine the second relative position between the user' S ear and the sound output region according to the current posture of the electronic device, for example, the present embodiment does not limit the specific implementation method of the above step S96, the relative position representation mode listed in the embodiment is not limited, and may be determined as appropriate.
Step S97, adjusting configuration parameters of a sound player of the electronic device according to the second relative position, so that the sound player faces the ear of the user in the sound output direction of the sound output area.
In order to improve the reliability of the user hearing the sound content during the voice call, the present application proposes to adjust the configuration parameters of the sound player of the electronic device according to the current position of the ear of the user relative to the sound output area, such as the second relative position, so as to change the sound output direction, even the sound output volume, and improve the user experience. Thus, the configuration parameters may include, but are not limited to, the sound output direction, gain, etc. of the sound player, as the case may be.
It should be noted that, after determining the event category generated for each sensitive detection area and reporting the event category to the sensor management module of the application layer, the determination is not limited to determining the relative position relationship between the body part of the user and the entire display screen, and other application functions implemented by using the relative position relationship are not limited to the adjustment of the sound output direction described in the foregoing embodiment, and the determination may be determined according to the requirements of an actual application scenario, which is not described in detail in this application.
For the output control method described in each of the above embodiments, the obtained parameter change information corresponding to each of the plurality of sensitive detection regions in the display screen is not limited to the capacitance change area described in the above embodiments, and may also include a physical distance between the user body part and the display screen in the corresponding sensitive detection region detected by a conventional distance sensor, that is, for the plurality of sensitive detection regions deployed in the display screen, the conventional distance sensor may be deployed correspondingly, and the physical distance between the display screen corresponding to the sensitive detection region and the user body part is detected by using the plurality of distance sensors.
In this case, in the implementation process of how to generate the state adjustment event for the display screen according to the acquired multiple pieces of parameter change information described in the embodiment shown in fig. 2, the implementation step of detecting whether corresponding parameter change information in the multiple sensitive detection regions meets the second condition may specifically be: whether the corresponding physical distance in the multiple sensitive detection areas is smaller than a first distance threshold value or not is detected, and if the physical distance of at least one sensitive detection area is smaller than the first distance threshold value, a close state event aiming at the display screen can be generated.
If there is no sensitive detection area with a corresponding physical distance smaller than the first distance threshold, that is, the physical distances corresponding to all the sensitive detection areas are not smaller than the first distance threshold, in order to eliminate the shaking event, detection may be delayed, that is, whether the physical distance of each sensitive detection area obtained within a preset time period is always not smaller than the first distance threshold is detected, and if so, a far-away state event for the display screen may be generated. The specific value of the first distance threshold is not limited in this embodiment, and may be determined according to parameters such as performance and environment of the conventional distance sensor.
It should be noted that, the implementation manner for directly detecting the physical distance between the body part of the user and the display screen described in this embodiment is similar to the implementation manner for detecting the change in the distance between the body part of the user and the display screen according to the comparison result between the capacitance change area and the area threshold described in each embodiment, and the implementation process for determining the state adjustment event for the entire display screen according to the detection result (such as the determined event type, that is, the far event or the near event) respectively corresponding to each sensitive detection region may be determined, and reference may be made to the description of the corresponding part of the above embodiment, which is not repeated herein.
The driving can be performed by continuously reporting boolean values (e.g., true or false, 0 or 1, etc.) representing different states, so that the upper module determines the current far or near state of the sensitive detection region, but is not limited to this reporting mode.
In combination with the above analysis, it should be understood that, in the direct physical distance detection method described in this embodiment, two distance thresholds may also be set, which are respectively used to determine whether the distance physics corresponding to each sensitive detection area satisfies a far condition or a close condition, where the close condition may mean that the physical distance between the display screen of the corresponding sensitive detection area and the body part of the user is smaller than the second distance threshold; the far condition may mean that the physical distance between the display screen of the respective sensitive detection area and the body part of the user is larger than a third distance threshold, which is larger than the second distance threshold, but the specific values of the two distance thresholds are not limited.
In still other embodiments provided by the present application, for the output control method described in each of the above embodiments, for a plurality of sensitive detection areas deployed in a display screen, some of the sensitive detection areas may be selected to deploy a conventional distance sensor according to an actual situation, and another of the sensitive detection areas may be deployed with a virtual distance sensor, that is, by detecting a capacitance change area, a change in distance between the sensitive detection area and a user body part is determined. In this case, the parameter change information respectively corresponding to the plurality of sensitive detection areas in the display screen acquired by the electronic device may include: the specific detection process of the two types of parameter change information may refer to the description of the corresponding part of the above embodiment, and this embodiment is not described in detail.
Then, in the implementation process of how to generate the state adjustment event for the display screen according to the acquired multiple pieces of parameter change information described in the embodiment shown in fig. 2, the implementation step of detecting whether the multiple sensitive detection areas have corresponding parameter change information that meets the second condition may specifically include: detecting whether the capacitance change areas corresponding to the sensitive detection regions are larger than a first area threshold value or not, and detecting whether the physical distances corresponding to the sensitive detection regions are smaller than a first distance threshold value or not, wherein if any one of the obtained two detection results is yes, the corresponding parameter change information of at least one sensitive detection region meets a second condition, and a proximity state event can be generated; on the contrary, in the case that the obtained two detection results are both negative and the two detection results obtained within the preset duration are still both negative, it is described that no sensitive detection region meeting the second condition exists within the preset duration, the far-from-state event may be generated, and the specific detection process and the implementation process of the corresponding event may refer to the description of the corresponding part of the above embodiment, which is not described in detail in this embodiment.
It should be noted that, for the parameter change information content of each sensitive detection region obtained in the embodiment of the present application, the parameter change information content is not limited to the capacitance change area, the physical distance, and the like listed above, and may be determined according to an actual situation, and according to the above expansion manner, in a detection process of whether each sensitive detection region actually satisfies the second condition, the parameter change information may be implemented by using multiple parameter change information of the same category according to a preset detection manner, or may be implemented by using parameter change information of multiple categories, such as an implementation manner of combining a physical distance and a capacitance change area, which may be determined according to contents that the parameter change information may include, which is not described in detail in the present application.
Referring to fig. 10, a schematic structural diagram of an alternative example of the output control apparatus proposed in the present application, which may be applied to an electronic device, as shown in fig. 10, may include:
the detection control module 101 is used for detecting that the working state of the electronic equipment meets a first condition and controlling a display screen of the electronic equipment to work in a sensitive mode;
a parameter change information obtaining module 102, configured to obtain parameter change information corresponding to each of a plurality of sensitive detection areas in the display screen;
the parameter variation information may indicate a variation in a distance between the display screen of the corresponding sensitive detection region and the body part of the user, and specific contents included in the parameter variation information are not limited in this application, and it should be understood that, for parameter variation information of different contents, an obtaining manner of the parameter variation information, and an implementation manner of determining a variation in a distance between the display screen of the corresponding sensitive detection region and the body part of the user may be different, and specifically, but not limited to, the description of the corresponding part of the above embodiment may be referred to.
In an optional embodiment provided in the present application, the parameter change information obtaining module 102 may include:
the first detection unit is used for detecting whether the corresponding parameter change information in the plurality of sensitive detection areas meets a second condition;
the approach state event generating unit is used for generating an approach state event aiming at the display screen under the condition that the result of the first detecting unit is that the parameter change information corresponding to the plurality of sensitive detection areas meets a second condition;
and the far-away state event generating unit is used for generating a far-away state event aiming at the display screen under the condition that the result of the first detecting unit is that the parameter change information corresponding to the non-existing sensitive detecting areas meets the second condition and the parameter change information corresponding to the sensitive detecting areas does not meet the second condition all the time within the preset time length.
Specifically, in a possible implementation manner, if the parameter change information includes a capacitance change area of a display screen in the corresponding sensitive detection area, the first detection unit may include:
the capacitance change area detection unit is used for detecting whether the capacitance change areas corresponding to the sensitive detection areas are larger than a first area threshold value or not;
accordingly, the approach state event generating unit is specifically configured to generate an approach state event for the display screen when a capacitance change area corresponding to the presence-sensitive detection region is greater than a first area threshold.
The far-away state event generating unit is specifically configured to generate a far-away state event for the display screen under the condition that the capacitance change areas corresponding to the multiple sensitive detection areas acquired within the preset time are determined to be not greater than the first area threshold all the time.
If the parameter variation information includes a physical distance between the display screen and the body part of the user in the corresponding sensitive detection region, the first detection unit may include:
and the physical distance detection unit is used for detecting whether the corresponding physical distances of the plurality of sensitive detection areas are smaller than a first distance threshold value.
Accordingly, the approach state event generating unit is specifically configured to generate an approach state event for the display screen when the physical distance corresponding to the presence-sensitive detection area is smaller than the first distance threshold.
The far-away state event generating unit is specifically configured to generate a far-away state event for the display screen under the condition that the physical distances respectively corresponding to the plurality of sensitive detection regions acquired within the preset time length are always not smaller than the first distance threshold.
It should be understood that, for the sub-unit type included in the first detection unit, the sub-unit type may be determined according to the information type included in the parameter change information, that is, the sub-unit type may be formed by a capacitance change area detection unit, or a physical distance detection unit, or a combination of a capacitance change area detection unit and a physical distance detection unit, and the like, and the specific function implementation process may refer to the description of the corresponding part of the above embodiment.
A state adjustment event generating module 103, configured to generate a state adjustment event for the display screen according to the obtained multiple pieces of parameter change information;
the state adjustment event includes a far state event in which the body part of the user is far from the display screen, or a near state event in which the body part of the user is near to the display screen, and the specific generation modes and the implementation processes of the two state adjustment events may refer to the descriptions in the corresponding parts of the above embodiments.
In some embodiments, to avoid interference of the historical data with the subsequent event, the apparatus proposed by the present application may further include:
the historical information determining module is used for determining historical parameter change information which is cached in association with a historical state adjustment event generated adjacent to the state adjustment event;
and the historical information clearing module is used for clearing the historical parameter change information.
And an output state adjusting module 104, configured to adjust an output state of the display screen in response to the state adjusting event.
In some embodiments presented herein, the detection control module 101 may include:
the preset application detection unit is used for detecting whether the application in the foreground running state in the electronic equipment is a preset application or not;
the gesture detection unit is used for detecting whether the current gesture of the electronic equipment belongs to a preset gesture change range corresponding to the preset application or not under the condition that the detection result of the preset application detection unit is yes;
in one possible implementation, the gesture detection unit may include:
the attitude information acquisition unit is used for acquiring attitude information detected by an attitude sensor of the electronic equipment;
the attitude determination unit is used for determining the current attitude of the electronic equipment by utilizing the attitude information;
an included angle obtaining unit, configured to obtain an included angle between the electronic device in the current posture and a detection plane corresponding to the preset application;
and the included angle detection unit is used for detecting whether the included angle is smaller than an included angle threshold value or not.
The peripheral detection unit is used for detecting whether the electronic equipment is connected with external equipment corresponding to the preset application or not under the condition that the detection result of the posture detection unit is positive;
and the working state determining unit is used for determining that the working state of the electronic equipment meets a first condition and controlling the display screen of the electronic equipment to work in a sensitive mode under the condition that the detection result of the peripheral detection unit is negative.
In an optional embodiment, if the preset application in the foreground operating state is a voice communication application, the output state adjustment module 104 may include:
the state switching control unit is used for responding to a state adjusting event and controlling the display screen to switch between a first output state and a second output state, wherein the power consumption of the display screen in the first output state is smaller than the power consumption of the display screen in the second output state;
if the preset application in the foreground running state is a text display application, the output state adjusting module 104 may include:
and the state adjusting unit is used for responding to the state adjusting event and adjusting the display state of the text displayed on the display screen.
In some embodiments, as shown in fig. 11, the parameter change information obtaining module 102 may include:
a plurality of information obtaining units 1021, each for obtaining parameter change information corresponding to a corresponding sensitive detection area;
a plurality of state detecting units 1022, each for detecting whether the parameter variation information of the corresponding sensitive detection area satisfies a second condition;
accordingly, the state adjustment event generation module 103 may include:
a plurality of event analysis units 1031, each event analysis unit being configured to determine a type of event occurring in a corresponding sensitive detection area according to a detection result of a corresponding state detection unit;
a state event determining unit 1032, configured to generate a proximity state event for the display screen when a detection result of any one of the state detecting units is that the parameter change information of the corresponding sensitive detection area satisfies the second condition; and generating a far-away state event aiming at the display screen under the condition that the parameter change information of the corresponding sensitive detection areas in the preset time length does not meet the second condition in the detection results of the plurality of state detection units.
For the parameter change information including different information contents, the state event determining unit may refer to the description of the above embodiment, and details are not repeated.
Based on this, the state adjustment event generating module 103 in the above embodiment of the present application may include:
the information detection unit is used for detecting whether the parameter change information corresponding to the sensitive detection areas meets a second condition or not;
a first event generating unit, configured to generate an approach event for the sensitive detection area when a detection result of the information detecting unit is that the parameter change information corresponding to the sensitive detection area satisfies the second condition;
the second event generating unit is used for generating a far event aiming at the sensitive detection area under the condition that the detection result of the information detecting unit is that the parameter change information corresponding to the sensitive detection area does not meet a second condition all the time within a preset time length;
a third event generating unit, configured to generate a state adjustment event for the display screen according to an event category generated for each of the plurality of sensitive detection regions;
if the event type generated for any sensitive detection area comprises the approach event, the state adjustment event is an approach state event;
and if the event types generated by the sensitive detection areas are the far events, the state adjustment event is a far state event.
Further, in a case that the predetermined application is a voice communication application, the apparatus provided in the present application may further include:
a first relative position determination module for determining a first relative position between the face of the user and a display screen of the electronic device using the event categories generated for each of the plurality of sensitive detection regions;
the position relation acquisition module is used for acquiring the organ distribution information of the user and the position relation between the sound output area of the electronic equipment and the display screen;
a second relative position determining module, configured to determine a second relative position between the ear of the user and the sound output region by using the first relative position, the positional relationship, and a current posture of the electronic device;
and the configuration parameter adjusting module is used for adjusting configuration parameters of a sound player of the electronic equipment according to the second relative position, so that the sound player faces the ear of the user in the sound output direction of the sound output area.
It should be noted that, for various modules, units, and the like in the foregoing apparatus embodiments, all of which may be stored in a memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions, and for functions implemented by the program modules and their combinations and achieved technical effects, reference may be made to the description of corresponding parts in the foregoing method embodiments, and this embodiment is not described again.
The present application also provides a storage medium, on which a computer program can be stored, and the computer program can be called and loaded by a processor to implement the steps of the output control method described in the above embodiment.
Referring to fig. 12, a block diagram of an alternative example of an electronic device suitable for the output control method provided in the present application is shown, and in practical applications, the electronic device may include, but is not limited to, a smart phone, a tablet computer, a netbook, a Personal Digital Assistant (PDA), an e-book reader, and the like. The electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 12, the electronic device may include a display screen 121, at least one memory 122, and at least one processor 123, wherein:
the display screen 121, the at least one memory 122 and the at least one processor 123 may all be connected to a communication bus, and data communication between them is realized through the communication bus, and the specific implementation manner is not limited.
The memory 122 may be used to store programs that implement the output control methods described in the method embodiments; the processor 123 may be configured to load and execute the program stored in the memory 122 to implement the steps of the output control method described in the corresponding method embodiment, and the specific implementation process may refer to, but is not limited to, the contents described in the foregoing embodiments.
In the present embodiment, the memory 122 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device or other volatile solid-state storage device. The processor 123 may be a Central Processing Unit (CPU), an application-specific integrated circuit (ASIC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices.
With regard to the system Framework structure of the electronic device provided by the present application, reference may be made to the system Framework shown in fig. 6 and fig. 8, and with reference to the description of the corresponding embodiment, the processor may specifically be a processor of a kernel layer, and in some embodiments, the processor may further include a processor that implements sensor management of a Framework layer, which is not limited in this application and may be determined as the case may be.
It should be understood that the structure of the electronic device shown in fig. 12 does not constitute a limitation of the electronic device in the embodiment of the present application, and in practical applications, the electronic device may include more or less components than those shown in fig. 12, or may combine some components, such as at least one input device, e.g., a keyboard, a mouse, a camera, a microphone, etc., at least one output device, e.g., a speaker, a vibration mechanism, a lamp, etc., and various sensors, etc., which are not listed herein.
Finally, it should be noted that, in the present specification, the embodiments are described in a progressive or parallel manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device and the electronic equipment disclosed in the embodiment correspond to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An output control method, the method comprising:
detecting that the working state of the electronic equipment meets a first condition, and controlling a display screen of the electronic equipment to work in a sensitive mode;
acquiring parameter change information respectively corresponding to a plurality of sensitive detection areas in the display screen, wherein the parameter change information can indicate the distance change between the display screen of the corresponding sensitive detection area and the body part of the user;
generating a state adjustment event aiming at the display screen according to the acquired parameter change information, wherein the state adjustment event comprises a far state event that the body part of the user is far away from the display screen or a close state event that the body part of the user is close to the display screen;
and responding to the state adjustment event, and adjusting the output state of the display screen.
2. The method of claim 1, wherein generating a state adjustment event for the display screen according to the acquired parameter change information comprises:
detecting whether corresponding parameter change information in the plurality of sensitive detection areas meets a second condition;
if so, generating a proximity state event aiming at the display screen;
and if the parameter change information does not exist, determining that the parameter change information corresponding to the sensitive detection areas does not meet the second condition all the time within a preset time length, and generating a far-away state event aiming at the display screen.
3. The method of claim 2, wherein if the parameter change information comprises a capacitance change area of a display screen in the corresponding sensitive detection region;
the detecting whether the corresponding parameter change information exists in the plurality of sensitive detection areas and satisfies a second condition comprises:
detecting whether the corresponding capacitance change areas in the plurality of sensitive detection areas are larger than a first area threshold value;
the determining that the parameter change information respectively corresponding to the plurality of sensitive detection areas does not satisfy the second condition all the time within a preset time period includes:
and determining that the capacitance change areas respectively corresponding to the plurality of sensitive detection areas acquired within a preset time are not larger than the first area threshold all the time.
4. The method of claim 2, wherein if the parameter change information comprises a physical distance between a display screen and the user's body part within the corresponding sensitive detection area:
the detecting whether the corresponding parameter change information exists in the plurality of sensitive detection areas and meets a second condition comprises the following steps:
detecting whether there is a corresponding one of the physical distances in the plurality of sensitivity detection regions that is less than a first distance threshold;
the determining that the parameter change information respectively corresponding to the plurality of sensitive detection areas does not satisfy the second condition all the time within a preset time period includes:
and determining that the physical distances respectively corresponding to the plurality of sensitive detection areas acquired within a preset time length are not less than the first distance threshold all the time.
5. The method of claim 1, wherein generating a state adjustment event for the display screen according to the acquired parameter change information comprises: detecting whether the parameter change information corresponding to the sensitive detection areas meets a second condition or not;
if the parameter change information corresponding to the sensitive detection area meets the second condition, generating a proximity event aiming at the sensitive detection area;
if the parameter change information corresponding to the sensitive detection area does not meet the second condition within the preset time length, generating a far event aiming at the sensitive detection area;
generating a state adjustment event for the display screen according to the event category generated for each of the plurality of sensitive detection areas;
if the event type generated for any sensitive detection area comprises the approach event, the state adjustment event is an approach state event;
and if the event types generated by the sensitive detection areas are the far events, the state adjustment event is a far state event.
6. The method of claim 1, the detecting that an operational state of an electronic device satisfies a first condition, comprising:
detecting whether an application in a foreground running state in the electronic equipment is a preset application or not;
if yes, detecting whether the current posture of the electronic equipment is in a preset posture change range corresponding to the preset application;
if yes, detecting whether the electronic equipment is connected with external equipment corresponding to the preset application;
and if not, determining that the working state of the electronic equipment meets the first condition.
7. The method of claim 6, wherein the detecting whether the current posture of the electronic device falls within a preset posture variation range corresponding to the preset application comprises:
acquiring attitude information detected by an attitude sensor of the electronic equipment;
determining the current posture of the electronic equipment by utilizing the posture information;
acquiring an included angle between the electronic equipment in the current posture and a detection plane corresponding to the preset application;
and detecting whether the included angle is smaller than an included angle threshold value.
8. The method according to any one of claims 1 to 7, wherein the adjusting the display screen to be in the output state comprises:
controlling the display screen to be switched between a first output state and a second output state, wherein the power consumption of the display screen in the first output state is less than the power consumption of the display screen in the second output state; and/or the presence of a gas in the gas,
and adjusting the display state of the text displayed on the display screen.
9. An output control apparatus, the apparatus comprising:
the detection control module is used for detecting that the working state of the electronic equipment meets a first condition and controlling a display screen of the electronic equipment to work in a sensitive mode;
the parameter change information acquisition module is used for acquiring parameter change information corresponding to each of a plurality of sensitive detection areas in the display screen, and the parameter change information can indicate the distance change between the display screen of the corresponding sensitive detection area and the body part of the user;
a state adjustment event generating module, configured to generate a state adjustment event for the display screen according to the obtained multiple pieces of parameter change information, where the state adjustment event includes a far state event in which the body part of the user is far from the display screen, or a near state event in which the body part of the user is near to the display screen;
and the output state adjusting module is used for responding to the state adjusting event and adjusting the output state of the display screen.
10. An electronic device, the electronic device comprising:
a display screen;
a memory for storing a program for implementing the output control method according to any one of claims 1 to 8;
a processor for loading and executing the program stored in the memory to implement the steps of the output control method according to any one of claims 1 to 8.
CN202010661849.9A 2020-07-10 2020-07-10 Output control method and device and electronic equipment Active CN111796749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010661849.9A CN111796749B (en) 2020-07-10 2020-07-10 Output control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010661849.9A CN111796749B (en) 2020-07-10 2020-07-10 Output control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111796749A CN111796749A (en) 2020-10-20
CN111796749B true CN111796749B (en) 2022-07-26

Family

ID=72810750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010661849.9A Active CN111796749B (en) 2020-07-10 2020-07-10 Output control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111796749B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5906878B2 (en) * 2012-03-27 2016-04-20 富士ゼロックス株式会社 Power supply control device, image processing device, power supply control program
TWI578295B (en) * 2014-04-21 2017-04-11 緯創資通股份有限公司 Display and brightness adjusting method thereof
CN104199644A (en) * 2014-08-13 2014-12-10 联想(北京)有限公司 Information processing method and electronic equipment
CN111124328A (en) * 2018-11-01 2020-05-08 中兴通讯股份有限公司 Display mode switching method and terminal equipment
CN110989852B (en) * 2019-10-15 2021-11-05 荣耀终端有限公司 Touch screen, electronic equipment and display control method

Also Published As

Publication number Publication date
CN111796749A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
US11169703B2 (en) Method for displaying graphical user interface and mobile terminal
US11307733B2 (en) Always on display method and electronic device
EP2398286B1 (en) Method for power management of mobile communication terminal and mobile communication terminal using this method
US10720791B2 (en) Charging method, charging device and terminal
CN106155557B (en) A kind of virtual key display methods and mobile terminal
US9141224B1 (en) Shielding capacitive touch display
KR20220092937A (en) Screen display control method and electronic device
CN108920059A (en) Message treatment method and mobile terminal
WO2021057654A1 (en) Screen touch management method, smart terminal, device, and readable storage medium
US11507143B2 (en) Electronic device including a plurality of displays and method for operating same
CN108572767A (en) A kind of method in determining external object orientation, mobile terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
US11750727B2 (en) Electronic device including a plurality of displays and method for operating same
CN111796749B (en) Output control method and device and electronic equipment
CN109002339A (en) touch operation method, device, storage medium and electronic equipment
WO2023246714A1 (en) State determination method and apparatus, electronic device, and readable storage medium
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN112199005A (en) Content display method, content display device, storage medium and mobile terminal
KR20150016401A (en) Method and apparatus for providing event of portable device having flexible display unit
KR101744612B1 (en) Method and apparatus for providing event of portable device having flexible display unit
KR101584615B1 (en) Method and apparatus for providing event of portable device having flexible display unit
CN109672242B (en) Terminal charging control method and device and storage medium
KR101910162B1 (en) Method and apparatus for providing event of portable device having flexible display unit
KR20200036833A (en) Method and apparatus for providing event of portable device having flexible display unit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant