CN106020670B - Screen lighting control method and device and electronic equipment - Google Patents

Screen lighting control method and device and electronic equipment Download PDF

Info

Publication number
CN106020670B
CN106020670B CN201610349129.2A CN201610349129A CN106020670B CN 106020670 B CN106020670 B CN 106020670B CN 201610349129 A CN201610349129 A CN 201610349129A CN 106020670 B CN106020670 B CN 106020670B
Authority
CN
China
Prior art keywords
preset
value
screen
electronic equipment
waveform
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
CN201610349129.2A
Other languages
Chinese (zh)
Other versions
CN106020670A (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 Technology Development 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 Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610349129.2A priority Critical patent/CN106020670B/en
Publication of CN106020670A publication Critical patent/CN106020670A/en
Application granted granted Critical
Publication of CN106020670B publication Critical patent/CN106020670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Abstract

The invention relates to the technical field of electronics, in particular to a screen lightening control method, a screen lightening control device and electronic equipment, and aims to solve the technical problem that in the prior art, the time delay is long in a detection mode of raising a hand to lighten a screen. The method comprises the following steps: firstly, acquiring a waveform of an acceleration value of electronic equipment within a first preset time period; then 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; and finally, determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching result. That is to say, whether the motion state of the electronic device meets the screen-on condition is judged not by the difference algorithm, but whether the motion state of the electronic device meets the screen-on condition is judged by whether the waveform of the acceleration value of the electronic device is matched with the preset waveform, so that the number of sampling points is less limited, and the technical effect of reducing the time delay is achieved.

Description

Screen lighting control method and device and electronic equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a screen lighting 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: the method comprises the steps of hand-lifting action and static action, the action of a user on the smart watch is often determined by calculating the difference value between two adjacent sampling points in the existing hand-lifting screen-lighting algorithm, and the method has the technical problem of long time delay due to the fact that more sampling points are needed.
Disclosure of Invention
The invention provides a screen lightening control method and device and electronic equipment, and aims to solve the technical problem that a detection mode of raising a hand to lighten a screen in the prior art has long time delay.
In a first aspect, an embodiment of the present invention provides a screen lighting control method, including:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a 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 second preset time period, wherein the second preset time period is smaller than the first preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a first judgment result;
determining whether to control the screen to enter the lighting state based on the first judgment result;
and if the first judgment result is yes, 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:
judging whether a lighting operation of controlling the screen to be in the lighting state based on waveform matching exists in a third preset time period before the first 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 second 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 second judgment result;
wherein if the second determination result is yes, the electronic device is controlled 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 method further includes:
judging whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a fourth preset time period before the first preset time period;
and if the motion amplitude value is smaller than the preset amplitude value, executing the step of matching the waveform of the acceleration value with a preset waveform.
Optionally, the method further includes:
if the motion amplitude value is not smaller than the preset amplitude value, determining the motion amplitude value of the electronic equipment within a fifth 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 third judgment result;
determining whether to control the screen to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the screen to enter the lighting state.
Optionally, the fifth 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 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 screen lighting control apparatus, including:
the first acquisition module is used for acquiring the waveform of the acceleration value of the electronic equipment within a first preset time period;
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;
and the first determination module is used for determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching 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:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
The invention has the following beneficial effects:
in the embodiment of the invention, the waveform of the acceleration value of the electronic equipment in the first preset time period is firstly acquired; then 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; and finally, determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching result. That is to say, whether the motion state of the electronic device meets the screen-on condition is judged not by the difference algorithm, but whether the motion state of the electronic device meets the screen-on condition is judged by whether the waveform of the acceleration value of the electronic device is matched with the preset waveform, so that the number of sampling points is less limited, the technical effect of reducing time delay is achieved, and the hardware of the electronic device does not need to be improved, so that the cost can be considered; in addition, because the waveforms of different motion states of the electronic equipment are different, the matching reliability can be ensured based on waveform matching; in summary, the technical effect of considering reliability, cost and response time simultaneously is achieved by the scheme in the embodiment of the invention.
Drawings
FIG. 1 is a flowchart illustrating a method for controlling screen illumination according to an embodiment of the present invention;
fig. 2 is a structural diagram of a smart watch in the screen lighting control method according to the embodiment of the present invention;
fig. 3 is a diagram illustrating waveforms of acceleration values of an electronic device detected in a screen lighting control method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling screen lighting according to an embodiment of the present invention, in which a user is in a motion state to determine whether to control a screen to enter a lighting state;
FIG. 5 is a diagram illustrating a motion amplitude curve in a screen lighting control method according to an embodiment of the present invention;
fig. 6 is a flowchart of determining whether to control a screen of an electronic device to enter a lighting state based on a rotation angle value of the electronic device in the screen lighting control method according to the embodiment of the present invention;
fig. 7 is a structural diagram of a screen lighting control apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of an electronic device illustrating one method of screen illumination 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 screen lightening control method and device and electronic equipment, and aims to solve the technical problem that a detection mode of raising a hand to lighten 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, acquiring a waveform of an acceleration value of electronic equipment within a first preset time period; then 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; and finally, determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching result. That is to say, whether the motion state of the electronic device meets the screen-on condition is judged not by the difference algorithm, but whether the motion state of the electronic device meets the screen-on condition is judged by whether the waveform of the acceleration value of the electronic device is matched with the preset waveform, so that the number of sampling points is less limited, the technical effect of reducing time delay is achieved, and the hardware of the electronic device does not need to be improved, so that the cost can be considered; in addition, because the waveforms of different motion states of the electronic equipment are different, the matching reliability can be ensured based on waveform matching; in conclusion, the technical effect of simultaneously considering reliability, cost and response time is achieved by the scheme in the embodiment of the invention;
moreover, if the motion state of the electronic device corresponding to the screen lightening condition is the motion state obtained based on the hand-lifting and screen lightening gesture generated by the user, the waveforms generated by part of the hand-lifting action and the static action can be simultaneously utilized, so that the reliability of the detected hand-lifting and screen lightening gesture is increased, more static time is not needed, and whether the hand-lifting and screen lightening gesture is generated by the user can be judged more quickly.
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 screen lighting, please refer to fig. 1, including:
step S101: acquiring a waveform of an acceleration value of the electronic equipment within a first preset time period;
step S102: 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 S103: based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
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 acceleration sensor may continuously detect acceleration values of the electronic device in each coordinate axis direction, and further obtain a corresponding waveform for each coordinate axis direction, where a coordinate system of the electronic device includes: the X-axis, the Y-axis and the Z-axis are used for taking the geometric center of the screen as an original point, the X-axis from left to right, the Y-axis from inside to outside and the Z-axis from bottom to top when the screen of the electronic equipment is horizontally punched. 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.
In a specific implementation process, 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. The first preset time period is, for example: the time period corresponding to the user completing the preset operation, which is usually an operation satisfying the bright screen condition (for example, the time spent on the hand-up action when the user is in a static state, the time spent on the hand-up action when the user is in a moving state, and the like), and the first preset time period is, for example: 0.2s, 0.1s, 0.3s, etc., wherein after obtaining the waveform of the acceleration value of the electronic device, the waveform within a first preset time period may be obtained at preset time intervals (e.g., 0.1s, 0.2s, etc.), and then subsequent steps are performed based on the waveform.
In step S102, the motion state of the electronic device corresponding to the bright screen condition may include a plurality of different motion states, for example: a motion state in which the motion + rest, a motion state in which the motion + motion speed becomes slow, and the like, and the obtained preset waveforms are also different. 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; 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.
In step S103, if the matching result indicates that the waveform of the acceleration value matches the preset waveform, it often indicates that the motion state of the electronic device satisfies the screen-on condition, and in this case, the screen of the electronic device may be directly controlled to enter the on 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 second preset time period, wherein the second preset time period is smaller than the first preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a first judgment result;
determining whether to control the screen to enter the lighting state based on the first judgment result;
and if the first judgment result is yes, controlling the screen to enter the lighting state.
For example, the second preset time period is, for example: 0.01s, 0.02s and the like, which are time periods generally corresponding to a part of the electronic device which is close to the end of the first preset time period, and if the motion state of the electronic device which meets the bright screen condition is a motion state of motion + rest, the second preset time period is a time period generally corresponding to the electronic device which is still; if the motion state of the electronic device meeting the screen-lighting condition is a motion state of motion + reduced motion speed, the second preset time period is often a time period corresponding to reduced motion speed of the electronic device, and so on. The preset value range is typically around 1, for example: 0.8 to 1.2, 0.7 to 1.2, and the like. If the first judgment result is yes, the electronic equipment can be further confirmed to be in the static state.
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 S102 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 be in the lighting state based on waveform matching exists in a third preset time period before the first 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 second 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 second judgment result;
wherein if the second determination result is yes, the electronic device is controlled to enter the lighting state.
For example, the third 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 third 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 °).
It is also possible to directly control the screen of the electronic apparatus to enter the lighting state when the second determination result is yes, and to control the screen of the electronic apparatus to enter the lighting state only in a case where each lighting condition is satisfied if there are a plurality of lighting conditions.
In a specific implementation process, whether a user generates a hand-lifting and screen-lighting gesture can be directly determined through a waveform of an acceleration 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 situation, when the user generates the hand-lifting and screen-viewing gesture in a static state and the hand-lifting 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-lighting condition can be different motion states based on whether the electronic device is in the motion state. For example: whether the motion amplitude value of the electronic equipment is smaller than a preset amplitude value in a fourth preset time period before the first preset time period can be judged; and if the motion amplitude value is smaller than the preset amplitude value, executing the step of matching the waveform of the acceleration value with a preset waveform.
The fourth 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 smaller than the preset amplitude value, it is indicated that the user of the electronic device may be in a stationary state, and in addition, it may be further determined whether the sum of the squares of the three axes is within a preset numerical range (for example, whether the sum is approximately equal to 1), and if the sum is within the preset numerical range, it may be further determined that the user is in the stationary state, in this case, when the user generates a hand-up and screen-viewing gesture, the motion state of the corresponding electronic device is a motion state + stationary motion state, and the waveform of the acceleration value may have an obvious difference when the motion is switched to the stationary state, so it may be accurately determined whether the motion state of the electronic device satisfies the screen-up condition in the manner provided in steps S101 to S103.
If the motion amplitude value is not smaller than the preset amplitude value, it indicates that the user may raise his hand to see the screen in the motion state, in this case, there is no obvious feature in the waveform of the acceleration value because there is no stationary motion, so in order to more accurately determine whether the operation of the user meets the screen-lighting condition, please refer to fig. 4, the following manner may be adopted:
step S401: if the motion amplitude value is not smaller than the preset amplitude value, determining the motion amplitude value of the electronic equipment within a fifth preset time period;
step S402: carrying out smoothing processing on the motion amplitude value to obtain a smoothed motion amplitude value;
step S403: judging whether the change trend of the smoothed motion amplitude value meets a preset change trend or not, and obtaining a third judgment result;
step S404: determining whether to control the screen to enter the lighting state based on the third judgment result; and if the third judgment result is yes, controlling the screen to enter the lighting state.
In step S401, the fifth preset time period is, for example: the fifth preset time period is, for example, a time period consumed by the user for generating the hand-raising and screen-viewing gesture in the motion state: 1s, 2s, 3s, etc. Which may be the same as or different from the first preset time period.
In step S401, a waveform of an acceleration value of the electronic device may be determined first, and then a motion amplitude value of the electronic device may be estimated through a differential operation, where the estimation method is as follows:
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.
In step S402, 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]
α represents a smoothing coefficient, and the larger the 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.
Since the amplitude of the acceleration value of the electronic device varies greatly during the movement of the user, in order to achieve a good smoothing effect, the movement amplitude value is often smoothed in a long smoothing manner, for example, α -0.975-1-1/40 may be taken as long smoothing (smoothing length is 40 sampling points), in the actual processing, the smoothing length may be 20-100, or 20-1000 sampling points and the like may be taken as long smoothing, based on the difference in the number of sampling points, the obtained smoothing coefficients are also different, and the embodiment of the present invention is not limited.
In step S403, if the user generates the hand-raising and screen-lighting gesture while in the motion state, the motion amplitude value of the user usually rises to a certain amplitude and then remains stable (corresponding to the motion process of the user), and then continues to fall to the first amplitude and then remains stable (corresponding to the hand-raising process of the user), so that the fifth 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.
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.
FIG. 5 shows a waveform of an acceleration value of a user in a running state at a portion shown in an ellipse 50, a waveform of an acceleration value of an electronic device when the user lifts up and looks at a screen after the user is in the running state at a portion shown in an ellipse 51, and a waveform 52 of a motion amplitude value after smoothing processing, wherein whether a trend of increasing first and decreasing second exists at a portion of the waveform 52 in the fifth preset time period may be judged, and if so, it is determined that the variation of the motion amplitude value satisfies the preset variation trend.
The determination method ② includes obtaining a preset number of sample points (e.g., 10, 12, etc.) from the motion amplitude value of the electronic device, then determining the sample point with the highest value (e.g., 7 th sample point) from the sample points, determining whether the motion amplitude values of other sample points before the sample point are all smaller than the motion amplitude value of the sample point, and determining whether the motion amplitude values of other sample points after the sample point are all larger than the motion amplitude value of the sample point, and if the determination result is yes, determining that the variation of the motion amplitude value satisfies a preset variation trend.
In step S404, if the third determination result is yes, it is described that the motion state of the electronic device satisfies the lighting condition, 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 if the other lighting condition is also 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. In the case that the sixth preset time period is generally the time period (for example, 0.01s, 0.02s, etc.) corresponding to the first preset time period or the time period corresponding to the part of the fifth preset time period that is close to the end, 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 through 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 example, 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 the 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 screen lighting control apparatus, please refer to fig. 7, including:
a first obtaining module 70, configured to obtain a waveform of an acceleration value of the electronic device within a first preset time period;
the matching module 71 is configured to match a waveform of the acceleration value with a preset waveform, where the preset waveform is a waveform corresponding to the motion state of the electronic device meeting the screen-lighting condition;
a first determining module 72, configured to determine whether to control the screen of the electronic device to enter a lighting state based on the matching result.
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 second preset time period, wherein the second preset time period is smaller than the first preset time period;
the first judgment module is used for judging whether the square sum is in a preset numerical range or not to obtain a first judgment result;
a second determination module, configured to determine whether to control the screen to enter the lighting state based on the first determination result;
and if the first judgment result is yes, controlling the screen to enter the lighting state.
Optionally, the apparatus further comprises:
the second judgment module is used for judging whether the screen is controlled to be lightened in the lightening state based on waveform matching in a third preset time period before the first preset time period or not;
a third judging module, 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, to obtain a second 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 third determination module, configured to determine whether to control the electronic device to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the electronic device is controlled 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 comprises:
the fourth judging module is used for judging whether the motion amplitude value of the electronic equipment is smaller than the preset amplitude value in a fourth preset time period before the first preset time period;
and the execution module is used for executing the step of matching the waveform of the acceleration value with a preset waveform if the motion amplitude value is smaller than the preset amplitude value.
Optionally, the apparatus further comprises:
the fourth determining module is used for determining the motion amplitude value of the electronic equipment in a fifth preset time period if the motion amplitude value is not smaller than the preset amplitude value;
the smoothing module is used for smoothing the motion amplitude value to obtain a smoothed motion amplitude value;
the fifth 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 third judgment result;
a fifth determining module, configured to determine whether to control the screen to enter the lighting state based on the third determination result;
and if the third judgment result is yes, controlling the screen to enter the lighting state.
Optionally, the fifth 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 third acquisition module is used for acquiring a rotation angle value of the electronic equipment relative to a preset reference object;
the sixth 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 sixth 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 seventh judging module is used for judging whether the rotation angle value is within a second preset angle range;
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 modifications of the device described in the second aspect of the present invention, and therefore no further description is given here, 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.
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:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
Since the electronic device described in the third aspect of the present invention is an electronic 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 modifications of the electronic device described in the third aspect of the present invention, and therefore no further description is given here, and all electronic 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.
Fig. 8 is a block diagram of an electronic device 800 illustrating a method of screen illumination 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 screen illumination control method, the method comprising:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
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 waveform of the acceleration value of the electronic equipment in the first preset time period is firstly acquired; then 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; and finally, determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching result. That is to say, whether the motion state of the electronic device meets the screen-on condition is judged not by the difference algorithm, but whether the motion state of the electronic device meets the screen-on condition is judged by whether the waveform of the acceleration value of the electronic device is matched with the preset waveform, so that the number of sampling points is less limited, the technical effect of reducing time delay is achieved, and the hardware of the electronic device does not need to be improved, so that the cost can be considered; in addition, because the waveforms of different motion states of the electronic equipment are different, the matching reliability can be ensured based on waveform matching; in summary, the technical effect of considering reliability, cost and response time simultaneously is achieved by the scheme in the embodiment of the invention.
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 screen lighting control method, comprising:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
2. The method of claim 1, wherein the determining whether to control the screen of the electronic device to enter a lighted state further comprises:
acquiring the sum of squares of acceleration values of the electronic equipment in three coordinate axis directions within a second preset time period, wherein the second preset time period is smaller than the first preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a first judgment result;
determining whether to control the screen to enter the lighting state based on the first judgment result;
and if the first judgment result is yes, controlling the screen to enter the lighting state.
3. The method of claim 1, wherein the determining whether to control the screen of the electronic device to enter a lighted state further comprises:
judging whether a lighting operation of controlling the screen to be in the lighting state based on waveform matching exists in a third preset time period before the first 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 second 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 second judgment result;
wherein if the second determination result is yes, the electronic device is controlled to enter the lighting state.
4. The method of claim 1, 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.
5. 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 fourth preset time period before the first preset time period;
and if the motion amplitude value is smaller than the preset amplitude value, executing the step of matching the waveform of the acceleration value with a preset waveform.
6. The method of claim 5, wherein the method further comprises:
if the motion amplitude value is not smaller than the preset amplitude value, determining the motion amplitude value of the electronic equipment within a fifth 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 third judgment result;
determining whether to control the screen to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the screen to enter the lighting state.
7. The method of claim 6, wherein the fifth 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.
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 screen lighting control device, comprising:
the first acquisition module is used for acquiring the waveform of the acceleration value of the electronic equipment within a first preset time period;
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;
and the first determination module is used for determining whether to control the screen of the electronic equipment to enter a lighting state or not based on the matching result.
13. The apparatus of claim 12, 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 second preset time period, wherein the second preset time period is smaller than the first preset time period;
the first judgment module is used for judging whether the square sum is in a preset numerical range or not to obtain a first judgment result;
a second determination module, configured to determine whether to control the screen to enter the lighting state based on the first determination result;
and if the first judgment result is yes, controlling the screen to enter the lighting state.
14. The apparatus of claim 12, wherein the apparatus further comprises:
the second judgment module is used for judging whether the screen is controlled to be lightened in the lightening state based on waveform matching in a third preset time period before the first preset time period or not;
a third judging module, 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, to obtain a second 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 third determination module, configured to determine whether to control the electronic device to enter the lighting state based on the second determination result;
wherein if the second determination result is yes, the electronic device is controlled to enter the lighting state.
15. The apparatus of claim 12, 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.
16. The apparatus of claim 12, wherein the apparatus further comprises:
the fourth judging module is used for judging whether the motion amplitude value of the electronic equipment is smaller than the preset amplitude value in a fourth preset time period before the first preset time period;
and the execution module is used for executing the step of matching the waveform of the acceleration value with a preset waveform if the motion amplitude value is smaller than the preset amplitude value.
17. The apparatus of claim 16, wherein the apparatus further comprises:
the fourth determining module is used for determining the motion amplitude value of the electronic equipment in a fifth preset time period if the motion amplitude value is not smaller than the preset amplitude value;
the smoothing module is used for smoothing the motion amplitude value to obtain a smoothed motion amplitude value;
the fifth 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 third judgment result;
a fifth determining module, configured to determine whether to control the screen to enter the lighting state based on the third determination result;
and if the third judgment result is yes, controlling the screen to enter the lighting state.
18. The apparatus of claim 17, wherein the fifth 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.
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 sixth 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 sixth 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 seventh judging module is used for judging whether the rotation angle value is within a second preset angle range;
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:
acquiring a waveform of an acceleration value of the electronic equipment within a first 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;
based on the matching result, it is determined whether to control the screen of the electronic device to enter a lighting state.
24. The electronic device of claim 23, 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 second preset time period, wherein the second preset time period is smaller than the first preset time period;
judging whether the square sum is within a preset numerical range or not to obtain a first judgment result;
determining whether to control the screen to enter the lighting state based on the first judgment result;
and if the first judgment result is yes, controlling the screen to enter the lighting state.
25. The electronic device of claim 23, 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 be in the lighting state based on waveform matching exists in a third preset time period before the first 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 second 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 second judgment result;
wherein if the second determination result is yes, the electronic device is controlled to enter the lighting state.
26. The electronic device according to claim 23, 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.
27. The electronic device of claim 23, 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 fourth preset time period before the first preset time period;
and if the motion amplitude value is smaller than the preset amplitude value, executing the step of matching the waveform of the acceleration value with a preset waveform.
28. The electronic device of claim 27, 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 not smaller than the preset amplitude value, determining the motion amplitude value of the electronic equipment within a fifth 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 third judgment result;
determining whether to control the screen to enter the lighting state based on the third judgment result;
and if the third judgment result is yes, controlling the screen to enter the lighting state.
29. The electronic device of claim 28, wherein the fifth 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.
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.
CN201610349129.2A 2016-05-24 2016-05-24 Screen lighting control method and device and electronic equipment Active CN106020670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610349129.2A CN106020670B (en) 2016-05-24 2016-05-24 Screen lighting control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610349129.2A CN106020670B (en) 2016-05-24 2016-05-24 Screen lighting control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106020670A CN106020670A (en) 2016-10-12
CN106020670B true CN106020670B (en) 2020-02-14

