CN106055097B - Bright screen control method and device and electronic equipment - Google Patents

Bright screen control method and device and electronic equipment Download PDF

Info

Publication number
CN106055097B
CN106055097B CN201610348342.1A CN201610348342A CN106055097B CN 106055097 B CN106055097 B CN 106055097B CN 201610348342 A CN201610348342 A CN 201610348342A CN 106055097 B CN106055097 B CN 106055097B
Authority
CN
China
Prior art keywords
preset
value
screen
electronic equipment
time period
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
CN201610348342.1A
Other languages
Chinese (zh)
Other versions
CN106055097A (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.)
Beijing Sogou Intelligent Technology Co Ltd
Original Assignee
Beijing Sogou Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Intelligent Technology Co Ltd filed Critical Beijing Sogou Intelligent Technology Co Ltd
Priority to CN201610348342.1A priority Critical patent/CN106055097B/en
Publication of CN106055097A publication Critical patent/CN106055097A/en
Application granted granted Critical
Publication of CN106055097B publication Critical patent/CN106055097B/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/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Abstract

The invention relates to the technical field of electronics, and discloses a bright screen control method, a bright screen control device and electronic equipment, which are used for solving the technical problem that gestures of a user cannot be effectively detected when the user is in a motion state in the prior art. The method comprises the following steps: determining a motion amplitude value of the electronic equipment within a first preset time period; carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value; judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result; and determining whether to control the screen to enter the lighting state or not based on the first judgment result. The bright screen control method and device and the electronic equipment can effectively detect gestures generated by a user aiming at the electronic equipment in the motion process.

Description

