Screen adjusting method and device, electronic equipment and computer readable medium

By using a camera on a mobile terminal to detect the user's physical status and automatically adjust the color temperature of the screen, the problem of manually setting the eye protection mode in the existing technology is solved, and a more intelligent and personalized eye protection experience is achieved.

CN119512491APending Publication Date: 2025-02-25REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411517154.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The eye protection mode of existing mobile terminals requires users to set manually, and the screen color temperature cannot be adjusted intelligently according to the user's physical condition, resulting in poor experience and cannot meet the differentiated experience of different users.

Method used

The user's image is collected through the camera and the user's physical state is detected. If the user is in a specified state (such as fatigue state), the color temperature reduction operation will be automatically performed based on the current color temperature of the screen to ensure that the color temperature is not lower than the set threshold value to avoid affecting the user's normal use.

Benefits of technology

In the eye protection mode, the screen color temperature is automatically reduced according to the user's fatigue detection results, which improves the user experience, avoids the problem of too low color temperature, and ensures the normal use of the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512491A_ABST
    Figure CN119512491A_ABST
Patent Text Reader

Abstract

The invention discloses a screen adjusting method and device, electronic equipment and a computer readable medium, and relates to the technical field of mobile terminals.The method comprises the steps that under the condition that an eye protection mode is started, if it is detected that the electronic equipment meets a detection condition, a user image in the current detection time period is collected through a camera; detecting the physical state of the user based on the user image; and if the body state is a specified state, under the condition that the current color temperature of the screen of the electronic equipment is not less than a color temperature threshold value, executing color temperature reduction operation on the screen on the basis of the current color temperature of the screen. Therefore, in the eye protection mode, the color temperature of the screen can be automatically reduced based on the fatigue detection result of the user, and the situation that the color temperature is too low, namely lower than the color temperature threshold value, and normal use of the user is affected due to further reduction of the color temperature of the screen can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile terminal technology, and more specifically, to a screen adjustment method, device, electronic device and computer-readable medium. Background Art

[0002] With the development of society and the advancement of communication technology, mobile phones and other communication products have become important communication tools for people. At the same time, with the increasing frequency of mobile phone use, people's requirements for mobile phones are getting higher and higher, and the frequency and time of use are usually getting longer and longer. Especially when reading, entertaining, and playing games, it is easy to stare at the screen for a long time, causing eye fatigue. If you do not pay attention to eye protection, it is easy to cause myopia or other damage to the eyes.

[0003] However, in existing mobile terminals, users can only manually set the display parameters of the screen, which is unreasonable. Summary of the invention

[0004] The present application proposes a screen adjustment method, device, electronic device and computer-readable medium to improve the above-mentioned defects.

[0005] In a first aspect, the present application provides a screen adjustment method, which is applied to an electronic device, and the method includes: when the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, collecting the user image within the current detection period through a camera; detecting the user's physical state based on the user image; if the physical state is a specified state, then when the current color temperature of the screen of the electronic device is not less than the color temperature threshold, performing a color temperature reduction operation on the screen based on the current color temperature of the screen.

[0006] In a second aspect, the present application also provides a screen adjustment device, which is applied to an electronic device, and the device includes: an acquisition unit, a detection unit, and an execution unit. The acquisition unit is used to collect the user image within the current detection period through a camera if it is detected that the electronic device meets the detection conditions when the eye protection mode is turned on. The detection unit is used to detect the user's physical state based on the user image. The execution unit is used to perform a color temperature reduction operation on the screen based on the current color temperature of the screen if the physical state is a specified state and the current color temperature of the screen of the electronic device is not less than the color temperature threshold.

[0007] In a third aspect, the present application also provides an electronic device comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.

[0008] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.

[0009] The screen adjustment method, device, electronic device and computer-readable medium provided by the present application, when the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera; the user's physical state is detected based on the user image; if the physical state is a specified state, then when the current color temperature of the screen of the electronic device is not less than the color temperature threshold, the color temperature reduction operation is performed on the screen based on the current color temperature of the screen. Therefore, in the eye protection mode, the color temperature of the screen can be automatically reduced based on the user's fatigue detection results, and it can also avoid the color temperature being too low, that is, below the color temperature threshold, and avoid further reducing the color temperature of the screen to affect the user's normal use.

[0010] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A schematic diagram of an eye protection mode setting interface provided by an embodiment of the present application is shown;

[0013] Figure 2 A schematic diagram of an eye protection mode setting interface provided by another embodiment of the present application is shown;

[0014] Figure 3 A method flow chart of a screen adjustment method provided by an embodiment of the present application is shown;

[0015] Figure 4 A diagram showing a change in the eye protection mode setting interface provided by an embodiment of the present application is shown;

[0016] Figure 5 A method flow chart of a screen adjustment method provided by another embodiment of the present application is shown;

[0017] Figure 6 A framework diagram corresponding to a screen adjustment method provided by an embodiment of the present application is shown;

[0018] Figure 7 A reminder schematic diagram provided by an embodiment of the present application is shown;

[0019] Figure 8 A schematic diagram of an eye protection process provided by an embodiment of the present application is shown;

[0020] Fig. 9 A schematic diagram of fatigue detection provided by an embodiment of the present application is shown;

[0021] Fig.10 A schematic diagram of texture settings provided by an embodiment of the present application is shown;

[0022] Fig.11 A schematic diagram of an eye protection process provided by another embodiment of the present application is shown;

[0023] Fig.12 A schematic diagram of an eye protection mode setting interface provided by another embodiment of the present application is shown;

[0024] Fig.13 A reminder schematic diagram provided by another embodiment of the present application is shown;

[0025] Fig.14 A module block diagram of a screen adjustment device provided by an embodiment of the present application is shown;

[0026] Fig.15 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0027] Fig.16 A storage unit for storing or carrying program codes for implementing the method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0029] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0030] With the development of society and the advancement of communication technology, mobile phones and other communication products have become important communication tools for people. At the same time, with the increasing frequency of mobile phone use, people's requirements for mobile phones are getting higher and higher, and the frequency and time of use are usually getting longer and longer. Especially when reading, entertaining, and playing games, it is easy to stare at the screen for a long time, causing eye fatigue. If you do not pay attention to eye protection, it is easy to cause myopia or other damage to the eyes.

