Display control method and device and storage medium
By using distance sensors in mobile electronic devices to detect user distance and perform screen display control, the problem of long screen response time and limited use scenarios is solved, and more efficient user-to-device interaction is achieved.
Patent Information
- Application Number
- CN202310981590.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
AI Technical Summary
The screen display of mobile electronic devices has a long response time and limited usage scenarios, which affects the user experience.
The distance sensor of the electronic device detects the distance between the user and the device, and performs screen display control based on the first detected distance value and real-time distance threshold, so as to automatically light up the screen when the user is close and automatically lock the screen when it is far away.
Improve the accuracy and response speed of screen display control, avoid the lock screen problem caused by misidentification of stationary objects, and improve the user experience.
Smart Images

Figure CN119446080A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic displays, and in particular to a display control method, device and storage medium. Background Art
[0002] With the advancement of technology, various mobile electronic devices have gradually become indispensable technological products for people.
[0003] In the related art, for example, a tablet display device can use touch sensing to wake up the screen for further unlocking and use. However, the screen display of various mobile electronic devices has a long response time and limited usage scenarios, which affects the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a display control method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a display control method is provided, comprising detecting the distance between a user and the electronic device based on a distance sensor of the electronic device; in response to determining that a screen control condition is satisfied based on the detected distance, determining a first distance value between the user and the electronic device detected for the first time when the screen control condition is satisfied, the screen control condition comprising the user being away from the electronic device or the user being close to the electronic device; and performing screen display control based on the screen control condition and the first distance value.
[0006] In one embodiment, the screen display control based on the screen control condition and the first distance value includes: in response to the screen control condition that the user is close to the electronic device and the screen of the electronic device is in a locked screen state, determining a second distance value detected in real time by the distance sensor, and determining a real-time distance threshold based on the first distance value and / or the second distance value, the real-time distance threshold being the maximum distance value at which the electronic device can identify the user; if the second distance value is continuously detected to be less than the difference between the distance threshold and a preset value within a first set time period, controlling the electronic device to change from a locked screen state to a bright screen state.
[0007] In one implementation, determining the real-time distance threshold based on the first distance value and / or the second distance value includes: if the first distance value is greater than a predefined maximum distance threshold, determining the maximum distance threshold as the real-time distance threshold; or
[0008] If the first distance value is less than the difference between a predefined maximum distance threshold and a preset value, determining the maximum distance threshold as the real-time distance threshold; or
[0009] If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or
[0010] If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, the second distance value is determined as the real-time distance threshold; if the first distance value is less than the predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
[0011] In one embodiment, the screen display control is performed based on the screen control condition and the first distance value, including: in response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a bright screen state, determining a second distance value detected in real time by the distance sensor; if the second distance value is continuously detected to be greater than a predefined maximum distance threshold within a second set time period and no operation on the electronic device is detected, controlling the electronic device to switch from the bright screen state to the locked screen state.
[0012] In one embodiment, controlling the electronic device to switch from a screen-on state to a screen-locked state further includes: in response to detecting a screen-on operation on the electronic device and detecting that the second distance value is less than the difference between the distance threshold and a preset value, controlling the electronic device to change from a screen-locked state to a screen-on state.
[0013] In one embodiment, before the distance sensor based on the electronic device detects the distance between the user and the electronic device, the method further includes: determining that the posture of the electronic device satisfies a preset posture, and the preset posture is used to represent that the electronic device is in a state of being used by the user.
[0014] According to a second aspect of an embodiment of the present disclosure, there is provided a display control device, including:
[0015] An execution unit is used to detect the distance between a user and the electronic device based on a distance sensor of the electronic device; a determination unit is used to determine, in response to determining that a screen control condition is satisfied based on the detected distance, a first distance value between the user and the electronic device detected for the first time when the screen control condition is satisfied, wherein the screen control condition includes the user being away from the electronic device or the user being close to the electronic device; and a control unit is used to perform screen display control based on the screen control condition and the first distance value.
[0016] In one embodiment, the determination unit performs screen display control based on the screen control condition and the first distance value in the following manner: in response to the screen control condition that the user is close to the electronic device and the screen of the electronic device is in a locked screen state, determine the second distance value detected in real time by the distance sensor, and determine the real-time distance threshold based on the first distance value and / or the second distance value, the real-time distance threshold being the maximum distance value at which the electronic device can identify the user; if the second distance value is continuously detected to be less than the difference between the distance threshold and a preset value within a first set time period, control the electronic device to change from a locked screen state to a bright screen state.
[0017] In one implementation, the determining unit determines the real-time distance threshold based on the first distance value and / or the second distance value in the following manner: if the first distance value is greater than a predefined maximum distance threshold, determining the maximum distance threshold as the real-time distance threshold; or
[0018] If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or
[0019] If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, determining the second distance value as a real-time distance threshold;
[0020] If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
[0021] In one embodiment, the control unit performs screen display control based on the screen control condition and the first distance value in the following manner: in response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a bright screen state, determine a second distance value detected in real time by the distance sensor; if the second distance value is continuously detected to be greater than a predefined maximum distance threshold within a second set time period and no operation on the electronic device is detected, control the electronic device to switch from the bright screen state to the locked screen state.
[0022] In one embodiment, the control unit is also used to control the electronic device to switch from a screen-on state to a screen-locked state: in response to detecting a screen-on operation on the electronic device and detecting that the second distance value is less than the difference between the distance threshold and a preset value, the electronic device is controlled to change from a screen-locked state to a screen-on state.
[0023] In one embodiment, the determination unit is further used to: determine that the posture of the electronic device satisfies a preset posture before detecting the distance between the user and the electronic device based on the distance sensor of the electronic device, and the preset posture is used to represent that the electronic device is in a state of being used by the user.
[0024] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to execute the executable instructions to execute the display control method in the first aspect or any one of the embodiments of the first aspect.
[0025] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the display control method in the first aspect or any one of the embodiments of the first aspect.
[0026] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: based on the distance between the user and the electronic device detected by the distance sensor of the electronic device, when the user is far away from the electronic device or the user is close to the electronic device, screen display control is performed based on the first distance value between the user and the electronic device detected for the first time, so that the distance between the user and the electronic device can be determined based on the dynamic distance, thereby avoiding the erroneous screen control caused by identifying a stationary object within the detection range of the screen, quickly and accurately identifying the user's control intention for the electronic device, and thereby improving the accuracy of screen display control based on distance.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0029] Figure 1 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0030] Figure 2 The present invention is a flowchart of a method for controlling a display screen to light up according to an exemplary embodiment.
[0031] Figure 3 The present invention is a flowchart of a method for displaying and locking a screen according to an exemplary embodiment.
[0032] Figure 4 The figure is a flow chart of a close-to-bright-screen algorithm according to an exemplary embodiment.
[0033] Figure 5 The present invention is a flowchart of an algorithm for entering and leaving the lock screen according to an exemplary embodiment.
[0034] Figure 6 The figure is a flow chart of an algorithm for entering a near-bright screen according to an exemplary embodiment.
[0035] Figure 7 The figure is a block diagram of a display control device according to an exemplary embodiment.
[0036] Figure 8 The invention is a block diagram of a display control device according to an exemplary embodiment. DETAILED DESCRIPTION
[0037] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0038] The display control method provided in the embodiment of the present disclosure is applied to the display scene of the electronic device display screen. The display control method involved in the embodiment of the present disclosure is mainly applied to the display control scene of the electronic device with a display screen. For example, it is applied to the scene of the display of the flat panel display screen.
[0039] The display control method in the related technology is implemented based on the smart eye sensing system when the electronic device display screen displays, which is strongly dependent on the neural network. There is a situation of mis-locking when the cover is not closed; in addition, the screen response time is long, the user experience is poor, and it cannot cover the scene where there are stationary objects within 0.7m-0.9m behind the screen, such as the scene where there is a chair.
[0040] Moreover, in most cases, the display of the electronic device screen is based on the touch sensing function to light up the screen so that the user can proceed to the next step of unlocking and using it. The operation is cumbersome and the user experience is poor.
[0041] In view of this, the present disclosure provides a display control method, which is based on the detectable range of the distance sensor of the electronic device and the condition that the screen display control is performed based on the distance to turn on or lock the screen. The screen display of the electronic device is more accurately controlled based on the distance detected for the first time between the user and the electronic device, and the user's intention to turn on or lock the screen of the electronic device is quickly and accurately identified, thereby improving the accuracy of the screen display control.
[0042] Figure 1 FIG. 1 is a flow chart of a display control method according to an exemplary embodiment. Figure 1As shown, the display control method is used in an electronic device and includes the following steps.
[0043] In step S11 , the distance between the user and the electronic device is detected based on a distance sensor of the electronic device.
[0044] In the embodiment of the present disclosure, the screen is turned on when a user approaches and is locked when the user leaves, depending on the distance between the user and the electronic device.
[0045] The distance sensor of the electronic device involved in the present disclosure detects the distance between the user and the electronic device, which can be understood as the optimal distance value between the user and the electronic device that can be detected by the electronic device with good performance.
[0046] In step S12, in response to determining that the screen control condition is met based on the detected distance, a first distance value between the user and the electronic device detected for the first time under the screen control condition is determined, wherein the screen control condition includes the user being away from the electronic device or the user being close to the electronic device.
[0047] In the embodiment of the present disclosure, a first distance value between the user and the electronic device is determined according to the detected distance that satisfies the screen control condition.
[0048] The screen control condition involved in the present disclosure can be understood as the screen control range in which the distance sensor of the electronic device detects that the user has entered the detectable range, that is, the screen control range in which the distance sensor can report the current user distance, and the state of the user in the current range satisfies the reporting state. The first distance value can be understood as the first data recorded by the distance sensor of the electronic device when it detects that the user has entered the detectable range.
[0049] In step S13, screen display control is performed based on the screen control condition and the first distance value.
[0050] In the embodiment of the present disclosure, display control is performed to light up the screen when a person comes and lock the screen when a person leaves based on the screen control condition and the first distance value detected by the distance sensor of the electronic device.
[0051] Among them, screen display control can be understood as the display control of the electronic device display screen to light up when a user approaches and lock the screen when the user leaves after the distance sensor of the electronic device detects the distance between the user and the electronic device.
[0052] In the disclosed embodiment, the distance between the user and the electronic device is detected by a distance sensor of the electronic device, and on the basis of determining whether the user currently meets the screen control conditions of the electronic device, operations of lighting the screen when the user approaches and locking the screen when the user leaves are performed according to the distance between the user and the electronic device. The response time of the electronic device is shortened and the screen can be controlled without the user performing touch operations.
[0053] Figure 2 FIG. 1 is a flow chart of a method for controlling a display screen to be bright according to an exemplary embodiment. Figure 2 As shown, the following steps are included:
[0054] In step S21, in response to the screen control condition that the user is close to the electronic device and the screen of the electronic device is in a locked state, a second distance value detected in real time by the distance sensor is determined, and a real-time distance threshold is determined based on the first distance value and / or the second distance value. The real-time distance threshold is the maximum distance value at which the electronic device can identify the user.
[0055] In the embodiment of the present disclosure, a screen lighting control operation is performed on the electronic device display according to the screen control conditions.
[0056] The second distance value can be understood as the distance value between the user and the electronic device detected in real time by the distance sensor when the user approaches the electronic device again. The distance threshold can be understood as the maximum distance value based on which the distance detector determines whether the user is currently operating the electronic device to turn on or lock the screen when the user approaches the electronic device.
[0057] In step S22, if it is continuously detected that the second distance value is smaller than the difference between the distance threshold and the preset value within the first set time period, the electronic device is controlled to change from the locked screen state to the bright screen state.
[0058] In the embodiment of the present disclosure, when the user is within the distance range detectable by the distance detector and the user's state meets the conditions required for the screen to turn on, the electronic device is controlled to change from a locked screen state to a turned-on screen state.
[0059] The first set duration can be understood as the duration of the user's stay in the screen-on range detected by the distance detector, that is, the duration of time the electronic device can determine that the user intends to turn on the screen. The preset value can be understood as a fixed value, which refers to the distance detection range value of the user's approaching the screen within a certain distance range.
[0060] In the disclosed embodiment, the distance detector detects the distance between the user and the electronic device, and then directly turns on the screen of the electronic device, which is convenient to operate and improves the user experience.
[0061] In the embodiment of the present disclosure, a real-time distance threshold is further determined based on the acquired first distance value and second distance value, wherein the method for determining the real-time distance threshold includes the following: if the first distance value is greater than a predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold; or
[0062] If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or
[0063] If the first distance value is less than the predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, determining the second distance value as the real-time distance threshold;
[0064] If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
[0065] Among them, the predefined maximum distance threshold can be understood as the maximum fixed distance value set by the electronic device when the distance sensor has not yet detected the distance between the user and the electronic device, that is, the fixed distance value set manually to enable the screen-on when someone comes and the screen-lock when someone leaves operations.
[0066] In the disclosed embodiment, a real-time distance threshold is determined based on the first distance value and / or the second distance value to ensure that the distance threshold is updated in real time when the user performs the "come and light up the screen" operation, so that subsequent users can continue to perform the "come and light up the screen" operation.
[0067] In an embodiment of the present disclosure, after the user lights up the screen when a person approaches based on the distance detected by the distance sensor and further completes an operation on the electronic device, when the user intends to lock the screen, a screen lock method is provided. For example, the distance sensor is used to detect the distance between the user and the electronic device again, and the screen lock function is implemented according to the detected distance between the user and the electronic device.
[0068] Figure 3 FIG. 1 is a flow chart of a method for displaying and locking a screen according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0069] In step S31, in response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a bright screen state, a second distance value detected in real time by the distance sensor is determined.
[0070] In the embodiment of the present disclosure, when the electronic display screen is in a bright screen state, if the user is away from the electronic device, the distance between the user and the electronic device in the current state is determined.
[0071] Among them, the screen control condition that the user is away from the electronic device can be understood as that the distance sensor detects that the user has the intention to lock the screen, that is, the user is away from the electronic device.
[0072] In step S32, if the second distance value is continuously detected to be greater than the predefined maximum distance threshold within the second set time period and no operation on the electronic device is detected, the electronic device is controlled to switch from the screen-on state to the screen-locked state.
[0073] In the disclosed embodiment, when the user is within the distance range detectable by the distance detector and the user's state meets the conditions required for screen lock, the electronic device is controlled to change from the screen-on state to the screen-lock state.
[0074] The second set duration can be understood as the duration of the user's stay in the lock screen range detected by the distance detector, that is, the duration during which the electronic device can determine that the user intends to lock the screen. When the distance detector detects that the user's distance is greater than the maximum fixed distance value set by the electronic device when the distance sensor has not yet detected the distance between the user and the electronic device within the duration, and the user has not operated the electronic device within this duration, the electronic device is controlled to change from the screen-on state to the screen-locked state.
[0075] In the embodiment of the present disclosure, the electronic device obtains the distance between the user and the electronic device detected by the distance sensor and the user has not operated the electronic device within a set time period, and locks the screen of the electronic device, thereby avoiding the situation where the screen is accidentally locked due to the user temporarily leaving.
[0076] In the embodiment of the present disclosure, after controlling the electronic device to switch from the screen-on state to the screen-locked state, it also includes: in response to detecting a screen-on operation on the electronic device and detecting that the second distance value is less than the difference between the distance threshold and the preset value, controlling the electronic device to change from the screen-locked state to the screen-on state.
[0077] Among them, detecting that the second distance is less than the difference between the distance threshold and the preset value can be understood as the user automatically turning off the power button or the user not operating the electronic device for a certain period of time, or the electronic device mistakenly identifying it as an object. In this case, to control the electronic device to change from the locked screen state to the bright screen state, the user needs to approach the electronic device at a distance smaller than the second distance detected at this time, and after the electronic device changes from the locked screen state to the bright screen state, if the user leaves, the distance value stored in the electronic device will be updated again.
[0078] In the disclosed embodiment, based on the detected second distance value being less than the difference between the distance threshold and the preset value, the electronic device is controlled to change from a locked screen state to a bright screen state, thereby avoiding the situation where the screen is mistakenly lit when the user is still at the current location after the screen is locked.
[0079] In the embodiment of the present disclosure, before the distance sensor of the electronic device detects the distance between the user and the electronic device, it also includes: determining that the posture of the electronic device meets a preset posture, and the preset posture is used to represent that the electronic device is in a state of being used by the user.
[0080] The posture of the electronic device can be understood as the static state or motion state reported by the absolute motion detection sensor on the electronic device, and the four-element component value reported by the game rotation vector sensor of the electronic device. The preset posture can be understood as the angle of the electronic device with the desktop that can be detected by the user, which is determined from the four-element component value reported by the game rotation vector sensor of the electronic device.
[0081] In the disclosed embodiment, when the posture of the electronic device meets the preset posture, the distance between the user and the electronic device is detected to avoid the screen being on for a long time and reduce power consumption.
[0082] Figure 4 FIG. 1 is a flowchart of an algorithm for approaching a bright screen according to an exemplary embodiment. Figure 4 As shown, the following steps are included:
[0083] In step S41, the monitor lights up the screen.
[0084] In an exemplary embodiment of the present disclosure, a user turns on the "light up screen when approaching" switch in the settings, and in the locked screen state, listens for someone to light up the screen.
[0085] In step S42, the second distance value is acquired in real time.
[0086] In an exemplary embodiment of the present disclosure, after the algorithm stores the first recorded data, the distance that the user subsequently reaches is recorded as the second distance value of the user.
[0087] In step S43, the first distance value is greater than a predefined maximum distance threshold.
[0088] In an exemplary embodiment of the present disclosure, the algorithm records the first data as the largest data, records the first data as the first distance value, and compares the first distance value with a predefined maximum distance threshold to determine whether the first distance value needs to be updated.
[0089] In step S44, the first distance value is updated, and the maximum first distance value is a predefined maximum distance threshold.
[0090] In an exemplary embodiment of the present disclosure, the first distance value is the first data recorded by the algorithm as the maximum distance value. If the data is greater than a predefined maximum distance threshold, it is recorded as the predefined maximum distance threshold.
[0091] In step S45, the first distance value is greater than the second distance value.
[0092] In an exemplary embodiment of the present disclosure, the relationship between the first distance value and the second distance value is compared, and it is determined whether the first distance value is greater than the second distance value.
[0093] In step S46, the second distance value is smaller than the difference between the first distance value and the preset value, and the duration is longer than the first set time period.
[0094] In an exemplary embodiment of the present disclosure, the relationship between the current second distance value and the difference between the first distance value and the preset value is determined. The duration being longer than the first set duration can be understood as the time required for the electronic device to confirm whether the user has the intention to turn on the screen in the current state.
[0095] In step S47, the human arrival event is reported.
[0096] In an exemplary embodiment of the present disclosure, when the state of the user meets the state condition for the electronic device to detect the presence of a person, the presence of a person is reported, so that the screen lights up.
[0097] In an exemplary embodiment of the present disclosure, a user turns on the "light up screen when approaching" switch in the settings, and in the locked screen state, enters the detection range of the distance sensor, and the screen lights up. Specifically, after the user enters the detection range of the distance sensor, if it is detected that the user is in a distance range of the difference between a first distance value and a preset value for a first set time period, the user's need to use the screen is responded to.
[0098] In an exemplary embodiment of the present disclosure, since the distance sensor needs to accurately detect the distance between the electronic device and the user and reduce the loss caused by the electronic device keeping the screen on for a long time, a detection condition that can effectively detect the distance between the user and the electronic device is set for the electronic device. For example, the condition is set to a fixed posture of the electronic device. The fixed posture can be a predetermined posture of the electronic device. When the electronic device is in the predetermined posture, the distance value detected by the distance sensor can be obtained.
[0099] In an exemplary embodiment of the present disclosure, it is determined whether the distance sensor is in a state where the distance between the user and the electronic device can be detected, and the screen lock function is implemented according to the state of the distance sensor.
[0100] Figure 5 FIG. 1 is a flowchart of an algorithm for entering and leaving the lock screen according to an exemplary embodiment. Figure 5 As shown, the following steps are included:
[0101] In step S51, the function of locking the screen when a person leaves is enabled.
[0102] In an exemplary embodiment of the present disclosure, starting the algorithm means that the user turns on a switch that allows the user to approach the bright screen and leave the locked screen.
[0103] In step S52, the posture of the electronic device is acquired.
[0104] In an exemplary embodiment of the present disclosure, the angle between the electronic device and the desktop is obtained based on the stationary or moving state reported by the absolute motion detection sensor of the electronic device and the four-element component values reported by the game rotation vector sensor of the electronic device.
[0105] In step S53, the electronic device is in a stationary state.
[0106] In an exemplary embodiment of the present disclosure, the static posture can be understood as a condition in which the electronic device is stably placed when the electronic device is placed at the above angle state within the range where the electronic device can detect the user.
[0107] In step S54, the electronic device maintains a static posture for a predefined time.
[0108] In an exemplary embodiment of the present disclosure, it is determined that the electronic device remains in a static state for a predefined time, such as 2 seconds. It can be understood that when the electronic device is accidentally moved by the user or other circumstances may cause the electronic device to shake slightly, in order to prevent the electronic device from being unable to identify the distance between the user and the electronic device, it is determined that the electronic device remains static for a certain period of time under the above circumstances, and the electronic device is considered to be in a static state.
[0109] In step S55, the distance value detected by the distance sensor is acquired.
[0110] In an exemplary embodiment of the present disclosure, when the electronic device is in the above angle state, it is considered that the distance between the user and the electronic device can be detected by the distance sensor.
[0111] In step S56, the screen is locked when the person leaves.
[0112] In an exemplary embodiment of the present disclosure, the screen lock operation is performed according to the current algorithm logic.
[0113] In step S57, the tilt angle between the electronic device and the desktop is greater than a preset angle.
[0114] In an exemplary embodiment of the present disclosure, the preset angle can be understood as the angle at which the electronic device is located to be able to detect the angle condition between the user and the electronic device, for example, the angle when the electronic device is in a horizontal position with a positive support angle of 90-135 degrees with the desktop.
[0115] In step S58, the duration is greater than or equal to a predefined time.
[0116] In an exemplary embodiment of the present disclosure, the electronic device is at a current preset angle and determines whether the duration is greater than or equal to a predefined time, for example, 2S.
[0117] In an exemplary embodiment of the present disclosure, when determining whether the duration of use of the electronic device satisfies the condition, it is avoided that the user temporarily places the electronic device and causes the electronic device to be damaged due to the sensing of the distance sensor.
[0118] In step S59, no reporting is performed.
[0119] In an exemplary embodiment of the present disclosure, when the electronic device is in a non-stationary state or has an inclination angle greater than a preset angle with respect to the horizontal desktop and continues for a predefined time, the current distance will not be reported.
[0120] In step S60, the screen lock function is terminated.
[0121] In an exemplary embodiment of the present disclosure, when the electronic device completes each logic operation in the current algorithm flow, the algorithm ends.
[0122] In an exemplary embodiment of the present disclosure, the posture of the electronic device is directly acquired, and after the distance between the user and the electronic device is acquired, it is determined again whether the current electronic device is in a stationary state, and an operation of detecting the distance between the user and the electronic device is performed.
[0123] Figure 6 FIG. 1 is a flowchart of an algorithm for entering a near-bright screen according to an exemplary embodiment. Figure 6 As shown, the following steps are included:
[0124] In step S61, the screen lighting function is enabled.
[0125] In an exemplary embodiment of the present disclosure, starting the algorithm means that the user turns on a switch that sets the screen to light up when approaching and to turn off when leaving.
[0126] The specific implementation of step S62 has been specifically described in step S52 and will not be repeated here.
[0127] In step S63, the distance value detected by the distance sensor is acquired.
[0128] In an exemplary embodiment of the present disclosure, when the electronic device is in the above angle state, it is considered that the distance between the user and the electronic device can be detected by the distance sensor.
[0129] In step S64, the electronic device is in a non-stationary posture.
[0130] In an exemplary embodiment of the present disclosure, a non-stationary posture may be understood as a situation where the electronic device is placed unstably, for example, the electronic device is shaking, such as being continuously held in the hand of a user.
[0131] In step S65 , the duration is greater than or equal to a predefined time.
[0132] In an exemplary embodiment of the present disclosure, it is further determined whether the electronic device is placed unstably within a predefined time, such as 2S, for example, the electronic device is shaking, such as being held in the hand of the user for a long time, rather than the time based on the situation where the user accidentally touches it within a short period of time.
[0133] In step S66, the electronic device is in a stationary state.
[0134] In an exemplary embodiment of the present disclosure, the stationary state may be understood as a stationary state of the electronic device within a range where the electronic device can detect a user.
[0135] In step S67, the duration is equal to the predefined time.
[0136] In an exemplary embodiment of the present disclosure, it is determined that the electronic device remains stationary for a predefined time, such as 2 seconds. This can be understood as when the electronic device is accidentally moved by the user or other situations may cause the electronic device to shake slightly. In order to prevent the electronic device from being unable to identify the distance between the user and the electronic device, it is determined that the electronic device remains stationary for 2 seconds under the above situation, and the electronic device is considered to be in a stationary state.
[0137] The specific implementation of step S68 has been described in detail in step S59 and will not be repeated here.
[0138] In step S69, the screen lighting function is terminated.
[0139] In an exemplary embodiment of the present disclosure, when the electronic device completes each logic operation in the current algorithm flow, the algorithm ends.
[0140] In an exemplary embodiment of the present disclosure, when entering the proximity to bright screen algorithm, it is no longer necessary to judge the angle state of the electronic device, and the proximity to bright screen algorithm is reported in real time.
[0141] In one implementation, the display of the electronic device is controlled according to the functions of lighting the screen when approaching and locking the screen when leaving, which solves the problem of manually operating the screen and the power button in the use scenario of people coming and going, and improves the interaction between the user and the electronic device. The screen lock function automatically locks the screen after recognizing that the user has left, which improves the privacy of the user, avoids the screen being on for a long time, and reduces power consumption.
[0142] The display control method provided by the embodiment of the present disclosure identifies the distance between the user and the electronic device within the detectable range of the distance sensor of the electronic device. The display of the electronic device is operated more conveniently according to the distance between the user and the electronic device, and the user's intention to light up or lock the screen of the electronic device is quickly and accurately identified, and the electronic screen display is controlled according to the user's intention to the electronic device, thereby expanding the scope of use scenarios. When the distance sensor detects a scene with a stationary object within the recognition range, such as a chair, the screen lock caused by misjudging the user's intention to lock the screen is avoided, and the user is ensured to unlock and further use the electronic device without touching it, freeing the user's hands. Moreover, in the embodiment of the present disclosure, when the state of the electronic device meets the conditions for user use, such as when the posture of the electronic device meets the preset posture, the distance sensor is enabled for distance monitoring, which can reduce the power consumption of screen display control based on distance.
[0143] Based on the same concept, an embodiment of the present disclosure also provides a display control device.
[0144] It is understandable that the display control device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0145] Figure 7 is a block diagram of a display control device according to an exemplary embodiment. Figure 7 The device 100 includes an execution unit 101, a determination unit 102 and a control unit 103.
[0146] The execution unit 101 is used to detect the distance between the user and the electronic device based on a distance sensor of the electronic device; the determination unit 102 is used to determine, in response to determining that a screen control condition is satisfied based on the detected distance, a first distance value between the user and the electronic device detected for the first time when the screen control condition is satisfied, the screen control condition including the user being away from the electronic device or the user being close to the electronic device; the control unit 103 is used to perform screen display control based on the screen control condition and the first distance value.
[0147] In one embodiment, the determination unit 102 performs screen display control based on the screen control condition and the first distance value in the following manner: in response to the screen control condition that the user is close to the electronic device and the screen of the electronic device is in a locked screen state, determine the second distance value detected in real time by the distance sensor, and determine the real-time distance threshold based on the first distance value and / or the second distance value, the real-time distance threshold being the maximum distance value at which the electronic device can identify the user; if the second distance value is continuously detected to be less than the difference between the distance threshold and the preset value within a first set time period, control the electronic device to change from the locked screen state to the bright screen state.
[0148] In one implementation, the determination unit 102 determines the real-time distance threshold based on the first distance value and / or the second distance value in the following manner: if the first distance value is greater than a predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold; or
[0149] If the first distance value is less than the difference between the predefined maximum distance threshold and the preset value, determining the maximum distance threshold as the real-time distance threshold; or
[0150] If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or
[0151] If the first distance value is less than the predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, determining the second distance value as the real-time distance threshold;
[0152] If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
[0153] In one embodiment, the control unit 103 performs screen display control based on the screen control condition and the first distance value in the following manner: in response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a bright screen state, determine a second distance value detected in real time by the distance sensor; if the second distance value is continuously detected to be greater than a predefined maximum distance threshold within a second set time period and no operation on the electronic device is detected, control the electronic device to switch from the bright screen state to the locked screen state.
[0154] In one embodiment, the control unit 103 controls the electronic device to switch from the screen-on state to the screen-locked state in the following manner: in response to the screen control condition that the user actively turns off the electronic device or locks the screen due to a timeout, or the screen is mistakenly identified as being locked by an object, the electronic device is controlled to switch from the screen-on state to the screen-locked state.
[0155] In one implementation, the control unit 103 detects the distance between the user and the electronic device based on the distance sensor of the electronic device in the following manner: determining that the posture of the electronic device meets a preset posture, where the preset posture is used to represent that the electronic device is in a state of being used by the user.
[0156] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0157] Figure 8 2 is a block diagram of a display control device 200 according to an exemplary embodiment. The device 200 may be provided as an electronic device. For example, the device 200 may be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0158] Reference Figure 8 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0159] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0160] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0161] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0162] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0163] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0164] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as 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.
[0165] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0166] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can 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 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0167] In an exemplary embodiment, the apparatus 200 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0169] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0170] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0171] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0172] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0173] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0175] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A display control method, characterized in that: The method comprises: Detecting the distance between the user and the electronic device based on a distance sensor of the electronic device; In response to determining that a screen control condition is satisfied based on the detected distance, determining a first distance value between the user and the electronic device that is first detected when the screen control condition is satisfied, the screen control condition including that the user is away from the electronic device or that the user is close to the electronic device; Screen display control is performed based on the screen control condition and the first distance value.
2. The method according to claim 1, characterized in that The performing screen display control based on the screen control condition and the first distance value includes: In response to the screen control condition being that the user is close to the electronic device and the screen of the electronic device is in a locked screen state, determining a second distance value detected in real time by the distance sensor, and determining a real-time distance threshold based on the first distance value and / or the second distance value, the real-time distance threshold being a maximum distance value used by the distance sensor for user identification; If it is continuously detected within a first set time period that the second distance value is less than the difference between the distance threshold and the preset value, the electronic device is controlled to change from a locked screen state to a bright screen state.
3. The method according to claim 2, characterized in that The determining a real-time distance threshold based on the first distance value and / or the second distance value comprises: If the first distance value is greater than a predefined maximum distance threshold, determining the maximum distance threshold as a real-time distance threshold; or If the first distance value is less than the difference between a predefined maximum distance threshold and a preset value, determining the maximum distance threshold as the real-time distance threshold; or If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, determining the second distance value as a real-time distance threshold; If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
4. The method according to claim 1, characterized in that: The performing screen display control based on the screen control condition and the first distance value includes: In response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a light-on state, determining a second distance value detected in real time by the distance sensor; If it is continuously detected that the second distance value is greater than a predefined maximum distance threshold within a second set time period and no operation on the electronic device is detected, the electronic device is controlled to switch from the screen-on state to the screen-locked state.
5. The method according to claim 4, characterized in that After controlling the electronic device to switch from the screen-on state to the screen-lock state, the method further includes: In response to detecting a screen-on operation on the electronic device and detecting that the second distance value is less than a difference between the distance threshold and a preset value, the electronic device is controlled to change from a locked screen state to a screen-on state.
6. The method according to any one of claims 1 to 4, characterized in that Before the distance sensor based on the electronic device detects the distance between the user and the electronic device, the method further includes: It is determined that the posture of the electronic device satisfies a preset posture, where the preset posture is used to represent that the electronic device is in a state of being used by the user.
7. A display control device, characterized in that: include: An execution unit, configured to detect the distance between a user and the electronic device based on a distance sensor of the electronic device; a determining unit, configured to determine, in response to determining that a screen control condition is satisfied based on the detected distance, a first distance value between the user and the electronic device detected for the first time when the screen control condition is satisfied, wherein the screen control condition includes that the user is away from the electronic device or the user is close to the electronic device; A control unit is used to perform screen display control based on the screen control condition and the first distance value.
8. The display control device according to claim 7, characterized in that: The determining unit performs screen display control based on the screen control condition and the first distance value in the following manner: in response to the screen control condition that the user is close to the electronic device and the screen of the electronic device is in a locked screen state, determining a second distance value detected in real time by the distance sensor, and determining a real-time distance threshold based on the first distance value and / or the second distance value, the real-time distance threshold being a maximum distance value used by the distance sensor for user identification; If it is continuously detected within a first set time period that the second distance value is less than the difference between the distance threshold and the preset value, the electronic device is controlled to change from a locked screen state to a bright screen state.
9. The display control device according to claim 8, characterized in that: The determining unit determines the real-time distance threshold based on the first distance value and / or the second distance value in the following manner: If the first distance value is greater than a predefined maximum distance threshold, determining the maximum distance threshold as a real-time distance threshold; or If the first distance value is less than the difference between the predefined maximum distance threshold and the preset value, determining the maximum distance threshold as the real-time distance threshold; or If the first distance value is less than a predefined maximum distance threshold, determining the first distance value as a real-time distance threshold; or If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and less than the predefined maximum distance threshold, determining the second distance value as a real-time distance threshold; If the first distance value is less than a predefined maximum distance threshold, and the second distance value is greater than the first distance value and greater than the predefined maximum distance threshold, the maximum distance threshold is determined as the real-time distance threshold.
10. The display control device according to claim 7, characterized in that: The control unit performs screen display control based on the screen control condition and the first distance value in the following manner: In response to the screen control condition that the user is away from the electronic device and the screen of the electronic device is in a light-on state, determining a second distance value detected in real time by the distance sensor; If it is continuously detected that the second distance value is greater than a predefined maximum distance threshold within a second set time period and no operation on the electronic device is detected, the electronic device is controlled to switch from the screen-on state to the screen-locked state.
11. The display control device according to claim 10, characterized in that: The control unit is also used for: After controlling the electronic device to switch from the screen-on state to the screen-locked state, in response to detecting a screen-on operation on the electronic device and detecting that the second distance value is less than the difference between the distance threshold and the preset value, the electronic device is controlled to change from the screen-locked state to the screen-on state.
12. The display control device according to any one of claims 7 to 10, characterized in that: The determining unit is further configured to: Before the distance sensor of the electronic device detects the distance between the user and the electronic device, it is determined that the posture of the electronic device meets a preset posture, and the preset posture is used to represent that the electronic device is in a state of being used by the user.
13. A display control device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 6.
14. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Proximity sensor threshold adjusting method and device and intelligent device
CN104683598A
Method and device for intelligently starting refrigerator display screen
CN105115240A
Sensing threshold calibration method and device of distance sensor
CN106791053A
Calibration method and apparatus for proximity sensor, device, and storage medium
CN108267728A
Automatic awakening method and automatic awakening device for touch display screen, and recordable storage medium
CN108563367A