Screen awakening method and device, electrical equipment and medium
By obtaining the target distance of the distance sensor and determining the trigger distance of the static target, the problem of static objects interfering with the screen wake-up is solved, ensuring the smooth execution of screen wake-up and improving user experience.
Patent Information
- Application Number
- CN202311694969.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-06-13
AI Technical Summary
In electrical equipment, static objects may interfere with the screen wakeup when the user approaches, resulting in the wake-up condition failure.
The target distance is obtained by the distance sensor, and the target type and trigger distance are determined based on multiple historical distances, and the trigger distance of the screen wake-up is adaptively adjusted to avoid static target interference.
It effectively avoids the failure of the screen wake-up function, ensures the smooth execution of screen wake-up, and improves the user experience.
Smart Images

Figure CN120144027A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and particularly relates to a screen wake-up method, device, electrical appliance device and medium. Background Art
[0002] In the related art, during the use of electrical appliance devices such as air conditioners and refrigerators, if a screen is provided on the electrical appliance device, usually a sensor is used to detect whether there is a target in the detection area in front of the device. If a target enters the detection area, it is considered that there is a user, that is, someone is approaching, and at this time, the device screen is woken up. If no target is detected in the detection area, the device screen may not be woken up. However, when there is a static object in the detection area, it may interfere with the screen wake-up when the user approaches the screen, resulting in the failure of the conditions for entering or exiting the screen wake-up. Summary of the Invention
[0003] In view of the above technical problems in the related art, embodiments of the present invention provide a screen wake-up method, device, electrical appliance device and medium, which can ensure the smooth execution of screen wake-up by adaptively adjusting the trigger distance for waking up the device screen.
[0004] In a first aspect, an embodiment of the present invention provides a screen wake-up method, including:
[0005] Obtaining a target distance of a target located in front of the device screen at the current moment through a distance sensor;
[0006] Based on a preset time period corresponding to the current moment, obtaining a plurality of distances collected by the distance sensor during the preset time period, and determining a target type of a target in front of the device screen based on the plurality of distances;
[0007] If the target type is a static target, determining a target trigger distance for waking up the device screen at the current moment based on the plurality of distances;
[0008] Performing screen wake-up control on the device screen based on the target distance and the target trigger distance.
[0009] In some embodiments, the obtaining a target distance of a target located in front of the device screen at the current moment through a distance sensor includes:
[0010] Obtaining a current distance detected by the distance sensor at the current moment, and obtaining N historical distances detected by the distance sensor within a preset time period before the current moment, where N is a positive integer;
[0011] Performing mean filtering on the current distance and the N historical distances, and using the filtering result as the target distance.
[0012] In some embodiments, determining the target type of the target in front of the device screen based on the plurality of distances includes:
[0013] Determining the variance of the plurality of distances;
[0014] If the variance is less than a preset variance, determining that the target type is a static target.
[0015] In some embodiments, after obtaining the target distance of the target in front of the device screen at the current moment through the distance sensor, the method further includes:
[0016] Determining a preset trigger distance for waking up the device screen at the current moment;
[0017] If the target distance is less than or equal to the preset trigger distance, perform the step of obtaining the plurality of distances collected by the distance sensor during the preset time period corresponding to the current moment.
[0018] In some embodiments, after determining the preset trigger distance for waking up the device screen at the current moment, the method further includes:
[0019] If the target distance is greater than the preset trigger distance, update the target trigger distance for waking up the device screen to the default trigger distance;
[0020] Based on the target distance and the default trigger distance, perform screen wake-up control on the device screen.
[0021] In some embodiments, if the target type is a static target, determining the target trigger distance for waking up the device screen at the current moment based on the plurality of distances includes:
[0022] Determining the average distance of the plurality of distances, and comparing the average distance with the preset trigger distance for waking up the device screen at the current moment;
[0023] If the average distance is less than the preset trigger distance, determine the target trigger distance based on the preset trigger distance and the preset human body width.
[0024] In some embodiments, performing screen wake-up control on the device screen based on the target distance and the target trigger distance includes:
[0025] If the target distance is less than or equal to the target trigger distance, wake up the device screen;
[0026] If the target distance is greater than the target trigger distance, control the device screen to be in the screen-off state.
[0027] In a second aspect, an embodiment of the present invention provides a screen wake-up device, including:
[0028] A first distance determination module, configured to obtain a target distance of a target located in front of the device screen at the current moment through a distance sensor;
[0029] A type determination module, configured to obtain a plurality of distances collected by the distance sensor during a preset period corresponding to the current moment, and determine a target type of a target in front of the device screen based on the plurality of distances;
[0030] A second distance determination module, configured to, if the target type is a static target, determine a target trigger distance for waking up the device screen at the current moment based on the plurality of distances;
[0031] A processing module, configured to perform screen wake-up control on the device screen based on the target distance and the target trigger distance.
[0032] In a third aspect, an embodiment of the present invention provides an electrical device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the above screen wake-up method are implemented.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the above screen wake-up method are implemented.
[0034] One or more technical solutions provided by the embodiments of the present invention at least achieve the following technical effects or advantages:
[0035] In the screen wake-up method provided by the embodiments of this specification, the target distance of a target located in front of the device screen at the current moment is obtained through a distance sensor; a plurality of distances collected by the distance sensor during a preset period corresponding to the current moment are obtained, and the target type of a target in front of the device screen is determined based on the plurality of distances; if the target type is a static target, the target trigger distance for waking up the device screen at the current moment is determined based on the plurality of distances; and screen wake-up control is performed on the device screen based on the target trigger distance and the target distance. In the above solution, by identifying a static target in front of the device screen and adjusting the trigger distance for screen wake-up based on the distance corresponding to the static target when the static target is recognized, the failure of the screen wake-up function is effectively avoided, ensuring the smooth execution of screen wake-up, thereby improving the user experience. Description of the Drawings
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0037] Figure 1 It is a flowchart of a screen wake-up method provided by an embodiment of this specification;
[0038] Figure 2 It is a schematic diagram of a screen wake-up device provided by an embodiment of this specification;
[0039] Figure 3 It is a schematic diagram of an electrical device provided by an embodiment of this specification. Specific embodiments
[0040] The embodiments of this specification provide a screen wake-up method, device, electrical device, and medium. The method includes: obtaining the target distance of the target in front of the device screen at the current moment through a distance sensor; based on a preset time period corresponding to the current moment, obtaining multiple distances collected by the distance sensor during the preset time period, and determining the target type of the target in front of the device screen based on the multiple distances; if the target type is a static target, determining the target trigger distance for waking up the device screen at the current moment based on the multiple distances; and performing screen wake-up control on the device screen based on the target distance and the target trigger distance.
[0041] The solution in the embodiments of this specification effectively avoids the failure of the screen wake-up function and ensures the smooth execution of screen wake-up by identifying static targets in front of the device screen and adjusting the trigger distance for screen wake-up based on the distance corresponding to the static target when the static target is identified, thereby improving the user experience.
[0042] To make the purpose, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0043] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0044] As Figure 1 shown, it is a flowchart of a screen wake-up method provided by an embodiment of this specification. The method includes the following steps:
[0045] Step S101: Obtain the target distance of the target in front of the device screen at the current moment through a distance sensor;
[0046] Step S102: Based on a preset time period corresponding to the current moment, obtain multiple distances collected by the distance sensor during the preset time period, and determine the target type of the target in front of the device screen based on the multiple distances;
[0047] Step S103: If the target type is a static target, determine the target trigger distance for waking up the device screen at the current moment based on the average distance of the multiple historical distances;
[0048] Step S104: Based on the target distance and the target trigger distance, perform screen wake-up control on the device screen.
[0049] The method provided by the embodiment of this specification can be applied to electrical appliances, for example, applied to electrical appliances such as air conditioners and refrigerators equipped with a distance sensor and a screen, or can be applied to an independent device, which can be installed on an electrical appliance with a screen, or can also be applied to a system composed of an electrical appliance, an independent device and a server, which is not limited here.
[0050] In step S101, the distance sensor can be a ToF (Time of Flight) sensor. The distance sensor can be installed on an electrical appliance with a screen, such as an air conditioner or a refrigerator with a screen. The installation position of the distance sensor can be set according to actual needs. In the embodiment of this specification, the distance sensor can be installed at any position that can detect the target in front of the device screen.
[0051] The distance sensor can collect the distance of the target in front of the device screen in real time. The data collection frequency of the distance sensor can be set according to actual needs and is not limited here. After the distance sensor detects the distance of the target in front of the device screen, the detected distance data can be sent to the electrical device or the server for subsequent processing, or can be processed by the processor of the independent device where the distance sensor is located.
[0052] In the embodiments of this specification, the target distance at the current moment can be determined in various ways. For example, the distance detected at the current moment can be used as the target distance, or the target distance can be determined according to the distances collected historically. In some embodiments, the target distance can be achieved through the following steps: obtaining the current distance detected by the distance sensor at the current moment, and obtaining N distances detected by the distance sensor within a preset time period before the current moment, where N is a positive integer; performing mean filtering on the current distance and the N distances, and using the filtering result as the target distance.
[0053] Specifically, the preset time period can be set according to actual needs. For example, the preset time period is 2s, 5s, 10s, etc. Taking the preset time period of 2s as an example, obtain the current distance collected at the current moment, and obtain N distances collected 2s before the current moment, and then perform mean filtering. It should be noted that various filtering methods can be used for mean filtering and are not limited here. For the sake of easy explanation, taking the maximum mean filtering (max-mean filtering) as an example, the target distance can be determined by the following formula:
[0054]
[0055] where disR is the target distance, R i is the distance of the target in front of the device screen collected at time i, R 1 …R M are M distances continuously collected at the current moment and within the preset time period before the current moment.
[0056] It should be noted that when there is a static target in front of the device screen, the static target may occasionally shake. Taking the static target as a green plant, when the green plant is blown by the wind, the distance detected by the distance sensor will fluctuate, which may cause accidental triggering of the screen wake-up. In the embodiments of this specification, through the above mean filtering, the accidental trigger data can be filtered out to ensure the accuracy and stability of the target distance.
[0057] In step S102, when there is a static target in front of the device screen, if the trigger distance for screen wake-up is not adjusted, the static target may affect the screen wake-up function. For example, if the static target is within the trigger distance, the screen may stay on constantly. In the embodiments of this specification, to avoid this situation, it can be determined whether there is a static target in front of the device screen through step S102.
[0058] The preset time period corresponding to the current moment can be set according to actual needs. In some embodiments, the preset time period can be implemented through a sliding window. For example, the width of the sliding window is preset, such as 30 min, 1 h, etc., and the preset time period is determined through this sliding window and the current moment. For example, based on the width of the sliding window, the start moment before the current moment is determined, and the time period between the start moment and the current moment is used as the preset time period, and the duration of the preset time period is the same as the width of the sliding window. It should be noted that if the working duration of the distance sensor is less than the width of the sliding window, then the preset time period can be the time period from the start moment when the distance sensor is started to the current moment. If the working duration of the distance sensor is greater than or equal to the width of the sliding window, the duration corresponding to the preset time period is the same as the width of the sliding window.
[0059] The target type can be a static target or a non-static target. The determination of the target type can be achieved through various methods. For example, according to multiple distances collected during the preset time period, the degree of change of the distances is determined. If the degree of change is less than the preset degree, the target type is determined to be a static target.
[0060] In some embodiments, the target type can be determined through the following steps: determining the variance of the multiple distances; if the variance is less than the preset variance, determining the target type to be a static target. Specifically, taking the above-mentioned sliding window as an example, the multiple distances corresponding to the sliding window at the current moment are determined, and the variance of the multiple distances is compared with the preset variance. Among them, the preset variance can be set according to actual needs. When the calculated variance is less than the preset variance, it indicates that the fluctuation of the distances is small, and it can be considered that the position of the target in front of the device screen is basically unchanged, that is, a static target, otherwise it is a non-static target.
[0061] In step S103, when the target type is a static target, to avoid the screen wake-up failure when the static target is within the trigger distance for screen wake-up, in the embodiments of this specification, the trigger distance for waking up the screen can be updated according to the position of the static target.
[0062] Determining the target trigger distance for waking up the device screen at the current moment based on multiple distances can be achieved through various methods. For example, the minimum distance among the multiple distances can be used as the target trigger distance, or the median of the multiple distances can be used as the target trigger distance.
[0063] In some embodiments, the target trigger distance can be determined through the following steps: determine the average distance of the plurality of distances; compare the average distance with the preset trigger distance for waking up the device screen at the current moment; if the average distance is less than the preset trigger distance, based on the preset trigger distance and the preset human body width, determine the target trigger distance.
[0064] It should be noted that the preset trigger distance of the device screen can be updated according to the distances collected within the preset time period corresponding to each moment, and the initial preset trigger distance of the device screen can be set at the factory or input by the user for the screen wake-up function. For any moment, after determining the target trigger distance based on the plurality of distances collected within the preset time period corresponding to this moment, use the target trigger distance as the updated preset trigger distance and apply it to the calculation process of the target trigger distance for the next moment, and so on in a cycle.
[0065] Specifically, for the calculation process of the target trigger distance at the current moment, based on the plurality of distances collected within the preset time period corresponding to the current moment, calculate the average distance. If the average distance is less than the preset trigger distance corresponding to the current moment, it indicates that the static target is within the preset trigger distance. At this time, the preset trigger distance needs to be updated. In some embodiments, the target trigger distance can be the difference between the average distance and the preset human body width. It can be seen that the recalculated target trigger distance can eliminate the influence of the static target on screen wake-up. Further, use the target trigger distance as the new preset trigger distance and input it into the screen wake-up judgment process for the next moment.
[0066] In the embodiments of this specification, considering that after the static object is removed, in order to achieve adaptive adjustment of the trigger distance for waking up the screen, the following steps can also be performed: determine the preset trigger distance for waking up the device screen at the current moment; if the target distance is less than or equal to the preset trigger distance, perform the step of obtaining the plurality of distances collected by the distance sensor within the preset time period corresponding to the current moment. If the target distance is greater than the preset trigger distance, update the target trigger distance for waking up the device screen to the default trigger distance; based on the target distance and the default trigger distance, perform screen wake-up control on the device screen.
[0067] Specifically, when the target distance is less than or equal to the preset trigger distance, it indicates that the target in front of the device screen is in front of the static target. In this case, it can be considered that the user is very close to the device screen, and whether the static target is removed or not will not affect the screen wake-up function. Therefore, the target type and the target trigger distance can continue to be determined according to the plurality of distances collected within the preset time period corresponding to the current moment.
[0068] When the target distance is greater than the preset trigger distance, it indicates that the static target in front of the device screen has been removed. If the trigger distance determined by the static target continues to be used, it is possible that the trigger distance is too close, resulting in the device screen being unable to respond in a timely manner when the user approaches the device screen. Therefore, at this time, the target trigger distance of the device screen can be restored to the default trigger distance, which can be the trigger distance set at the factory or the trigger distance manually input by the user. This default trigger distance can be the trigger distance for waking up the screen when there is no static target in front of the device screen.
[0069] In step S104, after determining the target distance and the target trigger distance, the screen wake-up of the device screen can be controlled accordingly. In some embodiments, if the target distance is less than or equal to the target trigger distance, the device screen is woken up; if the target distance is greater than the target trigger distance, the device screen is controlled to be in the screen-off state.
[0070] Specifically, when the target distance is less than or equal to the target trigger distance, it indicates that the target is approaching the device screen. At this time, it is considered that there is a user in front of the device screen, and the screen is lit for the user to operate. When the target distance is greater than the target trigger distance, it indicates that there is still a certain distance between the target and the device screen. At this time, it is considered that there is no user in front of the device screen, and the device screen can not respond and is in the screen-off state.
[0071] In summary, in the solution of the embodiments of this specification, when there are static objects in front of the device screen, such as green plants, screens, aisles, etc., the trigger distance for screen wake-up can be adaptively adjusted according to the position of the static objects. When there are temporary static objects in front of the device screen, on the one hand, the trigger distance can be adaptively adjusted according to the static objects, and the screen can still be woken up when the user approaches, retaining the functionality and improving the user experience. On the other hand, after the static object is removed, the trigger distance can be restored to the default value, so that the trigger distance can always match the environment in front of the screen, and the screen wake-up is more reasonable.
[0072] Based on the same inventive concept, an embodiment of the present invention provides a screen wake-up device, as Figure 2 shown, the device includes:
[0073] A first distance determination module 201, configured to obtain the target distance of the target located in front of the device screen at the current moment through a distance sensor;
[0074] A type determination module 202, configured to obtain a plurality of distances collected by the distance sensor during a preset time period corresponding to the current moment, and determine the target type of the target in front of the device screen based on the plurality of distances;
[0075] A second distance determination module 203, configured to, if the target type is a static target, determine a target trigger distance for waking up the device screen at the current moment based on the multiple distances;
[0076] A processing module 204, configured to perform screen wake-up control on the device screen based on the target distance and the target trigger distance.
[0077] In some embodiments, the first distance determination module 201 is configured to:
[0078] Obtain the current distance detected by the distance sensor at the current moment, and obtain N historical distances detected by the distance sensor within a preset time period before the current moment, where N is a positive integer;
[0079] Perform mean filtering on the current distance and the N historical distances, and use the filtering result as the target distance.
[0080] In some embodiments, the type determination module 202 is configured to:
[0081] Determine the variance of the multiple distances;
[0082] If the variance is less than a preset variance, determine that the target type is a static target.
[0083] In some embodiments, the device further includes:
[0084] A third distance determination module, configured to preset and determine a preset trigger distance for waking up the device screen at the current moment;
[0085] The processing module 204 is configured to, if the target distance is less than or equal to the preset trigger distance, perform the step of obtaining multiple distances collected by the distance sensor within the preset time period corresponding to the current moment.
[0086] In some embodiments, the device further includes:
[0087] A fourth distance determination module, configured to, if the target distance is greater than the preset trigger distance, update the target trigger distance for waking up the device screen to a default trigger distance;
[0088] A control module, configured to perform screen wake-up control on the device screen based on the target distance and the default trigger distance.
[0089] In some embodiments, the second distance determination module 203 is configured to:
[0090] Determine the average distance of the multiple distances, and compare the average distance with a preset trigger distance for waking up the device screen at the current moment;
[0091] If the average distance is less than the preset trigger distance, determine the target trigger distance based on the preset trigger distance and the preset human body width.
[0092] In some embodiments, the processing module 204 is configured to:
[0093] If the target distance is less than or equal to the target trigger distance, wake up the device screen;
[0094] If the target distance is greater than the target trigger distance, control the device screen to be in the screen-off state.
[0095] Regarding the above device, the specific functions of each module have been described in detail in the embodiments of the screen wake-up method provided in this specification, and will not be elaborated here.
[0096] Based on the same inventive concept, an embodiment of the present invention provides an electrical device, as shown in reference Figure 3 including: a memory 304, a processor 302, and a computer program stored on the memory 304 and executable on the processor 302. When the processor 302 executes the program, it implements any one of the implementation manners in the embodiments of the screen wake-up method.
[0097] Among them, in Figure 3 , the bus architecture (represented by the bus 300), the bus 300 may include any number of interconnected buses and bridges. The bus 300 links various circuits including one or more processors represented by the processor 302 and a memory represented by the memory 304 together. The bus 300 can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art. Therefore, they will not be further described herein. The bus interface 305 provides an interface between the bus 300 and the receiver 301 and the transmitter 303. The receiver 301 and the transmitter 303 can be the same element, that is, a transceiver, which provides a unit for communicating with various other devices on the transmission medium. The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 can be used to store data used by the processor 302 when executing operations.
[0098] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwiring, or any combination thereof. In addition, each functional unit may be integrated in one processing unit, may exist physically separately as individual units, or two or more units may be integrated in one unit.
[0099] In several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0100] The units described as separate components may or may not be physically separated. The components serving as control devices may or may not be physical units, that is, they may be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, etc., which can store program codes.
[0102] The above are only the embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.
Claims
1. A screen wake-up method, characterized in that, comprising: obtaining a target distance of a target in front of the device screen at the current moment through a distance sensor; based on a preset time period corresponding to the current moment, obtaining a plurality of distances collected by the distance sensor during the preset time period, and determining a target type of the target in front of the device screen based on the plurality of distances; if the target type is a static target, determining a target trigger distance for waking up the device screen at the current moment based on the plurality of distances; performing screen wake-up control on the device screen based on the target distance and the target trigger distance.
2. The method according to claim 1, characterized in that, the obtaining a target distance of a target in front of the device screen at the current moment through a distance sensor comprises: obtaining a current distance detected by the distance sensor at the current moment, and obtaining N historical distances detected by the distance sensor within a preset duration before the current moment, where N is a positive integer; performing mean filtering on the current distance and the N historical distances, and using the filtering result as the target distance.
3. The method according to claim 1, characterized in that, the determining a target type of the target in front of the device screen based on the plurality of distances comprises: determining a variance of the plurality of distances; if the variance is less than a preset variance, determining the target type as a static target.
4. The method according to claim 1, characterized in that, after obtaining a target distance of a target in front of the device screen at the current moment through the distance sensor, the method further comprises: determining a preset trigger distance for waking up the device screen at the current moment; if the target distance is less than or equal to the preset trigger distance, performing the step of obtaining a plurality of distances collected by the distance sensor during the preset time period based on the preset time period corresponding to the current moment.
5. The method according to claim 4, characterized in that, after determining the preset trigger distance for waking up the device screen at the current moment, the method further comprises: if the target distance is greater than the preset trigger distance, updating the target trigger distance for waking up the device screen to a default trigger distance; performing screen wake-up control on the device screen based on the target distance and the default trigger distance.
6. The method according to claim 1, characterized in that, the if the target type is a static target, determining a target trigger distance for waking up the device screen at the current moment based on the plurality of distances comprises: determining an average distance of the plurality of distances, and comparing the average distance with the preset trigger distance for waking up the device screen at the current moment; if the average distance is less than the preset trigger distance, determining the target trigger distance based on the preset trigger distance and a preset human body width.
7. The method according to claim 1, characterized in that, the performing screen wake-up control on the device screen based on the target distance and the target trigger distance comprises: If the target distance is less than or equal to the target trigger distance, wake up the device screen; If the target distance is greater than the target trigger distance, control the device screen to be in the screen-off state.
8. A screen wake-up method, Characterized in that, Comprising: A first distance determination module, configured to obtain the target distance of a target located in front of the device screen at the current moment through a distance sensor; A type determination module, configured to obtain a plurality of distances collected by the distance sensor during a preset time period corresponding to the current moment, and determine the target type of the target in front of the device screen based on the plurality of distances; A second distance determination module, configured to, if the target type is a static target, determine the target trigger distance for waking up the device screen at the current moment based on the plurality of distances; A processing module, configured to perform screen wake-up control on the device screen based on the target distance and the target trigger distance.
9. An electrical device, Characterized in that, Comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of claims 1-7 is implemented.
10. A computer-readable storage medium, Characterized in that, A computer program is stored thereon, and when the program is executed by a processor, the steps of the method described in any one of claims 1-7 are implemented.