[0031] However, the inventors found in their research that, although there is an eye protection mode for users' use of screens, such as adjusting screen brightness, contrast or other display parameters, the eye protection mode is usually manually set by the user or timed. Figure 1 , Figure 1 The interface is the eye protection mode setting interface, which displays the eye protection mode control, and the user can turn on the eye protection mode through the eye protection mode control. Figure 2 As shown, Figure 2 The interface shown is an eye protection timing interface, in which the user can set the on and off times of the eye protection mode, thereby setting the working time period of the eye protection mode.

[0032] pass Figure 1 and Figure 2 It can be seen that although users can manually turn on the eye protection function and set the eye protection color temperature and timed on / off in the settings interface, the setting method is not smart enough, and users may not know how to set it to protect their eyes. For example, some users will adjust the color temperature in the direction of cold colors. After setting, if it is not turned off manually or the scheduled off time has not arrived, the eye protection effect will always exist, regardless of whether the user needs eye protection. After the eye protection effect is set, the eye protection effect of all scenes is the same, and if the user does not adjust it manually, the effect will not change. Users may care more about the display effect experience when they are awake, and may care more about the eye protection effect experience when they are tired.

[0033] Therefore, in the current eye protection mode, users passively protect their eyes. As long as the eye protection switch is turned on and is not turned off manually or the timer has not arrived, the eye protection effect will be turned on all the time, and the experience is not good enough. The real-time performance is poor, and it cannot be adjusted dynamically according to the user's status. The same eye protection effect is turned on even if the user is not tired, and the experience is not good enough. It is impossible to achieve individual user personalized adjustment and cannot meet the differentiated experience of different users. The eye protection effect is the same in all scenes, and the scene-differentiated experience cannot be achieved. For example, there is no special eye protection strategy for game scenes / reading scenes.

[0034] In order to overcome the above defects, Figure 3 As shown, an embodiment of the present application provides a screen adjustment method, which is applied to an electronic device. The method includes: S301 to S303.

[0035] S301: When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera.

[0036] It can be understood that the eye protection mode refers to a mode in which the screen adjustment method provided in the embodiment of the present application can be turned on, and in this mode, the screen adjustment method of the embodiment of the present application can be executed. As an implementation method, the eye protection mode can be turned on manually by the user or automatically. Exemplarily, the eye protection mode can be turned on based on a start instruction input by the user, wherein the start instruction can be input by the user through a specified control displayed on the screen, or can be input by voice. The automatic turn-on method can be that the electronic device automatically turns on the eye protection mode when it is determined that the turn-on condition is met. Among them, the turn-on condition can include that the application program run by the electronic device is a specified application program, or that the interface displayed on the screen of the electronic device is an interface of a specified type. As an implementation method, it can also be that after the user manually turns on the eye protection mode, after detecting that the turn-on condition is met, the screen adjustment operation of the present application will be performed, that is, after receiving the user's start instruction, after determining that the electronic device meets the turn-on condition, S301 and subsequent operations are performed.