Bright screen control method and device and electronic equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a bright screen control method and device and electronic equipment.
Background
In the prior art, the acceleration sensor arranged on the intelligent watch can automatically sense the action of a user for looking up the intelligent watch, so that the screen is lightened, the user does not need to press keys to operate, the action of the user for putting down the hand can be sensed automatically, the backlight lamp of the screen is turned off, and the power consumption is saved.
Generally, the act of looking up the smart watch by raising one's hand can be broken down into two consecutive acts: however, when the user is in a motion state, the user does not have a stationary process, and therefore, the gesture generated by the user cannot be effectively detected through the hand-raising motion and the stationary motion.
Disclosure of Invention
The invention provides a bright screen control method and device and electronic equipment, and aims to solve the technical problem that gestures of a user cannot be effectively detected when the user is in a motion state in the prior art.
In a first aspect, an embodiment of the present invention provides a bright screen control method, including:
determining a motion amplitude value of the electronic equipment within a first preset time period;
carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
Optionally, the first preset time period includes: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period.
Optionally, the method further includes:
judging whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a second preset time period before the first preset time period;
and if the motion amplitude value is not smaller than the preset amplitude value, executing the step of determining the motion amplitude value of the electronic equipment within a first preset time period.
Optionally, the method further includes:
if the motion amplitude value is smaller than the preset amplitude value, acquiring a waveform of an acceleration value of the electronic equipment within a third preset time period;
matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment meeting the screen-lighting condition;
determining whether to control a screen of the electronic device to enter a lighting state based on the matching result;
and if the waveform of the acceleration value is matched with a preset waveform, controlling the screen to enter the lighting state.
Optionally, the determining whether to control the screen of the electronic device to enter the lighting state further includes:
acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is less than the third preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a second judgment result;
determining whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
Optionally, the determining whether to control the screen of the electronic device to enter a lighting state based on the matching result further includes:
judging whether a lighting operation of controlling the screen to carry out the lighting state based on waveform matching exists in a fifth preset time period before the third preset time period;
if the lighting operation exists, judging whether a rotation angle value of the screen relative to the user direction is larger than a preset angle value or not, and obtaining a third judgment result, wherein the rotation angle value is the rotation angle value of the screen relative to the user direction from the time point of the lighting operation to the current time point;
determining whether to control the electronic device to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
Optionally, the variation of the acceleration value in at least one coordinate axis direction in the preset waveform is greater than the preset variation.
Optionally, the determining whether to control the screen to enter the lighting state further includes:
acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a first preset angle range or not to obtain a fourth judgment result;
determining whether to control the screen to enter the lighting state based on the fourth judgment result;
and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
Optionally, the obtaining the rotation angle value of the electronic device includes:
if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; determining a rotation angle value of the screen based on the acceleration values in the three coordinate axis directions; alternatively, the first and second electrodes may be,
if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
Optionally, if the rotation angle value includes: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; and/or the presence of a gas in the gas,
if the angle of rotation value includes: and if the motion amplitude value is smaller than a preset amplitude value, a first preset angle range corresponding to the pitch angle comprises: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value, the first preset angle range corresponding to the pitch angle comprises: -15 to 90.
Optionally, the method further includes:
after the electronic equipment is controlled to enter the lighting state, acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a second preset angle range or not;
and if the screen is positioned in the second preset angle range, controlling the screen to enter a turning-off state.
In a second aspect, an embodiment of the present invention provides a bright screen control device, including:
the first determining module is used for determining the motion amplitude value of the electronic equipment within a first preset time period;
the smoothing module is used for smoothing the motion amplitude value to obtain a smoothed motion amplitude value;
the first judgment module is used for judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not and obtaining a first judgment result;
and the second determining module is used for determining whether to control the screen to enter the lighting state or not based on the first judgment result.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes instructions for:
determining a motion amplitude value of the electronic equipment within a first preset time period;
carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
The invention has the following beneficial effects:
in the embodiment of the invention, the motion amplitude value of the electronic equipment in a first preset time period is determined firstly; then, smoothing the motion amplitude value to obtain a smoothed motion amplitude value; then judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result; and finally, determining whether to control the screen to enter the lighting state or not based on the first judgment result. In general, if a user looks at the smart watch during a movement, the movement amplitude of the user tends to become low, and therefore gestures generated by the user for the electronic device during the movement can be effectively detected through changes of the movement amplitude value.
Drawings
FIG. 1 is a flowchart of a method for controlling a bright screen according to an embodiment of the present invention;
fig. 2 is a structural diagram of a smart watch in the bright screen control method according to the embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a waveform of an acceleration value of an electronic device detected in a bright-screen control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a motion amplitude curve in the bright screen control method according to the embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling a screen to enter a lighting state when a user is in a static state in the bright screen control method according to the embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for controlling a screen of an electronic device to enter a lighting state according to a rotation angle value of the electronic device in the bright screen control method according to the embodiment of the present invention;
FIG. 7 is a block diagram of a bright screen control apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of an electronic device illustrating one method of bright screen control implemented in accordance with an exemplary embodiment;
fig. 9 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
The invention provides a bright screen control method, a bright screen control device and electronic equipment, and aims to solve the technical problem that a detection mode of raising a hand to light a screen in the prior art has long time delay.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
firstly, determining a motion amplitude value of the electronic equipment within a first preset time period; then, smoothing the motion amplitude value to obtain a smoothed motion amplitude value; then judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result; and finally, determining whether to control the screen to enter the lighting state or not based on the first judgment result. In general, if a user looks at the smart watch during a movement, the movement amplitude of the user tends to become low, and therefore gestures generated by the user for the electronic device during the movement can be effectively detected through changes of the movement amplitude value.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
In a first aspect, an embodiment of the present invention provides a method for controlling a bright screen, please refer to fig. 1, including:
step S101: determining a motion amplitude value of the electronic equipment within a first preset time period;
step S102: carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
step S103: judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result;
step S104: and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
For example, the solution is applied to an electronic device including a screen, such as: smart watches, bracelets, cell phones, tablet computers, and the like. As shown in fig. 2, a schematic structural diagram of a smart watch is shown, which includes: the system comprises an acceleration sensor, a microcontroller connected with the acceleration sensor and an AP (Application Processor) connected with the microcontroller, wherein the acceleration sensor detects an acceleration value of the electronic equipment and then sends the acceleration value to the microcontroller through a bus (for example, an I2C bus), the microcontroller judges whether a gesture (for example, a hand-lifting screen-watching gesture, a hand-turning screen-off gesture and the like) for controlling a screen is generated by a user or not by processing the acceleration value, if the corresponding gesture is generated, a control instruction corresponding to the gesture is generated, and then the control instruction is sent to the AP, so that the control of the lighting state and the lighting-off state of the screen is realized.
In step S101, the first preset time period is, for example: the time duration that the user needs to spend in generating the hand-raising and screen-viewing gesture in the motion state is, for example: 1s, 2s, 3s, etc.
In step S101, for example, a waveform of an acceleration value of the electronic device may be determined first, for example: the acceleration sensor continuously detects acceleration values of the electronic device in each coordinate axis direction, and then a corresponding waveform can be obtained for each coordinate axis direction, and a coordinate system of the electronic device includes: the X axis, the Y axis and the Z axis are arranged in the horizontal direction of a screen of the electronic equipment, the geometric center of the screen is used as an original point, the X axis is arranged from left to right, the Y axis is arranged from inside to outside, and the Z axis is arranged from bottom to top. When the screen is horizontally and upwards static, the z axis has an output of gravity acceleration, which is recorded as 1g, g is a gravity acceleration unit, and 1g is approximately equal to 9.8m/s2 due to the action of gravity acceleration. The obtained waveform diagrams in the three coordinate axis directions are shown in fig. 3, for example, in which the ordinate indicates the acceleration value (in units of g) and the abscissa indicates the sample point number in fig. 3. Of course, the waveform obtained may be different based on the motion state of the electronic device, and embodiments of the present invention are not illustrated in detail and are not limited.
Then, estimating the motion amplitude value of the electronic equipment through a differential operation, wherein the estimation method comprises the following steps:
A(n)=|x(n)-x(n-1)|+|y(n)-y(n-1)|+|z(n)-z(n-1)|
………………………………[1]
wherein n represents the current sample point and n-1 represents the last sample point;
a (n) represents the motion amplitude value of the current sample point;
x (n) represents an acceleration value of the X axis of the current sampling point;
x (n-1) represents the acceleration value of the X axis of the last sampling point;
y (n) represents an acceleration value of the Y axis of the current sampling point;
y (n-1) represents the acceleration value of the Y axis of the last sampling point;
z (n) represents an acceleration value of the Z axis of the current sampling point;
z (n-1) represents the acceleration value of the Z axis of the last sampling point.
Of course, the motion amplitude value of the electronic device may also be estimated by other ways, and the embodiment of the present invention is not illustrated in detail and is not limited.
In step S102, the motion amplitude value may be smoothed by various algorithms, such as: additive smoothing algorithms, interpolation smoothing algorithms, turing smoothing algorithms, and the like. The smoothing process may adopt a long smoothing mode or a short smoothing mode, and the smoothing algorithm is, for example:
s(n)=α·s(n-1)+(1-α)·A(n),0≤α≤1
………………………………[2]
wherein, alpha represents a smoothing coefficient, and the larger the alpha value is, the longer the corresponding smoothing duration is;
s (n) represents the smoothing result of the nth sample point;
s (n-1) represents the smoothing result at the n-1 th point.
The smoothing method has the advantages of small operand and no need of caching a large amount of data, and can save the memory consumption. Since the amplitude of the acceleration value of the electronic device changes greatly during the movement of the user, in order to achieve a good smoothing effect, the movement amplitude value is often smoothed by a long smoothing method, for example, α may be 0.975 to 1-1/40, which is long smoothing (smoothing length is 40 sampling points), in the actual processing, the smoothing length may be 20-100, or 20-1000 sampling points, which are long smoothing, may be considered, and the obtained smoothing coefficients are different based on the difference in the number of sampling points, which is not limited in the embodiment of the present invention.
In step S103, the motion state of the electronic device meeting the bright screen condition may be a plurality of motion states, for example: a motion state where the motion + is stationary (corresponding to a hand-up motion where the user is in a stationary state), a motion state where the motion + motion speed becomes slow (corresponding to a hand-up motion where the user is in a motion state), and the like. Therefore, based on the difference of user gestures meeting the screen-lighting condition and the difference of preset variation trends, taking the hand-raising and screen-lighting gesture (motion state with slow motion speed) generated when the user gesture is in the motion state as an example, the motion amplitude value usually rises to a certain amplitude and then keeps steady (corresponding to the motion process of the user), and then continuously falls to a certain amplitude and then keeps steady (corresponding to the hand-raising process of the user), so the first preset time period includes, for example: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period. The first sub-time period is a time period corresponding to user movement and no hand raising, and the user is in a movement state in the time period, so that the movement amplitude value of the electronic equipment is in a growth state; the second sub-time period is a time period corresponding to the user movement and the hand-up viewing screen, and in this case, the movement amplitude of the user tends to be reduced, so that the movement amplitude value of the electronic device is in a reduced state.
Taking a hand-raising and screen-lighting gesture (motion state in which the motion speed is slowed) generated when the user gesture is in the motion state as an example, the preset change trend is, for example: the movement trend that is not changed first and then gradually increases, and the like, of course, the preset change trend may also be other preset change trends, and the embodiments of the present invention are not listed in detail and are not limited.
In the specific implementation process, whether the motion amplitude value meets the preset variation trend can be determined in various ways, and two of them are listed below for description, but, of course, in the specific implementation process, the method is not limited to the following two cases.
The judgment mode is as follows: determining a motion amplitude curve in the first preset time period based on the motion amplitude values of all points in the first preset time period, judging whether the motion amplitude curve has a trend of increasing first and then decreasing, and if so, determining that the variation of the motion amplitude values meets the preset variation trend. As shown in fig. 4, where the portion shown in the oval 40 is the waveform of the acceleration value when the user is in the running state, the portion shown in the oval 41 is the waveform of the acceleration value when the user raises his/her hand to view the screen after being in the running state, and the waveform 42 is the curve of the exercise amplitude value after the smoothing processing, where it can be determined whether there is a trend of increasing first and then decreasing in the portion of the waveform 42 within a first preset time period, and if so, it is determined that the variation amount of the exercise amplitude value satisfies the preset variation trend.
Judging mode II: the method comprises the steps of acquiring a preset number of sampling points (such as 10, 12 and the like) from the motion amplitude value of the electronic equipment, then determining the sampling point with the highest value (such as 7 th sampling point), judging whether the motion amplitude values of other sampling points before the sampling point are all smaller than the motion amplitude value of the sampling point, judging whether the motion amplitude values of other sampling points after the sampling point are all larger than the motion amplitude value of the sampling point, and if the judgment result is yes, determining that the variation of the motion amplitude value meets a preset variation trend.
In step S104, if the first determination result is yes, it indicates that the motion state of the electronic device satisfies the lighting condition of the screen, if no other lighting condition exists, the screen of the electronic device may be directly controlled to enter the lighting state, and if other lighting condition exists, the screen of the electronic device is controlled to enter the lighting state only when the other lighting condition is also satisfied.
In a specific implementation process, whether a user generates a screen-up gesture can be directly determined through a motion amplitude value of the electronic device, and then whether the screen of the electronic device is controlled to enter a lighting state is determined, but in a general case, when the user generates a hand-up and screen-viewing gesture in a static state and a hand-up and screen-viewing gesture in a motion state, the motion states of the electronic device are different, so that the motion states of the electronic device meeting the screen-up condition can be different motion states based on whether the electronic device is in the motion state. For example: judging whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a second preset time period before the first preset time period; and if the motion amplitude value is not smaller than the preset amplitude value, executing the step of determining the motion amplitude value of the electronic equipment within a first preset time period.
The second preset time period is, for example: 1s, 2s, etc., and the predetermined amplitude values are, for example: 0.01g, 0.02g, etc., wherein whether the motion amplitude value of the electronic device is smaller than a preset amplitude value can be determined by the sum of the absolute values of the differences in acceleration values in the three coordinate axis directions, for example: if the sum of the absolute values of the acceleration value differences is within the preset numerical range, the motion amplitude value is smaller than the preset amplitude value, otherwise, the motion amplitude value is not smaller than the preset amplitude value, and the like. If the motion amplitude value is not smaller than the preset amplitude value, the situation that the user possibly lifts up to see the screen in the motion state is shown, in this case, no static action exists, so that no obvious feature exists in the waveform of the acceleration value, but the motion amplitude value of the user is reduced because the user looks at the screen of the electronic device, so that whether the user generates a control gesture for the electronic device in the motion process can be accurately determined through the change of the motion amplitude value. Wherein the preset value range is usually about 1, for example: 0.8 to 1.2, 0.7 to 1.2, and the like. If the second judgment result is yes, the electronic equipment can be further confirmed to be in the static state.
In this case, as an alternative embodiment, please refer to fig. 5, it can be determined whether to control the screen of the electronic device to enter the lighting state by the following method:
step S501: if the motion amplitude value is smaller than the preset amplitude value, acquiring a waveform of an acceleration value of the electronic equipment within a third preset time period;
step S502: matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment meeting the screen-lighting condition;
step S503: based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
In step S501, how to obtain the waveform of the acceleration value of the electronic device is described above, and therefore, the details are not repeated herein.
In a specific implementation process, the third preset time period is, for example: the time period corresponding to the user completing the preset operation is usually an operation satisfying the bright screen condition (for example, the time spent by the user in the hand-lifting action in the static state), and the time period is, for example: 0.2s, 0.1s, 0.3s, and so on, and the duration of the third preset time period may be the same as or different from the first preset time period, and the embodiment of the present invention is not limited. Wherein after obtaining the waveform of the acceleration value of the electronic device, the waveform within a third preset time period may be obtained at preset time intervals (e.g., 0.1s, 0.2s, etc.), and then the subsequent steps may be performed based on the waveform.
In step S502, when the motion amplitude value of the user is smaller than the preset amplitude value (for example, the user is in a stationary state), the motion state of the electronic device meeting the screen-lighting condition may be a plurality of motion states, which may further result in different preset waveforms. For example: if the motion state of the electronic equipment corresponding to the bright screen condition is a motion state plus a static motion state, the motion state of the electronic equipment is generated firstly and then the motion state is static for a sampling user, an acceleration value of the electronic equipment is detected and obtained in the process that the user generates the motion, a waveform corresponding to the acceleration value is a preset waveform, and under a normal condition, each coordinate axis contains a preset waveform, so that if the coordinate axes comprise an X axis, a Y axis and a Z axis, the preset waveform comprises the preset waveform of the X axis, the preset waveform of the Y axis, the preset waveform of the Z axis and the like. In the preset waveform, the variation of the acceleration value of at least one coordinate axis direction (such as an X axis, a Y axis, a Z axis and the like) is larger than a preset variation value, the preset variation value is, for example, 0.5g, 0.4g, 1g and the like, taking the example shown in fig. 3, in the preset waveform, a part shown in an ellipse 30 in the preset waveform indicates that the electronic equipment is in a static state (such as a user standing upright), a part shown in an ellipse 31 indicates that the electronic equipment is in a motion state (such as the user lifting up his hand), a part shown in an ellipse 32 indicates that the electronic equipment is in a static state (such as a user viewing a screen), when the user standing upright, the acceleration value of the X axis is close to-1 g, and the acceleration value of the Z axis is close to 0; in the process of lifting hands of a user, X, Y, Z triaxial output has large-amplitude change, namely the change quantity is larger than a preset change value; in the process of viewing the screen by the user, the output of an x axis is close to 0, and the output of a z axis is close to 1 g; for other motion states, the preset waveform is obtained in a similar manner, and therefore, the details are not repeated herein.
If the matching result shows that the waveform of the acceleration value matches the preset waveform, it is often indicated that the motion state of the electronic device satisfies the screen-lighting condition, in this case, the screen of the electronic device may be directly controlled to enter a lighting state, where the matching of the waveform of the acceleration value and the preset waveform is, for example: the waveforms on at least one coordinate axis can be completely matched with the corresponding preset waveforms, or the waveforms on all the coordinate axes can be completely matched with the corresponding preset waveforms, and the like. In order to detect the motion state of the electronic device more accurately, whether to control the screen of the electronic device to enter the lighting state may be further determined by some subsequent conditions, which are described below.
First, the determining whether to control the screen of the electronic device to enter a lighting state further includes:
acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is less than the third preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a second judgment result;
determining whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
For example, the fourth preset time period is, for example: 0.01s, 0.02s and the like, which are time periods generally corresponding to a portion of the third preset time period that is close to the end, and if the motion state of the electronic device meeting the bright screen condition is a motion state of motion + rest, the fourth preset time period is a time period generally corresponding to the electronic device being rest; if the motion state of the electronic device meeting the screen-lighting condition is a motion state of motion + reduced motion speed, the fourth preset time period is often a time period corresponding to reduced motion speed of the electronic device, and so on.
Also, the screen of the electronic device may be directly controlled to enter the lighting state when the sum of squares is within the preset numerical range, and the screen of the electronic device may be controlled to enter the lighting state in a case where the lighting conditions of the respective screens are satisfied if other screen lighting conditions exist.
The process of determining whether the square sum is within the preset value range may be performed after the matching result in step S502 indicates that the waveform of the acceleration value is matched with the preset waveform, or may be performed simultaneously with the waveform matching, or performed before the waveform matching, which is not limited in the embodiment of the present invention.
Second, the determining whether to control the screen of the electronic device to enter a lighting state further includes:
judging whether a lighting operation of controlling the screen to carry out the lighting state based on waveform matching exists in a fifth preset time period before the third preset time period;
if the lighting operation exists, judging whether a rotation angle value of the electronic equipment relative to the user direction is larger than a preset angle value or not, and obtaining a third judgment result, wherein the rotation angle value is the rotation angle value of the screen relative to the user direction from the time point of the lighting operation to the current time point;
determining whether to control the electronic device to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
For example, the fifth preset time period is, for example: 2s, 3s, 5s, etc., wherein, in general, the user does not view the screen of the electronic device twice at the same time for a very short period of time, so if there has been an operation of lighting the screen by means of waveform matching within a fifth preset period of time, there is a possibility that an erroneous operation (for example, the user places the hand on the table) is made even if the waveform of the currently detected acceleration value matches the preset waveform, so to prevent the erroneous operation, a further trigger condition (for example, whether the rotation angle value of the screen with respect to the user direction is larger than the preset angle value) may be set, if the angle value is greater than the preset angle value, it indicates that the user really wants to light the screen of the electronic device, so that the screen of the electronic device is controlled to enter a lighting state, and the preset angle value may be set according to actual requirements, for example: 20 °, 30 °, 40 °, etc. Wherein the rotation angle value with respect to the user direction being greater than the preset angle value means that the screen is turned inward, and the rotation angle value along the X-axis (in accordance with the right-hand rule) is greater than the preset angle value (for example, 30 °).
Also, when the third determination result is yes, the screen of the electronic device may be directly controlled to enter the lighting state, and if a plurality of lighting conditions exist, the screen of the electronic device may be controlled to enter the lighting state only when each lighting condition is satisfied.
As an alternative embodiment, the determining whether to control the screen to enter the lighting state, referring to fig. 6, further includes:
step S601: acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
step S602: judging whether the rotation angle value is within a first preset angle range or not to obtain a fourth judgment result;
step S603: determining whether to control the screen to enter the lighting state based on the fourth judgment result; and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
In step S601, the rotation angle values may include rotation angle values corresponding to coordinate axis directions, and the preset reference objects may also be different based on different corresponding coordinate axis directions, for example: if the rotation angle value is the rotation angle value in the X-axis direction, the preset reference object is, for example, a plane formed by the Y-axis and the Z-axis, and the rotation angle in the X-axis direction is a pitch angle theta; if the rotation angle value is the rotation angle value in the Y-axis direction, the preset reference object is, for example, a plane formed by an X-axis and a Z-axis, and the rotation angle in the Y-axis direction is a roll angle; if the rotation angle value is a rotation angle value in the Z-axis direction, the preset reference object is, for example: the plane formed by the X axis and the Y axis, etc.
In the specific implementation process, the manner of determining the rotation angle value is different based on the difference of the motion state of the user, and two of them are listed below for description, and of course, in the specific implementation process, the method is not limited to the following two cases.
Firstly, if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; and determining the rotation angle value of the screen based on the acceleration values in the three coordinate axis directions. The second preset time period is usually smaller than the first preset time period (or the third preset time period), and is a time period corresponding to the fast ending part of the two, and is, for example: 0.01s, 0.02s, etc. In general, if the motion amplitude value is smaller than the preset amplitude value, the difference between the acceleration value before and after smoothing is not large, and in this case, the rotation angle value is determined directly from the acceleration value, so that the processing load of the electronic device can be reduced.
Secondly, if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
For example, when the motion amplitude value of the electronic device is not less than the preset amplitude value, the change amplitude is large, so that the rotation angle value of the electronic device cannot be directly determined through the acceleration value. The acceleration values in the three coordinate axis directions can be smoothed in various ways, and the smoothing algorithm is introduced above and thus is not described herein again. The acceleration values in the three coordinate axis directions can be smoothed in a long smoothing mode or a short smoothing mode, and the smoothing formula is similar to the formula [2 ].
As an alternative embodiment, the respective acceleration values may be smoothed by short smoothing, and then the rotation angle value of the screen may be determined based on the smoothed acceleration values, for example, α ≈ 0.83 ≈ 1-1/6, and smoothing of about 6 points (the smoothing length is six sampling points) may be taken, and in the actual processing, 2-10 sampling points or the like with the smoothing length may be considered as short smoothing.
In step S602, the purpose of determining whether the rotation angle value is within the first preset angle range is to determine whether there is a screen viewing action after the user has raised his/her hand, and if so, further indicating that the user needs to view the screen.
In general, consider that the user is in a standing or supine position, etc., if the rotation angle values include: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; if the angle of rotation value includes: if the motion amplitude value is smaller than a preset amplitude value (for example, the user is in a stationary state), the first preset angle range corresponding to the pitch angle includes: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value (for example, the user is in a motion state), the first preset angle range corresponding to the pitch angle includes: -15 to 90.
In step S603, if the rotation angle value is within the first preset angle range, it indicates that there may be an action of viewing the screen by the user, and in this case, it may be determined that the rotation angle value meets the screen-lighting condition, and the screen of the electronic device may be directly controlled to enter the lighting state, or the screen of the electronic device may be controlled to enter the lighting state under the condition that other screen-lighting conditions are met; and if the rotation angle value is not in the first preset angle range, the rotation angle value is not in accordance with the screen lighting condition, and the screen of the electronic equipment can not be controlled to enter the lighting state.
As an alternative embodiment, the method further comprises: after the electronic equipment is controlled to enter the lighting state, acquiring a rotation angle value of the electronic equipment relative to a preset reference object; judging whether the rotation angle value is within a second preset angle range or not; and if the screen is positioned in the second preset angle range, controlling the screen to enter a turning-off state.
In a specific implementation process, after controlling the screen of the electronic device to enter the on state, if the electronic device is used up, the user may control the screen of the electronic device to enter the off state in order to save power. The second preset angle value is often other angle values different from the first preset angle value, and if the rotation angle value of the electronic device is not within the first preset angle range, it indicates that the user does not watch the screen, so that the screen of the electronic device can be controlled to enter a turning-off state.
Wherein, in general, if the rotation angle value includes: the angle value of the roll angle, the second preset angle range corresponding to the roll angle includes: gamma >60 DEG or gamma < -60 DEG; if the angle of rotation value includes: the angle value of the pitch angle, and the corresponding second preset angle range thereof includes: theta < -30 deg., theta >165 deg., and so on. Because the second preset angle range is not completely overlapped with other angle ranges outside the first preset angle range, the robustness of the algorithm can be ensured, and the screen is prevented from being frequently controlled to be switched between the on state and the off state.
In a second aspect, based on the same inventive concept, an embodiment of the present invention provides a bright screen control apparatus, please refer to fig. 7, including:
a first determining module 70, configured to determine a motion amplitude value of the electronic device within a first preset time period;
a smoothing module 71, configured to perform smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
a first determining module 72, configured to determine whether the change trend of the smoothed motion amplitude value meets a preset change trend, so as to obtain a first determination result;
and the second determining module is used for determining whether to control the screen to enter the lighting state or not based on the first judgment result.
Optionally, the first preset time period includes: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period.
Optionally, the apparatus further comprises:
the second judgment module is used for judging whether the motion amplitude value of the electronic equipment is smaller than the preset amplitude value in a second preset time period before the first preset time period;
and the execution module is used for executing the step of determining the motion amplitude value of the electronic equipment in a first preset time period if the motion amplitude value is not smaller than the preset amplitude value.
Optionally, the apparatus further comprises:
the first obtaining module is used for obtaining the waveform of the acceleration value of the electronic equipment in a third preset time period if the motion amplitude value is smaller than the preset amplitude value;
the matching module is used for matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment when the motion state meets a screen-lighting condition;
a third determining module, configured to determine whether to control a screen of the electronic device to enter a lighting state based on the matching result;
and if the waveform of the acceleration value is matched with a preset waveform, controlling the screen to enter the lighting state.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is smaller than the third preset time period;
the third judgment module is used for judging whether the square sum is in a preset numerical range or not to obtain a second judgment result;
a fourth determination module configured to determine whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
Optionally, the third determining module includes:
a first judging unit configured to judge whether or not a lighting operation for controlling the screen to perform the lighting state based on waveform matching exists within a fifth preset time period before the third preset time period;
a second judging unit, configured to judge whether a rotation angle value of the screen relative to a user direction is greater than a preset angle value if the lighting operation exists, and obtain a third judgment result, where the rotation angle value is a rotation angle value of the screen relative to the user direction from a time point of the lighting operation to a current time point;
a determination unit configured to determine whether to control the electronic apparatus to enter the lighting state based on the third determination result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
Optionally, the variation of the acceleration value in at least one coordinate axis direction in the preset waveform is greater than the preset variation.
Optionally, the apparatus further includes:
the third acquisition module is used for acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
the fourth judging module is used for judging whether the rotation angle value is within the first preset angle range or not to obtain a fourth judging result;
a fifth determining module, configured to determine whether to control the screen to enter the lighting state based on the fourth determination result;
and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
Optionally, the third obtaining module is configured to:
if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; determining a rotation angle value of the screen based on the acceleration values in the three coordinate axis directions; alternatively, the first and second electrodes may be,
if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
Optionally, if the rotation angle value includes: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; and/or the presence of a gas in the gas,
if the angle of rotation value includes: and if the motion amplitude value is smaller than a preset amplitude value, a first preset angle range corresponding to the pitch angle comprises: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value, the first preset angle range corresponding to the pitch angle comprises: -15 to 90.
Optionally, the apparatus further comprises:
the fourth acquisition module is used for acquiring a rotation angle value of the electronic equipment relative to a preset reference object after controlling the electronic equipment to enter the lighting state;
the fifth judging module is used for judging whether the rotation angle value is in a second preset angle range or not;
and the control module is used for controlling the screen to enter a turning-off state if the screen is positioned in the second preset angle range.
Since the screen-lighting control device described in the second aspect of the present invention is a device used for implementing the screen-lighting control method described in the first aspect of the present invention, based on the screen-lighting control method described in the first aspect of the present invention, a person skilled in the art can implement the specific structure and the modification of the device described in the second aspect of the present invention, and therefore details are not described herein, and all the devices used for implementing the screen-lighting control method described in the first aspect of the present invention belong to the scope of the present invention to be protected.
In a third aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, and the one or more programs include instructions for:
determining a motion amplitude value of the electronic equipment within a first preset time period;
carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
Since the electronic device described in the third aspect of the present invention is an electronic device used for implementing the method for controlling screen-lighting introduced in the first aspect of the present embodiment, based on the method for controlling screen-lighting introduced in the first aspect of the present embodiment, a person skilled in the art can use the specific structure and the modifications of the electronic device described in the third aspect of the present embodiment, and therefore details are not described herein again, and all electronic devices used for implementing the method for controlling screen-lighting in the first aspect of the present embodiment belong to the scope to be protected by the present embodiment.
Fig. 8 is a block diagram of an electronic device 800 illustrating a method of bright screen control according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a bright screen control method, the method comprising:
determining a motion amplitude value of the electronic equipment within a first preset time period;
carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
Fig. 9 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
One or more embodiments of the invention have at least the following beneficial effects:
in the embodiment of the invention, the motion amplitude value of the electronic equipment in a first preset time period is determined firstly; then, smoothing the motion amplitude value to obtain a smoothed motion amplitude value; then judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result; and finally, determining whether to control the screen to enter the lighting state or not based on the first judgment result. In general, if a user looks at the smart watch during a movement, the movement amplitude of the user tends to become low, and therefore gestures generated by the user for the electronic device during the movement can be effectively detected through changes of the movement amplitude value.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (33)

