Wake-up control method and apparatus, electronic device, and computer-readable storage medium
By dynamically adjusting the wake-up interval and wake-up decision of the front camera, the problem of high power consumption of the front camera is solved, achieving matching of power consumption with usage scenarios and improving the device's battery life and user experience.
Patent Information
- Application Number
- CN202610466428.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-09
- Publication Date
- 2026-08-04
AI Technical Summary
In existing technologies, the fixed-interval wake-up scheme for front-facing cameras is difficult to meet the real-time usage requirements of devices, resulting in high power consumption and affecting the device's battery life and user experience.
The wake-up interval of the front camera is dynamically adjusted based on the current battery level and usage scenario information of the terminal device. The usage scenario is determined by sensors such as proximity sensor, light sensor and acceleration sensor, and the wake-up and sleep states of the camera are reasonably controlled to meet the needs of battery matching and usage.
By dynamically adjusting the wake-up interval and wake-up decision, power consumption is optimized, the adaptability of camera wake-up to usage scenarios is improved, actual usage needs are met, and the rationality of wake-up control is enhanced.
Smart Images

Figure CN122513653A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal equipment technology, specifically to a wake-up control method, device, electronic device, and computer-readable storage medium. Background Technology
[0002] With the widespread adoption of smart devices, the functions of various front-facing cameras are becoming increasingly diverse, such as video calls, face unlock, and distance alerts. Among these, the distance alert function uses the front-facing camera to detect the distance between the user's face and the screen in real time, promptly reminding the user to adjust their posture and effectively preventing eye strain, myopia, and other health risks.
[0003] However, since the front-facing camera needs to continuously access hardware resources while in real-time operation, its power consumption has always been a key challenge limiting the distance reminder function.
[0004] Currently, although there are some camera wake-up control schemes that use constant intervals, fixed intervals are difficult to meet the real-time usage requirements of devices. Summary of the Invention
[0005] This application provides a wake-up control method, device, electronic device, and computer-readable storage medium, which can dynamically adjust the wake-up interval of the camera based on usage requirements, thereby improving the rationality of wake-up control.
[0006] In a first aspect, embodiments of this application provide a wake-up control method applied to a terminal device, the terminal device being equipped with a front-facing camera, the method comprising: The target wake-up interval is determined based on the current battery level of the terminal device; If the target wake-up interval is reached, the usage scenario information of the terminal device is determined; The wake-up control information is determined based on the usage scenario information; The wake-up of the front-facing camera is controlled according to the wake-up control information to obtain a wake-up control result, wherein the front-facing camera is used to measure the distance to the face after being woken up.
[0007] Secondly, embodiments of this application also provide a wake-up control device applied to a terminal device, the terminal device being equipped with a front-facing camera, the device comprising: An interval determination module is used to determine a target wake-up interval based on the current battery level of the terminal device; The scenario determination module is used to determine the usage scenario information of the terminal device if the target wake-up interval is reached. The wake-up decision module is used to determine wake-up control information based on the usage scenario information; A wake-up control module is used to control the wake-up of the front-facing camera according to the wake-up control information and obtain a wake-up control result, wherein the front-facing camera is used to measure the distance to the face after being woken up.
[0008] Optionally, in some embodiments of this application, determining the usage scenario information of the terminal device includes: The proximity status information is determined by a distance sensor, and the proximity status information includes a proximity state or a non-proximity state. Ambient light intensity information is measured by a light sensor, and the ambient light intensity information includes excessively bright, excessively dark, not excessively bright, or not excessively dark states. The motion information of the terminal device is measured by an accelerometer, and the motion information includes a motion state or a non-motion state. The application scenario information is determined based on the application currently in use, including static reading scenario, video playback scenario, game interaction scenario, or navigation scenario. The usage scenario information is determined based on the proximity status information, the ambient light intensity information, the motion information, or the application scenario information.
[0009] Optionally, in some embodiments of this application, determining the wake-up control information based on the usage scenario information includes: If the usage scenario information includes non-proximity state, non-excessively bright state or non-excessively dark state, non-movement state, and static reading scenario or video playback scenario, then the wake-up control information will be set to wake-up. If the usage scenario information includes any of the following: proximity state, excessively bright or dark state, motion state, game interaction scenario, or navigation scenario, then the wake-up control information will be set to non-wake-up.
[0010] Optionally, in some embodiments of this application, determining the target wake-up interval based on the current battery level of the terminal device includes: The interval offset value is calculated based on the current battery level, total battery level, and adjustment coefficient of the terminal device. The target wake-up interval is obtained by summing the interval offset value and the initial interval.
[0011] Optionally, in some embodiments of this application, determining the target wake-up interval based on the current battery level of the terminal device includes: Obtain user behavior and habit information; Based on the user's behavioral habits and the currently used application, predict the expected usage time. The target wake-up interval is determined based on the current battery level and the estimated usage duration.
[0012] Optionally, in some embodiments of this application, determining the usage scenario information of the terminal device includes: The usage scenario information is determined based on at least one frame of the display within a preset time period, and the usage scenario information includes focused usage scenarios or non-focused usage scenarios. If the usage scenario information includes a focused usage scenario, then determining the wake-up control information based on the usage scenario information includes: When leaving the aforementioned focused usage scenario, the wake-up control information will be set to wake-up; If the usage scenario information includes non-focused usage scenarios, then determining the wake-up control information based on the usage scenario information includes: Set the wake-up control information to non-wake-up.
[0013] Optionally, in some embodiments of this application, after controlling the wake-up of the front-facing camera according to the wake-up control information and obtaining the wake-up control result, the method further includes: The distance between the terminal device and the face is measured using the camera; If the distance reaches a set threshold, a usage prompt message is generated. The output form of the usage prompt message includes at least one of voice, vibration, or ringtone.
[0014] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the wake-up control method described above.
[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the wake-up control method described above.
[0016] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.
[0017] In summary, the embodiments of this application determine the target wake-up interval based on the current battery level of the terminal device. If the target wake-up interval is reached, the usage scenario information of the terminal device is determined, wake-up control information is determined based on the usage scenario information, and the wake-up of the front-facing camera is controlled based on the wake-up control information to obtain the wake-up control result. The front-facing camera is used to measure the facial distance after being woken up.
[0018] In this embodiment, the camera wake-up interval is set based on the device's current battery level, so that the wake-up interval is dynamically matched with the battery level, thus meeting actual usage needs.
[0019] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of a scenario in which a terminal device, according to an embodiment of this application, executes the wake-up control method; Figure 2 This is a flowchart illustrating the wake-up control method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the wake-up control device provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0022] Explanation of icon numbers: 101-Terminal device; 301-Interval determination module; 302-Scene determination module; 303-Wake-up decision module; 304-Wake-up control module; 401-Processor; 402-Memory; 403-Power supply; 404-Input unit. Detailed Implementation
[0023] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] In the description of the embodiments of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first," "second," "third," and "fourth" may explicitly or implicitly include one or more features. In the description of the present invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0025] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0026] This application provides a wake-up control method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a wake-up control apparatus suitable for electronic devices, including terminal devices such as mobile phones and tablet computers.
[0027] For example, please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, according to an embodiment of this application, executes the wake-up control method. Specifically, the execution process of the wake-up control method by the terminal device is as follows: Terminal device 101 determines the target wake-up interval of the front-facing camera based on the current battery level. If the target wake-up interval is reached, it determines the usage scenario information, determines the wake-up control information based on the usage scenario information, and controls the wake-up of the front-facing camera based on the wake-up control information to obtain the wake-up control result. The front-facing camera is used to measure the distance to the face after being woken up.
[0028] In summary, the embodiments of this application set the camera wake-up interval based on the current battery level of the device, so that the wake-up interval is dynamically matched with the battery level, thus meeting the actual usage requirements.
[0029] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control.
[0030] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0031] Please see Figure 2 , Figure 2 This is a flowchart illustrating the wake-up control method provided in this application embodiment. Although the flowchart shows a logical order, in some cases, the steps shown or described can be executed in a different order than that shown in the flowchart. Specifically, this wake-up control method is applied to a terminal device equipped with a front-facing camera. The specific flow of the wake-up control method is as follows: S201. Determine the target wake-up interval based on the current battery level of the terminal device.
[0032] It is understandable that frequent wake-ups of the front-facing camera will generate significant power consumption. Therefore, this application embodiment controls the wake-up interval based on the remaining battery power of the terminal device to optimize power consumption. For example, the wake-up interval is smaller when the current battery level is higher, and larger when the current battery level is lower.
[0033] S202. If the target wake-up interval is reached, the usage scenario information of the terminal device is determined.
[0034] The usage scenario information refers to the usage scenario of the terminal device. For example, when the target wake-up interval corresponding to the current battery level is reached, the current usage scenario of the terminal device is analyzed. For example, the terminal device is currently in a scenario where the user is watching a video at close range during the day, or the terminal device is currently in a scenario where the user is reading quietly at night.
[0035] S203. Determine wake-up control information based on the usage scenario information.
[0036] Among them, wake-up control information refers to the decision information on whether to wake up. For example, the wake-up control information includes wake-up and non-wake-up, and non-wake-up is also called non-wake-up.
[0037] It is understandable that by using scenario information to determine wake-up control information, a decision on whether to wake up based on the usage scenario can be made.
[0038] S204. Control the wake-up of the front-facing camera according to the wake-up control information to obtain a wake-up control result, wherein the front-facing camera is used to measure the distance to the face after being woken up.
[0039] For example, if the wake-up control information includes wake-up, then the system controls the wake-up of the front-facing camera to make it work, such as starting a face ranging task.
[0040] If the wake-up control information includes "do not wake up" or "not wake up", then keep the front camera in standby mode or non-start mode.
[0041] In summary, the embodiments of this application set the camera wake-up interval based on the current battery level of the device, so that the wake-up interval is dynamically matched with the battery level, thus meeting the actual usage requirements.
[0042] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control.
[0043] In this embodiment of the application, the usage scenario information of the terminal device can be determined by comprehensively considering multiple state information. For example, the usage scenario information can be determined based on whether the device is near the user, the ambient light intensity, whether the user is in motion, and the application scenario corresponding to the application being used. That is, optionally, in some embodiments of this application, the step "determining the usage scenario information of the terminal device" includes: The proximity status information is determined by a distance sensor, and the proximity status information includes a proximity state or a non-proximity state. Ambient light intensity information is measured by a light sensor, and the ambient light intensity information includes excessively bright, excessively dark, not excessively bright, or not excessively dark states. The motion information of the terminal device is measured by an accelerometer, and the motion information includes a motion state or a non-motion state. The application scenario information is determined based on the application currently in use, including static reading scenario, video playback scenario, game interaction scenario, or navigation scenario. The usage scenario information is determined based on the proximity status information, the ambient light intensity information, the motion information, or the application scenario information.
[0044] For example, based on distance sensors, light sensors, acceleration sensors, and the application being used, it can be determined whether the terminal device is currently in a daytime scenario where the user is watching video at close range, or in a nighttime scenario where the user is reading quietly.
[0045] Furthermore, wake-up control information is set according to different usage scenario information. That is, optionally, in some embodiments of this application, the step "determine wake-up control information according to the usage scenario information" includes: If the usage scenario information includes non-proximity state, non-excessively bright state or non-excessively dark state, non-movement state, and static reading scenario or video playback scenario, then the wake-up control information will be set to wake-up. If the usage scenario information includes any of the following: proximity state, excessively bright or dark state, motion state, game interaction scenario, or navigation scenario, then the wake-up control information will be set to non-wake-up.
[0046] For example, in reading and video playback scenarios, the system may trigger a wake-up call to remind users of facial distance, but in motion scenarios, a wake-up call is not required, meaning that facial distance reminders are not necessary.
[0047] In this embodiment of the application, the target wake-up interval can also be dynamically adjusted by an adjustment coefficient. That is, optionally, in some embodiments of the application, the step "determine the target wake-up interval based on the current battery level of the terminal device" includes: The interval offset value is calculated based on the current battery level, total battery level, and adjustment coefficient of the terminal device. The target wake-up interval is obtained by summing the interval offset value and the initial interval.
[0048] For example, the target wake-up interval T = Tbase × (1 + α × (Emax)) E) / Emax). Where Tbase is the base interval, i.e. the initial interval, E is the current battery level, Emax is the full battery level, i.e. the total battery level, and α is the adjustment coefficient.
[0049] In this application embodiment, the user's required usage time can be predicted based on user habits and the applications being used, and this usage time can be used to control the target wake-up interval of the front-facing camera. Optionally, in some embodiments of this application, the step "determine the target wake-up interval based on the current battery level of the terminal device" includes: Obtain user behavior and habit information; Based on the user's behavioral habits and the currently used application, predict the expected usage time. The target wake-up interval is determined based on the current battery level and the estimated usage duration.
[0050] For example, based on historical usage data, the expected usage time can be predicted by using statistical averages to estimate how long users will need to use the application or the device. Alternatively, machine learning models can be used to analyze the relationship between user habits and usage time to predict the expected usage time.
[0051] In this embodiment of the application, although the user is using the terminal device, the front camera can be controlled to be woken up based on the focus mode and non-focus mode. That is, optionally, in some embodiments of this application, the step "determining the usage scenario information of the terminal device" includes: The usage scenario information is determined based on at least one frame of the display within a preset time period, and the usage scenario information includes focused usage scenarios or non-focused usage scenarios. If the usage scenario information includes a focused usage scenario, then determining the wake-up control information based on the usage scenario information includes: When leaving the aforementioned focused usage scenario, the wake-up control information will be set to wake-up; If the usage scenario information includes non-focused usage scenarios, then determining the wake-up control information based on the usage scenario information includes: Set the wake-up control information to non-wake-up.
[0052] For example, the system can avoid disturbing the user during focused usage scenarios by not waking up the front-facing camera; however, it can provide prompts during non-focused usage scenarios by waking up the front-facing camera.
[0053] Understandably, in some scenarios, such as when in a focused scene mode, distance prompts can be controlled to avoid visual fatigue caused by prolonged user engagement, i.e., waking up the front camera. However, in non-focused usage scenarios, since users are not focused on the interface, the frequency of face distance detection can be appropriately relaxed, i.e., the front camera is not woken up in this case.
[0054] In this embodiment, the user's focus mode is not determined by collecting and analyzing the user's facial expressions, but by judging the content of the screen currently displayed on the terminal device. For example, if the current interface content is a tense plot scene of a movie or TV show, the user is analyzed to be in a focused usage state, that is, the current usage scenario is a focused usage scenario. If the current content is just a simple dialogue (audio corresponding to the screen) and the tone of the dialogue is flat, the user is analyzed to be in a non-focused usage state, that is, the current usage scenario is a non-focused usage scenario.
[0055] In this embodiment, after the front-facing camera is woken up, the camera is controlled to perform a face distance measurement task. If a face distance is detected to be too small, a prompt is output to remind the user to adjust their posture. That is, after the step "controlling the wake-up of the front-facing camera according to the wake-up control information to obtain the wake-up control result", the method further includes: The distance between the terminal device and the face is measured using the camera; If the distance reaches a set threshold, a usage prompt message is generated. The output form of the usage prompt message includes at least one of voice, vibration, or ringtone.
[0056] In this embodiment of the application, prompts to the user can be output by simulating human voice, vibration, or ringing.
[0057] In summary, the embodiments of this application set the camera wake-up interval based on the current battery level of the device, so that the wake-up interval is dynamically matched with the battery level, thus meeting the actual usage requirements.
[0058] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control.
[0059] To facilitate better implementation of the wake-up control method of this application, this application also provides a wake-up control device based on the above-described wake-up control method. The meanings of the terms used are the same as in the wake-up control method described above, and specific implementation details can be found in the descriptions of the method embodiments.
[0060] Please see Figure 3 , Figure 3 This is a schematic diagram of the wake-up control device provided in an embodiment of this application. The wake-up control device is applied to a terminal device, which is equipped with a front-facing camera. The wake-up control device can be specifically as follows: Interval determination module 301 is used to determine the target wake-up interval based on the current battery level of the terminal device; The scenario determination module 302 is used to determine the usage scenario information of the terminal device if the target wake-up interval is reached. The wake-up decision module 303 is used to determine wake-up control information based on the usage scenario information. The wake-up control module 304 is used to control the wake-up of the front camera according to the wake-up control information and obtain the wake-up control result, wherein the front camera is used to measure the distance to the face after being woken up.
[0061] Optionally, in some embodiments of this application, determining the usage scenario information of the terminal device includes: The proximity status information is determined by a distance sensor, and the proximity status information includes a proximity state or a non-proximity state. Ambient light intensity information is measured by a light sensor, and the ambient light intensity information includes excessively bright, excessively dark, not excessively bright, or not excessively dark states. The motion information of the terminal device is measured by an accelerometer, and the motion information includes a motion state or a non-motion state. The application scenario information is determined based on the application currently in use, including static reading scenario, video playback scenario, game interaction scenario, or navigation scenario. The usage scenario information is determined based on the proximity status information, the ambient light intensity information, the motion information, or the application scenario information.
[0062] Optionally, in some embodiments of this application, determining the wake-up control information based on the usage scenario information includes: If the usage scenario information includes non-proximity state, non-excessively bright state or non-excessively dark state, non-movement state, and static reading scenario or video playback scenario, then the wake-up control information will be set to wake-up. If the usage scenario information includes any of the following: proximity state, excessively bright or dark state, motion state, game interaction scenario, or navigation scenario, then the wake-up control information will be set to non-wake-up.
[0063] Optionally, in some embodiments of this application, determining the target wake-up interval based on the current battery level of the terminal device includes: The interval offset value is calculated based on the current battery level, total battery level, and adjustment coefficient of the terminal device. The target wake-up interval is obtained by summing the interval offset value and the initial interval.
[0064] Optionally, in some embodiments of this application, determining the target wake-up interval based on the current battery level of the terminal device includes: Obtain user behavior and habit information; Based on the user's behavioral habits and the currently used application, predict the expected usage time. The target wake-up interval is determined based on the current battery level and the estimated usage duration.
[0065] Optionally, in some embodiments of this application, determining the usage scenario information of the terminal device includes: The usage scenario information is determined based on at least one frame of the display within a preset time period, and the usage scenario information includes focused usage scenarios or non-focused usage scenarios. If the usage scenario information includes a focused usage scenario, then determining the wake-up control information based on the usage scenario information includes: When leaving the aforementioned focused usage scenario, the wake-up control information will be set to wake-up; If the usage scenario information includes non-focused usage scenarios, then determining the wake-up control information based on the usage scenario information includes: Set the wake-up control information to non-wake-up.
[0066] Optionally, in some embodiments of this application, after controlling the wake-up of the front-facing camera according to the wake-up control information and obtaining the wake-up control result, the method further includes: The distance between the terminal device and the face is measured using the camera; If the distance reaches a set threshold, a usage prompt message is generated. The output form of the usage prompt message includes at least one of voice, vibration, or ringtone.
[0067] In this embodiment, the interval determination module 301 determines the target wake-up interval based on the current battery level of the terminal device. If the target wake-up interval is reached, the scene determination module 302 determines the usage scene information of the terminal device. The wake-up decision module 303 determines wake-up control information based on the usage scene information. The wake-up control module 304 controls the wake-up of the front-facing camera based on the wake-up control information to obtain a wake-up control result. The front-facing camera is used to measure the facial distance after being woken up.
[0068] In this embodiment, the camera wake-up interval is set based on the device's current battery level, so that the wake-up interval is dynamically matched with the battery level, thus meeting actual usage needs.
[0069] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control.
[0070] In addition, this application also provides an electronic device, such as Figure 4 As shown, it illustrates a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specifically: The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 401 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0071] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0072] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0073] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0074] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402, thereby implementing the steps in any of the wake-up control methods provided in the embodiments of this application.
[0075] In this embodiment, a target wake-up interval is determined based on the current battery level of the terminal device. If the target wake-up interval is reached, the usage scenario information of the terminal device is determined, wake-up control information is determined based on the usage scenario information, and the wake-up of the front-facing camera is controlled based on the wake-up control information to obtain a wake-up control result. The front-facing camera is used to measure the distance to the face after being woken up.
[0076] In this embodiment, the camera wake-up interval is set based on the device's current battery level, so that the wake-up interval is dynamically matched with the battery level, thus meeting actual usage needs.
[0077] In addition, when the wake-up interval is reached, the camera is not directly woken up. Instead, a decision on whether to wake up is made based on the usage scenario, which improves the adaptability of camera wake-up to usage scenarios. This not only meets actual usage needs but also enhances the rationality of wake-up control.
[0078] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0079] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0080] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the wake-up control methods provided in this application.
[0081] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0082] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0083] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the wake-up control methods provided in this application, the beneficial effects that any of the wake-up control methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0084] The above provides a detailed description of a wake-up control method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A wake-up control method, characterized in that, Applied to a terminal device equipped with a front-facing camera, the method includes: The target wake-up interval is determined based on the current battery level of the terminal device; If the target wake-up interval is reached, the usage scenario information of the terminal device is determined; The wake-up control information is determined based on the usage scenario information; The wake-up of the front-facing camera is controlled according to the wake-up control information to obtain a wake-up control result, wherein the front-facing camera is used to measure the distance to the face after being woken up.
2. The wake-up control method according to claim 1, characterized in that, The determination of the usage scenario information of the terminal device includes: The proximity status information is determined by a distance sensor, and the proximity status information includes a proximity state or a non-proximity state. Ambient light intensity information is measured by a light sensor, and the ambient light intensity information includes excessively bright, excessively dark, not excessively bright, or not excessively dark states. The motion information of the terminal device is measured by an accelerometer, and the motion information includes a motion state or a non-motion state. The application scenario information is determined based on the application currently in use, including static reading scenario, video playback scenario, game interaction scenario, or navigation scenario. The usage scenario information is determined based on the proximity status information, the ambient light intensity information, the motion information, or the application scenario information.
3. The wake-up control method according to claim 2, characterized in that, The step of determining wake-up control information based on the usage scenario information includes: If the usage scenario information includes non-proximity state, non-excessively bright state or non-excessively dark state, non-movement state, and static reading scenario or video playback scenario, then the wake-up control information will be set to wake-up. If the usage scenario information includes any of the following: proximity state, excessively bright or dark state, motion state, game interaction scenario, or navigation scenario, then the wake-up control information will be set to non-wake-up.
4. The wake-up control method according to claim 1, characterized in that, Determining the target wake-up interval based on the current battery level of the terminal device includes: The interval offset value is calculated based on the current battery level, total battery level, and adjustment coefficient of the terminal device. The target wake-up interval is obtained by summing the interval offset value and the initial interval.
5. The wake-up control method according to claim 1, characterized in that, Determining the target wake-up interval based on the current battery level of the terminal device includes: Obtain user behavior and habit information; Based on the user's behavioral habits and the currently used application, predict the expected usage time. The target wake-up interval is determined based on the current battery level and the estimated usage duration.
6. The wake-up control method according to claim 1, characterized in that, The determination of the usage scenario information of the terminal device includes: The usage scenario information is determined based on at least one frame of the display within a preset time period, and the usage scenario information includes focused usage scenarios or non-focused usage scenarios. If the usage scenario information includes a focused usage scenario, then determining the wake-up control information based on the usage scenario information includes: When leaving the aforementioned focused usage scenario, the wake-up control information will be set to wake-up; If the usage scenario information includes non-focused usage scenarios, then determining the wake-up control information based on the usage scenario information includes: Set the wake-up control information to non-wake-up.
7. The wake-up control method according to claim 1, characterized in that, After controlling the wake-up of the front-facing camera according to the wake-up control information and obtaining the wake-up control result, the method further includes: The distance between the terminal device and the face is measured using the camera; If the distance reaches a set threshold, a usage prompt message is generated. The output form of the usage prompt message includes at least one of voice, vibration, or ringtone.
8. A wake-up control device, characterized in that, Applied to a terminal device, the terminal device being equipped with a front-facing camera, the device includes: An interval determination module is used to determine a target wake-up interval based on the current battery level of the terminal device; The scenario determination module is used to determine the usage scenario information of the terminal device if the target wake-up interval is reached. The wake-up decision module is used to determine wake-up control information based on the usage scenario information; A wake-up control module is used to control the wake-up of the front-facing camera according to the wake-up control information and obtain a wake-up control result, wherein the front-facing camera is used to measure the distance to the face after being woken up.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the wake-up control method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the wake-up control method as described in any one of claims 1-7.