[0037] like Figure 4 As shown, Figure 4 (a) The interface displayed is the eye protection mode management interface, which includes a first control corresponding to AI eye protection. When the user clicks the first control, the eye protection mode operation interface (such as Figure 4 (b) shows a second control in the eye protection mode operation interface. When the user clicks the second control, the AI ​​eye protection function, i.e., the eye protection mode, can be turned on.

[0038] As an implementation, after the user starts the eye protection mode, the electronic device may display a reminder message, and if a confirmation request based on the reminder message is detected, the eye protection mode is started. The reminder message may be used to ask the user whether to agree to start the eye protection mode. In addition, considering that the electronic device needs to collect the user's image through the camera after the eye protection mode is turned on, the reminder message also serves to remind the user that the camera of the electronic device is currently being used. Therefore, if the user operates the reminder message, for example, Figure 4 (c) shows that when the user inputs the start instruction of the eye protection mode through the second control, the electronic device determines that the start condition of the eye protection mode is met, and displays a specified pop-up window. The user can operate the specified pop-up window and input a confirmation request, for example, click Figure 4 (c) The "Agree" button in the pop-up window, after the electronic device obtains the confirmation request, determines that the user authorizes the process related to the eye protection mode to use the camera, that is, the process obtains the permission to use the camera. At the same time, it also indicates that the user agrees to start and run the eye protection mode.

[0039] When it is determined that the eye protection mode is turned on, the detection conditions can be set in consideration of the power consumption of the electronic device and the user's demand for the eye protection mode. When it is determined that the electronic device meets the detection conditions, it is determined whether to collect the user image through the camera, and then whether to perform the color temperature reduction operation. Among them, the detection conditions may include a first condition and a second condition, wherein the first condition refers to a condition set to meet the power consumption requirements of the electronic device, and the second condition refers to a condition set to improve the application value of the eye protection mode. For example, the first condition may include a periodic condition, that is, a detection interval is set, and it is determined that the detection condition is met at the end of the detection interval. The first condition may also be that the power of the electronic device is greater than the first threshold, then it is determined that the electronic device meets the detection condition. Furthermore, the first condition may also be that the CPU usage of the electronic device is less than the second threshold, then it is determined that the electronic device meets the detection condition. Specifically, the implementation of the detection condition will be explained in subsequent embodiments.

[0040] Therefore, when it is detected that the electronic device meets the detection conditions, the user image within the current detection period is captured through the camera, so that the user's physical state can be subsequently determined based on the user image within the detection period captured by the electronic device, and whether to perform the color temperature reduction operation can be determined based on the user's physical state.

[0041] It should be noted that in the embodiment of the present application, the user image collected by the camera is used to detect the user's physical state, so the user's physical state can be obtained through the analysis result of at least one user image within a certain time period. Therefore, the collected user image corresponds to a detection time period, which means that when it is determined that the electronic device meets the detection conditions, the user's physical state is obtained by analyzing the images within the current detection period of a certain time length. The screen adjustment method provided in the embodiment of the present application can be used multiple times, and may also be applied to different detection periods, so as to meet the adjustment requirements of the screen in different scenes or time periods, which is not limited here.

[0042] In the embodiment of the present application, the detection period refers to a time length determined after determining that the electronic device meets the detection conditions. For example, it can be 30 seconds, and of course it can be other time lengths. The specific setting can be based on actual usage requirements and is not limited to this.

[0043] It can be understood that the screen adjustment method of the embodiment of the present application can be executed multiple times, so each time it is determined that the electronic device meets the detection condition, a detection period corresponding to the moment can be determined.

[0044] S302: Detecting the user's physical state based on the user image.

[0045] It should be noted that the user's physical state includes a fatigue state and a non-fatigue state. Therefore, the detection of the user's physical state based on the user image can also be regarded as fatigue detection for the user, that is, determining whether the user is currently fatigued.

[0046] It is understandable that the implementation method of detecting the body state based on the image can be to pre-train a recognition model that can recognize the user image and determine the body state corresponding to the user image. The model can be obtained in advance based on sample training, for example, a data set containing facial images in fatigue and non-fatigue states is obtained. Exemplarily, your own data set can be constructed by customizing the collected images. Annotation: Make sure that each image is labeled as "fatigue" or "awake" (i.e., non-fatigue). A model can be constructed that has the functions of feature extraction and classification. The feature extraction method can be a deep learning method, that is, using a convolutional neural network (CNN) to extract deep features, and the feature extraction is used to extract facial features. The classification algorithm can use a support vector machine (SVM), a random forest, or a deep learning model (such as CNN) for classification. The training process is to input the extracted features and the corresponding labels into the model for training. Frameworks such as Keras, TensorFlow, or PyTorch can be used. Therefore, a supervised learning method is adopted. Based on the labeled samples, the trained model can obtain the classification result corresponding to the image based on the analysis of the facial image, whether it is a fatigue state or a non-fatigue state.

[0047] As an implementation mode, the aforementioned fatigue state and non-fatigue state refer to the user's eye fatigue state. Therefore, by analyzing the image of the eye area of ​​the user's image, it can be determined whether the user is currently suffering from eye fatigue, and then whether the user's physical state is fatigued or non-fatigue.

[0048] S303: If the body state is a specified state, then when the current color temperature of the screen of the electronic device is not less than a color temperature threshold, a color temperature lowering operation is performed on the screen based on the current color temperature of the screen.

[0049] In the embodiment of the present application, in order to avoid the screen color temperature being too low and affecting the normal use of the user, the prerequisite for performing the color temperature lowering operation on the screen includes not only that the physical state is a specified state, but also that the current color temperature of the screen of the electronic device is not less than the color temperature threshold. In other words, the color temperature threshold can be regarded as the minimum color temperature that can be set by the screen adjustment method in the eye protection mode. Of course, the user can manually lower the color temperature, and there is no restriction on this.

[0050] It should be noted that the specified state includes a fatigue state or a non-fatigue state. That is, when the current color temperature of the screen of the electronic device is not less than the color temperature threshold, the color temperature can be lowered when the body is fatigued, or when the body is not fatigued. The application scenarios of the two are different, or the usage requirements that can be met are different.

[0051] In some usage scenarios, when the user's physical state is fatigued, the user may be using electronic devices for a long time, that is, the user may suffer from eye fatigue due to long-term use of the eyes. In this case, when the eyes are tired, the color temperature can be lowered to alleviate the damage to the user's eyes and protect the user's eyes. In this usage scenario, if the user's physical state is not fatigued, the color temperature reduction operation is not performed, which can maintain a good user experience of the user's use of the screen, because the color temperature reduction operation may affect the user's experience of the screen, such as the user's discomfort with the screen display color.

[0052] In other usage scenarios, when the user's physical state is not fatigued, the user may continue to use the electronic device for a long time. Therefore, in order to prevent the user from causing eye fatigue due to continued long-term use of the screen, the color temperature reduction operation can be performed, and by appropriately setting the color temperature threshold, the color temperature will not be reduced too much when the user uses the screen. In this usage scenario, if the user's physical state is fatigued, the color temperature reduction operation is not performed. This is because considering that the user may soon give up using the electronic device and take a proper rest when tired, the color temperature reduction operation may not be performed on the screen at this time. Furthermore, the first content may be displayed on the screen, and the first content is used to remind the user that it is detected that the user is in a fatigued state and please take a proper rest.

[0053] It should be noted that the color temperature reduction operation refers to performing a color temperature reduction operation on the screen based on the current color temperature of the screen, that is, the color temperature reduction operation is a gradual reduction process, for example, reducing by 5% each time.

[0054] Therefore, in the embodiment of the present application, when the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera; the user's physical state is detected based on the user image; if the physical state is a specified state, then when the current color temperature of the screen of the electronic device is not less than the color temperature threshold, the color temperature reduction operation is performed on the screen based on the current color temperature of the screen. Therefore, in the eye protection mode, the color temperature of the screen can be automatically reduced based on the user's fatigue detection results, and it can also avoid the color temperature being too low, that is, below the color temperature threshold, and avoid further reducing the color temperature of the screen to affect the user's normal use.

[0055] See also Figure 5 , Figure 5 A screen adjustment method provided by an embodiment of the present application is shown, which is applied to an electronic device, and the method includes: S501 to S509

[0056] S501: If it is detected that the conditions for starting the eye protection mode are met, start the eye protection mode.

[0057] like Figure 6 As shown, it shows the algorithm flow of the eye protection mode. The embodiment of the present application combines the images collected by the camera and the analysis of each module to automatically perform eye protection related operations for the user.

[0058] It can be understood that the implementation of the opening condition can refer to the aforementioned embodiment and will not be described in detail here.

[0059] For the convenience of description, the automatic adjustment function of the color temperature of the screen in the screen adjustment method provided in the embodiment of the present application is named AI eye protection. When the user starts the eye protection mode, it is equivalent to starting the AI ​​eye protection function of the electronic device. When the user turns on AI eye protection, a reminder message will be displayed, for example, the reminder message will be displayed through a pop-up window, that is, a "User Notice" pop-up window will pop up to remind the user that he needs to apply for camera permission and that the user's personal information will not be collected.

[0060] S502: Perform a color temperature reduction operation on the screen of the electronic device.

[0061] When the eye protection mode is just activated, the electronic device has not yet detected the user's physical condition during the eye protection process. However, before the first execution of the user's physical condition detection after the eye protection mode is activated, specifically before determining whether the electronic device meets the detection conditions, the color temperature reduction operation is performed on the screen of the electronic device, that is, the first color temperature reduction operation performed after the eye protection mode is activated.

[0062] It should be noted that the reduction amplitude when the electronic device performs a color temperature reduction operation each time is not the same. In some embodiments, when the color temperature reduction operation is performed for the first time, that is, after the eye protection mode is started, the reduction amplitude of the color temperature reduction operation performed for the first time is smaller than the reduction amplitude of the color temperature reduction operation performed subsequently. For example, the reduction amplitude of the subsequent color temperature reduction operation is 5%, that is, 5% of the maximum color temperature value, while the first color temperature reduction amplitude is 3%.

[0063] Therefore, when users turn on AI eye protection, the color temperature will be slightly lowered (towards the "warm" direction, that is, adjusted in the eye protection direction), allowing users to perceive the changes in the turned-on function more obviously, thereby improving user experience and enhancing user perception.

[0064] S503: Detect whether the electronic device meets the detection conditions.

[0065] As an implementation manner, the detection condition may include at least one of the first condition, the second condition, the third condition, the fourth condition and the fifth condition, that is, the detection condition may be any one of the five conditions or any combination of at least two conditions.

[0066] For the first condition, it is detected whether the time between the current moment and the last time the user's physical state was detected is greater than or equal to the time threshold. If it is greater than or equal to the time threshold, the electronic device is determined to meet the first condition. Otherwise, it is determined that the electronic device does not meet the first condition. That is to say, when the eye protection mode is turned on, if it is detected that the time between the current moment and the last time the user's physical state was detected is greater than or equal to the time threshold, the user image in the current detection period is collected through the camera. The detection of the electronic device under the first condition can be regarded as the timing detection of the electronic device.

[0067] It should be noted that the time threshold can be a fixed value or a variable value. For example, the time threshold can be set differently in different time periods. For example, the detection is performed once every 60 minutes during the day, and each detection is 30 seconds. That is to say, the time threshold corresponding to the daytime (for example, 7 am to 6 pm) is 60 minutes. At night, the user is tired after a day of work or study, so the detection time is shortened to once every 30 minutes, and each detection is 30 seconds. Then the time threshold corresponding to the night (for example, 6 pm to 7 am the next day) is 30 minutes. Through the timed detection strategy, power consumption can be saved and the battery life of electronic devices can be extended.

[0068] Therefore, before executing the detection of whether the time length between the current moment and the moment when the user's physical state was last detected is greater than or equal to the time threshold, the method further includes determining the target time period at the current moment, and determining the time threshold based on the target time period. For example, if the target time period is the daytime period, the time threshold is determined to be 60 minutes, and if the target time period is the nighttime period, the time threshold is determined to be 30 minutes.

[0069] For the second condition, it is detected whether the electronic device is currently in the screen-off state. If it is not in the screen-off state, it is determined that the electronic device meets the second condition. If it is in the screen-off state, it is determined that the electronic device does not meet the second condition. That is to say, when the eye protection mode is turned on, if it is detected that the electronic device is not in the screen-off state, the user image in the current detection period is collected through the camera. Therefore, in order to save power consumption, the screen-off state is not detected at this time, because the screen-off means that the user is not using the device at this time.

[0070] For the third condition, when the eye protection mode is turned on, the user's physical state detected last time is obtained as a historical state, and if the historical state is not a specified state, it is determined that the electronic device meets the third condition. If the historical state is a specified state, it is determined that the electronic device does not meet the third condition, and if the current color temperature of the screen of the electronic device is not less than the color temperature threshold, the color temperature reduction operation is performed on the screen based on the current color temperature of the screen.

[0071] Furthermore, when it is determined that the historical state is not the specified state, it is determined whether the electronic device is in the screen-off state. If it is not in the screen-off state, the user image in the current detection period is collected through the camera and subsequent detection operations are performed.

[0072] In an embodiment of the present application, assuming that the specified state is a fatigue state, if the last detection result is a fatigue state and the user is still continuing to use the device, that is, the electronic device has not turned off the screen, then the color temperature is directly lowered this time; if the last detection result is not a fatigue state, and the user is still continuing to use the device, that is, the screen of the device has not been turned off, then it is determined that the user's physical state needs to be detected this time.

[0073] For the fourth condition, when the eye protection mode is turned on, the blocking state of the camera is detected. If the blocking state is not blocked, it is determined that the electronic device meets the fourth condition; if the blocking state is blocked, it is determined that the electronic device does not meet the fourth condition. That is to say, when the eye protection mode is turned on, the blocking state of the camera is detected; if the blocking state is not blocked, the user image in the current detection period is collected through the camera.

[0074] As an implementation method, the way to detect the occlusion state of the camera of an electronic device can be to turn on the camera of the electronic device and obtain the picture captured by the camera. If the picture captured by the camera is blurry or completely dark or the object in the picture is very large and almost occupies the entire picture, it can be determined that the camera is blocked. Of course, it is also possible to detect whether the camera is blocked by a proximity sensor next to the camera of the electronic device. Because fatigue detection requires the use of a camera to capture images of the human eye, if the camera is blocked, the image cannot be captured, and if the camera and algorithm are still called, battery power will be wasted.

[0075] For the fifth condition, assuming that the original intention of the electronic device to turn on the eye protection mode is to solve the effect of eye protection when the user uses a specified application, for example, if it is detected that the specified application in the electronic device is started, the eye protection mode is started, wherein the specified application is applicable to the eye protection mode, that is, the reason why the eye protection mode is started this time is that the specified application is started, or the user inputs a start-up instruction to turn on the eye protection mode, and the interface for inputting the start-up instruction corresponds to the specified application. If the eye protection mode is turned on, if the specified application is not in the specified state, it is determined that the electronic device meets the fifth condition, and the user image in the current detection period is collected through the camera.

[0076] It should be noted that the specified state may include at least one of a background running state and an unoperated state. Specifically, the specified state may include a background running state, but whether it includes an unoperated state needs to be determined based on the type of the specified application. In some scenarios, when the specified application is in an unoperated state, the fifth condition is determined not to be met, and fatigue detection is not performed. This is because in this scenario, the unoperated state of the specified application indicates that the user may not be using the specified application. Specifically, some specified applications, such as game applications, need to respond to the user's frequent operations on the specified application. Therefore, when it is determined that the specified application is in an unoperated state, the user may not be using the specified application. For example, when the game application is hung up, the game application is in an unoperated state. In addition, the unoperated state means that the specified application has not detected the user's operation for a long time in the current time period.

[0077] For game applications, the unoperated state means that the game application is in an idle state. Through the multi-display technology, a virtual display is created and the current top task is added to the newly created virtual display. The framework layer can determine whether the game application is in an idle state based on the game application package name and system interface. Comprehensive monitoring of user interaction, application status and system behavior. By tracking these parameters in real time, the active and idle states of the game can be effectively identified.

[0078] S504: Collecting user images within the current detection period through the camera.

[0079] S505: Detecting the user's physical state based on the user image.

[0080] As an implementation method, by acquiring the user image within the current detection time period, the user's eye features can be obtained. The eye features are used to characterize the possibility that the user's eyes are in an open state. Therefore, based on the size relationship between the eye features and the pre-acquired eye feature reference value, it can be determined whether the user's eyes are in a closed or open state. Therefore, after determining whether the eye state corresponding to each user image is closed or open, the number of closed-eye images can be counted, and then the closed-eye time ratio can be obtained. If the closed-eye time ratio is greater than the set reference value, it can be determined that the user's physical state is fatigued.

[0081] Therefore, the eye feature reference value can be pre-set, and the body state corresponding to the current detection period is determined based on the eye feature reference value and the eye features of the user image in the current detection period. Specifically, the aspect ratio of the user's eyes corresponding to each user image in the user image in the current detection period is determined. Among them, the eye width refers to the length from the leftmost to the rightmost of a single eye, and the eye height is the height difference between the upper eyelid and the lower eyelid in the middle of a single eye. Because the eye width of the human eye is constant, when the user closes his eyes due to fatigue, the height difference between the upper / lower eyelids in the middle of the eye will become smaller, so based on the user's eye aspect ratio, it can be determined whether the user is in a state of eye fatigue.

[0082] After obtaining the user eye aspect ratio corresponding to each user image, search for user images whose user eye aspect ratio is less than a first detection threshold as closed-eye images, wherein the first detection threshold is the product of the eye aspect ratio reference value and a first coefficient; determine the closed-eye time ratio based on the number of closed-eye images; if the closed-eye time ratio is greater than a second detection threshold, determine the body state as a fatigue state, otherwise, determine the body state as a non-fatigue state, wherein the second detection threshold is the product of the closed-eye time ratio reference value and a second coefficient.

[0083] For example, the first coefficient is 30%, the second coefficient is 2, and the eye aspect ratio reference value * 30% means that the user's upper and lower eyelids are 70% closed, and the open part is only 30%. If the closed part of the eyes exceeds 70%, it can be determined that the user has closed his eyes. The "eye closing time ratio reference value" is similar. Usually, when people are tired, the frequency of blinking will increase, and the time of eye closure will also increase, so the proportion of eye closing time per unit time will increase. If the eye closing time ratio is greater than the "eye closing time ratio reference value multiplied by the second coefficient", it indicates that the user is tired.

[0084] As an implementation, the eye aspect ratio reference value and the eye closing time ratio reference value may be preset, for example, a fixed value set based on actual usage requirements. As another implementation, the eye aspect ratio reference value and the eye closing time ratio reference value may be learned based on the user's image training.

[0085] Specifically, after the eye protection mode is turned on, the results of the first N tests do not output the test results of the physical state. For each of the first N test periods, it can be named a learning period. For each learning period, the eye aspect ratio of each image in the learning period is determined, and the percentage of closed eye time in the learning period is obtained. Based on the results of the first N tests, the average value of the user's eye aspect ratio and the average value of the percentage of closed eye time in a single test time can be obtained. The average value of the user's eye aspect ratio can be used as the eye aspect ratio benchmark value, and the average value of the percentage of closed eye time can be used as the benchmark value of the percentage of closed eye time.

[0086] Then, the first coefficient and the second coefficient are set, and the product of the average value of the user's eye aspect ratio and the first coefficient is used as the eye aspect ratio reference value, and the product of the average value of the eye closing time ratio in a single detection time and the second coefficient is used as the eye closing time ratio reference value. For example, the first coefficient is 0.3, the second coefficient is 2, and the average value of the user's eye aspect ratio within the learning times and the average value of the eye closing time ratio in a single detection time are calculated as the reference value. This is to achieve differentiated design for different users, because some users are born with a faster blinking frequency, or the user is born with smaller eyes, etc.

[0087] When the user's eye aspect ratio is less than the reference value * N% (for example, 30%), it is judged as closed eyes, which can be confirmed by experimental verification. If the proportion of eye closure time within a single detection time (such as 30s above) is greater than the reference value * M% (for example, 200%), it is judged as fatigue.

[0088] S506: Determine whether the body state is a specified state.

[0089] S507: Determine whether the current color temperature of the screen of the electronic device is less than a color temperature threshold.

[0090] S508: Based on the current color temperature of the screen, perform a color temperature lowering operation on the screen.

[0091] S509: Stop executing the color temperature lowering operation.

[0092] If the body state is the specified state, determine whether the current color temperature of the screen of the electronic device is less than the color temperature threshold; if it is not less than the color temperature threshold, perform a color temperature reduction operation on the screen based on the current color temperature of the screen, and return to execute when the eye protection mode is turned on. If it is detected that the electronic device meets the detection conditions, collect the user image and subsequent operations within the current detection period through the camera. If it is less than the color temperature threshold, stop performing the color temperature reduction operation.

[0093] In addition, in the embodiment of the present application, the physical state is a fatigue state. When eye fatigue is detected, the user can be reminded, such as Figure 7 shown.

[0094] As an implementation method, if it is detected that the conditions for turning on the eye protection mode are met, the eye protection mode is started; and the color temperature reduction operation is performed on the screen of the electronic device. When the eye protection mode is turned on, the electronic device is detected to meet the detection conditions. If the detection conditions are met, the number of learning times that have been performed after the eye protection mode is turned on is determined. Assuming that the detection is performed once every 60 minutes and each detection is 30 seconds, then the single detection time refers to "within 30 seconds", and the detection of 30 seconds at an interval of 60 minutes is defined as 1 learning. 5 learning times refers to 5 "60-minute time interval detections, each detection is 30 seconds", that is, 5 trigger detections.

[0095] If the current number of learnings performed is less than the specified number (for example, 5), the current detection period is used as the learning period, and then the average value of the aspect ratio of the user's eyes and the average value of the percentage of closed eye time in a single detection period are determined within the detection period. If the number of learnings performed is greater than or equal to the specified number, the user's image within the current detection period is collected by the camera, and the user's physical state is subsequently detected and the color temperature is lowered based on the physical state.

[0096] It is understandable that the camera's frame rate can be set. For example, 10fps means that the camera generates 10 frames of images per second and transmits them to the algorithm for processing. If the single detection time is 30s, the camera transmits a total of 10*30=300 frames of images to the algorithm within the single detection time (30s). The algorithm will analyze the eye aspect ratio of each frame in the 300 frames. The algorithm will compare each frame with the "eye aspect ratio benchmark value * N%" to determine whether the user has closed his eyes in this frame (closing eyes is a relative concept. It is not limited to completely closing the eyes to be considered closed. For example, when the upper and lower eyelids are closed > 80%, that is, the open part is < 20%, it can be determined that the user is tired and closed his eyes). Within a single detection time (30 seconds, a total of 300 frames), assuming that the number of frames judged as the user closing his eyes is 150 frames, the proportion of closed eyes time within a single detection time (30 seconds) = (150 / 300) * 100% = 50%, and then compared with the "benchmark value of closed eyes time proportion * M%" (for example 30%) to determine whether the user is fatigued.

[0097] As an implementation method, after the electronic device detects that the user is tired, it turns on the ambient color adaptation and the sleep mode, and generates a new color temperature setting to the screen by fitting. Specifically, based on the current color temperature of the screen, the RGB value of the corresponding color temperature is determined, and then the RGB value of the color temperature is set to the screen to adjust the color temperature of the screen. Among them, R represents red, G represents green, and B represents blue. All colors are mixed from the three primary colors of red, green, and blue. For example, the screen color temperature is achieved by changing RGB.

[0098] The following is based on Figure 8 On this basis, the process of the above-mentioned screen adjustment method is explained.

[0099] After the electronic device turns on AI eye protection, first slightly reduce the color temperature of the screen, and then determine whether the timing detection time is obtained, that is, determine whether the electronic device meets the first condition mentioned above. If the first condition is met, determine whether the electronic device is in the screen-off state, that is, determine whether the electronic device meets the second condition mentioned above. If not, determine whether the user's physical state detected last time is a fatigue state, that is, determine whether the user is fatigued, that is, determine whether the electronic device meets the third condition mentioned above. If the third condition is met, that is, not fatigued, then after execution, determine whether the camera is blocked. If the third condition is not met, that is, fatigued, and the user continues to use the electronic device, that is, the electronic device is not on the screen, then lower the color temperature. At this time, the color temperature can be directly reduced to the color temperature threshold (for example, 4300K), or the color temperature can be reduced according to a pre-set reduction range.

[0100] If the third condition is met, that is, not fatigued, the occlusion state of the camera is detected. If the occlusion state is not blocked, the camera is turned on to collect the human eye image, that is, the user image, and then, based on the human eye image, it is determined whether it is a fatigue state. If not, turn off the ambient color adaptation and sleep mode, and restore the color temperature before fatigue. If so, turn on the ambient color adaptation and sleep mode, fit and generate the color temperature, that is, set the lowered color temperature. If the set lowered color temperature is not less than the color temperature threshold, adjust the color temperature of the screen to the lowered color temperature. Then, a pop-up window reminds the user that the user is in a fatigue state and the eye protection mode has been activated.

[0101] As an implementation method, Figure 8 The implementation method of determining whether a person is in a fatigue state based on a human eye image is as follows Fig. 9 As shown, Figure 8 The next step in opening the camera to collect human eye images is that the algorithm calculates the aspect ratio of a single frame of human eyes and the proportion of closed eye time within a single detection time, and then determines whether the number of detections is less than the number of learning times. If it is less than the number of learning times, the aspect ratio of the human eyes and the proportion of closed eye time within a single detection time are saved, and then the execution is returned. Figure 8 Then, until it is determined that the number of detections is equal to the number of learning times, the weighted average of the human eye aspect ratio within the number of learning times and the proportion of closed eyes within a single detection time are calculated as the benchmark value, and then continue to return to execute Figure 7 The operation of whether the timing detection time is reached and the subsequent operations are performed until the number of detections is greater than the number of learning times, and then the subsequent fatigue detection operation is performed. Among them, the fatigue detection operation can refer to the aforementioned embodiment and will not be repeated here.

[0102] It should be noted that, in the embodiments of the present application, the above-mentioned eye protection mode can be applied to different scenarios, that is, the eye protection strategies of the eye protection mode applied to different scenarios, for example, AI game eye protection in the game scenario, and paper eye protection in the reading scenario.

[0103] Specifically, the paper texture is adjusted as follows: Fig.10 As shown, that is, in the case where the above-mentioned designated application is a reading application, in addition to lowering the color temperature, a paper texture adjustment operation can also be performed, that is, the interface displayed on the screen is adjusted to the paper texture, that is, the display content of the interface is displayed on the paper texture page. Exemplarily, the top layer of the interface is set to the paper texture layer, and by setting the transparency of the paper texture layer, the user can see the content displayed on the interface and have the effect of paper texture at the same time.

[0104] The paper texture can be adjusted by sending parameters to the eye protection process through Setting, with the value sent being 0-35; judging whether to create a view based on the received setting value: 1) If the setting value is 0, the view is not created, indicating that the paper texture adjustment is not enabled. 2) If the setting value is 1-35, the view is created, and an OpenGL ES rendering environment is created to draw the paper texture image into the view. The texture corresponding to 1-35 changes gradually from light to dark. The view is added to wms and updated to SF synchronously, and the SF is synthesized and displayed on the screen.

