Screen Color Temperature Control Method, Device and Medium
By setting an RGB sensor below the terminal device screen, judging and converting ambient color temperature information to adjust the screen color temperature, the high power consumption problem of terminal devices when automatically adjusting the screen color temperature is solved, and more stable and efficient color temperature control is achieved.
Patent Information
- Application Number
- CN202110904157.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-06
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-08-06
AI Technical Summary
When existing terminal devices automatically adjust the screen color temperature, the system consumes a lot of power and consumes faster, which affects the user experience and equipment stability.
By setting up an RGB sensor at the bottom of the screen, we judge whether the color temperature parameter conversion conditions are met based on the ambient color temperature information, and convert it into the target screen color temperature information when the conditions are met, further determine whether the screen color temperature adjustment conditions are met, and adjust the screen color temperature only when the conditions are met, avoid unnecessary data processing and adjustment.
It effectively reduces the data processing volume during the screen color temperature control process, reduces system load and equipment resource consumption, and improves the stability and power usage efficiency of screen color temperature control.
Smart Images

Figure CN115909989B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of screen display, and particularly to a method, device, and medium for controlling the color temperature of a screen. Background Art
[0002] With the development of intelligent terminal devices, more and more people are using intelligent terminal devices, and terminal devices play an increasingly important role in people's lives. Operations on the screens of terminal devices are indispensable for watching videos, e-books, browsing web pages, playing video games, etc. Among them, the terminal device can be a mobile phone, a tablet computer, etc. During the process of using the terminal device by the user, the color temperature of the device screen is a very important factor affecting the user experience. A comfortable color temperature can make the screen unified with the surrounding environment, effectively relieve the user's visual fatigue, and fit the true color of the image, bringing a better experience in terms of visual perception. Currently, terminal devices can implement the function of automatically adjusting the screen color temperature according to the ambient light, but the implementation of this function results in a large power consumption of the system and a fast power consumption of the terminal device. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a method, device, and medium for controlling the color temperature of a screen.
[0004] According to the first aspect of the embodiments of the present disclosure, a method for controlling the color temperature of a screen is provided. The method includes:
[0005] When receiving the ambient color temperature information at the current moment sent by an RGB sensor disposed below the screen, determining whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment;
[0006] When the color temperature parameter conversion condition is satisfied, converting the ambient color temperature information at the current moment into target screen color temperature information;
[0007] Determining whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information;
[0008] When the screen color temperature adjustment condition is satisfied, adjusting the color temperature of the screen according to the target screen color temperature information.
[0009] Optionally, the determining whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment includes:
[0010] Obtaining the ambient color temperature information at the previous moment of the current moment;
[0011] When the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold, determining that the color temperature parameter conversion condition is satisfied.
[0012] Optionally, the conversion of the ambient color temperature information at the current moment into the target screen color temperature information includes:
[0013] Determine the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, and the ambient color temperature information at the current moment.
[0014] Optionally, it is characterized in that the determination of whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information includes:
[0015] Obtain the screen color temperature information at the previous moment of the current moment;
[0016] If the difference between the target screen color temperature information and the screen color temperature information at the previous moment is within a preset range, and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded, it is determined that the screen color temperature adjustment condition is satisfied.
[0017] Optionally, the RGB sensor is used to determine the ambient color temperature information at the current moment in the following manner:
[0018] Obtain the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0019] Determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0020] When the ambient color temperature calculation condition is satisfied, determine the ambient color temperature information at the current moment.
[0021] Optionally, the determination of whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment includes:
[0022] If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, it is determined that the ambient color temperature calculation condition is satisfied.
[0023] Optionally, the determination of the ambient color temperature information at the current moment includes:
[0024] Determine the ambient color temperature information at the current moment based on the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
[0025] According to the second aspect of the embodiments of the present disclosure, there is provided a screen color temperature control device, which includes:
[0026] A first determination module, configured to determine whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment when receiving the ambient color temperature information at the current moment sent by an RGB sensor disposed below the screen;
[0027] A conversion module, configured to convert the ambient color temperature information at the current moment into target screen color temperature information when the color temperature parameter conversion condition is satisfied;
[0028] A second determination module, configured to determine whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information;
[0029] An adjustment module, configured to adjust the color temperature of the screen according to the target screen color temperature information when the screen color temperature adjustment condition is satisfied.
[0030] Optionally, the first determination module includes:
[0031] A first acquisition sub-module, configured to acquire the ambient color temperature information at the previous moment of the current moment;
[0032] A first determination sub-module, configured to determine that the color temperature parameter conversion condition is satisfied when the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold.
[0033] Optionally, the conversion module is configured to convert the ambient color temperature information at the current moment into target screen color temperature information in the following manner:
[0034] Determine the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, and the ambient color temperature information at the current moment.
[0035] Optionally, the second determination module includes:
[0036] A second acquisition sub-module, configured to acquire the screen color temperature information at the previous moment of the current moment;
[0037] A second determination sub-module, configured to determine that the screen color temperature adjustment condition is satisfied if the difference between the target screen color temperature information and the screen color temperature information at the previous moment is within a preset range and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded.
[0038] Optionally, the RGB sensor is used to determine the ambient color temperature information at the current moment through the following modules:
[0039] An acquisition module, configured to acquire the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0040] A third determination module, configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0041] A fourth determination module, configured to determine the ambient color temperature information at the current moment when the ambient color temperature calculation condition is satisfied.
[0042] Optionally, the third determination module is configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment in the following manner:
[0043] If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, it is determined that the ambient color temperature calculation condition is satisfied.
[0044] Optionally, the fourth determination module is configured to determine the ambient color temperature information at the current moment in the following manner:
[0045] Determine the ambient color temperature information at the current moment according to the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
[0046] According to the third aspect of the embodiments of the present disclosure, a screen color temperature control device is provided, including:
[0047] A memory, on which a computer program is stored;
[0048] A controller, when the computer program is executed by the controller, implementing the steps of the method provided in the first aspect of the present disclosure.
[0049] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the screen color temperature control method provided in the first aspect of the present disclosure are implemented.
[0050] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0051] Through the above technical solution, when the ambient color temperature information at the current moment sent by the RGB sensor disposed below the screen is received, if the ambient color temperature information at the current moment meets the color temperature parameter conversion condition, the ambient color temperature information at the current moment is converted into the target screen color temperature information. If the target screen color temperature information meets the screen color temperature adjustment condition, the color temperature of the screen is adjusted according to the target screen color temperature information. In this way, in the process of screen color temperature control, a judgment is added on whether the ambient color temperature information at the current moment meets the color temperature parameter conversion condition. If the color temperature parameter conversion condition is not met, there is no need to calculate the target screen color temperature information based on the ambient color temperature information, avoiding the problem of high power consumption caused by the device continuously processing the data sent by the sensor, effectively reducing the amount of data processing in the color temperature control process, and reducing the system load. Moreover, a judgment is added on whether the target screen color temperature information meets the screen color temperature adjustment condition. If the screen color temperature adjustment condition is not met, there is no need to control the adjustment of the screen color temperature, reducing the resource consumption and power consumption of the device where the screen is located, and at the same time avoiding unnecessary screen color temperature adjustment, and improving the stability of screen color temperature control.
[0052] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0054] Figure 1 is a flowchart of a screen color temperature control method shown according to an exemplary embodiment;
[0055] Figure 2 is a flowchart of a method for an RGB sensor to determine the ambient color temperature information at the current moment shown according to an exemplary embodiment;
[0056] Figure 3 is a schematic diagram of the positional relationship of a screen, glass, RGB sensor, and CPU shown according to an exemplary embodiment;
[0057] Figure 4 is a flowchart of a screen color temperature control method shown according to an exemplary embodiment;
[0058] Figure 5 is a block diagram of a screen color temperature control device shown according to an exemplary embodiment;
[0059] Figure 6 is a block diagram of a screen color temperature control device shown according to an exemplary embodiment. Detailed implementation manners
[0060] Here, the exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0061] Figure 1 is a flowchart of a screen color temperature control method shown according to an exemplary embodiment. This method can be applied to the CPU of a terminal device, where the terminal device can be a device with a screen such as a mobile phone or a tablet computer. As Figure 1 shown, this method can include steps S101 to S104.
[0062] In step S101, when receiving the ambient color temperature information at the current moment sent by an RGB sensor disposed under the screen, determine whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment.
[0063] Exemplarily, an RGB sensor can be disposed under the screen of the terminal device. The RGB sensor can be used to collect ambient light and calculate the ambient color temperature information. During the user's use of the terminal device, as the illumination changes, the ambient brightness changes. To ensure that the color temperature of the screen is unified with the surrounding environment, the CPU needs to obtain the ambient color temperature information at the current moment from the RGB sensor to adjust the color temperature of the screen according to the ambient color temperature information. Among them, the color temperature is a measurement unit representing the color components contained in light. The spectral components contained in the light emitted by a black body at a certain temperature are called the color temperature at this temperature, and the measurement unit is K (Kelvin).
[0064] In step S102, when the color temperature parameter conversion condition is satisfied, convert the ambient color temperature information at the current moment into target screen color temperature information.
[0065] Exemplarily, when the color temperature parameter conversion condition is met, the CPU stores the ambient color temperature information at the current moment in the display buffer in the CPU. After that, the display buffer converts the ambient color temperature information at the current moment into the target screen color temperature information, making the color temperature of the finally displayed screen more in line with the human eye's requirements to ensure the comfort of the user when viewing the screen.
[0066] In the present disclosure, when the color temperature parameter conversion condition is not met, the CPU does not store the ambient color temperature information at the current moment in the display buffer in the CPU, and thus there is no need to calculate the target screen color temperature information based on the ambient color temperature information. The screen can maintain the original color temperature unchanged, effectively reducing the data processing volume of the CPU and reducing the CPU load.
[0067] In step S103, according to the target screen color temperature information, it is determined whether the screen color temperature adjustment condition is met.
[0068] In step S104, when the screen color temperature adjustment condition is met, the color temperature of the screen is adjusted according to the target screen color temperature information.
[0069] Exemplarily, when the screen color temperature adjustment condition is met, the CPU can configure the target screen color temperature information onto the screen to complete the adjustment of the screen color temperature, that is, adjust the color temperature of the screen to the target screen color temperature information. When the screen color temperature adjustment condition is not met, the screen maintains the original color temperature unchanged, and the CPU does not need to control the adjustment of the screen color temperature, reducing the resource consumption of the CPU and the power consumption of the terminal device.
[0070] Through the above technical solution, when receiving the ambient color temperature information at the current moment sent by the RGB sensor set below the screen, if the ambient color temperature information at the current moment meets the color temperature parameter conversion condition, the ambient color temperature information at the current moment is converted into the target screen color temperature information. If the target screen color temperature information meets the screen color temperature adjustment condition, the color temperature of the screen is adjusted according to the target screen color temperature information. In this way, during the process of screen color temperature control, a judgment is added on whether the ambient color temperature information at the current moment meets the color temperature parameter conversion condition. If this color temperature parameter conversion condition is not met, there is no need to calculate the target screen color temperature information based on the ambient color temperature information, avoiding the problem of high power consumption caused by the device continuously processing the data sent by the sensor, effectively reducing the data processing volume during the color temperature control process, and reducing the system load. Moreover, a judgment is added on whether the target screen color temperature information meets the screen color temperature adjustment condition. If this screen color temperature adjustment condition is not met, there is no need to control the adjustment of the screen color temperature, reducing the resource consumption and power consumption of the device where the screen is located, and at the same time avoiding unnecessary screen color temperature adjustment, improving the stability of screen color temperature control.
[0071] Optionally, determining whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment in step S101 may include:
[0072] Obtain the ambient color temperature information at the previous moment of the current moment;
[0073] When the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold, it is determined that the color temperature parameter conversion condition is satisfied.
[0074] Exemplarily, the preset threshold can be set in advance. For example, it can be set to 2%. The ambient color temperature information at the previous moment of the current moment can be sent by the RGB sensor to the CPU at the previous moment. For example, the ambient color temperature information at the previous moment of the current moment is 1000K, and the ambient color temperature information obtained from the RGB sensor at the current moment is 1300K. Then the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is 3%, which is greater than the preset threshold, and it can be determined that the color temperature parameter conversion condition is satisfied.
[0075] If the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is less than or equal to the preset threshold, it can indicate that the change of the external light is weak, and whether to adjust the color temperature of the screen has little impact on the user. In this case, the target screen color temperature information may not be calculated according to the ambient color temperature information at the current moment, which can effectively reduce the data processing volume of the CPU and reduce the resource consumption of the terminal operating system and the power consumption of the terminal device.
[0076] Optionally, converting the ambient color temperature information at the current moment into the target screen color temperature information in step S102 may include:
[0077] Determine the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, and the ambient color temperature information at the current moment.
[0078] Exemplarily, the corresponding relationship between the ambient color temperature information and the screen color temperature information can be preset through test results. This corresponding relationship can be represented by, for example, a function, a mapping table, etc. When the color temperature parameter conversion condition is satisfied, the CPU can send the ambient color temperature information at the current moment to the display buffer area. The display buffer area can determine the target screen color temperature information by looking up this preset corresponding relationship according to the ambient color temperature information at the current moment. For example, the ambient color temperature information at the current moment is 1000K, and in the corresponding relationship determined through tests, when the ambient color temperature information is 1000K, the corresponding screen color temperature information should be 1100K. Then the target screen color temperature information is determined to be 1100K. In this way, converting the ambient color temperature information at the current moment into the target screen color temperature information can make the color temperature of the screen adapt to the external environment, be more in line with the needs of the human eye, and improve the user experience of viewing the screen.
[0079] Optionally, determining whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information in step S103 may include:
[0080] Obtain the screen color temperature information of the previous moment of the current moment;
[0081] If the difference between the target screen color temperature information and the screen color temperature information of the previous moment is within a preset range, and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded, it is determined that the screen color temperature adjustment condition is satisfied.
[0082] Exemplarily, the preset range can be set in advance. For example, it is set to -400K to 400K. The screen color temperature information of the previous moment of the current moment refers to the actual color temperature information displayed on the screen at the previous moment. For example, the screen color temperature information at the previous moment is 1000K, the target screen color temperature information is 1350K, the difference between the target screen color temperature information and the screen color temperature information of the previous moment is 350K, and at this time the RGB sensor is not occluded, it can be determined that the screen color temperature adjustment condition is satisfied.
[0083] If the RGB sensor is occluded, at this time the RGB sensor cannot collect the current ambient light parameters and the current reflected light parameters of the glass above the screen, so the screen color temperature is not adjusted according to the target screen color temperature information, and the original screen color temperature can be kept unchanged.
[0084] If the difference between the target screen color temperature information and the screen color temperature information of the previous moment is not within the preset range, it can be characterized that the target screen color temperature information and the screen color temperature information of the previous moment differ greatly. If the screen is adjusted according to the target screen color temperature information, the change in the screen color temperature is large, and the sudden change in the screen color temperature will cause a large visual impact on the user. To avoid damaging the user's eyesight, when the difference between the target screen color temperature information and the screen color temperature information of the previous moment is not within the preset range, the screen color temperature is not adjusted according to the target screen color temperature information, and the original screen color temperature can be kept unchanged to avoid the sudden change in the screen color temperature affecting the user's browsing experience.
[0085] Figure 2 It is a flowchart of a method for an RGB sensor to determine the ambient color temperature information at the current moment shown according to an exemplary embodiment, as Figure 2 shown, this method may include step S201 to step S203.
[0086] In step S201, obtain the ambient brightness information at the current moment, the ambient brightness information of the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter of the previous moment.
[0087] In step S202, it is determined whether the environmental color temperature calculation condition is satisfied according to the environmental brightness information at the current moment, the environmental brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment.
[0088] Optionally, in step S202, the RGB sensor determines whether the environmental color temperature calculation condition is satisfied according to the environmental brightness information at the current moment, the environmental brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment, which may include:
[0089] If the absolute value of the difference between the environmental brightness information at the current moment and the environmental brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, it is determined that the environmental color temperature calculation condition is satisfied.
[0090] Exemplarily, the preset brightness threshold and the preset refresh frequency threshold are pre-set. For example, the preset brightness threshold is set to 10 lux, and the preset refresh frequency threshold is set to 5 frames. If the environmental brightness information at the current moment is 20 lux and the environmental brightness information at the previous moment is 35 lux, then the absolute value of the difference between the environmental brightness information at the current moment and the environmental brightness information at the previous moment is 15 lux, which is greater than the preset brightness threshold. And if the screen refresh frequency parameter at the current moment is 30 frames and the screen refresh frequency parameter at the previous moment is 40 frames, then the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is 10 frames, which is greater than the preset refresh frequency threshold. It can be determined that the environmental color temperature calculation condition is satisfied.
[0091] If the absolute value of the difference between the environmental brightness information at the current moment and the environmental brightness information at the previous moment is less than or equal to the preset brightness threshold, it indicates that the change in environmental brightness is small and the impact on the screen color temperature is small. Whether to adjust the screen color temperature has little impact on the user; if the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is less than or equal to the preset refresh frequency threshold, it indicates that the change in the screen refresh frequency is small and the impact on the screen color temperature is small. In these two cases, the RGB may not calculate the environmental color temperature information at the current moment, reducing the data processing volume of the RGB sensor. The CPU will not receive the environmental color temperature information at the current moment either, which can reduce the resource consumption of the CPU and the power consumption of the terminal device.
[0092] In step S203, when the environmental color temperature calculation condition is satisfied, the environmental color temperature information at the current moment is determined.
[0093] Optionally, determining the ambient color temperature information at the current moment in step S203 may include:
[0094] Determine the ambient color temperature information at the current moment according to the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
[0095] Figure 3 It is a schematic diagram showing the positional relationship among a screen, a glass, an RGB sensor, and a CPU according to an exemplary embodiment. As Figure 3 shown, the RGB sensor is located below the screen, and the glass is located above the screen. During the user's use of the terminal device, part of the light emitted by the screen will be reflected by the glass, generating the current reflected light of the glass above the screen. The current ambient light and the current reflected light of the glass above the screen will pass through the screen. At this time, the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen can be used to determine the ambient color temperature information at the current moment.
[0096] Exemplarily, an ambient color temperature information calculation model can be established in advance. The RGB sensor can input the current ambient light parameters and the current reflected light parameters of the glass above the screen collected into the ambient color temperature information calculation model to obtain the ambient color temperature information at the current moment.
[0097] Through the above technical solution, according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment, it is determined whether the ambient color temperature calculation condition is satisfied. If the ambient color temperature calculation condition is not satisfied, the RGB sensor does not need to calculate the ambient color temperature information at the current moment. On the one hand, it can reduce the data processing volume of the RGB sensor. On the other hand, the CPU will not receive the ambient color temperature information at the current moment sent by the RGB sensor and does not need to process the ambient color temperature information at the current moment, which can reduce the resource consumption of the CPU and the power consumption of the terminal device.
[0098] It should be noted that the numerical examples given in any of the above embodiments of the present disclosure are only for explanation and do not constitute a limitation on the embodiments of the present disclosure.
[0099] Next, a complete embodiment is used to introduce the screen color temperature control method provided by the present disclosure. Figure 4 It is a flowchart of a screen color temperature control method according to an exemplary embodiment. As Figure 4 shown, the method may include:
[0100] The RGB sensor obtains the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment.
[0101] After that, the RGB sensor determines whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment.
[0102] Among them, if the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, the RGB sensor can determine that the ambient color temperature calculation condition is satisfied.
[0103] If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is less than or equal to the preset brightness threshold, or the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is less than or equal to the preset refresh frequency threshold, the RGB sensor can determine that the ambient color temperature calculation condition is not satisfied.
[0104] When the ambient color temperature calculation condition is satisfied, the RGB sensor can calculate the ambient color temperature information at the current moment. Among them, the RGB sensor can calculate the ambient color temperature information at the current moment according to the currently collected ambient light parameters and the current reflected light parameters of the glass above the screen.
[0105] When the ambient color temperature calculation condition is not satisfied, the RGB sensor does not need to calculate the ambient color temperature information at the current moment, and the screen can maintain the original color temperature unchanged, avoiding unnecessary screen color temperature adjustment. On the one hand, the data processing volume of the RGB sensor can be reduced. On the other hand, the CPU will not receive the ambient color temperature information at the current moment sent by the RGB sensor and does not need to process the ambient color temperature information at the current moment, which can reduce the resource consumption of the CPU and the power consumption of the terminal device.
[0106] After the RGB sensor calculates the ambient color temperature information at the current moment, it can upload the ambient color temperature information at the current moment to the CPU, and the CPU can receive this ambient color temperature information at the current moment. After that, the CPU can determine whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment.
[0107] Among them, the CPU can obtain the ambient color temperature information at the previous moment of the current moment. When the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold, it can be determined that the color temperature parameter conversion condition is satisfied. When the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is less than or equal to the preset threshold, it can be determined that the color temperature parameter conversion condition is not satisfied.
[0108] When the color temperature parameter conversion condition is met, the CPU converts the ambient color temperature information at the current moment into the target screen color temperature information. Among them, the CPU can determine the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, as well as the ambient color temperature information at the current moment.
[0109] When the color temperature parameter conversion condition is not met, the CPU does not need to calculate the target screen color temperature information according to the ambient color temperature information, effectively reducing the data processing volume of the CPU, reducing the CPU load, and at the same time, the original color temperature of the screen can be kept unchanged, avoiding unnecessary screen color temperature adjustment.
[0110] After the CPU calculates the target screen color temperature information, it can determine whether the screen color temperature adjustment condition is met according to the target screen color temperature information.
[0111] Among them, if the difference between the target screen color temperature information and the screen color temperature information at the previous moment is within the preset range, and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded, the CPU can determine that the screen color temperature adjustment condition is met.
[0112] When the screen color temperature adjustment condition is met, the CPU adjusts the color temperature of the screen according to the target screen color temperature information.
[0113] When the screen color temperature adjustment condition is not met, the CPU does not need to control the adjustment of the screen color temperature, reducing the resource consumption of the CPU and the power consumption of the terminal device. At the same time, the screen can keep the original color temperature unchanged, avoiding unnecessary screen color temperature adjustment.
[0114] Through the above technical solutions, in the process of screen color temperature control, first, if the ambient color temperature calculation condition is not met, the RGB sensor does not need to calculate the ambient color temperature information at the current moment. On the one hand, it can reduce the data processing volume of the RGB sensor. On the other hand, the CPU will not receive the ambient color temperature information at the current moment sent by the RGB sensor and does not need to process the ambient color temperature information at the current moment, which can reduce the resource consumption of the CPU and the power consumption of the terminal device. Second, if the color temperature parameter conversion condition is not met, the CPU does not need to calculate the target screen color temperature information according to the ambient color temperature information, avoiding the problem of high power consumption caused by the device continuously processing the data sent by the sensor, effectively reducing the data processing volume in the color temperature control process, and reducing the system load. Finally, adding a judgment on whether the target screen color temperature information meets the screen color temperature adjustment condition. If the screen color temperature adjustment condition is not met, there is no need to control the adjustment of the screen color temperature, reducing the resource consumption and power consumption of the device where the screen is located, and at the same time avoiding unnecessary screen color temperature adjustment, improving the stability of screen color temperature control.
[0115] Based on the same inventive concept, the present disclosure also provides a screen color temperature control device. Figure 5 It is a block diagram of a screen color temperature control device 400 shown according to an exemplary embodiment. Refer to Figure 5 This screen color temperature control device 400 includes a first determination module 401, a conversion module 402, a second determination module 403, and an adjustment module 404.
[0116] The first determination module 401 is configured to determine whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment when receiving the ambient color temperature information at the current moment sent by an RGB sensor disposed below the screen;
[0117] The conversion module 402 is configured to convert the ambient color temperature information at the current moment into target screen color temperature information when the color temperature parameter conversion condition is satisfied;
[0118] The second determination module 403 is configured to determine whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information;
[0119] The adjustment module 404 is configured to adjust the color temperature of the screen according to the target screen color temperature information when the screen color temperature adjustment condition is satisfied.
[0120] Through the above technical solution, when receiving the ambient color temperature information at the current moment sent by an RGB sensor disposed below the screen, if the ambient color temperature information at the current moment satisfies the color temperature parameter conversion condition, the ambient color temperature information at the current moment is converted into target screen color temperature information. If the target screen color temperature information satisfies the screen color temperature adjustment condition, the color temperature of the screen is adjusted according to the target screen color temperature information. In this way, during the process of screen color temperature control, a judgment is added on whether the ambient color temperature information at the current moment satisfies the color temperature parameter conversion condition. If the color temperature parameter conversion condition is not satisfied, there is no need to calculate the target screen color temperature information according to the ambient color temperature information, avoiding the problem of high power consumption caused by the device continuously processing the data sent by the sensor, effectively reducing the amount of data processing during the color temperature control process, and reducing the system load. Moreover, a judgment is added on whether the target screen color temperature information satisfies the screen color temperature adjustment condition. If the screen color temperature adjustment condition is not satisfied, there is no need to control the adjustment of the screen color temperature, reducing the resource consumption and power consumption of the device where the screen is located, and at the same time avoiding unnecessary screen color temperature adjustment, improving the stability of screen color temperature control.
[0121] Optionally, the first determination module 401 includes:
[0122] A first acquisition sub-module, configured to acquire the ambient color temperature information at the previous moment of the current moment;
[0123] A first determination sub-module, configured to determine that the color temperature parameter conversion condition is satisfied when a change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold.
[0124] Optionally, the conversion module 402 is configured to convert the ambient color temperature information at the current moment into the target screen color temperature information in the following manner:
[0125] Determine the target screen color temperature information according to a corresponding relationship between preset ambient color temperature information and screen color temperature information, and the ambient color temperature information at the current moment.
[0126] Optionally, the second determination module 403 includes:
[0127] A second acquisition sub-module, configured to acquire the screen color temperature information at the previous moment of the current moment;
[0128] A second determination sub-module, configured to determine that the screen color temperature adjustment condition is satisfied if a difference between the target screen color temperature information and the screen color temperature information at the previous moment is within a preset range, and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded.
[0129] Optionally, the RGB sensor is configured to determine the ambient color temperature information at the current moment through the following module:
[0130] An acquisition module, configured to acquire the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0131] A third determination module, configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment;
[0132] A fourth determination module, configured to determine the ambient color temperature information at the current moment when the ambient color temperature calculation condition is satisfied.
[0133] Optionally, the third determination module is configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment in the following manner:
[0134] If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, it is determined that the ambient color temperature calculation condition is satisfied.
[0135] Optionally, the fourth determination module is configured to determine the ambient color temperature information at the current moment in the following manner:
[0136] Determine the ambient color temperature information at the current moment according to the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
[0137] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0138] The present disclosure also provides a non-transitory computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the screen color temperature control method provided by the present disclosure are implemented.
[0139] Figure 6 It is a block diagram of a screen color temperature control device 800 shown according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0140] Referring to Figure 6 , the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0141] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above screen color temperature control method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0142] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0143] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
[0144] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0145] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0146] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0147] The sensor assembly 814 includes one or more sensors for providing an assessment of various aspects of the status of the device 800. For example, the sensor assembly 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0148] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0149] In an exemplary embodiment, the device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described screen color temperature control method.
[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by the processor 820 of the device 800 to complete the above-described screen color temperature control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0151] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device. The computer program has a code portion for performing the above-described screen color temperature control method when executed by the programmable device.
[0152] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0153] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for controlling the color temperature of a screen, characterized in that, The method includes: When receiving the ambient color temperature information at the current moment sent by the RGB sensor set below the screen, determining whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment; When the color temperature parameter conversion condition is satisfied, converting the ambient color temperature information at the current moment into target screen color temperature information; Determining whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information; When the screen color temperature adjustment condition is satisfied, adjusting the color temperature of the screen according to the target screen color temperature information; Wherein, the RGB sensor is used to determine the ambient color temperature information at the current moment in the following manner: Obtaining the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment; Determining whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment; When the ambient color temperature calculation condition is satisfied, determining the ambient color temperature information at the current moment.
2. The method according to claim 1, wherein The determining whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment includes: Obtaining the ambient color temperature information at the previous moment of the current moment; When the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold, determining that the color temperature parameter conversion condition is satisfied.
3. The method according to claim 1, characterized in that, The converting the ambient color temperature information at the current moment into target screen color temperature information includes: Determining the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, and the ambient color temperature information at the current moment.
4. The method according to claim 1, wherein The determining whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information includes: Obtaining the screen color temperature information at the previous moment of the current moment; If the difference between the target screen color temperature information and the screen color temperature information at the previous moment is within a preset range and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded, determining that the screen color temperature adjustment condition is satisfied.
5. The method according to claim 1, characterized in that, The determining whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment includes: If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, determining that the ambient color temperature calculation condition is satisfied.
6. The method according to claim 1, characterized in that The determining the ambient color temperature information at the current moment includes: Determine the ambient color temperature information at the current moment based on the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
7. A screen color temperature control device, characterized in that, The device includes: A first determination module, configured to determine whether the color temperature parameter conversion condition is satisfied according to the ambient color temperature information at the current moment when receiving the ambient color temperature information at the current moment sent by the RGB sensor disposed below the screen; A conversion module, configured to convert the ambient color temperature information at the current moment into target screen color temperature information when the color temperature parameter conversion condition is satisfied; A second determination module, configured to determine whether the screen color temperature adjustment condition is satisfied according to the target screen color temperature information; An adjustment module, configured to adjust the color temperature of the screen according to the target screen color temperature information when the screen color temperature adjustment condition is satisfied; Wherein, the RGB sensor is used to determine the ambient color temperature information at the current moment through the following module: An acquisition module, configured to acquire the ambient brightness information at the current moment, the ambient brightness information at the previous moment of the current moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment; A third determination module, configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment; A fourth determination module, configured to determine the ambient color temperature information at the current moment when the ambient color temperature calculation condition is satisfied.
8. The device according to claim 7, characterized in that The first determination module includes: A first acquisition sub-module, configured to acquire the ambient color temperature information at the previous moment of the current moment; A first determination sub-module, configured to determine that the color temperature parameter conversion condition is satisfied when the change rate of the ambient color temperature information at the current moment compared to the ambient color temperature information at the previous moment is greater than a preset threshold.
9. The device according to claim 7, characterized in that, The conversion module is configured to convert the ambient color temperature information at the current moment into target screen color temperature information by the following method: Determine the target screen color temperature information according to the corresponding relationship between the preset ambient color temperature information and the screen color temperature information, and the ambient color temperature information at the current moment.
10. The device according to claim 7, characterized in that, The second determination module includes: A second acquisition sub-module, configured to acquire the screen color temperature information at the previous moment of the current moment; A second determination sub-module, configured to determine that the screen color temperature adjustment condition is satisfied if the difference between the target screen color temperature information and the screen color temperature information at the previous moment is within a preset range and the occlusion state information of the RGB sensor indicates that the RGB sensor is not occluded.
11. The device according to claim 7, characterized in that, The third determination module is configured to determine whether the ambient color temperature calculation condition is satisfied according to the ambient brightness information at the current moment, the ambient brightness information at the previous moment, the screen refresh frequency parameter at the current moment, and the screen refresh frequency parameter at the previous moment by the following method: If the absolute value of the difference between the ambient brightness information at the current moment and the ambient brightness information at the previous moment is greater than a preset brightness threshold, and the absolute value of the difference between the screen refresh frequency parameter at the current moment and the screen refresh frequency parameter at the previous moment is greater than a preset refresh frequency threshold, it is determined that the ambient color temperature calculation condition is satisfied.
12. The device according to claim 7, wherein The fourth determination module is configured to determine the ambient color temperature information at the current moment in the following manner: Determine the ambient color temperature information at the current moment according to the current ambient light parameters collected by the RGB sensor and the current reflected light parameters of the glass above the screen.
13. A screen color temperature control device, characterized in that, Comprising: A memory, on which a computer program is stored; A controller, when the computer program is executed by the controller, implementing the steps of the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, implementing the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Equipment detection method and device, storage medium and electronic equipment
CN111947775A
Screen color temperature adjusting method and device
CN112000305A