Display control method and device, electronic equipment and computer readable storage medium
By detecting the duration of the hand-up operation and dynamically adjusting the recognition conditions of the black screen gesture, the problem of accidentally lighting the screen caused by mistake by accidentally triggering the gesture in the black screen state of electronic devices is solved, and the battery life of the device is improved.
Patent Information
- Application Number
- CN202411884298.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-11
AI Technical Summary
When the electronic device is in a black screen state, it may cause the display to be turned on by mistake due to the black screen gesture, which reduces the battery life of the device.
By detecting the effective hand-up operation, the operation time of the hand-up operation is obtained, and the target recognition conditions for the black screen gesture are determined based on the operation time and the preset time threshold. If a trigger gesture that meets the target recognition conditions is received, the control display screen will switch to the bright screen state.
It effectively avoids the problem of false screen lighting caused by the reporting of black screen gesture events caused by the hand-raising operation, avoids the system of electronic devices accidentally wake up, and improves the battery life of electronic devices.
Smart Images

Figure CN119806368A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and in particular to a display control method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of liquid crystal display technology, the screens of more and more electronic devices are set as touch screens. By touching the touch screen, the electronic device can be operated.
[0003] Usually, the touch screen supports the black screen gesture function, that is, when the electronic device screen is black, if the gesture triggered by the user matches the gesture pre-stored in the electronic device, the touch system reports a success event, wakes up the electronic device, and switches the display screen to a bright screen state. However, when the electronic device screen is black, the user may mistakenly trigger the black screen gesture, causing the screen to light up by mistake, reducing the battery life of the electronic device. Summary of the invention
[0004] The embodiments of the present application provide a display control method, device, electronic device and computer-readable storage medium, which can prevent the display screen of the electronic device from mistakenly lighting up when in a black screen state, thereby improving the battery life of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides a display control method, the method comprising:
[0006] When a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state;
[0007] Determining a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition;
[0008] If a trigger gesture that meets the target recognition condition is received, the display screen is controlled to switch to a bright screen state.
[0009] In a second aspect, an embodiment of the present application provides a display control device, the device comprising:
[0010] A first acquisition module is used to acquire the operation duration of the hand-raising operation when a valid hand-raising operation is detected; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state;
[0011] A first determination module, configured to determine a target recognition condition for a black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition;
[0012] The control module is used to control the display screen to switch to a bright screen state if a trigger gesture that meets the target recognition condition is received.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the display control method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.
[0016] The above-mentioned display control method, device, electronic device and computer-readable storage medium, when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state, if the user triggers a hand-raising operation and detects that the hand-raising operation is a valid hand-raising operation, by obtaining the operation duration of the hand-raising operation, the target recognition condition of the black screen gesture can be determined according to the operation duration of the hand-raising operation and a preset duration threshold, wherein the target recognition condition includes a first recognition condition or a second recognition condition, and the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. In this way, the target recognition condition of the black screen gesture can be flexibly determined according to the operation duration of the hand-raising operation, and the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. The triggering condition of the black screen gesture can be dynamically tightened, so that when a triggering gesture that meets the target recognition condition is received, the display screen is controlled to switch to a bright screen state, which can avoid the problem of erroneous screen lighting caused by reporting a black screen gesture event when the hand-raising operation is an erroneous operation, avoid erroneous wake-up of the electronic device system, and improve the battery life of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A diagram showing an application environment of a control method in one embodiment;
[0019] Figure 2 A flowchart showing a control method in one embodiment;
[0020] Figure 3 A schematic diagram of a preset direction in an embodiment;
[0021] Figure 4 A flowchart showing a control method in another embodiment;
[0022] Figure 5 A flowchart showing a control method in another embodiment;
[0023] Figure 6 A flowchart showing a control method in another embodiment;
[0024] Figure 7 A structural block diagram showing a control device in one embodiment;
[0025] Figure 8 A structural block diagram of a display control device in another embodiment;
[0026] Fig. 9 A structural block diagram of a display control device in another embodiment;
[0027] Fig.10 Schematic diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] The display control method provided in the embodiment of the present application can be applied to Figure 1The electronic device shown in the figure has a touch display screen, and the electronic device can be operated by touching the display screen. The electronic device can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart TVs, smart car devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.
[0030] In one embodiment, Figure 2 As shown, a display control method is provided, which is applied to Figure 1 The electronic device in the example is used to illustrate, and the following steps are included:
[0031] S201, when a valid hand-raising operation is detected, obtain the operation duration of the hand-raising operation; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state.
[0032] Among them, the electronic device being in a stationary state can be a state in which the electronic device is placed still on a desktop. It can be understood that when the user triggers the hand-raising operation to lift the electronic device in a stationary state, the stationary state of the electronic device will change to a moving state that changes with the user's hand-raising action.
[0033] The display screen of an electronic device is in a black screen state when the backlight of the display screen is turned off and the display screen becomes dim, but the display screen itself is not turned off, and the electronic device is in a standby state, and the user can use the electronic device by unlocking the display screen. In addition, the effective hand-raising operation in this embodiment refers to the hand-raising operation triggered by the user when the user needs to use the electronic device, rather than the hand-raising operation triggered by the user by mistake. Exemplarily, the application scenario of the embodiment of the present application may be that the electronic device is placed statically on a desktop, and the display screen of the electronic device is in a black screen state. At this time, the user triggers the hand-raising operation and is in the process of picking up the electronic device from the desktop.
[0034] Optionally, in this embodiment, whether the hand-raising operation triggered by the user is a valid hand-raising operation can be detected based on the sensor data of the electronic device. For example, the sensor data can be compared with the sensor data corresponding to the valid hand-raising operation in the historical data to detect whether the hand-raising operation triggered by the user is a valid hand-raising operation.
[0035] Optionally, in this embodiment, when a valid hand-raising operation is detected, a timer can be started to collect the operation duration of the hand-raising operation. It can be understood that if the hand-raising operation is a valid hand-raising operation, the user's hand-raising operation will last for a relatively long time, and if the hand-raising operation is an erroneous operation, the user's hand-raising operation will last for a relatively short time.
[0036] S202, determining a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition.
[0037] Among them, the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. For example, the interval between the starting point and the end point of the gesture operation corresponding to the first recognition condition needs to be greater than the interval between the starting point and the end point of the gesture operation corresponding to the second recognition condition; or, the height between the starting point and the end point of the gesture operation corresponding to the first recognition condition needs to be greater than the height of the gesture operation corresponding to the second recognition condition, etc. In other words, the gesture operation corresponding to the first recognition condition is more difficult to trigger, and the first recognition condition is more stringent, that is, in this embodiment, the first recognition condition can be a black screen gesture recognition condition that is more difficult to trigger, and the second recognition condition can be a black screen gesture recognition condition that is triggered by default in the electronic device.
[0038] Optionally, in this embodiment, the first identification condition may include at least one of the following:
[0039] a) The straight-line distance between the starting point and the end point of the gesture is the first distance value.
[0040] Exemplarily, in this embodiment, the gesture triggered by the user may be "V", "W", "M", etc. As an optional implementation, the first recognition condition may include the straight-line spacing distance between the starting point and the end point of the gesture being a first distance value, that is, the first recognition condition may include the horizontal spacing distance between the starting point and the end point of the gesture being a first distance value.
[0041] b) The distance between the starting point and the middle point of the gesture along the preset direction is the second distance value.
[0042] The preset direction may be a direction along a vertical horizontal line. For example, a user-triggered gesture is used as Figure 3 Taking the gesture "V" shown in the example as an example, the preset direction can be Figure 3 Direction indicated by the arrow.
[0043] c) The distance between the starting point and the end point of the gesture along the preset direction is the third distance value.
[0044] Optionally, the preset direction in this embodiment may be the direction described in the above embodiment. For example, assuming that the gesture triggered by the user is "|", "L", the distance between the start point and the end point of the gesture along the above preset direction may be the height value of the gesture.
[0045] d) The triggering time interval of the gesture is the first time interval.
[0046] Optionally, in some scenarios, the gesture triggered by the user may be a double-click gesture. In this scenario, the first recognition condition may be that the triggering time interval of the gesture is a first time interval.
[0047] Optionally, in this embodiment, the received trigger gesture satisfies the first recognition condition and may include at least one of the following: the straight-line interval distance between the starting point and the end point of the gesture is greater than a first distance value; the distance between the starting point and the middle point of the gesture along the preset direction is greater than a second distance value; the distance between the starting point and the end point of the gesture along the preset direction is greater than a third distance value; the trigger time interval of the gesture is greater than the first time interval.
[0048] It is understandable that, since the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition, accordingly, the first recognition condition may be a more stringent condition than the second recognition condition. As an optional implementation, the second recognition condition may include at least one of the following:
[0049] e) The straight-line distance between the starting point and the end point of the gesture is a fourth distance value; and the fourth distance value is smaller than the first distance value.
[0050] f) The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value.
[0051] g) The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; the sixth distance value is less than the third distance value.
[0052] h) The triggering time interval of the gesture is a second time interval; and the second time interval is smaller than the first time interval.
[0053] Optionally, in this embodiment, the received trigger gesture satisfies the second recognition condition and may include at least one of the following: the straight-line interval distance between the starting point and the end point of the gesture is less than the fourth distance value; the distance between the starting point and the middle point of the gesture along the preset direction is less than the fifth distance value; the distance between the starting point and the end point of the gesture along the preset direction is less than the sixth distance value; the trigger time interval of the gesture is less than the second time interval.
[0054] Optionally, in the present embodiment, the target recognition condition for the black screen gesture determined may be the first recognition condition, or may be the second recognition condition. As an optional implementation, the target recognition condition for the black screen gesture may be determined based on whether the operation duration of the hand-raising operation is greater than a preset duration threshold. It is understandable that if the operation duration of the hand-raising operation is longer, it means that the hand-raising operation is more likely to be a hand-raising operation triggered by the user in the process of using the electronic device; if the operation duration of the hand-raising operation is shorter, it means that the hand-raising operation is more likely to be a hand-raising operation triggered by the user by mistake. For example, if the operation duration of the hand-raising operation is shorter, it is likely that the hand-raising operation is mistakenly triggered by the user. At this time, the target recognition condition for the black screen gesture can be determined as the first recognition condition that is more difficult to trigger, so as to avoid the problem that the user mistakenly triggers the black screen gesture in this case, causing the electronic device to light up the screen by mistake.
[0055] S203: If a trigger gesture that meets the target recognition condition is received, the display screen is controlled to switch to a bright screen state.
[0056] Optionally, the trigger gesture received in the present embodiment may be received under the first recognition condition, or may be received under the second recognition condition. It is understandable that in the present embodiment, if the target recognition condition is the first recognition condition, and the received trigger gesture satisfies the first recognition condition, the control display screen is switched to the bright screen state; if the target recognition condition is the second recognition condition, and the received trigger gesture satisfies the second recognition condition, the control display screen is switched to the bright screen state. Since in the present embodiment, the first recognition condition is a recognition condition that is more difficult to trigger, if the received trigger gesture satisfies the first recognition condition, it means that the possibility that the trigger gesture is a gesture triggered by the user by mistake is low. At this time, controlling the display screen to switch to the bright screen state can greatly avoid the problem of the display screen being mistakenly lit due to false triggering.
[0057] As another optional implementation, in this embodiment, if the received trigger gesture does not meet the target recognition condition, the touch screen system may not report the trigger event to the electronic device, or the touch screen system may report the trigger event to the electronic device as an erroneous trigger event.
[0058] In the above display control method, when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state, if the user triggers a hand-raising operation and it is detected that the hand-raising operation is a valid hand-raising operation, by obtaining the operation duration of the hand-raising operation, the target recognition condition of the black screen gesture can be determined according to the operation duration of the hand-raising operation and the preset duration threshold, wherein the target recognition condition includes a first recognition condition or a second recognition condition, and the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. In this way, the target recognition condition of the black screen gesture can be flexibly determined according to the operation duration of the hand-raising operation, and the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. The triggering condition of the black screen gesture can be dynamically tightened, so that when a triggering gesture that meets the target recognition condition is received, the display screen is controlled to switch to a bright screen state, which can avoid the problem of false screen lighting caused by reporting a black screen gesture event when the hand-raising operation is an erroneous operation, avoid false wake-up of the electronic device system, and improve the battery life of the electronic device.
[0059] In this embodiment, the specific process of determining the target recognition condition of the black screen gesture will be described in detail. Figure 4 As shown, the above S202 includes:
[0060] S301: If the operation duration is less than a preset duration threshold, the black screen gesture recognition condition is determined as the first recognition condition.
[0061] S302: If the operation duration is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition.
[0062] Optionally, the preset duration threshold in this embodiment can be the average hand-raising duration of the user's hand-raising operation when normally using the electronic device, which is determined based on a large amount of experimental data. In this embodiment, if the operation duration of the hand-raising operation is less than the preset duration threshold, it means that the hand-raising operation is likely to be triggered by the user in error. At this time, the black screen gesture recognition condition can be determined as the first recognition condition that is more difficult to trigger, thereby greatly avoiding the problem of accidentally lighting the screen. In this embodiment, if the operation duration of the hand-raising operation is greater than or equal to the preset duration threshold, it means that the hand-raising operation is likely to be triggered by the user in the process of using the electronic device. At this time, the black screen gesture recognition condition of the electronic device can be determined as the second recognition condition.
[0063] Optionally, in this embodiment, the register of the touch screen system can be set through the interface, and the target recognition condition of the black screen gesture can be stored through the register. For example, the electronic device can set the register of the touch screen system through any one of the integrated circuit bus (Inter-Integrated Circuit, I2C) interface, the serial peripheral interface (Serial Peripheral Interface, SPI) interface, and the improved integrated circuit bus (Improved Inter Integrated Circuit, I3C) interface. Optionally, the register of the touch screen system can be the memory of the touch screen system, the touch screen system can have its own central processing unit (Central Processing Unit, CPU) and memory, and the touch screen system itself can also perform data calculations. As an optional implementation, when it is determined that the black screen gesture recognition condition is the first recognition condition, the electronic device can send a first instruction to the touch screen system, and instruct the touch screen system to switch the black screen gesture recognition condition to the first recognition condition through the first instruction; when it is determined that the black screen gesture recognition condition is the second recognition condition, the electronic device can send a second instruction to the touch screen system, and instruct the touch screen system to switch the black screen gesture recognition condition to the second recognition condition through the second instruction.
[0064] In this embodiment, since the target recognition condition of the black screen gesture can be flexibly determined according to the operation duration of the hand raising operation, if the operation duration of the hand raising operation is less than the preset duration threshold, the black screen gesture recognition condition is determined as the first recognition condition; if the operation duration of the hand raising operation is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition, and the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition. In this way, the triggering conditions of the black screen gesture can be dynamically tightened, and the problem of false screen lighting caused by the reporting of black screen gesture events when the hand raising operation is an erroneous operation can be avoided, the system of the electronic device can be avoided from being woken up by mistake, and the battery life of the electronic device can be improved.
[0065] In the above scenario where, when a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained, it is first necessary to detect a valid hand-raising operation. In this embodiment, the specific process of determining that the hand-raising operation is a valid hand-raising operation is explained. Figure 5 As shown, the above method also includes:
[0066] S401, when a hand-raising operation is detected, obtaining sensor data of the electronic device within a preset time period.
[0067] Optionally, in this embodiment, a light sensor or a proximity sensor can be used to detect whether there is a hand-raising operation. It can be understood that if a light sensor is used to detect a hand-raising operation, the light value collected by the light sensor will change when there is a hand-raising operation, and the electronic device can use the change in the light value to determine whether a hand-raising operation is detected. If a proximity sensor is used to detect a hand-raising operation, the inductance value or capacitance value of the proximity sensor will change when there is a hand-raising operation, and the electronic device can use the change in the inductance value or capacitance value of the proximity sensor to determine whether a hand-raising operation is detected.
[0068] It can be understood that in this embodiment, when a hand-raising operation is detected, the state of the electronic device will change with the hand-raising operation, and the sensor data of the electronic device will also change accordingly. Therefore, the electronic device can obtain the sensor data collected by the sensor within a preset time period, and determine whether the hand-raising operation triggered by the sensor is a valid operation based on the sensor data.
[0069] As an optional implementation, it is possible to first detect whether the electronic device is in a stationary state through gyroscope sensor data and / or acceleration sensor data, and then detect whether the user has triggered a hand-raising operation when the electronic device is detected to be in a stationary state. Exemplarily, if it is detected whether the electronic device is in a stationary state through gyroscope sensor data, when the electronic device is in a desktop stationary state, the angular velocity of the three axes of the gyroscope data is close to 0, then as an optional implementation, the detection condition can be whether the average value of the data of any one or more of the X-axis, Y-axis and Z-axis in the gyroscope sensor data is within a preset time period. In other words, if the average value of the data of any one or more of the X-axis, Y-axis and Z-axis in the gyroscope sensor data is within a preset time period. The range is 0.5 to -0.5, that is, if the average value of the data of any one or more of the X-axis, Y-axis and Z-axis in the gyroscope sensor data is within a preset time period. The range is 0.5 to -0.5, it can be determined that the electronic device is in a stationary state. As another example, if the acceleration sensor data is used to detect whether the electronic device is in a stationary state, the detection condition for detecting whether the electronic device is in a stationary state may be whether the Z-axis data in the acceleration sensor data is always in the range of 10 to -10, and whether the X-axis data and the Y-axis data are in the range of -2 to 2 within a preset time period. That is to say, if within the preset time period, the Z-axis data in the acceleration sensor data is always in the range of 10 to -10, and the X-axis data and the Y-axis data are in the range of -2 to 2, it can be determined that the electronic device is in a stationary state.
[0070] S402: When the sensor data meets a preset condition, determine that the hand-raising operation is a valid operation.
[0071] Optionally, in this embodiment, the sensor data may include gyroscope sensor data and acceleration sensor data, that is, whether the hand-raising operation is a valid operation can be determined based on at least one of the gyroscope sensor data and the acceleration sensor data. Optionally, in this embodiment, the sensor data satisfying the preset conditions may include the gyroscope sensor data satisfying the first preset condition, and / or the acceleration sensor data satisfying the second preset condition, that is, if the gyroscope sensor data satisfies the first preset condition within the preset time period, the hand-raising operation can be determined to be a valid operation; and / or, if the acceleration sensor data satisfies the second preset condition within the preset time period, the hand-raising operation can be determined to be a valid operation.
[0072] Further, as an optional implementation, the gyroscope sensor data within the preset time period satisfies the first condition, which may include that the data of the X-axis in the gyroscope sensor data is greater than the first threshold, the data of the Y-axis in the gyroscope sensor data is greater than the second threshold, and the data of the Z-axis in the gyroscope sensor data is greater than the third threshold. It can be understood that during the sudden lifting of the electronic device, the X-axis direction is affected by the lifting action, and fluctuates greatly during the preset time period. The Y-axis and the Z-axis are angular velocities in the gravity direction and the horizontal direction, respectively, and there are small fluctuations. Therefore, in this embodiment, the second threshold and the third threshold are both less than the first threshold, and the second threshold and the third threshold may be the same or different. It can be understood that since the data of the Z-axis in the acceleration sensor data is in the gravity direction, the data of the Z-axis may suddenly increase to the first value and then decrease to the second value during the process of the electronic device being picked up. For example, the data of the Z-axis may suddenly increase to 10 and then decrease to less than 5. Since the X-axis and the Y-axis are two horizontal directions, there are small fluctuations in the X-axis and the Y-axis during the process of the electronic device being picked up. Therefore, as an optional implementation, the acceleration sensor data within the preset time period satisfies the second condition, which may include that the data of the Z axis in the acceleration sensor data first increases to the first value and then decreases to the second value within the preset time period; and the data of the X axis in the acceleration sensor data is greater than the fourth threshold value and the data of the Y axis in the acceleration sensor data is greater than the fifth threshold value. Exemplarily, the first value may be 10, the second value may be 5, etc. This embodiment does not limit the values of the first value and the second value, as long as they are values that conform to the changes of the acceleration sensor.
[0073] In this embodiment, when a hand-raising operation is detected, the process of acquiring sensor data of the electronic device within a preset time period is relatively simple, so that when the sensor data meets the preset conditions, the detected hand-raising operation can be quickly determined to be a valid operation. The operation of the entire process is relatively simple and the amount of calculation is small, thereby ensuring the efficiency of the electronic device in determining that the hand-raising operation is a valid operation.
[0074] In order to facilitate the understanding of those skilled in the art, Figure 6 As shown, the display control method provided by the present disclosure is described in detail below, and the method may include:
[0075] S1, acquiring sensor data collected by sensors of an electronic device at preset time intervals, for example, gyroscope sensor data and acceleration sensor data.
[0076] S2, detecting whether the electronic device is in a stationary state according to the sensor data.
[0077] S3, when the electronic device is in a stationary state, detecting whether the hand-raising operation triggered by the user is a valid hand-raising operation based on the gyroscope sensor data and / or the acceleration sensor data.
[0078] S4: If the hand-raising operation triggered by the user is a valid hand-raising operation, start the timer.
[0079] S5, determining whether the operation duration of the hand-raising operation is less than a preset duration threshold.
[0080] S6: If the operation duration of the hand-raising operation is less than the preset duration threshold, a first instruction is sent to the touch screen system.
[0081] S7: If the operation duration of the hand-raising operation is not less than the preset duration threshold, a second instruction is sent to the touch screen system.
[0082] S8, the touch screen system receives the instruction sent by the electronic device, sets the register of the touch screen system through the interface, switches the black screen gesture recognition condition to the first recognition condition according to the first instruction, or switches the black screen gesture recognition condition to the second recognition condition according to the second instruction.
[0083] S9, the touch screen system detects whether the received trigger gesture meets the set recognition conditions.
[0084] S10: If the conditions are met, the touch screen system controls the display screen to switch to a bright screen state.
[0085] S11: If not satisfied, the touch screen system does not report the trigger event, or the reported trigger event is an erroneous trigger event.
[0086] It should be noted that for the description of the above steps, reference may be made to the relevant description in the above embodiment, and the effects are similar, so this embodiment will not be repeated here.
[0087] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0088] Based on the same inventive concept, the embodiment of the present application also provides a display control device for implementing the display control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more display control device embodiments provided below can refer to the limitations of the display control method above, and will not be repeated here.
[0089] In one embodiment, Figure 7 As shown, a display control device is provided, comprising: a first acquisition module 10, a first determination module 11 and a control module 12, wherein:
[0090] The first acquisition module 10 is used to acquire the operation duration of the hand-raising operation when a valid hand-raising operation is detected; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state.
[0091] The first determination module 11 is used to determine the target recognition condition of the black screen gesture according to the operation duration and the preset duration threshold; the target recognition condition includes the first recognition condition or the second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition.
[0092] The control module 12 is used to control the display screen to switch to a bright screen state if a trigger gesture that meets the target recognition condition is received.
[0093] The display control device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0094] Based on the above embodiments, Figure 8 As shown, optionally, the first determining module 11 includes: a first determining unit 111 and a second determining unit 112, wherein:
[0095] The first determining unit 111 is configured to determine the black screen gesture recognition condition as the first recognition condition if the operation duration is less than a preset duration threshold.
[0096] The second determining unit 112 is configured to determine the black screen gesture recognition condition as the second recognition condition if the operation duration is not less than a preset duration threshold.
[0097] Optionally, the first identification condition includes at least one of the following:
[0098] The straight line distance between the starting point and the end point of the gesture is the first distance value;
[0099] The distance between the starting point and the middle point of the gesture along the preset direction is the second distance value;
[0100] The distance between the starting point and the end point of the gesture along the preset direction is the third distance value;
[0101] The triggering time interval of the gesture is the first time interval.
[0102] Optionally, the second identification condition includes at least one of the following:
[0103] The straight-line distance between the starting point and the end point of the gesture is a fourth distance value; the fourth distance value is less than the first distance value;
[0104] The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value;
[0105] The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; the sixth distance value is less than the third distance value;
[0106] The triggering time interval of the gesture is a second time interval; the second time interval is shorter than the first time interval.
[0107] The display control device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0108] Based on the above embodiments, Fig. 9 As shown, optionally, the above device further includes: a second acquisition module 13 and a second determination module 14, wherein:
[0109] The second acquisition module 13 is used to acquire sensor data of the electronic device within a preset time period when a hand-raising operation is detected.
[0110] The second determination module 14 is used to determine that the hand-raising operation is a valid operation when the sensor data meets a preset condition.
[0111] The display control device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0112] Based on the above embodiment, optionally, the sensor data includes gyroscope sensor data and acceleration sensor data, and the sensor data meets the preset conditions including:
[0113] The gyroscope sensor data satisfies a first preset condition, and / or,
[0114] The acceleration sensor data meets the second preset condition.
[0115] Optionally, the gyroscope sensor data satisfies the first preset condition including:
[0116] The data of the X axis in the gyro sensor data is greater than a first threshold, the data of the Y axis in the gyro sensor data is greater than a second threshold, and the data of the Z axis in the gyro sensor data is greater than a third threshold.
[0117] Optionally, the acceleration sensor data satisfies the second preset condition including:
[0118] The data of the Z axis in the acceleration sensor data increases to a first value and then decreases to a second value within a preset time period; and
[0119] The data of the X axis in the acceleration sensor data is greater than a fourth threshold value, and the data of the Y axis in the acceleration sensor data is greater than a fifth threshold value.
[0120] The display control device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0121] Each module in the above display control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0122] In one embodiment, a computer device is provided. The computer device may be an electronic device, and its internal structure diagram may be as shown in FIG. Fig.10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a display control method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0123] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0124] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0125] When a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state;
[0126] Determine a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition;
[0127] If a trigger gesture that meets the target recognition conditions is received, the control display screen switches to the bright screen state.
[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0129] If the operation duration is less than the preset duration threshold, the black screen gesture recognition condition is determined as the first recognition condition;
[0130] If the operation duration is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition.
[0131] Optionally, the first identification condition includes at least one of the following:
[0132] The straight line distance between the starting point and the end point of the gesture is the first distance value;
[0133] The distance between the starting point and the middle point of the gesture along the preset direction is the second distance value;
[0134] The distance between the starting point and the end point of the gesture along the preset direction is the third distance value;
[0135] The triggering time interval of the gesture is the first time interval.
[0136] Optionally, the second identification condition includes at least one of the following:
[0137] The straight-line distance between the starting point and the end point of the gesture is a fourth distance value; the fourth distance value is less than the first distance value;
[0138] The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value;
[0139] The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; the sixth distance value is less than the third distance value;
[0140] The triggering time interval of the gesture is a second time interval; the second time interval is shorter than the first time interval.
[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0142] When a hand-raising operation is detected, sensor data of the electronic device within a preset time period is obtained;
[0143] When the sensor data meets the preset conditions, the hand-raising operation is determined to be a valid operation.
[0144] Optionally, the sensor data includes gyroscope sensor data and acceleration sensor data, and the sensor data satisfies the preset conditions including:
[0145] The gyroscope sensor data satisfies a first preset condition, and / or,
[0146] The acceleration sensor data meets the second preset condition.
[0147] Optionally, the gyroscope sensor data satisfies the first preset condition including:
[0148] The data of the X axis in the gyro sensor data is greater than a first threshold, the data of the Y axis in the gyro sensor data is greater than a second threshold, and the data of the Z axis in the gyro sensor data is greater than a third threshold.
[0149] Optionally, the acceleration sensor data satisfies the second preset condition including:
[0150] The data of the Z axis in the acceleration sensor data increases to a first value and then decreases to a second value within a preset time period; and
[0151] The data of the X axis in the acceleration sensor data is greater than a fourth threshold value, and the data of the Y axis in the acceleration sensor data is greater than a fifth threshold value.
[0152] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0153] When a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state;
[0154] Determine a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition;
[0155] If a trigger gesture that meets the target recognition conditions is received, the control display screen switches to the bright screen state.
[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0157] If the operation duration is less than the preset duration threshold, the black screen gesture recognition condition is determined as the first recognition condition;
[0158] If the operation duration is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition.
[0159] Optionally, the first identification condition includes at least one of the following:
[0160] The straight line distance between the starting point and the end point of the gesture is the first distance value;
[0161] The distance between the starting point and the middle point of the gesture along the preset direction is the second distance value;
[0162] The distance between the starting point and the end point of the gesture along the preset direction is the third distance value;
[0163] The triggering time interval of the gesture is the first time interval.
[0164] Optionally, the second identification condition includes at least one of the following:
[0165] The straight-line distance between the starting point and the end point of the gesture is a fourth distance value; the fourth distance value is less than the first distance value;
[0166] The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value;
[0167] The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; the sixth distance value is less than the third distance value;
[0168] The triggering time interval of the gesture is a second time interval; the second time interval is shorter than the first time interval.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] When a hand-raising operation is detected, sensor data of the electronic device within a preset time period is obtained;
[0171] When the sensor data meets the preset conditions, the hand-raising operation is determined to be a valid operation.
[0172] Optionally, the sensor data includes gyroscope sensor data and acceleration sensor data, and the sensor data satisfies the preset conditions including:
[0173] The gyroscope sensor data satisfies a first preset condition, and / or,
[0174] The acceleration sensor data meets the second preset condition.
[0175] Optionally, the gyroscope sensor data satisfies the first preset condition including:
[0176] The data of the X axis in the gyro sensor data is greater than a first threshold, the data of the Y axis in the gyro sensor data is greater than a second threshold, and the data of the Z axis in the gyro sensor data is greater than a third threshold.
[0177] Optionally, the acceleration sensor data satisfies the second preset condition including:
[0178] The data of the Z axis in the acceleration sensor data increases to a first value and then decreases to a second value within a preset time period; and
[0179] The data of the X axis in the acceleration sensor data is greater than a fourth threshold value, and the data of the Y axis in the acceleration sensor data is greater than a fifth threshold value.
[0180] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0181] When a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state;
[0182] Determine a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition;
[0183] If a trigger gesture that meets the target recognition conditions is received, the control display screen switches to the bright screen state.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] If the operation duration is less than the preset duration threshold, the black screen gesture recognition condition is determined as the first recognition condition;
[0186] If the operation duration is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition.
[0187] Optionally, the first identification condition includes at least one of the following:
[0188] The straight line distance between the starting point and the end point of the gesture is the first distance value;
[0189] The distance between the starting point and the middle point of the gesture along the preset direction is the second distance value;
[0190] The distance between the starting point and the end point of the gesture along the preset direction is the third distance value;
[0191] The triggering time interval of the gesture is the first time interval.
[0192] Optionally, the second identification condition includes at least one of the following:
[0193] The straight-line distance between the starting point and the end point of the gesture is a fourth distance value; the fourth distance value is less than the first distance value;
[0194] The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value;
[0195] The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; the sixth distance value is less than the third distance value;
[0196] The triggering time interval of the gesture is a second time interval; the second time interval is shorter than the first time interval.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] When a hand-raising operation is detected, sensor data of the electronic device within a preset time period is obtained;
[0199] When the sensor data meets the preset conditions, the hand-raising operation is determined to be a valid operation.
[0200] Optionally, the sensor data includes gyroscope sensor data and acceleration sensor data, and the sensor data satisfies the preset conditions including:
[0201] The gyroscope sensor data satisfies a first preset condition, and / or,
[0202] The acceleration sensor data meets the second preset condition.
[0203] Optionally, the gyroscope sensor data satisfies the first preset condition including:
[0204] The data of the X axis in the gyro sensor data is greater than a first threshold, the data of the Y axis in the gyro sensor data is greater than a second threshold, and the data of the Z axis in the gyro sensor data is greater than a third threshold.
[0205] Optionally, the acceleration sensor data satisfies the second preset condition including:
[0206] The data of the Z axis in the acceleration sensor data increases to a first value and then decreases to a second value within a preset time period; and
[0207] The data of the X axis in the acceleration sensor data is greater than a fourth threshold value, and the data of the Y axis in the acceleration sensor data is greater than a fifth threshold value.
[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0209] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0210] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A display control method, characterized in that: The method comprises: When a valid hand-raising operation is detected, the operation duration of the hand-raising operation is obtained; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state; Determining a target recognition condition for the black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition; If a trigger gesture that meets the target recognition condition is received, the display screen is controlled to switch to a bright screen state.
2. The method according to claim 1, characterized in that The determining of a target recognition condition for a black screen gesture according to the operation duration and a preset duration threshold comprises: If the operation duration is less than the preset duration threshold, determining the black screen gesture recognition condition as the first recognition condition; If the operation duration is not less than the preset duration threshold, the black screen gesture recognition condition is determined as the second recognition condition.
3. The method according to claim 1 or 2, characterized in that: The first identification condition includes at least one of the following: The straight-line interval between the starting point and the end point of the gesture is a first distance value; The distance between the starting point and the middle point of the gesture along the preset direction is a second distance value; The distance between the starting point and the end point of the gesture along the preset direction is a third distance value; The triggering time interval of the gesture is a first time interval.
4. The method according to claim 3, characterized in that The second identification condition includes at least one of the following: The straight-line interval between the starting point and the end point of the gesture is a fourth distance value; the fourth distance value is smaller than the first distance value; The distance between the starting point and the middle point of the gesture along the preset direction is a fifth distance value; the fifth distance value is less than the second distance value; The distance between the starting point and the end point of the gesture along the preset direction is a sixth distance value; The sixth distance value is less than the third distance value; The triggering time interval of the gesture is a second time interval; the second time interval is shorter than the first time interval.
5. The method according to claim 1, characterized in that The method further comprises: When the hand-raising operation is detected, acquiring sensor data of the electronic device within a preset time period; When the sensor data meets a preset condition, the hand-raising operation is determined to be a valid operation.
6. The method according to claim 5, characterized in that The sensor data includes gyroscope sensor data and acceleration sensor data, and the sensor data meets the preset conditions including: The gyroscope sensor data satisfies a first preset condition, and / or, The acceleration sensor data meets a second preset condition.
7. The method according to claim 6, characterized in that The gyroscope sensor data meets the first preset condition including: The X-axis data in the gyro sensor data is greater than a first threshold, the Y-axis data in the gyro sensor data is greater than a second threshold, and the Z-axis data in the gyro sensor data is greater than a third threshold.
8. The method according to claim 6, characterized in that The acceleration sensor data satisfies the second preset condition including: The data of the Z axis in the acceleration sensor data first increases to a first value and then decreases to a second value within the preset time period; and The data of the X axis in the acceleration sensor data is greater than a fourth threshold, and the data of the Y axis in the acceleration sensor data is greater than a fifth threshold.
9. A display control device, characterized in that: The device comprises: A first acquisition module is used to acquire the operation duration of the hand-raising operation when a valid hand-raising operation is detected; the hand-raising operation is triggered when the electronic device is in a stationary state and the display screen of the electronic device is in a black screen state; A first determination module, configured to determine a target recognition condition for a black screen gesture according to the operation duration and a preset duration threshold; the target recognition condition includes a first recognition condition or a second recognition condition; the difficulty of the gesture operation corresponding to the first recognition condition is greater than the difficulty of the gesture operation corresponding to the second recognition condition; The control module is used to control the display screen to switch to a bright screen state if a trigger gesture that meets the target recognition condition is received.
10. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the display control method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.