[0105] like Fig.11 As shown, the eye protection mode is applied to the game application, that is, the above-mentioned designated application is a game application. After the game application is opened, it is determined whether the game belongs to the whitelist, and the identification of the application in the whitelist is the identification of the above-mentioned designated application.

[0106] If the game application is not on the whitelist, the game assistant will not display the AI ​​game eye protection switch, because the display effect of some games may deteriorate after turning on the eye protection function, and it is not suitable to turn on the game eye protection. If the game application is on the whitelist, the interface of the game application (for example, the game assistant interface) will display the AI ​​game eye protection switch. Fig.12 Then, when the user turns on AI game eye protection, a "User Notice" pop-up window will pop up to remind the user that they need to apply for camera permissions and that user personal information will not be collected. Fig.13 shown.

[0107] The subsequent operation steps can refer to the above embodiments and Figure 8 The content of Figure 8 In comparison, the method of determining the detection conditions is more complicated. Specifically, after determining that the eye protection mode is turned on, the color temperature of the screen is slightly reduced. Then, if it is determined that the timing detection time is reached, it is determined whether the game is running in the background. If it is not running in the background, it is determined whether the game is in an idle state. If it is not in an idle state, it is determined whether the type of the game is a specified type. If it is a specified type, it is determined whether the game is in a game. If it is not in a game, it is determined whether the electronic device is in a screen-off state. The specified type can be a TGPA game type. TGPA game is the abbreviation of "Turn-based Genera l Purpose Adventure", which usually refers to a turn-based adventure game.