Family

ID=57093395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610349129.2A Active CN106020670B (en) 2016-05-24 2016-05-24 Screen lighting control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106020670B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085367B (en) * 2017-03-24 2019-12-17 广州七喜集团有限公司 Method for lightening screen of smart watch by raising hand
CN107346176B (en) * 2017-06-30 2021-01-26 Oppo广东移动通信有限公司 Screen lighting method and device, storage medium and electronic equipment
CN107765545B (en) * 2017-12-06 2021-03-19 深圳Tcl新技术有限公司 Automatic screen lightening method and device and computer storage medium
CN108205378A (en) * 2017-12-28 2018-06-26 努比亚技术有限公司 Mobile terminal turn detection method, mobile terminal and computer readable storage medium
CN108319421A (en) * 2018-01-29 2018-07-24 维沃移动通信有限公司 A kind of display triggering method and mobile terminal
CN108536381B (en) * 2018-03-26 2021-11-09 珠海格力电器股份有限公司 Short-time screen locking method and device
CN108536377A (en) * 2018-04-11 2018-09-14 Oppo广东移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN108762813B (en) * 2018-05-22 2020-03-10 厦门美图移动科技有限公司 Screen awakening method and device
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
CN110399032A (en) * 2019-07-09 2019-11-01 北京卡路里信息技术有限公司 The control method and device of wearable device
CN111728597A (en) * 2020-08-26 2020-10-02 四川科道芯国智能技术股份有限公司 Health monitoring equipment and health monitoring wrist-watch
CN113342407B (en) * 2021-06-25 2023-01-24 歌尔科技有限公司 Screen control method and device, electronic equipment and readable storage medium
CN116578227B (en) * 2023-07-10 2024-01-16 深圳市易赛通信技术有限公司 Screen control method, device and equipment of intelligent watch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377871A (en) * 2010-08-24 2012-03-14 联想(北京)有限公司 Information processing equipment and control method thereof
CN103793075A (en) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 Recognition method applied to intelligent wrist watch and intelligent wrist watch
CN104238924A (en) * 2014-09-01 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling illumining of screen of wearable device
CN106055097A (en) * 2016-05-24 2016-10-26 北京搜狗科技发展有限公司 Screen lighting control method and apparatus, and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6136806B2 (en) * 2013-09-20 2017-05-31 カシオ計算機株式会社 Physical information acquisition device, physical information acquisition method, physical information acquisition program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377871A (en) * 2010-08-24 2012-03-14 联想(北京)有限公司 Information processing equipment and control method thereof
CN103793075A (en) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 Recognition method applied to intelligent wrist watch and intelligent wrist watch
CN104238924A (en) * 2014-09-01 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling illumining of screen of wearable device
CN106055097A (en) * 2016-05-24 2016-10-26 北京搜狗科技发展有限公司 Screen lighting control method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN106020670A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020670B (en) Screen lighting control method and device and electronic equipment
CN106055097B (en) Bright screen control method and device and electronic equipment
US10750007B2 (en) Method and device for preventing terminal from being inadvertently touched
RU2640741C2 (en) Method and device for switching display mode
CN110554815B (en) Icon awakening method, electronic device and storage medium
RU2712118C1 (en) Method of controlling screen display and device using said method
CN107134823B (en) Charging prompting method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
US20160283022A1 (en) Method and Device for Awakening an Element
US10331231B2 (en) Mobile terminal and method for determining scrolling speed
WO2017012267A1 (en) Charging method and device
US20170060320A1 (en) Method for controlling a mobile terminal using a side touch panel
CN107102772B (en) Touch control method and device
US10824844B2 (en) Fingerprint acquisition method, apparatus and computer-readable storage medium
EP3112979B1 (en) Method and device for waking up mcu
EP3316232A1 (en) Method, apparatus and storage medium for controlling target device
RU2642375C2 (en) Mobile terminal and method of virtual button processing
EP3173918B1 (en) Icon position interchanging method and device
CN106897009B (en) Mobile equipment time display method and device
CN110413148B (en) False touch prevention detection method, device, equipment and storage medium
EP2921969A1 (en) Method and apparatus for centering and zooming webpage and electronic device
EP3015983A1 (en) Method and device for optimizing memory
CN110262692B (en) Touch screen scanning method, device and medium
CN109522058B (en) Wake-up method, device, terminal and storage medium
US9678868B2 (en) Method and device for optimizing memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210621

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

Patentee 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

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

TR01 Transfer of patent right