Display parameter adjusting method and device, terminal equipment and storage medium
By acquiring lighting information and determining the confidence of the parameters to adjust the display parameters of the display screen, the problems of low adjustment efficiency and poor accuracy in the prior art are solved, and more accurate and efficient display parameter adjustment under different lighting conditions are achieved.
Patent Information
- Application Number
- CN202311349905.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art is inefficient and poorly accurate when adjusting the display parameters of the display screen. Especially under different lighting conditions, the calculated color temperature does not adapt to various scenarios, resulting in a decrease in the display effect.
By obtaining the parameter value to be adjusted and the lighting information of the terminal device, the reliability of the parameter value to be adjusted under the lighting information is determined, and the display parameters of the display screen are adjusted according to the reliability and the parameter value to be adjusted.
Improve the accuracy of display parameter adjustment under different lighting conditions to ensure the best display effect of the display screen in various scenarios.
Smart Images

Figure CN119851589A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal display technology, and in particular to a method, device, terminal equipment and storage medium for adjusting display parameters. Background Art
[0002] With the development of science and technology, various terminal devices appear in people's daily lives. Display screens are one of the commonly used devices in terminal devices. Users can display corresponding images through the display screens when using terminal devices.
[0003] At present, in order to make the images displayed to users more comfortable in different scenarios, the terminal device can control the display screen to adjust relevant display parameters, such as color temperature, refresh rate, etc., in different scenarios, so that the display screen can better display the content. For example, in the related technologies for adaptively adjusting color temperature, most of them are based on the screen leakage compensation method to calculate the color temperature that needs to be adjusted. In this method, the terminal device collects environmental information for a long period of time through the sensor under the display. During the collection process, it will receive ambient light and screen leakage at the same time, which will affect the values of each color channel collected by the sensor, and compensate through a preset functional relationship. The color temperature calculated by this method is not suitable for various scenarios. If it is adjusted directly according to the calculated color temperature, the display effect of the display screen will be reduced, and there are problems of low efficiency and poor accuracy in adjusting the display parameters of the display screen. Summary of the invention
[0004] In order to improve the accuracy of the terminal device in adjusting the display parameters of the display screen, the embodiment of the present application provides a method, device, terminal device and storage medium for adjusting the display parameters. The technical solution is as follows:
[0005] In one aspect, the present application provides a method for adjusting display parameters, which is applied to a terminal device, and the method includes:
[0006] Acquire a parameter value to be adjusted and illumination information of the terminal device, wherein the parameter value to be adjusted is an adjustment value used when adjusting a display parameter of a display screen of the terminal device, and the illumination information includes brightness data corresponding to the display screen in a current display process;
[0007] Determining the credibility of the parameter value to be adjusted under the illumination information, wherein the credibility is used to indicate the accuracy of adjusting the display parameter of the display screen according to the parameter value to be adjusted;
[0008] The display parameters of the display screen are adjusted according to the parameter value to be adjusted and the credibility.
[0009] In one aspect, the present application provides a display parameter adjustment device, which is applied to an electronic device, and the device includes:
[0010] A first acquisition module, used to acquire a parameter value to be adjusted and illumination information of the terminal device, wherein the parameter value to be adjusted is an adjustment value used when adjusting a display parameter of a display screen of the terminal device, and the illumination information includes brightness data corresponding to the display screen in a current display process;
[0011] A first determination module, used to determine the credibility of the parameter value to be adjusted under the illumination information, wherein the credibility is used to indicate the accuracy of adjusting the display parameter of the display screen according to the parameter value to be adjusted;
[0012] The first adjustment module is used to adjust the display parameters of the display screen according to the parameter value to be adjusted and the credibility.
[0013] In another aspect, the present application provides a terminal device, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being executed by the processor to implement the method for adjusting display parameters as described in one aspect.
[0014] In another aspect, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the method for adjusting display parameters as described in one aspect.
[0015] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method for adjusting display parameters as described in one aspect above.
[0016] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the method for adjusting display parameters as described in one aspect above.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] Obtain the parameter value to be adjusted and the illumination information of the terminal device, the parameter value to be adjusted is the adjustment value used when adjusting the display parameters of the display screen of the terminal device, and the illumination information includes the brightness data corresponding to the display screen in the current display process; determine the credibility of the parameter value to be adjusted under the illumination information, the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted; adjust the display parameters of the display screen according to the parameter value to be adjusted and the credibility. In an embodiment of the present application, when the terminal device needs to adjust a certain display parameter and obtains the parameter value to be adjusted that needs to be used, it also obtains the illumination information to determine the credibility corresponding to the parameter to be adjusted under the illumination information, thereby adjusting the display parameters according to the credibility and the parameter value to be adjusted, and determining the corresponding credibility under different illumination information, so as to ensure that the credibility of the parameter value to be adjusted is taken into account when adjusting the display parameters, thereby improving the accuracy of adjusting the display parameters of the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a schematic diagram of an example structure of a terminal device provided in an embodiment of the present application;
[0021] Figure 2 is a method flow chart of a method for adjusting display parameters provided by an exemplary embodiment of the present application;
[0022] Figure 3 is a method flow chart of a method for adjusting display parameters provided by an exemplary embodiment of the present application;
[0023] Figure 4 is a schematic diagram of an interface for setting operations involved in an exemplary embodiment of the present application;
[0024] Figure 5 is a method flow chart of a method for adjusting display parameters involved in an exemplary embodiment of the present application;
[0025] Figure 6 is a structural block diagram of a display parameter adjustment device provided by an exemplary embodiment of the present application;
[0026] Figure 7 It is a structural diagram of another example of a display parameter adjustment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0028] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0029] The solution provided by the present application can be used in real-life scenarios where people use terminal devices in their daily lives and the terminal devices adjust the display parameters of their own display screens. To facilitate understanding, some terms and application scenarios involved in the embodiments of the present application are first briefly introduced below.
[0030] Ambient color adaptation: refers to the terminal device detecting the color temperature of the current ambient light and adjusting the color temperature of the current display device accordingly to keep it matching the environment.
[0031] Light leakage ratio: the ratio between the screen leakage of the current display and the ambient light intensity.
[0032] RsGsBs: refers to the grayscale statistical values of the three primary colors RGB for all pixels in a certain area of the display device under the current display content.
[0033] Black frame algorithm: refers to the collection and processing of ambient light information within the PWM black bar interval of screen refresh, and the calculation of ambient light intensity and color temperature.
[0034] Screenshot algorithm: It refers to collecting screen light and ambient light at the same time, combining the current display brightness of the screen with the RGB information of the area displayed, and deducting the screen leakage to obtain the ambient light intensity and color temperature.
[0035] With the development of science and technology, various terminal devices have appeared in people's daily lives, and people can use terminal devices for entertainment and learning. As one of the commonly used devices in terminal devices, the display screen (also called the screen) is required for playing videos, displaying interfaces, and interacting with users. In recent years, the display screens of terminal devices have evolved in the direction of high refresh rates, and the frequency of pulse width modulation (PWM) has gradually increased from 1440HZ to 1920HZ, 2160HZ, and 3840HZ. During use, how to flexibly adjust the display parameters to make the user experience more comfortable is a problem of concern at present.
[0036] Please refer to Figure 1 , is a schematic diagram of an example structure of a terminal device provided in an embodiment of the present application. Figure 1 The terminal device shown includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a power module 180.
[0037] The processor 110 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, the processor 110 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0038] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0039] The transceiver 130 can provide wireless communication solutions for terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 130 can be one or more devices integrating at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 130, or an antenna and a modem processor are integrated into the transceiver 130, etc., which are not limited here.
[0040] The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 140 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0041] The input unit 150 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 150 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 150 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0042] The terminal device may also include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.
[0043] The audio circuit 170 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 170 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to another terminal device through the video circuit, or the audio data is output to the memory 120 for further processing.
[0044] The terminal device also includes a power module 180 for supplying power to various components. Optionally, the power module 180 can be logically connected to the processor 110 through a power management device, so that functions such as charging, discharging, and power consumption management can be managed through the power management device.
[0045] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.
[0046] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0047] Optionally, the above-mentioned terminal devices may include but are not limited to wearable devices (such as smart bracelets, smart watches, smart glasses, etc.), mobile phones, tablet computers, laptops, smart glasses, smart watches, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, desktop computers, laptops, etc.
[0048] Usually, the above Figure 1 The terminal device shown needs to be equipped with a corresponding operating system and run based on the operating system. For example, the operating system of the terminal device can be an Android system, an iOS system, a Linux system, etc.
[0049] In order to cope with the above-mentioned changes in PWM frequency, some existing adjustment methods use sensors under the display to collect and calculate ambient light information through the interval of black bars in PWM. This method can no longer meet the requirements of accuracy and stability due to the narrow width of the black frame. Therefore, a method for selecting the high refresh rate and color temperature function of the display screen is added. However, due to the conflict between the high refresh rate and the black frame algorithm, the two cannot coexist and need to be turned on separately in the terminal device. When the high-frequency PWM refresh rate is turned on, the adaptive function of the ambient color is turned off. For example, in the 720HZ PWM refresh rate state, the ambient color adaptation is allowed to work normally, but when the 1440HZ high-frequency dimming mode is turned on, the ambient color adaptation function is not supported. This solution allows users to make their own choices, and users with different tendencies can be satisfied.
[0050] Another way is to calculate the color temperature through the screen light leakage compensation method. The sensor under the display is also used to collect environmental information for a long period of time. During the collection process, ambient light and screen light leakage are received at the same time, which in turn affects the values of each color channel collected by the sensor. Therefore, for each color channel collected by the sensor, it will be affected by the RGB (Red, Green, Blue) color depth of the local screen in the area above the sensor and the brightness level of the screen at this time. It is necessary to obtain the functional relationship of the screen leakage on each color channel (for example: R1 = f (R, G, B, Level)), where R1 is the value of the red channel after the impact, f represents the functional relationship, Level represents the screen brightness at this time, and R, G, B are the values of the red channel, the green channel, and the blue channel at this time. Finding a suitable formula to express it can achieve compensation for the impact of screen light leakage on each color channel and deduct the impact of screen light leakage. However, the color temperature value calculated by the above formula is not accurate in all scenarios, because there will be errors in calculating the compensation values of each channel, resulting in errors in the final calculated color temperature value.
[0051] Therefore, for the above two color temperature adjustment solutions, although the first solution can integrate high-frequency dimming mode and color temperature function at the same time, it cannot achieve the coexistence of the two, that is, when users experience one function, they must give up the other function. Both functions are key functions for creating a comfortable eye-protection display effect.
[0052] For the second solution, in environments with brightness below 500 Lux, the signal-to-noise ratio is poor, and the color temperature deviation caused by the deviation of the screen light leakage compensation algorithm cannot guarantee accurate compensation in all interfaces, so the color temperature function in medium and low brightness environments is missing. In actual use, the environment of 0-500 Lux basically accounts for more than 85% of user environment scenarios. Therefore, the overall scene coverage of the above solution is insufficient, and there are many real screens where there is inaccurate compensation and then inaccurate calculation of the final color temperature value. At this time, if the color temperature is still adjusted according to the inaccurate reference value, it will bring problems to the actual user experience, reduce the display effect of the display, and there are problems with low efficiency and poor accuracy in adjusting the display parameters of the display.
[0053] In order to improve the accuracy of the display parameters of the display screen adjusted by the terminal device and improve the actual experience of the user in using the terminal device, the present application provides a display parameter adjustment method that can be applied to the terminal device. By obtaining lighting information, the calculated display parameters are given corresponding credibility, thereby realizing flexible adjustment of the display parameters in various lighting information scenarios.
[0054] Please refer to Figure 2 , which shows a method flow chart of a method for adjusting display parameters provided by an exemplary embodiment of the present application, and the method for adjusting display parameters can be applied to a terminal device with a display screen. Figure 2 As shown, the method for adjusting the display parameters may include the following steps:
[0055] Step 201, obtaining the parameter value to be adjusted and the illumination information of the terminal device. The parameter value to be adjusted is the adjustment value used when adjusting the display parameter of the display screen of the terminal device. The illumination information includes the brightness data corresponding to the display screen in the current display process.
[0056] Optionally, in a terminal device, when it is necessary to adjust the display parameters of the display screen, the terminal device will calculate the corresponding adjustment value, thereby obtaining the parameter value to be adjusted. For example, the display parameter is color temperature. When the terminal device needs to adjust the current color temperature, the adjustment value to be adjusted is calculated, thereby obtaining the parameter value to be adjusted. Of course, the display parameters can also be other parameters, such as light perception, saturation, hue, contrast and other color parameters of the display interface.
[0057] Optionally, this solution can also obtain the illumination information of the terminal device, which includes the brightness data corresponding to the current display process of the display screen, such as the screen brightness of the current interface, the light leakage ratio, the pigment data of the current interface, the grayscale statistics of the current interface, etc.
[0058] Step 202: Determine the credibility of the parameter value to be adjusted under the illumination information, where the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted.
[0059] Optionally, the terminal device determines the credibility of the display screen when adjusting the display parameters under the lighting information based on the acquired lighting information. The credibility of the parameter value to be adjusted calculated under different lighting information can be pre-set in the terminal device. After acquiring the above lighting information, the lighting information is detected, and the credibility of the corresponding parameter value to be adjusted is determined according to the value of the lighting information, thereby instructing the terminal device to adjust the display parameters of the display screen to the accuracy of the parameter value to be adjusted.
[0060] Step 203: adjusting the display parameters of the display screen according to the parameter values to be adjusted and the reliability.
[0061] Optionally, when adjusting the display parameters, the display parameters of the display screen are adjusted in combination with the credibility of the parameter value to be adjusted. For example, if the credibility of the parameter value to be adjusted is low, the display parameters may not be adjusted; if the credibility of the parameter value to be adjusted is high, the display parameters are adjusted, so that when the display parameters are adjusted, they are more consistent with the current scene of the lighting information, thereby improving the accuracy of adjusting the display parameters of the display screen.
[0062] In summary, the parameter value to be adjusted and the illumination information of the terminal device are obtained, the parameter value to be adjusted is the adjustment value used when adjusting the display parameters of the display screen of the terminal device, and the illumination information includes the brightness data corresponding to the display screen in the current display process; the credibility of the parameter value to be adjusted under the illumination information is determined, and the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted; and the display parameters of the display screen are adjusted according to the parameter value to be adjusted and the credibility. In an embodiment of the present application, when the terminal device needs to adjust a certain display parameter and obtains the parameter value to be adjusted that needs to be used, the illumination information is also obtained to determine the credibility corresponding to the parameter to be adjusted under the illumination information, so that the display parameters are adjusted according to the credibility and the parameter value to be adjusted, and the corresponding credibility is determined under different illumination information, so as to ensure that the credibility of the parameter value to be adjusted is taken into account when adjusting the display parameters, thereby improving the accuracy of adjusting the display parameters of the display screen.
[0063] In a possible implementation, the terminal device can determine the target threshold interval where the illumination information is located according to the preset threshold and the illumination information, and determine the corresponding credibility based on the target threshold interval in the process of determining the credibility of the parameter value to be adjusted. By setting different preset thresholds to detect the illumination information, different credibility and corresponding adjustment strategies are divided, so that the display parameters can be adjusted more flexibly according to the adjustment strategy corresponding to the credibility.
[0064] Please refer to Figure 3 , which shows a method flow chart of a method for adjusting display parameters provided by an exemplary embodiment of the present application, and the method for adjusting display parameters can be applied to a terminal device with a display screen. Figure 3 As shown, the method for adjusting the display parameters may include the following steps:
[0065] Step 301, obtaining the parameter value to be adjusted and the illumination information of the terminal device. The parameter value to be adjusted is the adjustment value used when adjusting the display parameter of the display screen of the terminal device. The illumination information includes the brightness data corresponding to the display screen in the current display process.
[0066] Optionally, the parameter value to be adjusted here is equivalent to the adjusted value of the display parameter calculated by the terminal device when a display parameter needs to be adjusted. For example, if the calculated adjustment value is A, it means that a display parameter needs to be adjusted to A size.
[0067] In one possible implementation, the process of obtaining the parameter value to be adjusted can be as follows: after receiving the screenshot instruction, obtain the current screenshot interface; determine the brightness range that the display screen is currently in; according to the brightness range, obtain the calibration parameters corresponding to the brightness range; according to the calibration parameters, compensate each color channel of the current screenshot interface, and calculate the compensated parameter value to be adjusted. Optionally, the screenshot instruction is generated when the user triggers the screenshot operation, or it can be generated when the terminal device automatically executes the screenshot during operation. After receiving the screenshot instruction, the terminal device can take a screenshot and obtain the current screenshot interface.
[0068] Optionally, the terminal device can also obtain the brightness of the display screen through internal hardware and determine the current brightness range of the brightness. According to the brightness range, obtain the calibration parameters corresponding to the brightness range, perform compensation calculations on each color channel in the current screenshot interface, and calculate the compensated parameter value to be adjusted.
[0069] Taking the display parameter as color temperature (correlated colour temperature, CCT) as an example, in one possible implementation, please refer to Table 1, the corresponding relationship between the above brightness range and the calibration parameter is as follows:
[0070] Table 1. Correspondence between three-level calibration parameters and three-level brightness ranges
[0071] Brightness range Calibration parameters Brightness range 1 The brightness of 30lux Brightness range 2 Brightness of AID point Brightness range three Maximum brightness
[0072] For example, the entire brightness range of the display is divided into three areas: brightness range 1 (Low), brightness range 2 (Middle), and brightness range 3 (High). At the same time, the boundary points or typical brightness (brightness corresponding to 30lux, AID point brightness, Normal maximum brightness) in the three brightness ranges are selected for light leakage calibration. Therefore, when the brightness of the display is in different brightness ranges, different calibration parameters will be called to perform screenshot compensation calculations to improve the compensation deviation under medium and low brightness. The CCT value after compensation is the parameter value to be adjusted.
[0073] Optionally, the terminal device can collect the color and brightness of each pixel through the light sensor, collect RGB pixels through the light sensor, and obtain the four channel values of RGBC. Due to the ambient light and screen light leakage, the collected four channel values will be affected, so compensation can be made up. When the terminal device compensates for the impact of screen light leakage on each color channel, the compensated CCT value obtained by deducting the impact of screen light leakage can be executed according to the following process: obtain the RGB information of the opening and the current display brightness, calculate the compensation value of each color channel according to the RGB information of the opening and the current display brightness, obtain the RGBC channel value collected by the light sensor, and obtain the light RGBC channel value minus the interference amount according to the compensation value of each color channel and the RGBC channel value collected by the light sensor, so as to calculate the compensated CCT.
[0074] Step 302: Determine the target threshold interval where the illumination information is located according to the preset threshold and the illumination information.
[0075] Step 303: Determine the credibility of the parameter value to be adjusted according to the corresponding relationship between the preset credibility and the threshold range and the target threshold range.
[0076] That is to say, the terminal device can determine the target threshold range of the lighting information based on the acquired lighting information and the preset threshold, and determine the credibility of the parameter value to be adjusted based on the correspondence between the preset credibility and the threshold range and the target threshold range, wherein the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted.
[0077] In one possible implementation, the illumination information includes at least one type of brightness data, and the preset threshold includes at least one threshold corresponding to each type of brightness data; when executing step 302, the following can be done: based on each type of brightness data in the illumination information and the corresponding at least one threshold, determine the target threshold interval for each type of brightness data; when executing step 303, the following can be done: based on the target threshold interval for each type of brightness data and the corresponding relationship, determine the credibility of the parameter value to be adjusted.
[0078] In a possible implementation, at least one brightness data includes current ambient light intensity, at least one threshold includes at least one ambient light intensity threshold, and the correspondence includes a correspondence between different ambient light intensity intervals and different credibility levels.
[0079] For example, the brightness data included in the illumination information is the current ambient light intensity. The terminal device is pre-set with an ambient light intensity threshold. According to the ambient light intensity threshold and the current ambient light intensity, the target threshold interval in which the current ambient light intensity is located is determined. Optionally, the ambient light intensity threshold includes a first ambient light threshold and a second ambient light threshold, and the first ambient light threshold is greater than the second ambient light threshold. When executing step 302, the terminal device may perform the following: according to the first ambient light threshold, the second ambient light threshold and the current ambient light intensity, the target threshold interval in which the current ambient light intensity is located is determined.
[0080] For example, L1 represents the first ambient light threshold, and L2 represents the second ambient light threshold. If the current ambient light intensity included in the acquired lighting information is L3, the terminal device determines the positional relationship between L3 and the first ambient light threshold L1 and the second ambient light threshold L2. If L3 is greater than L1, it means that the target threshold interval of the current ambient light intensity is greater than L1. If L3 is greater than L2 but less than L1, it means that the target threshold interval of the current ambient light intensity is between L2 and L1. If L3 is less than L2, it means that the target threshold interval of the current ambient light intensity is less than L2.
[0081] Correspondingly, the terminal device can determine the credibility corresponding to the target threshold interval by querying the correspondence between the preset credibility and the threshold interval, thereby determining the credibility of the parameter value to be adjusted calculated under the current illumination information. Please refer to Table 2, the correspondence between the preset credibility and the threshold interval is as follows:
[0082] Table 2 Correspondence between credibility and threshold interval
[0083] Threshold interval Credibility Greater than L1 Credibility 1 Larger than L2, smaller than L1 Credibility II Less than L2 Credibility 3 …… ……
[0084] As shown in Table 2 above, after the target threshold interval of the current ambient light intensity is determined, the credibility corresponding to the target threshold interval is queried through a preset correspondence relationship, thereby obtaining the credibility of the parameter value to be adjusted calculated under the current lighting information.
[0085] Optionally, the above Table 2 is exemplary, and two or more credibility levels may be set in the actual application of the present solution. Taking the credibility level including the first credibility level and the second credibility level as an example, the terminal device may execute step 303 as follows: when the target threshold interval is an interval higher than the first ambient light threshold level, or an interval lower than the second ambient light threshold level, the credibility level of the parameter value to be adjusted is determined to be the first credibility level; when the target threshold interval is an interval higher than the second ambient light threshold level, or an interval lower than the first ambient light threshold level, the credibility level of the parameter value to be adjusted is determined to be the second credibility level, and the first credibility level is higher than the second credibility level.
[0086] Optionally, the above brightness data takes the current ambient light intensity as an example. In actual applications, it can also be other separate types of brightness data (such as current grayscale statistics, light leakage ratio, etc.) or multiple types of brightness data, which will not be repeated here.
[0087] Optionally, taking the example that the above illumination information includes two types of brightness data, then the preset threshold in the terminal device also includes at least one threshold corresponding to each type of brightness data. For example, taking the example that the illumination information includes two types of brightness data, namely, first type brightness data and second type brightness data, the preset threshold may include a first threshold for determining the interval where the first type brightness data is located and a second threshold for determining the interval where the second type brightness data is located. The terminal device may determine the target threshold interval where the first type brightness data is located based on the first type brightness data and the corresponding first threshold, and determine the target threshold interval where the second type brightness data is located based on the second type brightness data and the corresponding second threshold, and then determine the credibility of the parameter value to be adjusted based on a correspondence similar to that in Table 2 above. Please refer to Table 3, the correspondence between the above preset credibility and the threshold interval is as follows:
[0088] Table 3 Correspondence between credibility and threshold interval
[0089]
[0090] The above Table 3 may be obtained by statistics in advance by developers.
[0091] Optionally, the at least one brightness data mentioned above includes the current ambient light intensity and other current brightness data, the other current brightness data includes at least one of the ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value, the at least one threshold includes at least one ambient light intensity threshold and at least one other threshold corresponding to the other brightness data, and the corresponding relationship includes the corresponding relationship between multiple different intervals determined according to the ambient light intensity and other brightness data and different credibility.
[0092] That is to say, when different types of brightness data are included in the lighting information, and the current ambient light intensity is one of them, the corresponding relationship in the terminal device can be a corresponding relationship between multiple different intervals determined according to the ambient light intensity and other brightness data and different credibility. For example, at least one of the above brightness data includes the current ambient light intensity and the light leakage ratio, and the light leakage ratio is the ratio of the current light leakage intensity of the display screen to the current ambient light intensity. The light leakage ratio threshold is the threshold corresponding to the light leakage ratio, so the at least one threshold determined by the terminal device includes the light leakage ratio threshold in addition to the ambient light intensity threshold. Similarly, the corresponding relationship will also include the corresponding relationship between multiple different intervals determined by the ambient light intensity and the light leakage ratio and different credibility. Similar to the above Table 3, it will not be repeated here.
[0093] In one possible implementation, the current other brightness data includes the current ratio of the current light leakage intensity of the display screen to the current ambient light intensity; at least one other threshold also includes a light leakage ratio threshold; the terminal device may perform step 302 as follows: determine the first sub-target threshold interval where the ambient light intensity is located, and determine the second sub-target threshold interval where the current ratio is located, based on at least one ambient light intensity threshold, a light leakage ratio threshold, the current ambient light intensity, and the current ratio; the terminal device may perform step 303 as follows: when the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage ratio threshold, determine that the credibility of the parameter value to be adjusted is the first credibility; otherwise, determine that the credibility of the parameter value to be adjusted is the second credibility, the first ambient light threshold is greater than the second ambient light threshold, and the first credibility is higher than the second credibility.
[0094] In one possible implementation, the current other brightness data includes the current ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistics; at least one other threshold also includes a light leakage ratio threshold and a grayscale threshold; when the terminal device executes step 302, it can be as follows: according to at least one ambient light intensity threshold, a light leakage ratio threshold, at least one grayscale card control threshold, the current ambient light intensity, the current ratio and the grayscale threshold, determine the first sub-target threshold interval where the ambient light intensity is located, and determine the second sub-target threshold interval where the current ratio is located, and determine the third sub-target threshold interval where the current grayscale statistics are located; when the terminal device executes step 303, it can be as follows: when the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage ratio threshold, and the third sub-target threshold interval is an interval lower than the grayscale threshold, determine that the credibility of the parameter value to be adjusted is the first credibility; otherwise, determine that the credibility of the parameter value to be adjusted is the second credibility.
[0095] Optionally, the current grayscale statistics include the grayscale values of the RGB channels, and the grayscale threshold includes the threshold values of the RGB channels respectively; or, the current grayscale statistics include the difference between the maximum and minimum grayscale values of the RGB channels, and the grayscale threshold includes the grayscale difference threshold.
[0096] Optionally, in the above two methods, one is an implementation method in which the current other brightness data includes the current ratio of the current light leakage intensity of the display screen to the current ambient light intensity; the other is an implementation method in which the current other brightness data includes the current ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value. The second implementation method is taken as an example to illustrate the solution, and the details of the other implementation method are similar and will not be repeated here.
[0097] For example, the light information includes the current ambient light intensity and current other brightness data, and the current other brightness data includes the light leakage ratio and the current gray scale statistical value. The preset thresholds will include three types: the ambient light intensity threshold, the light leakage ratio threshold, and the gray scale threshold. The ambient light intensity threshold includes a first ambient light threshold of 500 Lux and a second ambient light threshold of 30 Lux. The light leakage ratio thresholds are 0.3 and 1. The gray scale threshold includes the thresholds for each of the RGB three channels (Rsx, Gsx, Bsx respectively) and the gray scale difference threshold H. For example, if the current ambient light intensity is in the range of 30 Lux to 500 Lux, the light leakage ratio is in the range of 0.3 to 1, and the Rs, Gs, and Bs of the current gray scale statistical value are all less than their respective thresholds Rsx, Gsx, Bsx, that is, Rs < Rsx; Gs < Gsx; Bs < Bsx; in this case, the credibility of determining the value of the parameter to be adjusted is the first credibility. Or, if the current ambient light intensity is in the range of 30 Lux to 500 Lux, the light leakage ratio is in the range of 0.3 to 1, and Max(RsGsBs) - Min(RsGsBs) of the current gray scale statistical value is less than the gray scale difference threshold H, that is, Max(RsGsBs) - Min(RsGsBs) < H; in this case, it can also be determined that the credibility of determining the value of the parameter to be adjusted is the first credibility. Otherwise, the credibility of determining the value of the parameter to be adjusted is the second credibility.
[0098] Step 304, when the credibility is higher than the preset credibility threshold, adjust the display parameters of the display screen to the value of the parameter to be adjusted.
[0099] Step 305, when the credibility is not higher than the preset credibility threshold, keep the current display parameters of the display screen.
[0100] Optionally, in this solution, after obtaining the credibility, it can be decided whether to adjust the display parameters to the parameter to be adjusted according to the level of the credibility. If the credibility is higher than the preset credibility threshold, execute Step 304. If the credibility is not higher than the preset credibility threshold, execute Step 305.
[0101] Optionally, the above first credibility and second credibility can be represented by numbers. For example, the first credibility is represented by 5, and the second credibility is represented by 0. The preset credibility threshold is 3. If the determined credibility is 5, then adjust the display parameters of the display screen to the value of the parameter to be adjusted. If the determined credibility is 0, then keep the current display parameters of the display screen, that is, do not make adjustments.
[0102] In a possible implementation, the current illumination information includes the current ambient light intensity. Before determining the target threshold interval where the illumination information is located based on the preset threshold and the illumination information, the terminal device may also perform the following steps: when the illumination information is less than or equal to the first preset threshold, determining whether a target setting operation is detected, the target setting operation is used to increase the brightness of the display screen; when the target setting operation is not detected, performing the step of determining the target threshold interval where the illumination information is located based on the preset threshold and the illumination information. The first preset threshold may also be preset by the developer.
[0103] Optionally, when the illumination information is less than or equal to the first preset threshold, after determining whether a target setting operation is detected, if the terminal device detects the target setting operation, the credibility of the parameter value to be adjusted is set to the second credibility.
[0104] For example, the target setting operation is an operation in which the user sets the brightness of the display. Figure 4 , which shows a schematic diagram of an interface for setting operations involved in an exemplary embodiment of the present application, such as Figure 4 As shown, the display interface 400 includes a brightness adjustment control 401. When the user triggers the brightness adjustment control 401, if the parameter value to be adjusted is subsequently calculated, the credibility of the parameter value to be adjusted is directly set to the second credibility. If the triggering operation of the brightness adjustment control 401 is not detected, the step of determining the target threshold interval of the illumination information according to the preset threshold and the illumination information can be performed when the parameter value to be adjusted is subsequently calculated. For example, by Figure 4 In the scheme shown, if the first preset threshold is low, when the lighting information is less than or equal to the first preset threshold, it indicates that the scene is in a low brightness. At this time, if the user manually adjusts the brightness adjustment control 401 to increase the screen brightness, the display parameters can be locked without adjustment, ignoring the adjustment values of the display parameters calculated subsequently, so as to keep the screen in a non-glaring warm color state in a dark environment.
[0105] In summary, the parameter value to be adjusted and the illumination information of the terminal device are obtained, the parameter value to be adjusted is the adjustment value used when adjusting the display parameters of the display screen of the terminal device, and the illumination information includes the brightness data corresponding to the display screen in the current display process; the credibility of the parameter value to be adjusted under the illumination information is determined, and the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted; and the display parameters of the display screen are adjusted according to the parameter value to be adjusted and the credibility. In an embodiment of the present application, when the terminal device needs to adjust a certain display parameter and obtains the parameter value to be adjusted that needs to be used, the illumination information is also obtained to determine the credibility corresponding to the parameter to be adjusted under the illumination information, so that the display parameters are adjusted according to the credibility and the parameter value to be adjusted, and the corresponding credibility is determined under different illumination information, so as to ensure that the credibility of the parameter value to be adjusted is taken into account when adjusting the display parameters, thereby improving the accuracy of adjusting the display parameters of the display screen.
[0106] In addition, in order to improve compensation in medium and low brightness environments, the present application uses brightness ranges of different levels and calibration parameters to refer to light leakage conditions under different brightness levels, reduce the deviation of screenshot compensation, and improve the accuracy of the subsequently calculated parameter values to be adjusted.
[0107] Next, take the terminal device as a mobile phone and the display parameter as color temperature as an example. Figure 2 or Figure 3 The illustrated embodiment is described.
[0108] Please refer to Figure 5 , which shows a method flow chart of a method for adjusting display parameters involved in an exemplary embodiment of the present application. Figure 5 As shown, the method for adjusting the display parameters may include the following steps:
[0109] Step 501: The mobile phone receives a screenshot instruction, obtains and transmits the screenshot information to the sensor service layer.
[0110] Step 502: The device at the bottom of the mobile phone collects ambient light and light leakage from the display screen.
[0111] Step 503: the board support package (BSP) layer inside the mobile phone normalizes the ambient light and the leakage light, and transmits the normalized data to the sensor service layer.
[0112] Among them, step 501 to step 503 can be executed synchronously or separately, and do not represent a time sequence.
[0113] Step 504: In the sensor service layer, the ambient light intensity and the compensated CCT are calculated based on the screenshot information.
[0114] Optionally, the compensated CCT may be calculated according to the compensation method shown in Table 1 above, which will not be described in detail herein.
[0115] Step 505: The mobile phone assigns a value to the credibility of the currently calculated CCT based on the illumination information (including ambient light intensity, light leakage ratio, and grayscale statistics).
[0116] Optionally, the logic for the mobile phone to assign a value to the credibility of the currently calculated CCT may be as follows:
[0117] When the ambient light intensity is lower than 30 Lux, the confidence level of the calculated CCT is set to 2. At this time, the ambient light intensity is low and the color temperature information is not obvious, so the screen display color temperature adjustment is not performed. The color temperature is reported as a fixed value, and the confidence level is set to 2, which is used to make specific distinction marks for dark environment scenes.
[0118] When the ambient light intensity is higher than 500 Lux, the confidence level of the calculated CCT is set to 5. At this time, the ambient light intensity is very high, and screen light leakage will not affect the calculation of the ambient color temperature value. The confidence level of the color temperature reported in the screenshot after compensation is all set to 5.
[0119] When the ambient light intensity is higher than 30Lux and lower than 500Lux, the proportion of light leakage is low. When it is lower than 0.3, the confidence of the CCT calculated at this time is set to 5. At this time, when the screen light leakage has little impact, the screenshot compensation accuracy is high, the color temperature value can be calculated accurately, and the confidence of the color temperature value in this scene is given to 5.
[0120] When the ambient light intensity is higher than 30Lux and lower than 500Lux, the light leakage ratio is greater than 0.3 and less than 1, and the current image's Rs<180; Gs<241; Bs<145; the confidence level of the CCT calculated at this time is set to 5. At this time, some darker colors and lower grayscale images are displayed in the area above the sensor, that is, the grayscale of RsGsBs is relatively low (equivalent to displaying a low grayscale image). Although the light leakage is slightly larger than this time, it can still be compensated accurately, and the confidence level of the color temperature value in this scene is given to 5.
[0121] When the ambient light intensity is higher than 30Lux and lower than 500Lux, the light leakage ratio is greater than 0.3 and less than 1, and the current screen's Max(RsGsBs)-Min(RsGsBs)<32 (equivalent to a gray-white screen); the confidence level of the CCT calculated at this time is set to 5. At this time, the area above the sensor displays a gray and white screen, that is, the three grayscale values of RsGsBs are close, although the light leakage is slightly larger than this time, it can still be compensated accurately, and the confidence level of the color temperature value in this scene is given to 5.
[0122] When the above assignment logics are not met, the color temperature cannot be calculated accurately, the color temperature value after real-time compensation is unreliable, and the confidence level is 0. Through the above assignment logic, some scenes (display images) that can be accurately compensated can be selected and synchronized to the upper layer. The ambient color temperature report at this time can be used as a reference for screen color temperature adjustment.
[0123] Optionally, the thresholds used in the judgment of the above-mentioned light leakage ratio and grayscale statistics can be flexibly changed based on the change of ambient light brightness. For example, the higher the ambient light brightness, the larger the interval of the threshold used in the judgment of the light leakage ratio, and the larger the threshold used in the judgment of the grayscale statistics. For example, when the ambient light brightness is the first brightness value, the threshold of the light leakage ratio is 0.3 to 1. If the ambient light brightness is the second brightness value, the threshold of the light leakage ratio is 0.2 to 1, where the second brightness value is higher than the first brightness value. When the ambient light brightness is the first brightness value, the threshold corresponding to Rs of the current picture is 180; the threshold corresponding to Gs is 241; the threshold corresponding to Bs is 145; when the ambient light brightness is the second brightness value, the threshold corresponding to Rs of the current picture is 200; the threshold corresponding to Gs is 250; the threshold corresponding to Bs is 160. In other words, the higher the ambient light brightness, the looser the threshold is set, thereby ensuring the overall scene coverage.
[0124] Step 506: The mobile phone adjusts the color temperature according to the credibility.
[0125] If it is 5, adjust the color temperature. If it is 0 or 2, do not adjust the color temperature.
[0126] Optionally, the mobile phone also applies a drag-brightness lock color temperature strategy. When the ratio between the current display brightness value of the display screen of the terminal device and the brightness value corresponding to the current illumination is greater than the scene under the preset ratio, the color temperature is locked and not adjusted. Figure 4 The effect achieved after dragging.
[0127] It should be noted that the above is an example of importing the confidence of color temperature. Similarly, the confidence of the light value of the display can also be imported. For example, in an environment of 10 Lux or darker, the scenes that can be accurately calculated are distinguished from the scenes that cannot be accurately calculated at present, so that the screenshot algorithm reports values below 3 Lux, such as 0, 1, and 2.
[0128] In summary, based on the light leakage ratio and screenshot information, the scenes where the color temperature can be accurately calculated are distinguished from the scenes where it cannot be accurately calculated at present. The confidence parameter is assigned to the color temperature value after each screenshot compensation and passed to the upper layer. The upper layer will refer to the color temperature value and its confidence at the same time to decide how to adjust the screen color temperature. It can be adapted to various scenarios and set different gradients of confidence and screen color temperature adjustment strategies. In addition, the high-frequency PWM refresh rate and color temperature adaptation functions can coexist without the user having to make trade-offs and are not limited by the specific PWM frequency. Low-brightness PWM configuration is achieved, and the display can burn one less set of Gamma curves, reducing costs. The overall solution is simplified, and the screenshot algorithm is used for the full ambient brightness screen brightness, reducing the investment in software, hardware and testing manpower during project development.
[0129] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0130] Please refer to Figure 6 , which shows a structural block diagram of a display parameter adjustment device provided by an exemplary embodiment of the present application. The display parameter adjustment device 600 can be used in a terminal device. Figure 2 or Figure 3 All or part of the steps in the method provided by the illustrated embodiment are performed by the terminal device. The display parameter adjustment device 600 includes:
[0131] A first acquisition module 601 is used to acquire a parameter value to be adjusted and illumination information of the terminal device, wherein the parameter value to be adjusted is an adjustment value used when adjusting a display parameter of a display screen of the terminal device, and the illumination information includes brightness data corresponding to the display screen in a current display process;
[0132] A first determination module 602, configured to determine the credibility of the parameter value to be adjusted under the illumination information, wherein the credibility is used to indicate the accuracy of adjusting the display parameter of the display screen according to the parameter value to be adjusted;
[0133] The first adjustment module 603 is used to adjust the display parameters of the display screen according to the parameter value to be adjusted and the credibility.
[0134] In summary, the parameter value to be adjusted and the illumination information of the terminal device are obtained, the parameter value to be adjusted is the adjustment value used when adjusting the display parameters of the display screen of the terminal device, and the illumination information includes the brightness data corresponding to the display screen in the current display process; the credibility of the parameter value to be adjusted under the illumination information is determined, and the credibility is used to indicate the accuracy of adjusting the display parameters of the display screen according to the parameter value to be adjusted; and the display parameters of the display screen are adjusted according to the parameter value to be adjusted and the credibility. In an embodiment of the present application, when the terminal device needs to adjust a certain display parameter and obtains the parameter value to be adjusted that needs to be used, the illumination information is also obtained to determine the credibility corresponding to the parameter to be adjusted under the illumination information, so that the display parameters are adjusted according to the credibility and the parameter value to be adjusted, and the corresponding credibility is determined under different illumination information, so as to ensure that the credibility of the parameter value to be adjusted is taken into account when adjusting the display parameters, thereby improving the accuracy of adjusting the display parameters of the display screen.
[0135] Optionally, the first determining module 602 includes: a first determining unit and a second determining unit;
[0136] The first determining unit is used to determine the target threshold interval where the illumination information is located according to a preset threshold and the illumination information;
[0137] The second determining unit is used to determine the credibility of the parameter value to be adjusted according to a preset correspondence relationship between the credibility and the threshold range and the target threshold range.
[0138] Optionally, the illumination information includes at least one type of brightness data, and the preset threshold includes at least one threshold corresponding to each type of brightness data;
[0139] The first determining unit is further configured to:
[0140] Determine, according to each type of brightness data in the illumination information and at least one corresponding threshold value, a target threshold interval in which each type of brightness data is located;
[0141] The second determining unit is further configured to:
[0142] The credibility of the parameter value to be adjusted is determined according to the target threshold interval where each type of brightness data is located and the corresponding relationship.
[0143] Optionally, the at least one brightness data includes current ambient light intensity, the at least one threshold includes at least one ambient light intensity threshold, and the corresponding relationship includes a corresponding relationship between different ambient light intensity intervals and different credibility levels.
[0144] Optionally, the at least one ambient light intensity threshold includes a first ambient light threshold and a second ambient light threshold, and the first determining unit is further configured to:
[0145] Determine a target threshold interval where the current ambient light intensity lies according to the first ambient light threshold, the second ambient light threshold, and the current ambient light intensity;
[0146] The second determining unit is further configured to:
[0147] When the target threshold interval is an interval higher than the first ambient light threshold, or an interval lower than the second ambient light threshold, determining that the credibility of the parameter value to be adjusted is a first credibility; wherein the first ambient light threshold is greater than the second ambient light threshold;
[0148] When the target threshold interval is an interval higher than the second ambient light threshold, or an interval lower than the first ambient light threshold, it is determined that the credibility of the parameter value to be adjusted is the second credibility, and the first credibility is higher than the second credibility.
[0149] Optionally, the at least one brightness data includes the current ambient light intensity and other current brightness data, the other current brightness data includes at least one of the ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value, the at least one threshold includes at least one ambient light intensity threshold and at least one other threshold corresponding to the other brightness data, and the corresponding relationship includes a correspondence between multiple different intervals determined according to the ambient light intensity and the other brightness data and different credibility.
[0150] Optionally, the other current brightness data includes a current ratio of the current light leakage intensity of the display screen to the current ambient light intensity; the at least one other threshold also includes a light leakage ratio threshold;
[0151] The first determining unit is further configured to:
[0152] Determine, according to the at least one ambient light intensity threshold, the light leakage ratio threshold, the current ambient light intensity, and the current ratio, a first sub-target threshold interval in which the ambient light intensity is located, and determine a second sub-target threshold interval in which the current ratio is located;
[0153] The second determining unit is further configured to:
[0154] When the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage proportion threshold, the credibility of the parameter value to be adjusted is determined to be the first credibility; otherwise, the credibility of the parameter value to be adjusted is determined to be the second credibility, the first ambient light threshold is greater than the second ambient light threshold, and the first credibility is higher than the second credibility.
[0155] Optionally, the other current brightness data includes a current ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value; the at least one other threshold also includes a light leakage ratio threshold and a grayscale threshold;
[0156] The first determining unit is further configured to:
[0157] According to the at least one ambient light intensity threshold, the light leakage ratio threshold, the at least one grayscale card control threshold, the current ambient light intensity, the current ratio and the grayscale threshold, determine a first sub-target threshold interval where the ambient light intensity is located, determine a second sub-target threshold interval where the current ratio is located, and determine a third sub-target threshold interval where the current grayscale statistical value is located;
[0158] The second determining unit is further configured to:
[0159] When the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage proportion threshold, and the third sub-target threshold interval is an interval lower than the grayscale threshold, it is determined that the credibility of the parameter value to be adjusted is the first credibility; otherwise, it is determined that the credibility of the parameter value to be adjusted is the second credibility.
[0160] Optionally, the current grayscale statistics include grayscale values of RGB channels, and the grayscale thresholds include thresholds of the RGB channels, or,
[0161] The current grayscale statistics include the difference between the maximum and minimum grayscale values of the RGB three channels, and the grayscale threshold includes a grayscale difference threshold.
[0162] Optionally, the current illumination information includes current ambient light intensity, and the device further includes:
[0163] A second determination module, configured to determine whether a target setting operation is detected before determining the target threshold interval in which the illumination information is located according to the preset threshold and the illumination information, when the illumination information is less than or equal to the first preset threshold, the target setting operation being used to increase the brightness of the display screen;
[0164] The first determination module is further used to: determine the target threshold interval in which the illumination information is located according to a preset threshold and the illumination information when the target setting operation is not detected.
[0165] Optionally, when the illumination information is less than or equal to a first preset threshold, after determining whether a target setting operation is detected, the device further includes:
[0166] The first setting module is used to set the credibility of the parameter value to be adjusted to the second credibility when the target setting operation is detected.
[0167] Optionally, the first adjustment module includes: a first adjustment unit and a second adjustment unit;
[0168] The first adjustment unit is used to adjust the display parameter of the display screen to the parameter value to be adjusted when the credibility is higher than a preset credibility threshold;
[0169] The second adjustment unit is used to maintain the current display parameters of the display screen when the credibility is not higher than the preset credibility threshold.
[0170] Optionally, the first acquisition module includes: a first acquisition unit, a third determination unit, a second acquisition unit and a first calculation unit;
[0171] The first acquisition unit is used to acquire the current screenshot interface after receiving the screenshot instruction;
[0172] The third determining unit is used to determine the brightness interval that the display screen is currently in;
[0173] The second acquisition unit is used to acquire a calibration parameter corresponding to the brightness interval according to the brightness interval;
[0174] The first calculation unit is used to compensate each color channel of the current screenshot interface according to the calibration parameter, and calculate the compensated parameter value to be adjusted.
[0175] Please refer to Figure 7 , which is a structural diagram of another example of the display parameter adjustment device provided in the embodiment of the present application. Among them, the display parameter adjustment device 700 can be a terminal device, which can implement the functions in the method provided in the embodiment of the present application. Among them, the display parameter adjustment device 700 can be a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0176] In hardware implementation, the communication module may be a transceiver, which is integrated into the display parameter adjustment device 700 to form a communication interface 703 .
[0177] The display parameter adjustment device 700 includes at least one processor 701, which is used to implement or support the display parameter adjustment device 700 to implement the functions of the terminal device in the method provided in the embodiment of the present application. Exemplarily, the processor 701 can execute the steps of obtaining the parameter value to be adjusted and the illumination information of the terminal device, determining the credibility of the parameter value to be adjusted under the illumination information, and adjusting the display parameters of the display screen according to the parameter value to be adjusted and the credibility. Please refer to the detailed description in the method example for details, which will not be repeated here.
[0178] The display parameter adjustment device 700 may also include at least one memory 702 for storing program instructions and / or data. The memory 702 is coupled to the processor 701. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 701 may operate in coordination with the memory 702. The processor 701 may execute program instructions stored in the memory 702. At least one of the at least one memory may be included in the processor.
[0179] The display parameter adjustment device 700 may further include a communication interface 703, which is used to communicate with other devices through a transmission medium, so that the device in the display parameter adjustment device 700 can communicate with other devices. Exemplarily, the other device may be a network side device. The processor 701 may use the communication interface 703 to send and receive data. The communication interface 703 may specifically be a transceiver.
[0180] The specific connection medium between the communication interface 703, the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 In the embodiment, the memory 702, the processor 701 and the communication interface 703 are connected via a bus 704. Figure 7 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0181] In the embodiment of the present application, the processor 701 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.
[0182] In an embodiment of the present application, the memory 702 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.
[0183] Optionally, an embodiment of the present application further provides a terminal device, the terminal device includes a processor and a memory, the memory stores a computer program, and the computer program is executed by the processor to implement all or part of the steps performed by the terminal device in the display parameter adjustment method described in the above embodiments.
[0184] Optionally, an embodiment of the present application further provides a computer-readable medium storing a computer program, which is executed by a processor to implement all or part of the steps performed by a terminal device in the method for adjusting display parameters described in the above embodiments.
[0185] Optionally, an embodiment of the present application also provides a computer program product, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the display parameter adjustment method described in the above embodiments, and all or part of the steps executed by the terminal device.
[0186] It should be noted that: when the device provided in the above embodiment performs the control of the terminal device, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0187] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0188] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0189] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting display parameters, characterized in that: Applied to a terminal device, the method comprises: Acquire a parameter value to be adjusted and illumination information of the terminal device, wherein the parameter value to be adjusted is an adjustment value used when adjusting a display parameter of a display screen of the terminal device, and the illumination information includes brightness data corresponding to the display screen in a current display process; Determining the credibility of the parameter value to be adjusted under the illumination information, wherein the credibility is used to indicate the accuracy of adjusting the display parameter of the display screen according to the parameter value to be adjusted; The display parameters of the display screen are adjusted according to the parameter value to be adjusted and the credibility.
2. The method according to claim 1, characterized in that The determining the credibility of the parameter value to be adjusted under the illumination information includes: Determine a target threshold interval where the illumination information is located according to a preset threshold and the illumination information; The credibility of the parameter value to be adjusted is determined according to the corresponding relationship between the preset credibility and the threshold range and the target threshold range.
3. The method according to claim 2, characterized in that The illumination information includes at least one type of brightness data, and the preset threshold includes at least one threshold corresponding to each type of brightness data; The determining, according to the preset threshold value and the illumination information, a target threshold interval in which the illumination information is located includes: Determine, according to each type of brightness data in the illumination information and at least one corresponding threshold value, a target threshold interval in which each type of brightness data is located; The determining the credibility of the parameter value to be adjusted according to the correspondence between the preset credibility and the threshold range and the target threshold range includes: The credibility of the parameter value to be adjusted is determined according to the target threshold interval where each type of brightness data is located and the corresponding relationship.
4. The method according to claim 3, characterized in that The at least one brightness data includes the current ambient light intensity, the at least one threshold includes at least one ambient light intensity threshold, and the corresponding relationship includes a corresponding relationship between different ambient light intensity intervals and different credibility.
5. The method according to claim 4, characterized in that The at least one ambient light intensity threshold comprises a first ambient light threshold and a second ambient light threshold, and determining, according to each type of brightness data in the illumination information and at least one corresponding threshold, a target threshold interval in which each type of brightness data is located comprises: Determine a target threshold interval where the current ambient light intensity lies according to the first ambient light threshold, the second ambient light threshold, and the current ambient light intensity; The determining the credibility of the parameter value to be adjusted according to the target threshold interval of each type of brightness data and the corresponding relationship includes: When the target threshold interval is an interval higher than the first ambient light threshold, or an interval lower than the second ambient light threshold, determining that the credibility of the parameter value to be adjusted is a first credibility; wherein the first ambient light threshold is greater than the second ambient light threshold; When the target threshold interval is an interval higher than the second ambient light threshold, or an interval lower than the first ambient light threshold, it is determined that the credibility of the parameter value to be adjusted is the second credibility, and the first credibility is higher than the second credibility.
6. The method according to claim 3, characterized in that The at least one brightness data includes the current ambient light intensity and other current brightness data, the other current brightness data includes at least one of the ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value, the at least one threshold includes at least one ambient light intensity threshold and at least one other threshold corresponding to the other brightness data, and the corresponding relationship includes a corresponding relationship between multiple different intervals and different credibility levels determined according to the ambient light intensity and the other brightness data.
7. The method according to claim 6, characterized in that The current other brightness data includes the current ratio of the current light leakage intensity of the display screen to the current ambient light intensity; the at least one other threshold also includes a light leakage ratio threshold; The step of determining, according to each type of brightness data in the illumination information and at least one corresponding threshold value, a target threshold interval in which each type of brightness data is located includes: Determine, according to the at least one ambient light intensity threshold, the light leakage ratio threshold, the current ambient light intensity, and the current ratio, a first sub-target threshold interval in which the ambient light intensity is located, and determine a second sub-target threshold interval in which the current ratio is located; The determining the credibility of the parameter value to be adjusted according to the target threshold interval of each type of brightness data and the corresponding relationship includes: When the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage proportion threshold, the credibility of the parameter value to be adjusted is determined to be the first credibility; otherwise, the credibility of the parameter value to be adjusted is determined to be the second credibility, the first ambient light threshold is greater than the second ambient light threshold, and the first credibility is higher than the second credibility.
8. The method according to claim 6, characterized in that The other current brightness data includes a current ratio of the current light leakage intensity of the display screen to the current ambient light intensity and the current grayscale statistical value; The at least one other threshold value also includes a light leakage ratio threshold value and a grayscale threshold value; The step of determining, according to each type of brightness data in the illumination information and at least one corresponding threshold value, a target threshold interval in which each type of brightness data is located includes: According to the at least one ambient light intensity threshold, the light leakage ratio threshold, the at least one grayscale card control threshold, the current ambient light intensity, the current ratio and the grayscale threshold, determine a first sub-target threshold interval where the ambient light intensity is located, determine a second sub-target threshold interval where the current ratio is located, and determine a third sub-target threshold interval where the current grayscale statistical value is located; The determining the credibility of the parameter value to be adjusted according to the target threshold interval of each type of brightness data and the corresponding relationship includes: When the first sub-target threshold interval is an interval higher than the second ambient light threshold and lower than the first ambient light threshold, and the second sub-target threshold interval is an interval lower than the light leakage proportion threshold, and the third sub-target threshold interval is an interval lower than the grayscale threshold, it is determined that the credibility of the parameter value to be adjusted is the first credibility; otherwise, it is determined that the credibility of the parameter value to be adjusted is the second credibility.
9. The method according to claim 8, characterized in that The current grayscale statistics include grayscale values of the RGB three channels, and the grayscale threshold includes the thresholds of the RGB three channels, or, The current grayscale statistics include the difference between the maximum and minimum grayscale values of the RGB three channels, and the grayscale threshold includes a grayscale difference threshold.
10. The method according to any one of claims 2 to 9, characterized in that: The current illumination information includes the current ambient light intensity. Before determining the target threshold interval where the illumination information is located according to the preset threshold and the illumination information, the method further includes: In a case where the illumination information is less than or equal to a first preset threshold, determining whether a target setting operation is detected, the target setting operation being used to increase the brightness of the display screen; The determining, according to the preset threshold value and the illumination information, a target threshold interval in which the illumination information is located includes: In a case where the target setting operation is not detected, a target threshold interval in which the illumination information is located is determined according to a preset threshold and the illumination information.
11. The method according to claim 10, characterized in that After determining whether a target setting operation is detected when the illumination information is less than or equal to a first preset threshold, the method further includes: When the target setting operation is detected, the credibility of the parameter value to be adjusted is set to the second credibility.
12. The method according to any one of claims 1 to 9, characterized in that: The adjusting the display parameter of the display screen according to the parameter value to be adjusted and the credibility includes: When the credibility is higher than a preset credibility threshold, adjusting the display parameter of the display screen to the parameter value to be adjusted; When the credibility is not higher than the preset credibility threshold, the current display parameters of the display screen are maintained.
13. The method according to any one of claims 1 to 9, characterized in that: The obtaining of the parameter value to be adjusted includes: After receiving the screenshot command, obtain the current screenshot interface; Determining a current brightness range of the display screen; According to the brightness interval, obtaining a calibration parameter corresponding to the brightness interval; The various color channels of the current screenshot interface are compensated according to the calibration parameters, and the compensated parameter values to be adjusted are calculated.
14. A display parameter adjustment device, characterized in that: Applied to a terminal device, the device comprises: A first acquisition module, used to acquire a parameter value to be adjusted and illumination information of the terminal device, wherein the parameter value to be adjusted is an adjustment value used when adjusting a display parameter of a display screen of the terminal device, and the illumination information includes brightness data corresponding to the display screen in a current display process; A first determination module, used to determine the credibility of the parameter value to be adjusted under the illumination information, wherein the credibility is used to indicate the accuracy of adjusting the display parameter of the display screen according to the parameter value to be adjusted; The first adjustment module is used to adjust the display parameters of the display screen according to the parameter value to be adjusted and the credibility.
15. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is executed by the processor to implement the display parameter adjustment method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the method for adjusting display parameters as described in any one of claims 1 to 13.