[0108] It can be understood that the operations after the screen is off state can refer to the aforementioned embodiments and will not be described in detail here.

[0109] Therefore, the embodiment of the present application automatically and dynamically adjusts the eye protection effect through AI technology, which is more real-time, has a better experience, and a stronger sense of technology. To achieve differentiated design and differentiated experience for individual users, learn the benchmark value of the aspect ratio of the user's eyes and the benchmark value of the proportion of eye closure time. Different eye protection effect strategies are applied to different scenes to achieve differentiated design and differentiated experience, such as AI game eye protection in game scenes and paper texture adjustment in reading scenes. In order to extend the battery life, a timed detection strategy is adopted, such as screen off / camera blocked / game hanging / no detection in the game background, TGPA game inter-game detection, etc.

[0110] See also Fig.14 , which shows a structural block diagram of a screen adjustment device 1400 provided in an embodiment of the present application. The device may include: an acquisition unit 1401, a detection unit 1402 and an execution unit 1403.

[0111] The acquisition unit 1401 is used to collect the user image in the current detection period through the camera when it is detected that the electronic device meets the detection conditions when the eye protection mode is turned on.

[0112] Furthermore, the acquisition unit 1401 is further configured to start the eye protection mode if it is detected that the eye protection mode start condition is met; and to perform a color temperature reduction operation on the screen of the electronic device.

