Screen brightness adjusting method, electronic equipment and computer readable storage medium
By acquiring users' eye-tracking data to determine their physiological state and generating brightness adjustment commands, the problem of smart device screen brightness adjustment not being able to adapt is solved, thereby reducing visual fatigue and improving user experience.
Patent Information
- Application Number
- CN202511093288.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-05
- Publication Date
- 2025-11-18
AI Technical Summary
In existing technologies, the screen brightness adjustment methods of smart devices cannot adaptively adjust based on the user's actual eye usage, resulting in visual fatigue that cannot be effectively reduced and affecting the user's health.
By acquiring users' eye movement data, including eyelid opening and closing, blinking frequency, fixation duration, and pupil diameter change rate, the user's physiological state is determined, and corresponding brightness adjustment instructions are generated based on different physiological states, including reducing brightness, turning off the screen, reducing the proportion of blue light, and dynamically adjusting brightness, so as to achieve adaptive adjustment of screen brightness.
It accurately detects the user's eye usage status and enables adaptive adjustment of screen brightness, effectively reducing visual fatigue and improving user experience.
Smart Images

Figure CN120977266A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent devices, in particular to a screen brightness adjustment method, an electronic device and a computer readable storage medium. BACKGROUND
[0002] With the continuous development of electronic technology, display screens are widely used in smart devices such as mobile phones.
[0003] At present, the screen adjustment method of most smart devices depends on automatic adjustment by an ambient light sensor or manual adjustment by a user. In related technologies, automatic adjustment generally uses an ambient light sensor to receive the illuminance or brightness of the surrounding environment, and adjusts the brightness of the screen according to the brightness of the surrounding environment by calculating the contrast between the ambient illuminance and the screen brightness and other algorithms. Manual adjustment is generally adjusting the progress bar or brightness adjustment button of the brightness range according to the user's preference.
[0004] However, the above-mentioned automatic adjustment method only adjusts according to the environment, and the adjustment effect is relatively poor, which cannot effectively reduce visual fatigue; and the above-mentioned manual adjustment method lacks intelligence, and the user often ignores visual fatigue when using the smart terminal in an immersive manner, and cannot adjust the brightness in time, thereby affecting eye health. SUMMARY
[0005] The technical problem solved by the present application is to provide a screen brightness adjustment method, an electronic device and a computer readable storage medium, which can solve the problem that related technologies cannot adaptively adjust the screen brightness based on the actual eye state of the user.
[0006] To solve the above technical problems, the first technical solution adopted by the present application is to provide a screen brightness adjustment method, comprising: determining the physiological state of the user based on the eye movement data of the user; wherein the physiological state includes the closed-eye state, the fatigue state and the awake state; generating corresponding brightness adjustment instructions according to different physiological states; and adjusting the screen brightness based on the brightness adjustment instructions.
[0007] Among them, the step of determining the physiological state of the user based on the eye movement data of the user includes: obtaining the eye movement data of the user; wherein the eye movement data includes eyelid opening degree, blink frequency, gaze duration and pupil diameter change rate; detecting and calculating based on the eyelid opening degree, blink frequency, gaze duration and pupil diameter change rate, and determining the physiological state of the user according to the detection result and the calculation result.
[0008] The step of acquiring the eye movement data of the user comprises: acquiring eye images of the user in real time; performing image recognition on the eye images to obtain eyelid opening degree, blink frequency, gaze duration and pupil diameter change rate; and performing detection and calculation based on the eyelid opening degree, the blink frequency, the gaze duration and the pupil diameter change rate, and determining the physiological state of the user according to the detection result and the calculation result, the step comprising: detecting whether the eyelid opening degree in a continuous preset number of frames is less than a preset opening degree threshold; in response to the eyelid opening degree in the continuous preset number of frames being less than the preset opening degree threshold, determining that the user is in a closed-eye state; in response to the eyelid opening degree of at least one frame in the continuous preset number of frames being greater than or equal to the preset opening degree threshold, calculating a fatigue index based on the eyelid opening degree, the blink frequency, the gaze duration and the pupil diameter change rate; detecting whether the fatigue index is greater than a preset fatigue degree; and in response to the fatigue index being greater than the preset fatigue degree, determining that the user is in a fatigue state; and in response to the fatigue index being less than or equal to the preset fatigue degree, determining that the user is in a sober state.
[0009] The step of determining that the user is in a fatigue state in response to the fatigue index being greater than the preset fatigue degree comprises: detecting the fatigue index to determine a fatigue level of the user; and the fatigue level comprises severe fatigue, moderate fatigue and mild fatigue.
[0010] The step of generating corresponding brightness adjustment instructions according to different physiological states comprises: in response to the user being in a closed-eye state, generating a first brightness adjustment instruction; the first brightness adjustment instruction comprises a static adjustment instruction of reducing the screen brightness to a preset brightness value or an off-screen instruction; in response to the user being in a fatigue state, generating a second brightness adjustment instruction; the second brightness adjustment instruction comprises a first sub-adjustment instruction of reducing the screen brightness by a gradient, a second sub-adjustment instruction of reducing the proportion of blue light and a third sub-adjustment instruction of maintaining the current brightness; and in response to the user being in a sober state, generating a third brightness adjustment instruction; the third brightness adjustment instruction comprises a dynamic adjustment instruction of dynamically adjusting the screen brightness according to ambient light intensity data.
[0011] The step of generating a second brightness adjustment instruction in response to the user being in a fatigue state comprises: in response to the fatigue level of the user being severe fatigue, generating a first sub-adjustment instruction; in response to the fatigue level of the user being moderate fatigue, generating a second sub-adjustment instruction; and in response to the fatigue level of the user being mild fatigue, generating a third sub-adjustment instruction.
[0012] The step of adjusting the screen brightness based on the brightness adjustment instruction comprises: in response to generating the first brightness adjustment instruction, performing a brightness adjustment operation of lowering the screen brightness to a preset brightness value based on the static adjustment instruction, or performing an operation of turning off the screen based on the screen-off instruction; in response to generating the second brightness adjustment instruction, performing a brightness adjustment operation of lowering the screen brightness by a gradient based on the first sub-adjustment instruction; or performing a brightness adjustment operation of lowering the proportion of blue light based on the second sub-adjustment instruction; or performing a brightness adjustment operation of maintaining the current brightness based on the third sub-adjustment instruction; and in response to generating the third brightness adjustment instruction, performing a brightness adjustment operation of dynamically adjusting the screen brightness according to the ambient light intensity data based on the dynamic adjustment instruction.
[0013] Before the step of determining the physiological state of the user based on the eye movement data of the user, the method further comprises: obtaining head posture data of the user; detecting whether the head of the user deviates from the screen based on the head posture data; and in response to detecting that the head of the user deviates from the screen and the deviation duration exceeds a preset duration, stopping adjusting the screen brightness.
[0014] To solve the above technical problems, a second technical solution adopted by the present application is to provide an electronic device, comprising: a memory for storing program data, the program data being executed to implement the steps in the screen brightness adjustment method described above; and a processor for executing the program data stored in the memory to implement the steps in the screen brightness adjustment method described above.
[0015] To solve the above technical problems, a third technical solution adopted by the present application is to provide a computer readable storage medium, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps in the screen brightness adjustment method described in any one of the above.
[0016] The present application provides a screen brightness adjustment method, an electronic device and a computer readable storage medium, which can accurately detect the actual eye use state of the user by determining the physiological state of the user based on the eye movement data of the user. Then, corresponding brightness adjustment instructions are generated according to different physiological states, and the screen brightness is adjusted based on the brightness adjustment instructions, which can adaptively adjust the screen brightness based on the actual eye use state of the user, thereby effectively reducing visual fatigue and improving the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0018] Figure 1 This is a flowchart illustrating the first embodiment of the screen brightness adjustment method of this application;
[0019] Figure 2 This is a flowchart illustrating the second embodiment of the screen brightness adjustment method of this application;
[0020] Figure 3 This is a flowchart illustrating the application scenario of the screen brightness adjustment method of this application;
[0021] Figure 4 This is a schematic diagram of one embodiment of the screen brightness adjustment device of this application;
[0022] Figure 5 This is a schematic diagram of the structure of one embodiment of the electronic device of this application;
[0023] Figure 6 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, unless otherwise clearly indicated above. “Multiple” generally includes at least two, but does not exclude the inclusion of at least one.
[0026] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0027] It should be understood that the terms "comprising," "including," or any other variations used herein are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0028] In related technologies, automatic adjustment typically uses an ambient light sensor to receive the illuminance or brightness of the surrounding environment. Algorithms, such as comparing the ambient illuminance and screen brightness, are used to adjust the screen brightness based on the intensity of the surrounding light. Manual adjustment usually involves a progress bar or brightness adjustment buttons that allow the user to adjust the brightness range according to their preferences.
[0029] However, the aforementioned automatic adjustment methods only adjust based on environmental conditions, resulting in relatively poor adjustment effects and an inability to effectively reduce visual fatigue. On the other hand, the aforementioned manual adjustment methods lack intelligence, and users often ignore visual fatigue when immersing themselves in using smart terminals, failing to adjust the brightness in time, thus affecting eye health.
[0030] Based on the above, this application provides a screen brightness adjustment method, an electronic device, and a computer-readable storage medium, which can solve the problem that related technologies cannot adaptively adjust screen brightness based on the user's actual eye usage.
[0031] Specifically, please refer to Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the screen brightness adjustment method of this application. In this embodiment, the screen brightness adjustment method includes:
[0032] S11: Determine the user's physiological state based on the user's eye movement data; the physiological state includes closed eye state, fatigue state, and awake state.
[0033] In this embodiment, the user's eye images are collected through the user's terminal, and eye movement data is obtained based on the user's eye images. Then, the eye movement data is analyzed to accurately detect the user's physiological state.
[0034] Eye-tracking data, recorded using specialized devices (such as eye trackers) or algorithms (such as camera-based visual tracking), is used to analyze a person's visual attention, cognitive state, and behavioral patterns. In some implementations, eye-tracking data includes eyelid opening / closing ratio (EAR), blink frequency, fixation duration, and pupil diameter change rate.
[0035] The terminal can be any smart terminal. In some implementations, the terminal includes any one of a mobile phone, tablet, laptop, or VR (Virtual Reality) device.
[0036] In this embodiment, closed-eye state, fatigued state, and awake state are three key eye behavior patterns.
[0037] Among them, the closed-eye state refers to the user's eyes being completely or nearly completely closed, the fatigued state refers to the user's eyes being in a brief state of unconsciousness or tension, and the awake state refers to the user's eyes being kept steadily open.
[0038] In some implementations, the user is determined to be in a closed-eye state when the detected EAR value is close to 0 (e.g., less than 0.1) and no valid pupil data is detected (due to eyelid obstruction).
[0039] In other implementations, user fatigue is determined when the detected EAR value is low (e.g., 0.15–0.2), blinking is irregular (slow or frequent blinking), and pupil constriction is present.
[0040] In other implementations, the user is determined to be awake when the EAR value is detected to be stable and high (e.g., 0.25–0.3), blinking is regular, and pupil size is appropriate.
[0041] S12: Generates corresponding brightness adjustment instructions based on different physiological states.
[0042] In some implementations, when a user is detected to be in a closed-eye state, a brightness adjustment command can be generated to immediately dim the screen (e.g., reduce the brightness to 10%), or a brightness adjustment command to turn off the display (e.g., turn off the screen).
[0043] In other implementations, when user fatigue is detected, a brightness adjustment command can be generated to appropriately reduce the brightness (e.g., from 90% to 80%), reduce the blue light ratio, or maintain the current brightness.
[0044] In other implementations, when the user is detected to be awake, a brightness adjustment command can be generated to appropriately increase the brightness, or a brightness adjustment command can be generated to dynamically adjust the brightness based on ambient light intensity data.
[0045] S13: Adjusts screen brightness based on brightness adjustment commands.
[0046] In this embodiment, after generating corresponding brightness adjustment commands based on different physiological states, the screen brightness is adjusted based on the corresponding brightness adjustment commands.
[0047] In some implementations, when the brightness adjustment command includes immediately dimming the screen or turning off the display, the brightness adjustment operation of dimming the screen or turning off the display is performed based on the brightness adjustment command.
[0048] In other embodiments, when the brightness adjustment command includes one of appropriately reducing brightness, reducing the blue light ratio, and maintaining the current brightness, the corresponding brightness adjustment operation is performed based on the brightness adjustment command.
[0049] In other embodiments, when the brightness adjustment command includes appropriately increasing the brightness or dynamically adjusting the brightness based on ambient light intensity data, the brightness adjustment operation of appropriately increasing the brightness or dynamically adjusting the brightness based on ambient light intensity data is performed based on the brightness adjustment command.
[0050] In this embodiment, before automatic adjustment, the user's head posture data can be detected by a head posture sensor to avoid accidentally triggering automatic adjustment when the user briefly looks away.
[0051] In some implementations, before determining the user's physiological state based on the user's eye-tracking data, the user's head posture data is acquired, and the user's head is detected as deviating from the screen based on the head posture data. If the user's head is detected as deviating from the screen for a duration exceeding a preset time, the screen brightness adjustment is stopped. If the user's head is detected as not deviating from the screen, the step of determining the user's physiological state based on the user's eye-tracking data is executed.
[0052] Understandably, by reducing the probability of falsely triggering automatic adjustment, the accuracy and efficiency of adjustment can be further improved.
[0053] Unlike related technologies, this implementation determines the user's physiological state based on eye-tracking data, enabling accurate detection of the user's actual eye usage. It then generates corresponding brightness adjustment commands based on different physiological states and adjusts the screen brightness accordingly. This adaptive adjustment of screen brightness based on the user's actual eye usage effectively reduces visual fatigue and improves the user experience.
[0054] Please see Figure 2 , Figure 2 This is a flowchart illustrating a second embodiment of the screen brightness adjustment method of this application. In this embodiment, the screen brightness adjustment method includes:
[0055] S21: Acquire the user's eye movement data; wherein, the eye movement data includes eyelid opening and closing degree, blink frequency, fixation duration and pupil diameter change rate.
[0056] In this embodiment, the user's eye images are acquired in real time, and image recognition is performed on the eye images to obtain the eyelid opening angle (EAR), blink frequency, fixation duration, and pupil diameter change rate.
[0057] Among them, eyelid opening and closing degree is an indicator used to quantify the degree of eye opening. Its core principle is to determine whether the eyes are closed by calculating the geometric ratio between key points of the eyes.
[0058] Blink frequency refers to the number of complete blinks per unit of time (usually 1 minute), which is used to reflect the intensity of eye muscle activity and fatigue level.
[0059] Fixation duration refers to the length of time the eye remains still (fixation) on a specific target or area, and is used to reflect the efficiency of attention allocation and information processing.
[0060] Among them, the pupil diameter change rate refers to the relative change in pupil diameter per unit time (usually expressed as a percentage or millimeters per second), which is used to reflect the activity of the autonomic nervous system (such as emotion and cognitive load).
[0061] In some implementations, images of the user's eyes are captured through a terminal used by the user.
[0062] In some specific implementations, eye images are captured at a frame rate of 30fps using the front-facing camera of the mobile phone.
[0063] In other implementations, eye images are captured using infrared sensors built into the VR device.
[0064] In some implementations, eye images are identified based on OpenCV (Open Source Computer Vision Library) and Dlib (a C++ / Python machine learning library), and eye movement data is calculated by locating key points in the eyes.
[0065] S22: Detects and calculates eyelid opening and closing, blinking frequency, fixation duration, and pupil diameter change rate, and determines the user's physiological state based on the detection and calculation results.
[0066] In this embodiment, it is first detected whether the eyelid opening degree in a consecutive preset number of frames is less than a preset opening degree threshold.
[0067] In some embodiments, the preset number of consecutive frames is 5 consecutive frames. In other embodiments, the preset number of consecutive frames may be 3 consecutive frames, 8 consecutive frames, 10 consecutive frames, or other numbers of frames, and this application does not limit this.
[0068] In some embodiments, the preset opening and closing degree threshold ranges from 0.1 to 0.2. In some specific embodiments, the preset opening and closing degree threshold is 0.1. In other specific embodiments, the preset opening and closing degree threshold is 0.15. In still other specific embodiments, the preset opening and closing degree threshold is 0.2, and this application does not limit this value.
[0069] In this embodiment, in response to the fact that the eyelid opening degree is less than a preset opening degree threshold in a consecutive preset number of frames, it is determined that the user is in a closed eye state.
[0070] In this embodiment, in response to the eyelid opening degree being greater than or equal to a preset opening degree threshold in at least one frame out of a consecutive preset number of frames, a fatigue index is calculated based on the eyelid opening degree, blink frequency, fixation duration, and pupil diameter change rate. Then, it is detected whether the fatigue index is greater than a preset fatigue level. If the fatigue index is greater than the preset fatigue level, it is determined that the user is in a fatigued state. If the fatigue index is less than or equal to the preset fatigue level, it is determined that the user is awake.
[0071] The preset fatigue level is 0.2.
[0072] In some implementations, the fatigue index can be calculated using the following formula:
[0073] F = α × (1 / B) + β × G + γ × D
[0074] Where F is the fatigue index, B is the blink rate (times / minute), G is the fixation duration (seconds), D is the pupil diameter change rate, α is the weighting coefficient, β is the weighting coefficient, and γ is the weighting coefficient.
[0075] α, β, and γ can be set according to actual needs.
[0076] In other implementations, environmental parameters, such as ambient light fluctuation values, can be incorporated when calculating the fatigue index. Specifically, the fatigue index can be calculated using the following formula:
[0077] F=α×(1 / B)+β×G+γ×D+δ×A
[0078] Where F is the fatigue index, B is the blink rate (times / minute), G is the fixation duration (seconds), D is the pupil diameter change rate, A is the ambient light fluctuation value (Lux), α is the weighting coefficient, β is the weighting coefficient, γ is the weighting coefficient, and δ is the weighting coefficient.
[0079] Among them, α, β, γ, and δ can be set according to actual needs.
[0080] Understandably, by introducing environmental parameters to calculate the fatigue index, the user's physiological state and the actual environmental conditions can be combined, thereby improving the calculation accuracy.
[0081] In this embodiment, after determining that the user is in a state of fatigue in response to the fatigue index being greater than a preset fatigue level, the method further includes: detecting the fatigue index to determine the user's fatigue level. The fatigue level includes severe fatigue, moderate fatigue, and mild fatigue.
[0082] In some implementations, the user's fatigue level is determined to be severe fatigue in response to the detection of a fatigue index greater than 0.7. The user's fatigue level is determined to be moderate fatigue in response to the detection of a fatigue index greater than 0.4 and less than or equal to 0.7. The user's fatigue level is determined to be mild fatigue in response to the detection of a fatigue index greater than 0.2 and less than or equal to 0.4.
[0083] Understandably, classifying users' fatigue levels facilitates the generation of more refined brightness adjustment instructions later on.
[0084] In some implementations, additional physiological signals from the user, such as heart rate or brain waves, can also be acquired to analyze the user's physiological state based on more dimensions of physiological signals, thereby further improving the accuracy of the state analysis.
[0085] S23: In response to the user having closed eyes, a first brightness adjustment command is generated; wherein, the first brightness adjustment command includes a static adjustment command to reduce the screen brightness to a preset brightness value or a screen-off command.
[0086] In some implementations, a first brightness adjustment command is generated in response to the user being in a closed-eye state for a duration exceeding a preset duration.
[0087] In some specific implementations, the preset brightness value is 10% of the current brightness value.
[0088] In some specific implementations, the preset duration is 3 seconds.
[0089] S24: In response to the user being fatigued, a second brightness adjustment instruction is generated; wherein the second brightness adjustment instruction includes a first sub-adjustment instruction to reduce the screen brightness by a gradient, a second sub-adjustment instruction to reduce the blue light ratio, and a third sub-adjustment instruction to maintain the current brightness.
[0090] In this embodiment, different second brightness adjustment commands are generated based on the user's different fatigue levels.
[0091] In some implementations, a first sub-adjustment command is generated in response to the user's fatigue level being severe fatigue.
[0092] In other implementations, a second sub-adjustment command is generated in response to the user's fatigue level being moderate fatigue.
[0093] In other implementations, a third sub-adjustment command is generated in response to the user's fatigue level being mild fatigue.
[0094] In some specific implementations, reducing screen brightness in a gradient means reducing the brightness by 10% every 5 minutes based on the current brightness value, and reducing the blue light ratio means reducing the blue light ratio to 50% of the current blue light ratio.
[0095] Understandably, generating different second brightness adjustment commands based on different user fatigue levels can achieve more precise health protection, energy efficiency optimization, and human-computer interaction adaptation, thereby effectively alleviating visual fatigue and improving user experience.
[0096] S25: In response to the user being awake, a third brightness adjustment command is generated; wherein, the third brightness adjustment command includes a dynamic adjustment command that dynamically adjusts the screen brightness based on ambient light intensity data.
[0097] In this embodiment, ambient light intensity data includes actual ambient light intensity or reference ambient light intensity.
[0098] In some implementations, screen brightness can be calculated using the following formula:
[0099] L=L0×I1×C
[0100] Where L is the screen brightness, L0 is the basic screen brightness, I1 is the actual ambient light intensity, and C is the fatigue compensation coefficient.
[0101] The value of C ranges from 0.5 to 1.2.
[0102] In other implementations, screen brightness can be calculated using the following formula:
[0103] L=L0×I2×C
[0104] Where L is the screen brightness, L0 is the basic screen brightness, I2 is the reference ambient light intensity, and C is the fatigue compensation coefficient.
[0105] Where I2 is 300 lux.
[0106] S26: In response to generating a first brightness adjustment command, perform a brightness adjustment operation to reduce the screen brightness to a preset brightness value based on a static adjustment command, or perform a screen-off operation based on a screen-off command.
[0107] In some implementations, in response to a first brightness adjustment command being a static adjustment command to reduce the screen brightness to a preset brightness value, a brightness adjustment operation to reduce the screen brightness to the preset brightness value is performed based on the static adjustment command.
[0108] Understandably, by reducing the screen brightness to a preset value, it is possible to prevent the screen from remaining brightly lit without the user's awareness, thereby reducing unnecessary energy consumption.
[0109] In other implementations, in response to the first brightness adjustment command being a screen-off command, a screen-off operation is performed based on the screen-off command.
[0110] Understandably, controlling the screen to turn off can prevent light from interfering with the user's sleep (especially at night), thereby improving the user's rest quality.
[0111] S27: In response to generating a second brightness adjustment instruction, perform a brightness adjustment operation that gradually reduces the screen brightness based on the first sub-adjustment instruction; or, perform a brightness adjustment operation that reduces the blue light ratio based on the second sub-adjustment instruction; or, perform a brightness adjustment operation that maintains the current brightness based on the third sub-adjustment instruction.
[0112] In this embodiment, different sub-adjustment commands are generated based on the user's different fatigue levels, and corresponding brightness adjustment operations are performed based on the corresponding sub-adjustment commands.
[0113] In some implementations, in response to the user's fatigue level being severe fatigue, a brightness adjustment operation is performed based on a first sub-adjustment instruction to gradually reduce the screen brightness.
[0114] In other implementations, in response to the user's fatigue level being moderate fatigue, a brightness adjustment operation to reduce the proportion of blue light is performed based on a second sub-adjustment command.
[0115] In other implementations, in response to the user's fatigue level being mild fatigue, a brightness adjustment operation is performed based on a third sub-adjustment instruction to maintain the current brightness.
[0116] In this embodiment, a prompt message can also be displayed while adjusting the screen brightness.
[0117] In some implementations, the prompt message is "20-20-20 eye protection reminder," which means looking at something 20 feet away for 20 seconds every 20 minutes.
[0118] Understandably, timely reminders to users through prompts can encourage them to take eye-protection measures, thereby further alleviating visual fatigue.
[0119] S28: In response to the generation of a third brightness adjustment instruction, perform a brightness adjustment operation based on the dynamic adjustment instruction to dynamically adjust the screen brightness according to the ambient light intensity data.
[0120] Understandably, dynamically adjusting screen brightness based on ambient light intensity data can enhance display clarity, thereby keeping users alert.
[0121] Unlike related technologies, this implementation acquires the user's eye movement data and detects and calculates parameters such as eyelid opening and closing, blink frequency, fixation duration, and pupil diameter change rate. Based on the detection and calculation results, it can accurately analyze the user's physiological state. Furthermore, it generates one of three brightness adjustment commands—a first, a second, and a third—based on the user's different physiological states and executes the corresponding brightness adjustment operation. This adaptive adjustment, centered on the user's actual eye usage state, provides brightness more suitable for human eye comfort, thereby reducing visual fatigue and protecting the user's eye health. Simultaneously, because it can automatically optimize screen display parameters based on more refined brightness adjustment commands under different physiological states, it not only meets specific brightness adjustment needs but also improves the accuracy of automatic adjustment, thus enhancing the user experience.
[0122] Please see Figure 3 , Figure 3 This is a flowchart illustrating the application scenario of the screen brightness adjustment method of this application.
[0123] In this embodiment, the user's eye movement data is first acquired, including eyelid opening and closing, blink frequency, fixation duration, and pupil diameter change rate. Next, the eyelid opening and closing, blink frequency, fixation duration, and pupil diameter change rate are detected and calculated, and the user's physiological state is determined based on the detection and calculation results. In response to the user being in a closed-eye state, a first brightness adjustment command is generated. In response to the user being in a fatigued state, a second brightness adjustment command is generated, which includes three sub-adjustment commands. In response to the user being awake, a third brightness adjustment command is generated. In response to the generation of the first brightness adjustment command, a brightness adjustment operation is performed to reduce the screen brightness to a preset brightness value, or a screen-off operation is performed based on a screen-off command. In response to the generation of the second brightness adjustment command, corresponding brightness adjustment operations are performed based on different sub-adjustment commands. In response to the generation of the third brightness adjustment command, a brightness adjustment operation is performed to dynamically adjust the screen brightness according to ambient light intensity data.
[0124] The screen brightness adjustment method provided in this application can be used in multiple smart terminals such as mobile phones, tablets, laptops, and VR devices. For example, by tracking pupil changes through the infrared camera built into the VR device, the screen brightness is automatically increased when continuous pupil dilation (dark adaptation) is detected; or, when it is detected that the user has not blinked for more than 5 minutes, a gray mask layer is triggered to force a rest.
[0125] Unlike related technologies, this implementation determines the user's physiological state based on eye-tracking data, enabling accurate detection of the user's actual eye usage. It then generates corresponding brightness adjustment commands based on different physiological states and adjusts the screen brightness accordingly. This adaptive adjustment of screen brightness based on the user's actual eye usage effectively reduces visual fatigue and improves the user experience.
[0126] Correspondingly, this application provides a screen brightness adjustment device.
[0127] Please see Figure 4 , Figure 4 This is a schematic diagram of one embodiment of the screen brightness adjustment device of this application. In this embodiment, the screen brightness adjustment device 40 includes a physiological state determination module 41, an instruction generation module 42, and a brightness adjustment module 43.
[0128] The physiological state determination module 41 is used to determine the user's physiological state based on the user's eye movement data; wherein, the physiological state includes closed eye state, fatigue state and awake state.
[0129] The instruction generation module 42 is used to generate corresponding brightness adjustment instructions according to different physiological states.
[0130] The brightness adjustment module 43 is used to adjust the screen brightness based on the brightness adjustment command.
[0131] For details of the process, please refer to the relevant textual descriptions in S11 to S13 and S21 to S28, which will not be repeated here.
[0132] Unlike related technologies, this implementation uses a physiological state determination module 41 to determine the user's physiological state based on eye movement data, accurately detecting the user's actual eye usage status. Then, a brightness adjustment command generation module 42 generates corresponding brightness adjustment commands based on different physiological states, and a brightness adjustment module 43 adjusts the screen brightness based on these commands. This adaptive adjustment of screen brightness based on the user's actual eye usage status effectively reduces visual fatigue and improves the user experience.
[0133] Correspondingly, this application provides an electronic device.
[0134] Please see Figure 5 , Figure 5 This is a schematic diagram of one embodiment of the electronic device of this application. For example... Figure 5 As shown, in this embodiment, the electronic device 50 includes a memory 51 and a processor 52.
[0135] In this embodiment, memory 51 is used to store program data, which, when executed, implements the steps in the screen brightness adjustment method described above. Processor 52 is used to execute the program instructions stored in memory 51 to implement the steps in the screen brightness adjustment method described above.
[0136] Specifically, processor 52 controls itself and memory 51 to implement the steps in the screen brightness adjustment method described above. Processor 52 can also be called a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 52 can be implemented using multiple integrated circuit chips.
[0137] Unlike related technologies, this implementation uses processor 52 to determine the user's physiological state based on the user's eye movement data, enabling accurate detection of the user's actual eye usage status. Then, it generates corresponding brightness adjustment commands based on different physiological states and adjusts the screen brightness accordingly. This allows for adaptive adjustment of screen brightness based on the user's actual eye usage status, effectively reducing visual fatigue and improving the user experience.
[0138] Correspondingly, this application provides a computer-readable storage medium.
[0139] Please see Figure 6 , Figure 6 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
[0140] The computer-readable storage medium 60 includes a computer program 601 stored on it. When executed by the aforementioned processor, the computer program 601 implements the steps in the screen brightness adjustment method described above. Specifically, if the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium 60. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium 60 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned computer-readable storage medium 60 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0142] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0143] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0144] If the integrated unit is implemented as 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 this application, in essence, or the part that contributes to the prior art, or all or part of the 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 to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0145] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for adjusting screen brightness, characterized in that, include: The user's physiological state is determined based on the user's eye movement data; wherein, the physiological state includes closed eye state, fatigue state, and awake state; Generate corresponding brightness adjustment instructions based on different physiological states; The screen brightness is adjusted based on the brightness adjustment command.
2. The screen brightness adjustment method according to claim 1, characterized in that, The step of determining the user's physiological state based on the user's eye movement data includes: Acquire the user's eye movement data; wherein, the eye movement data includes eyelid opening and closing degree, blink frequency, fixation duration, and pupil diameter change rate; The physiological state of the user is determined based on the eyelid opening and closing degree, the blinking frequency, the fixation duration, and the pupil diameter change rate.
3. The screen brightness adjustment method according to claim 2, characterized in that, The step of acquiring the user's eye movement data includes: Real-time acquisition of the user's eye images; Image recognition is performed on the eye image to obtain the eyelid opening and closing degree, the blinking frequency, the fixation duration, and the pupil diameter change rate; The step of detecting and calculating the user's physiological state based on the eyelid opening and closing degree, the blinking frequency, the fixation duration, and the pupil diameter change rate, and determining the user's physiological state based on the detection and calculation results, includes: Detect whether the eyelid opening degree in a consecutive preset number of frames is less than a preset opening degree threshold; In response to the fact that the eyelid opening degree is less than the preset opening degree threshold in the consecutive preset number of frames, it is determined that the user is in the closed eye state; In response to the eyelid opening degree being greater than or equal to the preset opening degree threshold in at least one of the consecutive preset number of frames, a fatigue index is calculated based on the eyelid opening degree, the blinking frequency, the fixation duration, and the pupil diameter change rate. Detect whether the fatigue index is greater than the preset fatigue level; In response to the fatigue index being greater than the preset fatigue level, it is determined that the user is in the fatigue state; In response to a fatigue index that is less than or equal to the preset fatigue level, it is determined that the user is in the conscious state.
4. The screen brightness adjustment method according to claim 3, characterized in that, After determining that the user is in a state of fatigue in response to the fatigue index being greater than the preset fatigue level, the step includes: The fatigue index is detected to determine the user's fatigue level; wherein the fatigue level includes severe fatigue, moderate fatigue, and mild fatigue.
5. The screen brightness adjustment method according to claim 4, characterized in that, The step of generating corresponding brightness adjustment instructions based on different physiological states includes: In response to the user being in the closed-eye state, a first brightness adjustment command is generated; wherein, the first brightness adjustment command includes a static adjustment command to reduce the screen brightness to a preset brightness value or a screen-off command; In response to the user being in the fatigued state, a second brightness adjustment instruction is generated; wherein, the second brightness adjustment instruction includes a first sub-adjustment instruction to reduce the screen brightness by a gradient, a second sub-adjustment instruction to reduce the blue light ratio, and a third sub-adjustment instruction to maintain the current brightness; In response to the user being in the awake state, a third brightness adjustment command is generated; wherein, the third brightness adjustment command includes a dynamic adjustment command that dynamically adjusts the screen brightness based on ambient light intensity data.
6. The screen brightness adjustment method according to claim 5, characterized in that, The step of generating a second brightness adjustment command in response to the user being in the fatigued state includes: In response to the user's fatigue level being severe fatigue, the first sub-adjustment instruction is generated; In response to the user's fatigue level being described as moderate fatigue, a second sub-adjustment instruction is generated; In response to the user's fatigue level being classified as mild fatigue, the third sub-adjustment instruction is generated.
7. The screen brightness adjustment method according to claim 5, characterized in that, The step of adjusting the screen brightness based on the brightness adjustment command includes: In response to generating the first brightness adjustment command, a brightness adjustment operation is performed to reduce the screen brightness to the preset brightness value based on the static adjustment command, or a screen-off operation is performed based on the screen-off command; In response to generating the second brightness adjustment instruction, a brightness adjustment operation is performed to gradually reduce the screen brightness based on the first sub-adjustment instruction; or, a brightness adjustment operation is performed to reduce the blue light ratio based on the second sub-adjustment instruction; or, a brightness adjustment operation is performed to maintain the current brightness based on the third sub-adjustment instruction. In response to the generation of the third brightness adjustment command, a brightness adjustment operation is performed based on the dynamic adjustment command to dynamically adjust the screen brightness according to the ambient light intensity data.
8. The screen brightness adjustment method according to claim 1, characterized in that, Before the step of determining the user's physiological state based on the user's eye movement data, the following steps are included: Obtain the user's head pose data; Based on the head posture data, detect whether the user's head is off-screen; In response to detecting that the user's head deviates from the screen for a period exceeding a preset duration, the screen brightness adjustment is stopped.
9. An electronic device, characterized in that, include: A memory for storing program data, which, when executed, implements the steps of the screen brightness adjustment method as described in any one of claims 1 to 8; A processor is configured to execute the program data stored in the memory to implement the steps of the screen brightness adjustment method as described in any one of claims 1 to 8.
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 screen brightness adjustment method as described in any one of claims 1 to 8.