1. A bright screen control method is characterized by comprising the following steps:
determining motion amplitude values of the electronic equipment at a plurality of sampling points within a first preset time period, wherein the first preset time period is the time length consumed by the user for generating a hand-lifting and screen-viewing gesture in a user motion state;
smoothing the motion amplitude values of the plurality of sampling points to obtain smoothed motion amplitude values;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result, wherein the preset change trend corresponds to a user gesture meeting a bright screen condition;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
2. The method of claim 1, wherein the first preset time period comprises: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period.
3. The method of claim 1, wherein the method further comprises:
judging whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a second preset time period before the first preset time period;
and if the motion amplitude value is not smaller than the preset amplitude value, executing the step of determining the motion amplitude value of the electronic equipment within a first preset time period.
4. The method of claim 3, wherein the method further comprises:
if the motion amplitude value is smaller than the preset amplitude value, acquiring a waveform of an acceleration value of the electronic equipment within a third preset time period;
matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment meeting the screen-lighting condition;
determining whether to control a screen of the electronic device to enter a lighting state based on the matching result;
and if the waveform of the acceleration value is matched with a preset waveform, controlling the screen to enter the lighting state.
5. The method of claim 4, wherein the determining whether to control the screen of the electronic device to enter an illuminated state further comprises:
acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is less than the third preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a second judgment result;
determining whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
6. The method of claim 4, wherein determining whether to control a screen of the electronic device to enter a lit state based on the matching result further comprises:
judging whether a lighting operation of controlling the screen to carry out the lighting state based on waveform matching exists in a fifth preset time period before the third preset time period;
if the lighting operation exists, judging whether a rotation angle value of the screen relative to the user direction is larger than a preset angle value or not, and obtaining a third judgment result, wherein the rotation angle value is the rotation angle value of the screen relative to the user direction from the time point of the lighting operation to the current time point;
determining whether to control the electronic device to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
7. The method according to claim 4, wherein the amount of change in the acceleration value in at least one coordinate axis direction in the preset waveform is larger than a preset change value.
8. The method of any of claims 1-7, wherein the determining whether to control the screen to enter the illuminated state further comprises:
acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a first preset angle range or not to obtain a fourth judgment result;
determining whether to control the screen to enter the lighting state based on the fourth judgment result;
and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
9. The method of claim 8, wherein the obtaining the rotation angle value of the electronic device comprises:
if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; determining a rotation angle value of the screen based on the acceleration values in the three coordinate axis directions; alternatively, the first and second electrodes may be,
if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
10. The method of claim 9, wherein if the rotation angle value comprises: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; and/or the presence of a gas in the gas,
if the angle of rotation value includes: and if the motion amplitude value is smaller than a preset amplitude value, a first preset angle range corresponding to the pitch angle comprises: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value, the first preset angle range corresponding to the pitch angle comprises: -15 to 90.
11. The method of any one of claims 1-7, wherein the method further comprises:
after the electronic equipment is controlled to enter the lighting state, acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a second preset angle range or not;
and if the screen is positioned in the second preset angle range, controlling the screen to enter a turning-off state.
12. A bright screen control device, comprising:
the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining the motion amplitude values of the electronic equipment at a plurality of sampling points within a first preset time period, and the first preset time period is the time length consumed for generating a hand-lifting and screen-viewing gesture in a user motion state;
the smoothing module is used for smoothing the motion amplitude values of the plurality of sampling points to obtain smoothed motion amplitude values;
the first judgment module is used for judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not and obtaining a first judgment result, wherein the preset change trend corresponds to a user gesture meeting a bright screen condition;
and the second determining module is used for determining whether to control the screen to enter the lighting state or not based on the first judgment result.
13. The apparatus of claim 12, wherein the first preset time period comprises: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period.
14. The apparatus of claim 12, wherein the apparatus further comprises:
the second judgment module is used for judging whether the motion amplitude value of the electronic equipment is smaller than the preset amplitude value in a second preset time period before the first preset time period;
and the execution module is used for executing the step of determining the motion amplitude value of the electronic equipment in a first preset time period if the motion amplitude value is not smaller than the preset amplitude value.
15. The apparatus of claim 14, wherein the apparatus further comprises:
the first obtaining module is used for obtaining the waveform of the acceleration value of the electronic equipment in a third preset time period if the motion amplitude value is smaller than the preset amplitude value;
the matching module is used for matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment when the motion state meets a screen-lighting condition;
a third determining module, configured to determine whether to control a screen of the electronic device to enter a lighting state based on the matching result;
and if the waveform of the acceleration value is matched with a preset waveform, controlling the screen to enter the lighting state.
16. The apparatus of claim 15, wherein the apparatus further comprises:
the second acquisition module is used for acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is smaller than the third preset time period;
the third judgment module is used for judging whether the square sum is in a preset numerical range or not to obtain a second judgment result;
a fourth determination module configured to determine whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
17. The apparatus of claim 15, wherein the third determining module comprises:
a first judging unit configured to judge whether or not a lighting operation for controlling the screen to perform the lighting state based on waveform matching exists within a fifth preset time period before the third preset time period;
a second judging unit, configured to judge whether a rotation angle value of the screen relative to a user direction is greater than a preset angle value if the lighting operation exists, and obtain a third judgment result, where the rotation angle value is a rotation angle value of the screen relative to the user direction from a time point of the lighting operation to a current time point;
a determination unit configured to determine whether to control the electronic apparatus to enter the lighting state based on the third determination result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
18. The apparatus of claim 15, wherein the amount of change in the acceleration value in at least one coordinate axis direction in the preset waveform is larger than a preset change value.
19. The apparatus of any of claims 12-18, wherein the apparatus further comprises:
the third acquisition module is used for acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
the fourth judging module is used for judging whether the rotation angle value is within the first preset angle range or not to obtain a fourth judging result;
a fifth determining module, configured to determine whether to control the screen to enter the lighting state based on the fourth determination result;
and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
20. The apparatus of claim 19, wherein the third obtaining module is to:
if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; determining a rotation angle value of the screen based on the acceleration values in the three coordinate axis directions; alternatively, the first and second electrodes may be,
if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
21. The apparatus of claim 20, wherein if the rotation angle value comprises: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; and/or the presence of a gas in the gas,
if the angle of rotation value includes: and if the motion amplitude value is smaller than a preset amplitude value, a first preset angle range corresponding to the pitch angle comprises: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value, the first preset angle range corresponding to the pitch angle comprises: -15 to 90.
22. The apparatus of any of claims 12-18, wherein the apparatus further comprises:
the fourth acquisition module is used for acquiring a rotation angle value of the electronic equipment relative to a preset reference object after controlling the electronic equipment to enter the lighting state;
the fifth judging module is used for judging whether the rotation angle value is in a second preset angle range or not;
and the control module is used for controlling the screen to enter a turning-off state if the screen is positioned in the second preset angle range.
23. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
determining motion amplitude values of the electronic equipment at a plurality of sampling points within a first preset time period, wherein the first preset time period is the time length consumed by the user for generating a hand-lifting and screen-viewing gesture in a user motion state;
smoothing the motion amplitude values of the plurality of sampling points to obtain smoothed motion amplitude values;
judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a first judgment result, wherein the preset change trend corresponds to a user gesture meeting a bright screen condition;
and determining whether to control the screen to enter the lighting state or not based on the first judgment result.
24. The electronic device of claim 23, wherein the first preset time period comprises: the first sub-period and a second sub-period after the first sub-period, the preset trend of change includes: a trend of increasing in the first sub-period and decreasing in the second sub-period.
25. The electronic device of claim 24, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
judging whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a second preset time period before the first preset time period;
and if the motion amplitude value is not smaller than the preset amplitude value, executing the step of determining the motion amplitude value of the electronic equipment within a first preset time period.
26. The electronic device of claim 25, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
if the motion amplitude value is smaller than the preset amplitude value, acquiring a waveform of an acceleration value of the electronic equipment within a third preset time period;
matching the waveform of the acceleration value with a preset waveform, wherein the preset waveform is a waveform corresponding to the motion state of the electronic equipment meeting the screen-lighting condition;
determining whether to control a screen of the electronic device to enter a lighting state based on the matching result;
and if the waveform of the acceleration value is matched with a preset waveform, controlling the screen to enter the lighting state.
27. The electronic device of claim 26, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a fourth preset time period, wherein the fourth preset time period is less than the third preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a second judgment result;
determining whether to control the screen to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the screen is controlled to enter the lighting state.
28. The electronic device of claim 26, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
judging whether a lighting operation of controlling the screen to carry out the lighting state based on waveform matching exists in a fifth preset time period before the third preset time period;
if the lighting operation exists, judging whether a rotation angle value of the screen relative to the user direction is larger than a preset angle value or not, and obtaining a third judgment result, wherein the rotation angle value is the rotation angle value of the screen relative to the user direction from the time point of the lighting operation to the current time point;
determining whether to control the electronic device to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the electronic equipment to enter the lighting state.
29. The electronic device according to claim 26, wherein an amount of change in the acceleration value in at least one coordinate axis direction in the preset waveform is larger than a preset change value.
30. The electronic device of any of claims 23-29, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a first preset angle range or not to obtain a fourth judgment result;
determining whether to control the screen to enter the lighting state based on the fourth judgment result;
and if the fourth judgment result is yes, controlling the screen to enter the lighting state.
31. The electronic device of claim 30, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
if the motion amplitude value of the electronic equipment is smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; determining a rotation angle value of the screen based on the acceleration values in the three coordinate axis directions; alternatively, the first and second electrodes may be,
if the motion amplitude value of the electronic equipment is not smaller than the preset amplitude value, acquiring acceleration values of the electronic equipment in three coordinate axis directions within a sixth preset time period; carrying out smoothing processing on the acceleration value to obtain the smoothed acceleration value; and determining the rotation angle value based on the acceleration value after the smoothing processing.
32. The electronic device of claim 31, wherein if the rotation angle value comprises: the angle value of the roll angle, the first preset angle range corresponding to the roll angle includes: -45 ° to 45 °; and/or the presence of a gas in the gas,
if the angle of rotation value includes: and if the motion amplitude value is smaller than a preset amplitude value, a first preset angle range corresponding to the pitch angle comprises: -15 to 150 °; if the motion amplitude value is not smaller than the preset angle value, the first preset angle range corresponding to the pitch angle comprises: -15 to 90.
33. The electronic device of any of claims 23-29, wherein the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
after the electronic equipment is controlled to enter the lighting state, acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
judging whether the rotation angle value is within a second preset angle range or not;
and if the screen is positioned in the second preset angle range, controlling the screen to enter a turning-off state.
CN201610348342.1A 2016-05-24 2016-05-24 Bright screen control method and device and electronic equipment Active CN106055097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610348342.1A CN106055097B (en) 2016-05-24 2016-05-24 Bright screen control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610348342.1A CN106055097B (en) 2016-05-24 2016-05-24 Bright screen control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106055097A CN106055097A (en) 2016-10-26
CN106055097B true CN106055097B (en) 2022-01-11