[0113] Furthermore, the acquisition unit 1401 is also used to display a reminder message if it is detected that the conditions for starting the eye protection mode are met; if a confirmation request input by the user based on the reminder message is detected, the eye protection mode is started and the color temperature reduction operation is performed on the screen of the electronic device.

[0114] Furthermore, the acquisition unit 1401 is also used to start the eye protection mode if it is detected that a designated application in the electronic device is started, wherein the designated application is suitable for the eye protection mode.

[0115] Furthermore, the acquisition unit 1401 is also used to collect the user image within the current detection period through the camera when the eye protection mode is turned on and the specified application is not in a specified state, wherein the specified state includes at least one of a background running state and a non-operated state.

[0116] Furthermore, the acquisition unit 1401 is also used to collect the user image in the current detection period through the camera when the eye protection mode is turned on if it is detected that the time length between the current moment and the last moment of detecting the user's physical condition is greater than or equal to the time threshold.

[0117] Furthermore, the acquisition unit 1401 is also used to collect the user image in the current detection period through the camera when the eye protection mode is turned on and if it is detected that the electronic device is not in the screen-off state.

[0118] Furthermore, the acquisition unit 1401 is also used to obtain the user's physical state detected last time as a historical state when the eye protection mode is turned on; if the historical state is not a specified state, the user image in the current detection period is collected through the camera.

[0119] Furthermore, the acquisition unit 1401 is also used to, if the historical state is a specified state, perform a color temperature lowering operation on the screen based on the current color temperature of the screen when the current color temperature of the screen of the electronic device is not less than a color temperature threshold.

[0120] Furthermore, the acquisition unit 1401 is also used to detect the occlusion state of the camera when the eye protection mode is turned on; if the occlusion state is not blocked, the user image in the current detection period is collected through the camera.

[0121] The detection unit 1042 is configured to detect the user's physical state based on the user image.

[0122] Furthermore, the detection unit 1042 is also used to obtain an eye feature baseline value corresponding to the user; based on the eye feature baseline value and the eye features of the user image in the current detection period, determine the body state corresponding to the current detection period.

[0123] Furthermore, the detection unit 1042 is also used to determine the aspect ratio of the user's eyes corresponding to each user image in the user image within the current detection period; search for user images whose eye aspect ratio is less than the eye aspect ratio reference value as closed-eye images; determine the proportion of closed-eye time based on the number of closed-eye images; if the closed-eye time proportion is greater than the closed-eye time proportion reference value, determine that the body state is a fatigue state, otherwise, determine that the body state is a non-fatigue state.

[0124] The execution unit 1403 is used to perform a color temperature lowering operation on the screen based on the current color temperature of the screen if the body state is a specified state and the current color temperature of the screen of the electronic device is not less than a color temperature threshold.