Family

ID=57174213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610348342.1A Active CN106055097B (en) 2016-05-24 2016-05-24 Bright screen control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106055097B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020670B (en) * 2016-05-24 2020-02-14 北京搜狗科技发展有限公司 Screen lighting control method and device and electronic equipment
CN106775345A (en) * 2016-11-11 2017-05-31 努比亚技术有限公司 Mobile terminal bright screen control device and method
CN107102717B (en) * 2017-04-26 2021-11-05 广东小天才科技有限公司 Screen control method and device
CN107277257A (en) * 2017-06-30 2017-10-20 深圳天珑无线科技有限公司 Mobile terminal and its screen lighting method, the device with store function
CN107562306B (en) * 2017-08-08 2022-01-11 惠州Tcl移动通信有限公司 Method for controlling display brightness of mobile terminal, mobile terminal and storage device
CN107896276A (en) * 2017-10-30 2018-04-10 珠海市魅族科技有限公司 Display panel control method and device, terminal installation and computer-readable recording medium
CN107765545B (en) * 2017-12-06 2021-03-19 深圳Tcl新技术有限公司 Automatic screen lightening method and device and computer storage medium
CN108650422B (en) * 2018-05-14 2020-08-14 Oppo(重庆)智能科技有限公司 Terminal bright screen control method and device, terminal and storage medium
CN108803896B (en) * 2018-05-28 2021-07-16 Oppo(重庆)智能科技有限公司 Method, device, terminal and storage medium for controlling screen
CN108874177A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of display methods, apparatus and system
CN108803897B (en) * 2018-06-07 2021-08-20 北京握奇智能科技有限公司 Screen-lighting control method and device for wearable equipment
CN111225105B (en) * 2018-11-26 2021-08-17 奇酷互联网络科技(深圳)有限公司 Method for controlling screen work, mobile terminal and storage medium
CN110187759B (en) * 2019-05-08 2023-01-17 安徽华米信息科技有限公司 Display method and device, intelligent wearable device and storage medium
CN110308791A (en) * 2019-06-28 2019-10-08 努比亚技术有限公司 Wearable device application method, device, wearable device and medium
CN113282261B (en) * 2021-06-10 2023-03-14 歌尔科技有限公司 Intelligent display method, device, computer program product and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130147712A1 (en) * 2010-08-24 2013-06-13 Lenovo (Beijing) Co., Ltd. Information Processing Device And Control Method Thereof
CN103728874A (en) * 2013-12-27 2014-04-16 上海斐讯数据通信技术有限公司 Method for intelligently lighting watch screen and watch
CN103793075A (en) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 Recognition method applied to intelligent wrist watch and intelligent wrist watch
CN104598143A (en) * 2015-01-12 2015-05-06 联想(北京)有限公司 Electronic equipment and wakeup method thereof
CN104749943A (en) * 2015-04-13 2015-07-01 深圳市欧珀通信软件有限公司 Screen light-up method and device and intelligent watch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130147712A1 (en) * 2010-08-24 2013-06-13 Lenovo (Beijing) Co., Ltd. Information Processing Device And Control Method Thereof
CN103728874A (en) * 2013-12-27 2014-04-16 上海斐讯数据通信技术有限公司 Method for intelligently lighting watch screen and watch
CN103793075A (en) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 Recognition method applied to intelligent wrist watch and intelligent wrist watch
CN104598143A (en) * 2015-01-12 2015-05-06 联想(北京)有限公司 Electronic equipment and wakeup method thereof
CN104749943A (en) * 2015-04-13 2015-07-01 深圳市欧珀通信软件有限公司 Screen light-up method and device and intelligent watch