[0125] Furthermore, the execution unit 1403 is also used to determine whether the current color temperature of the screen of the electronic device is less than the color temperature threshold if the body state is a specified state; if it is not less than the color temperature threshold, then based on the current color temperature of the screen, perform a color temperature reduction operation on the screen, and return to execute when the eye protection mode is turned on. If it is detected that the electronic device meets the detection conditions, the user image within the current detection period and subsequent operations are collected through the camera; if it is less than the color temperature threshold, the color temperature reduction operation is stopped.

[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0127] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0128] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0129] Please refer to Fig.15 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0130] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0131] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0132] Please refer to Fig.16 , which shows a structural block diagram of a computer-readable medium provided in an embodiment of the present application. The computer-readable medium 1600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0133] The computer readable medium 1600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable medium 1600 includes a non-transitory computer-readable storage medium. The computer readable medium 1600 has storage space for program code 1610 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1610 can be compressed, for example, in an appropriate form.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A screen adjustment method, characterized in that: Applied to electronic equipment, the method comprises: When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera; detecting a user's physical state based on the user image; If the physical state is a specified state, then when the current color temperature of the screen of the electronic device is not less than a color temperature threshold, a color temperature lowering operation is performed on the screen based on the current color temperature of the screen, wherein the specified state includes a fatigue state or a non-fatigue state.

2. The method according to claim 1, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, before collecting the user image within the current detection period through the camera, the following steps are also included: If it is detected that the conditions for starting the eye protection mode are met, starting the eye protection mode; A color temperature reduction operation is performed on the screen of the electronic device.

3. The method according to claim 2, characterized in that If it is detected that the start condition of the eye protection mode is met, starting the eye protection mode includes: If it is detected that the conditions for opening the eye protection mode are met, a reminder message is displayed; If a confirmation request input by the user based on the reminder information is detected, the eye protection mode is activated and a color temperature reduction operation is performed on the screen of the electronic device.

4. The method according to claim 2, characterized in that: If it is detected that the start condition of the eye protection mode is met, starting the eye protection mode includes: If it is detected that a designated application in the electronic device is started, the eye protection mode is started, wherein the designated application is suitable for the eye protection mode.

5. The method according to claim 4, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera, including: When the eye protection mode is turned on, if the designated application is not in a designated state, the user image within the current detection period is collected through the camera, wherein the designated state includes at least one of a background running state and a non-operated state.

6. The method according to claim 1, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera, including: When the eye protection mode is turned on, if it is detected that the time between the current moment and the last moment of detecting the user's physical condition is greater than or equal to the time threshold, the user image within the current detection period is captured through the camera.

7. The method according to claim 1, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera, including: When the eye protection mode is turned on, if it is detected that the electronic device is not in the screen-off state, the user image within the current detection period is collected through the camera.

8. The method according to claim 1, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera, including: When the eye protection mode is turned on, the user's physical state detected last time is obtained as a historical state; If the historical state is not the specified state, the user image within the current detection period is collected through the camera.

9. The method according to claim 8, characterized in that Also includes: If the historical state is a designated state, then when the current color temperature of the screen of the electronic device is not less than the color temperature threshold, a color temperature lowering operation is performed on the screen based on the current color temperature of the screen.

10. The method according to claim 1, characterized in that When the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period is collected through the camera, including: When the eye protection mode is turned on, detecting the blocking state of the camera; If the blocking state is not blocked, the user image in the current detection period is collected by the camera.

11. The method according to any one of claims 1 to 10, characterized in that: Detecting a user's physical state based on the user image includes: Obtaining eye feature reference values ​​corresponding to the user; Based on the eye feature reference value and the eye feature of the user image within the current detection period, the body state corresponding to the current detection period is determined.

12. The method according to claim 11, characterized in that The eye feature reference value includes an eye aspect ratio reference value and an eye closing time ratio reference value, and determining the body state corresponding to the current detection period based on the eye feature reference value and the eye features of the user image in the current detection period includes: Determine the user eye aspect ratio corresponding to each user image in the user image within the current detection period; Searching for a user image whose eye aspect ratio is less than a first detection threshold as a closed-eye image, wherein the first detection threshold is a product of the eye aspect ratio reference value and a first coefficient; determining a proportion of eye-closing time based on the number of eye-closing images; If the eye-closing time ratio is greater than a second detection threshold, the body state is determined to be a fatigue state, otherwise, the body state is determined to be a non-fatigue state, wherein the second detection threshold is the product of the eye-closing time ratio baseline value and a second coefficient.

13. The method according to any one of claims 1 to 10, characterized in that: If the physical state is a specified state, then, if the current color temperature of the screen of the electronic device is not less than a color temperature threshold, based on the current color temperature of the screen, performing a color temperature reduction operation on the screen, including: If the physical state is a specified state, determining whether the current color temperature of the screen of the electronic device is less than a color temperature threshold; If it is not less than the color temperature threshold, then based on the current color temperature of the screen, a color temperature lowering operation is performed on the screen, and when the eye protection mode is turned on, if it is detected that the electronic device meets the detection conditions, the user image within the current detection period and subsequent operations are collected through the camera; If it is less than the color temperature threshold, the color temperature reduction operation is stopped.

14. The method according to any one of claims 1 to 10, characterized in that: The specified state is a fatigue state.

15. A screen adjustment device, characterized in that: Applied to electronic equipment, the device comprises: An acquisition unit, configured to acquire a user image within a current detection period through a camera when the eye protection mode is turned on and the electronic device is detected to meet a detection condition; a detection unit, configured to detect a user's physical state based on the user image; An execution unit is used to, if the body state is a specified state, perform a color temperature lowering operation on the screen based on the current color temperature of the screen and when the current color temperature of the screen of the electronic device is not less than a color temperature threshold.

16. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-14.

17. A computer readable medium, characterized in that The computer-readable medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 14.