Also Published As

Publication number Publication date
CN106055097A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106055097B (en) Bright screen control method and device and electronic equipment
CN106020670B (en) Screen lighting control method and device and electronic equipment
US10750007B2 (en) Method and device for preventing terminal from being inadvertently touched
CN110554815B (en) Icon awakening method, electronic device and storage medium
RU2640741C2 (en) Method and device for switching display mode
US10282031B2 (en) Method and device for restraining edge touches
US10331231B2 (en) Mobile terminal and method for determining scrolling speed
EP3035489B1 (en) Method and device for charge management
US20160283022A1 (en) Method and Device for Awakening an Element
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
WO2017012267A1 (en) Charging method and device
EP3499494A1 (en) Method for controlling screen display and device using the same
EP3112979B1 (en) Method and device for waking up mcu
US10824844B2 (en) Fingerprint acquisition method, apparatus and computer-readable storage medium
CN108255369B (en) Method and device for displaying fingerprint icon in screen and computer readable storage medium
US10234924B2 (en) Method and apparatus for displaying time on mobile device
EP3173918B1 (en) Icon position interchanging method and device
CN110413148B (en) False touch prevention detection method, device, equipment and storage medium
EP3015983A1 (en) Method and device for optimizing memory
EP3232301A1 (en) Mobile terminal and virtual key processing method
CN108829475B (en) UI drawing method, device and storage medium
US9678868B2 (en) Method and device for optimizing memory
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
US20190012299A1 (en) Displaying page
CN106791089B (en) Method and device for prompting battery electric quantity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210621

Address after: 100084 Room 802, 8th floor, building 9, yard 1, Zhongguancun East Road, Haidian District, Beijing

Applicant after: Beijing Sogou Intelligent Technology Co.,Ltd.

Address before: 100084. Room 9, floor 01, cyber building, building 9, building 1, Zhongguancun East Road, Haidian District, Beijing

Applicant before: BEIJING SOGOU TECHNOLOGY DEVELOPMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant