Display control method and device and storage medium
Through grayscale and color gamut compensation technology, the problem of unclear display content on the mobile phone or tablet computer screen in the sun is solved, improving readability and user experience, while saving power to protect the screen.
Patent Information
- Application Number
- CN202310739298.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
When using a mobile phone or tablet computer in the sun, due to the influence of ambient light, the screen reflection, refraction and diffuse reflection will cause the display content to be unclear, reducing the user experience. The existing technology mainly solves the problem by increasing the screen brightness, but the effect is limited and power consumption is limited. Increase, affecting screen life.
By obtaining the current ambient light illumination, determining the ambient light contrast, and performing grayscale compensation on the display content based on the grayscale compensation curve, improving the contrast between grayscales under light, and optimizing color gamut compensation to improve the readability of the screen display content.
It improves the readability of the screen display content under light, saves the power required to increase the screen brightness, protects the screen, and improves the user experience.
Smart Images

Figure CN119169976A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display control, and in particular to a display control method, device and storage medium. Background Art
[0002] With the development of information technology and network technology, tablet computers are increasingly entering people's lives, and mobile phones are no longer just communication tools. Mobile phones and tablet computers have become mobile display devices for people to enjoy entertainment and surf the Internet anytime and anywhere. People use display devices in different places, including indoor and outdoor environments. For example, when using a mobile phone outdoors, due to the influence of ambient light and the certain reflectivity of the mobile phone screen itself, the mobile phone screen will refract, reflect, and diffusely reflect light under the sun, so that users cannot see the screen clearly through the light emitted by the screen backlight, and the mobile phone display content is not clear, which reduces the user experience.
[0003] The current solution to the problem of screen readability in sunlight is mainly to increase the brightness of the mobile phone screen, which has no effect on unclear content and has a great impact on the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a display control method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a display control method is provided, which is applied to a terminal and includes:
[0006] Obtain the current ambient light illumination; based on the current ambient light illumination, determine the current ambient light contrast, and based on the current ambient light contrast, determine the current grayscale value of the content displayed in the terminal; based on the correspondence between the ambient light illumination and the grayscale compensation curve, determine the current grayscale compensation curve that matches the current ambient light illumination, the grayscale compensation curve characterizing the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and having a corresponding relationship with the ambient light illumination; based on the current grayscale compensation curve, determine the current compensated grayscale value corresponding to the current grayscale value; based on the current grayscale compensation value, perform grayscale compensation on the current grayscale value of the displayed content, and display the displayed content after grayscale compensation.
[0007] In one implementation, the grayscale compensation curve is determined in the following manner:
[0008] Determine a target grayscale value of the black field brightness in a dark environment under a target ambient light illumination, wherein the target ambient light illumination is a preset ambient light illumination corresponding to a grayscale compensation curve to be determined; divide a grayscale value less than or equal to the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a first step length as a grayscale value before compensation; divide a grayscale value greater than the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a second step length as a compensated grayscale value, wherein the number of the plurality of grayscale values divided with the second step length is the same as the number of the plurality of grayscale values divided with the first step length; remap the grayscale value before compensation into a compensated grayscale value, and obtain a grayscale compensation curve characterizing a mapping relationship between the grayscale value before compensation and the compensated grayscale value.
[0009] In one embodiment, the first step size includes multiple identical or different step sizes, and the second step size includes multiple identical or different step sizes; among the multiple grayscale values divided by the second step size, the brightness values corresponding to two adjacent grayscale values divided by the same second step size are different.
[0010] In one embodiment, the display control method includes:
[0011] Determine the color gamut parameters of the display content, and based on the correspondence between the ambient light illumination and the color gamut compensation coefficient, determine the current color gamut compensation coefficient corresponding to the current ambient light illumination; compensate the color gamut parameters based on the current color gamut compensation coefficient, and display the display content after color gamut compensation.
[0012] In one embodiment, the method further comprises:
[0013] Determine whether the current ambient light level is above the ambient light threshold.
[0014] According to a second aspect of an embodiment of the present disclosure, there is provided a display control device, including:
[0015] Detection module, used to obtain the current ambient light intensity;
[0016] A processing module is used to determine the current ambient light contrast based on the current ambient light illumination, and determine the current grayscale value of the content displayed in the terminal based on the current ambient light contrast; determine a current grayscale compensation curve that matches the current ambient light illumination based on the correspondence between the ambient light illumination and the grayscale compensation curve, the grayscale compensation curve characterizing the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and having a corresponding relationship with the ambient light illumination; determine a current compensated grayscale value corresponding to the current grayscale value based on the current grayscale compensation curve; perform grayscale compensation on the current grayscale value of the displayed content based on the current grayscale compensation value, and display the displayed content after grayscale compensation.
[0017] In one embodiment, the grayscale compensation curve is determined in the following manner: determine a target grayscale value of the black field brightness in a dark environment under a target ambient light illumination, wherein the target ambient light illumination is a preset ambient light illumination corresponding to the grayscale compensation curve to be determined; divide a grayscale value less than or equal to the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a first step length as a grayscale value before compensation; divide a grayscale value greater than the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a second step length as a compensated grayscale value, the number of the plurality of grayscale values divided with the second step length being the same as the number of the plurality of grayscale values divided with the first step length; remap the grayscale value before compensation into a compensated grayscale value, and obtain a grayscale compensation curve characterizing the mapping relationship between the grayscale value before compensation and the compensated grayscale value.
[0018] In one embodiment, the first step size includes multiple identical or different step sizes, and the second step size includes multiple identical or different step sizes; among the multiple grayscale values divided by the second step size, the brightness values corresponding to two adjacent grayscale values divided by the same second step size are different.
[0019] In one embodiment, the processing module is further configured to:
[0020] Determine the color gamut parameters of the display content, and based on the correspondence between the ambient light illumination and the color gamut compensation coefficient, determine the current color gamut compensation coefficient corresponding to the current ambient light illumination; compensate the color gamut parameters based on the current color gamut compensation coefficient, and display the display content after color gamut compensation.
[0021] In one embodiment, the detection module is further used for:
[0022] Determine whether the current ambient light level is above the ambient light threshold.
[0023] According to a third aspect of an embodiment of the present disclosure, there is provided a display control device, including:
[0024] A processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the display control method described in the first aspect or any one of the embodiments of the first aspect.
[0025] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the display control method described in the first aspect or any one of the first aspects.
[0026] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: based on the corresponding relationship between the current ambient light contrast and the ambient light illumination and the grayscale compensation curve, the current grayscale compensation curve of the current ambient light illumination is matched. Based on the grayscale compensation curve value, the current grayscale value of the displayed content is compensated for accordingly, which can improve the contrast between grayscales under illumination, improve the readability of the screen display content under illumination, and optimize the user experience.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0029] Figure 1 The present invention is a flow chart of a display control method for grayscale compensation according to an exemplary embodiment.
[0030] Figure 2 The invention is a flow chart showing a method for determining a grayscale compensation curve according to an exemplary embodiment.
[0031] Figure 3 The figure is a schematic diagram showing grayscale value division according to an exemplary embodiment.
[0032] Figure 4 The present invention is a flow chart of a display control method for color gamut compensation according to an exemplary embodiment.
[0033] Figure 5 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0034] Figure 6 The invention is a block diagram of a display control device according to an exemplary embodiment.
[0035] Figure 7 The invention is a block diagram of a device for display control according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0037] The display control method provided by the present disclosure is applied to the scene of controlling the display of the content displayed on the display screen. Among them, the display screen of the present disclosure can be a mobile phone screen, a computer screen, a smart bracelet screen, and other electronic devices with screen display function.
[0038] Among them, when using the display device under different lighting conditions, the clarity of the screen display content seen by the human eye will also change due to the different illumination. For example, when using the terminal outdoors, due to the influence of ambient light and the certain reflectivity of the terminal screen itself, the mobile phone screen will refract, reflect, and diffusely reflect light under the sun, so the user will not be able to see the screen clearly through the light emitted by the screen backlight, resulting in unclear display content of the terminal, and a certain degree of distortion in color, etc., which reduces the user experience. In particular, when the user uses the terminal in the sun, due to strong light exposure and screen reflection, the readability of the terminal screen becomes low, and the color and other aspects are seriously distorted.
[0039] In the related technology, the clarity of displayed content under different lighting conditions is usually improved by adjusting the brightness of the display screen. However, this method has limited effect on the screen display content, and will increase the power consumption of the display device in high-light environments. In addition, increasing the power to adjust the screen brightness will easily reduce the screen life and shorten the device's service life.
[0040] In view of this, the embodiment of the present disclosure provides a display control method, which controls the display content of the screen based on the ambient contrast under different illuminations to improve the readability of the screen display content under illumination. For example, the compensation degree of the screen display content under different illuminations is determined according to the ambient light contrast, and the sunlight screen compensation algorithm is designed more scientifically to improve the readability of the screen display content under sunlight.
[0041] In one embodiment, in the display control method provided by the embodiment of the present disclosure, for the screen display content, based on the ambient contrast under different light illuminations, the grayscale values under different ambient light illuminations are obtained, the corresponding grayscale value mapping is performed according to the ambient light illumination, and the compensated grayscale value is displayed to improve the readability of the screen display content under lighting.
[0042] In one embodiment, in the display control method provided by the embodiment of the present disclosure, color gamut compensation is performed for the screen display content based on the current ambient light illumination, and the display content after color gamut compensation is displayed to offset the color gamut attenuation caused by the ambient light, and color restoration is performed to improve the readability of the screen display content under light.
[0043] Compared with the traditional method of increasing screen brightness to improve screen readability under different illumination, the method provided by the present disclosure processes the screen display content by compensating the grayscale value instead of raising the screen brightness, which not only saves the extra power consumed by raising the screen brightness, but also protects the screen. In addition, compensation for different grayscale values makes the display content clearer and more recognizable to the human eye.
[0044] Figure 1 is a flow chart of a display control method for grayscale compensation according to an exemplary embodiment. Figure 1 As shown, the display control method for grayscale compensation is used in a terminal and includes the following steps.
[0045] In step S11, the current ambient light illumination is obtained.
[0046] Among them, in the embodiment of the present disclosure, the ambient light illumination can be obtained based on the light sensing element (light sensing sensor) in the terminal.
[0047] For example, the current ambient light illumination is obtained by the terminal according to the surrounding environment. When the environment changes, the current ambient light illumination also changes accordingly, and the impact on the image of the displayed content also changes. In the embodiment of the present disclosure, the current ambient light illumination can be obtained in real time.
[0048] In step S12, the current ambient light contrast is determined based on the current ambient light illumination, and the current grayscale value of the content displayed in the terminal is determined based on the current ambient light contrast.
[0049] In the disclosed embodiment, the current ambient light contrast is the ratio of the white field brightness to the black field brightness under the current illumination. Based on the current ambient contrast, the grayscale value in a dark environment corresponding to the black field brightness under the current illumination can be calculated according to the gamma2.2 curve characteristics as the current grayscale value.
[0050] Among them, in the embodiment of the present disclosure, the current environment contrast will decrease as the ambient light illumination increases, and determining the current grayscale value of the displayed content based on the current ambient light contrast can be used to determine the relationship between the ambient light illumination and the current grayscale value.
[0051] In step S13, based on the corresponding relationship between the ambient light illumination and the grayscale compensation curve, a current grayscale compensation curve matching the current ambient light illumination is determined.
[0052] The grayscale compensation curve represents the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and has a corresponding relationship with the ambient light illumination.
[0053] In the embodiment of the present disclosure, the grayscale compensation curve may be predetermined. In the embodiment of the present disclosure, the grayscale compensation curve corresponding to different ambient light illuminations may be predetermined.
[0054] The grayscale value before compensation in the embodiment of the present disclosure can be understood as the grayscale value that needs to be compensated for. The grayscale value before compensation can be a preset grayscale value, for example, a grayscale value that cannot be distinguished by human eyes when displaying content on the screen.
[0055] The compensated grayscale value in the embodiment of the present disclosure can be understood as the grayscale value after grayscale compensation. The compensated grayscale value can be a preset grayscale value, for example, a grayscale value that can be distinguished by human eyes when displaying content on the screen.
[0056] In step S14, based on the current grayscale compensation curve, a current compensated grayscale value corresponding to the current grayscale value is determined.
[0057] In the embodiment of the present disclosure, the current grayscale value is used as the grayscale value before compensation, and the grayscale value before compensation corresponding to the current grayscale value on the current grayscale compensation curve matching the current ambient light illumination is used as the current compensated grayscale value.
[0058] Based on the mapping relationship between the grayscale value before compensation and the compensated grayscale value, the compensated grayscale value mapped from the grayscale value before compensation is used as the current compensated grayscale value.
[0059] In step S15 , grayscale compensation is performed on the current grayscale value of the display content based on the current grayscale compensation value, and the display content after grayscale compensation is displayed.
[0060] In the embodiment of the present disclosure, grayscale compensation is performed on the current grayscale value of the displayed content based on the current grayscale compensation value, which can be understood as taking the current grayscale compensation value as the grayscale value of the displayed content.
[0061] In the disclosed embodiment, a corresponding grayscale value compensation curve is selected according to different ambient light illumination and grayscale values to perform corresponding grayscale value compensation, wherein the ambient light illumination can reflect the ambient contrast, so that the display content after grayscale compensation is the display content of adjacent grayscales that can be distinguished by the human eye under the current ambient contrast, thereby improving the readability of the screen display content.
[0062] In the above embodiment, the grayscale value compensation process is based on the determination of the grayscale compensation curve. The grayscale compensation curve is obtained according to the ambient contrast and the current grayscale value. It can accurately change the grayscale value according to the current ambient light, thereby improving the human eye's recognition of the displayed content. The process of determining the grayscale compensation curve is described below.
[0063] In the embodiment of the present disclosure, a plurality of different ambient light illuminances may be preset, and a grayscale compensation curve may be determined for each of the plurality of different ambient light illuminances. In the embodiment of the present disclosure, for the convenience of description, the ambient light illuminance for which the grayscale compensation curve is currently to be determined is referred to as the target ambient light illuminance. The implementation process of determining the grayscale compensation curve for each of the plurality of different ambient light illuminances is similar, except that the target ambient light illuminances are different.
[0064] Figure 2 The invention is a flow chart showing a method for determining a grayscale compensation curve according to an exemplary embodiment.
[0065] In step S21 , a target grayscale value of black field brightness in a dark environment under a target ambient light illumination is determined.
[0066] The target ambient light illumination is a preset ambient light illumination corresponding to the grayscale compensation curve to be determined.
[0067] In the embodiment of the present disclosure, the black field brightness under the target ambient light illumination may be predetermined, wherein the black field brightness under different target light illuminations may be determined under different target ambient light illuminations.
[0068] Among them, in a dark environment, the contrast value of the white field and black field brightness data is high, that is, the environmental contrast is also high. The target grayscale value of the black field brightness under the target illumination in a dark environment is the minimum grayscale value standard for grayscale compensation.
[0069] In the embodiment of the present disclosure, the target grayscale value in a dark environment corresponding to the black field brightness under the target illumination is selected as the minimum grayscale value standard required for grayscale compensation, so that the degree of distinction of adjacent grayscale values by the human eye under different light illuminations can reach the degree of distinction of the target grayscale value in a dark environment under the black field brightness under the target illumination.
[0070] In step S22, the grayscale value less than or equal to the target grayscale value under the target ambient light illumination is divided into a plurality of grayscale values by a first step length as the grayscale values before compensation.
[0071] Among them, the grayscale value divided by the first step length under the target illumination is less than or equal to the grayscale value in a dark environment corresponding to the black field brightness under the target illumination, that is, less than or equal to the minimum grayscale value under the target illumination that can be distinguished by the human eye.
[0072] In step S23, the grayscale value greater than the target grayscale value under the target ambient light illumination is divided into multiple grayscale values with a second step size as compensation grayscale values, and the number of the multiple grayscale values divided with the second step size is the same as the number of the multiple grayscale values divided with the first step size.
[0073] In the embodiment of the present disclosure, by dividing the first step length and the second step length, and the number of multiple grayscale values of the first step length and the second step length is the same, each grayscale value before compensation has a corresponding compensated grayscale value. The first step length and the second step length are the value intervals of the grayscale value before compensation and the compensated grayscale value, respectively. The number of multiple grayscale values divided by the second step length is the same as the number of multiple grayscale values divided by the first step length, ensuring that the grayscale values that need to be compensated for grayscale will be compensated accordingly, and the grayscale values that do not need to be compensated for grayscale will not be compensated for grayscale according to the grayscale compensation curve in the above embodiment.
[0074] In the embodiment of the present disclosure, the compensated grayscale value is greater than or equal to the grayscale value in a dark environment corresponding to the black field brightness under the target illumination, that is, the brightness values of adjacent grayscales in the compensated grayscale value can be distinguished by the human eye.
[0075] In step S24, the pre-compensation grayscale value is remapped to the compensated grayscale value to obtain a grayscale compensation curve representing the mapping relationship between the pre-compensation grayscale value and the compensated grayscale value.
[0076] In the disclosed embodiment, the target ambient light illumination corresponding to the grayscale compensation curve is determined, and the grayscale value of the display content under the target light illumination is obtained according to the target light illumination as the grayscale value before compensation, and the grayscale value compensation curve acts on the grayscale value before compensation. Among them, the grayscale value before compensation is remapped to the compensated grayscale value, that is, the target grayscale value lower than the black field brightness under the target light illumination in a dark environment is remapped to obtain a grayscale value greater than or equal to the target grayscale value of the black field brightness under the target light illumination in a dark environment. The grayscale compensation curve under the target ambient light illumination can be obtained based on the relationship between the grayscale values before and after the grayscale value remapping under the target ambient light illumination.
[0077] Figure 3 FIG. 1 is a schematic diagram showing a grayscale value division according to an exemplary embodiment. Figure 3 The range of the first step length and the second step length division is shown as 0-255 grayscale values, and the first step length and the second step length are based on the grayscale value limits that need to be compensated as shown in the figure, and there is no repeated value range between the two.
[0078] In the figure, mΔ is the current grayscale value interval divided by the first step length.
[0079] Wherein, mΔ=m2-m1, m2 is the larger grayscale value in the same step length in the first step length of division, and m1 is the smaller grayscale value in the same step length in the first step length. Each mΔ can be the same as shown in the figure, or can be different.
[0080] In the disclosed embodiment, the grayscale value divided by the first step length is used as the current grayscale value, that is, the grayscale value before compensation under the current illumination. The current grayscale value is less than the grayscale value under the dark environment corresponding to the black field brightness under the current illumination. The first step length includes multiple identical or different step lengths, that is, the current grayscale value can be divided into multiple segments, and the step length of each segment can be different.
[0081] In the figure, nΔ is the compensation grayscale value interval divided by the second step size.
[0082] Wherein, nΔ=n2-n1, n2 is the larger grayscale value in the same step in the divided second step, and n1 is the smaller grayscale value in the same step in the second step. Each nΔ may be the same as shown in the figure, or may be different.
[0083] In the embodiment of the present disclosure, the grayscale value divided by the second step length is used as the compensated grayscale value, that is, the compensated grayscale value after the current grayscale value is compensated according to the grayscale compensation curve under the current illumination. Among them, the compensated grayscale value is greater than or equal to the grayscale value in a dark environment corresponding to the black field brightness under the current illumination. The second step length includes multiple identical or different step lengths, that is, the compensated grayscale value can be divided into multiple segments, and the step length of each segment can be different.
[0084] The dotted line in the figure shows the grayscale value limit that needs to be compensated.
[0085] In the disclosed embodiment, the grayscale value limit is the grayscale value in a dark environment corresponding to the black field brightness under the current illumination.
[0086] In the disclosed embodiment, by dividing the first step length and the second step length, the grayscale values of different step lengths are processed differently, so that the grayscale values before compensation divided by the first step length can be remapped to the corresponding compensated grayscale values divided by the second step length. Among the multiple grayscale values divided by the second step length, the brightness values corresponding to the two adjacent grayscale values divided by the same second step length are different, so that the compensated grayscale values after grayscale compensation can also be distinguished and no compensation error will occur. For example, at 6000 lux, when there are grayscale values of 1 and 2 in the first step length that need to be grayscale compensated, so that the compensated grayscale values are 71 and 72, if the multiple grayscale values divided by the first step length and the two adjacent grayscale values divided by the second step length are the same, it will cause the grayscale values corresponding to 1 and 2 to be mapped to 71 at the same time, or 1 to be mapped to 71 and 72, or 1 to be mapped to 73, so that the grayscale compensation does not achieve the predetermined effect and cannot be effectively compensated. The above-mentioned grayscale value division can avoid the compensation error in the grayscale compensation process in the example. The division of the grayscale values of the first step length and the second step length involved in the embodiment of the present disclosure can also be applied to situations under other light illuminations other than 6000 lux in the example.
[0087] The embodiment of the present disclosure will now describe the process of determining the grayscale compensation curve involved in the above embodiment in combination with practical applications.
[0088] In an exemplary embodiment, the CS2000-ACR module can be used to measure the brightness data of the black field and the white field under different ambient light illuminations. The CS2000 measurement can take into account the impact of ambient light on the screen, which is closer to the actual perception of the human eye, thereby obtaining the ambient light contrast of the screen under different illuminations. As shown in Table 1 below, the brightness data of black and white images under dark environments, 6000lux, 8000lux, 10000lux and even higher illuminations are measured. Since the CS2000 has taken the ambient light factor into account during measurement, the ACR calculation formula is as follows, where Lwhite is the white field brightness and Lblack is the black field brightness:
[0089]
[0090] Table 1
[0091]
[0092] It can be seen from the data in Table 1 that as the ambient light illumination increases, the ambient light contrast gradually decreases, and the smaller the ambient light contrast value. Among them, different illuminances such as 6000lux and 8000lux are not fixed values in this embodiment. The value and spacing value of the illuminance to be measured can also be changed according to the situation to measure the relationship between the ambient light contrast and the illumination under different illuminances. Based on the current ambient light illumination, the current ambient light contrast is determined. In Table 1, when the ambient light illumination is 6000lux, the black field brightness (Lb) under the current illumination is 30nit, indicating that when the ambient light illumination is higher than 6000lux, the black field below 30nit and the black field at 30nit have the same human eye recognition effect. It can be concluded that the grayscale value further calculated in the following embodiment has the same recognition effect in the human eye.
[0093] In an exemplary embodiment, it can be seen from Table 1 in the above embodiment that the black field brightness is significantly improved under different illuminations. According to the gamma2.2 curve characteristics, the grayscale value in a dark environment corresponding to the black field brightness under each illumination is calculated respectively, where L_(b_lux) is the black field brightness under different illuminations, and L_(w_0) is the white field brightness under a dark environment. The grayscale value Target_Gray corresponding to the black field brightness under the current illumination in a dark environment can be calculated by the following formula:
[0094]
[0095] Taking the black field brightness of 30nit under 6000lux as an example, it can be calculated through the formula in the above embodiment that the Target_Gray value is 70, and the black field brightness under 6000lux is equivalent to the brightness of 70 grayscale in a dark environment, that is, when the ambient light is 6000lux, the human eye will not be able to distinguish the pixel information below 70 grayscale. In this case, the grayscale value needs to be further processed so that the grayscale value reaches a value that can be distinguished by the human eye, thereby improving the visual contrast of adjacent grayscale values of the displayed content.
[0096] In an exemplary embodiment, according to the data obtained in Table 1 of the embodiment of the present disclosure, the grayscale value is remapped for the ambient light contrast and the corresponding grayscale value obtained under different illuminations, so that the brightness values of adjacent grayscales can be distinguished by the human eye. For different illuminations, the corresponding grayscale value remapping curve Cure_n can be obtained, as shown in Table 2 below:
[0097] Table 2
[0098]
[0099]
[0100] In the disclosed embodiment, different illuminances are not fixed values such as 6000lux and 8000lux, and can also be measured and calculated under other illuminances. Through this embodiment, a grayscale value compensation curve corresponding to the grayscale value before compensation can be obtained under the target ambient illuminance, and the grayscale value before compensation can be remapped for grayscale value compensation. Among them, each curve in Table 2 has different remapping parameters corresponding to the grayscale value under different illuminances, so that the grayscale value is remapped differently under different illuminances. For example, at 6000lux, the remapping curve corresponding to the grayscale value of 0-70 under 6000lux can be obtained through the steps in the above embodiment, and the grayscale of 0-70 is remapped, while brightening the dark information, the detail information of the original picture is maintained, so that under this ambient illumination, the grayscale value of 0-70 grayscale is increased to above 70 and the compensated grayscale values are different, thereby improving the contrast of adjacent grayscales visible to the human eye. For example, at 6000 lux, the grayscale values of 1 and 2 that cannot be distinguished can be mapped to grayscale values of 71 and 72 respectively, and the human eye can distinguish the grayscale values that were originally indistinguishable. The grayscale compensation curve involved in this embodiment can be applied to grayscale compensation of grayscale values under 8000 lux, 10000 lux or other light intensities.
[0101] In the embodiment of the present disclosure, the grayscale value is determined by using the value of the environmental contrast, and grayscale compensation is performed on the grayscale values under different illuminations, thereby brightening the dark information and restoring the brightness difference between adjacent grayscales to the greatest extent, maintaining the human eye distinguishability between the grayscales, and improving the readability of the screen display content.
[0102] In the display control method provided in the embodiment of the present disclosure, the color gamut of the displayed content can be compensated by using color gamut compensation to reduce the distortion of colors visible to the human eye under different lighting conditions.
[0103] Figure 4 The present invention is a flow chart of a display control method for color gamut compensation according to an exemplary embodiment.
[0104] In step S41, the color gamut parameters of the displayed content are determined.
[0105] For example, the color gamut parameter of the displayed content represents the original color display effect of the screen displayed content, which is related to the parameters of the display screen itself and the original color of the displayed content. Among them, the color gamut parameter of the displayed content is used as the effect benchmark for color gamut compensation.
[0106] In step S42, based on the correspondence between the ambient light illumination and the color gamut compensation coefficient, a current color gamut compensation coefficient corresponding to the current ambient light illumination is determined.
[0107] In the disclosed embodiment, as the ambient light illuminance increases, the display color gamut range decreases, and the corresponding color gamut compensation coefficient increases accordingly, and the color gamut compensation coefficient can be used to reduce screen distortion caused by the increase in ambient light illuminance. Among them, the current color gamut compensation coefficient is determined based on the ambient light illuminance, and acts on the color gamut of the displayed content under the current ambient light illuminance, so that the current color gamut of the displayed content perceived by the human eye is consistent with the original color gamut parameters of the displayed content.
[0108] In step S43, the color gamut parameter is compensated based on the current color gamut compensation coefficient, and the display content after the color gamut compensation is displayed.
[0109] In the embodiment of the present disclosure, the color gamut parameter is the original color gamut parameter of the displayed content, and the compensated color gamut parameter is the color gamut perceived by the human eye.
[0110] In the disclosed embodiment, the effect of introducing ambient light on the color gamut of the screen is taken into consideration, and different color gamut compensation coefficients are set under different ambient light illuminations. The color gamut compensation coefficients are used to perform color gamut compensation on the color gamut of the displayed content, and the compensated content is displayed to offset the color gamut attenuation caused by the ambient light, reduce color distortion, and achieve color restoration display.
[0111] The corresponding relationship between ambient light illumination and color gamut compensation coefficient can be determined in the following manner:
[0112] In an exemplary embodiment, the CS2000-ACR module can be used to measure the color gamut changes under different ambient lights using the implementation scheme for obtaining the ambient contrast involved in the above embodiment. As the ambient light intensity increases, the color gamut proportion measured by CS2000 gradually decreases, indicating that the color of the mobile phone screen perceived by the human eye will become lighter as the ambient light becomes stronger, and the display color gamut is reduced. It can be obtained that as the color gamut gradually decays as the ambient light becomes stronger, the color gamut is reduced to the color gamut change of the display content perceived by the human eye under different ambient lights. For example, when a picture is bright red, when the ambient light illumination increases to a certain level, the bright red picture will become light red or other colors in the human eye's perception and cannot display the original bright red, that is, the human eye cannot perceive the original color gamut of the displayed content, resulting in distortion of the displayed color.
[0113] In an exemplary embodiment, according to the degree of attenuation of the color gamut with the ambient light, a set of specific PCC coefficients can be obtained under each ambient light illumination, and the PCC coefficients can be used for color gamut compensation. The PCC (Pix Color Coefficient) coefficient is a color correction coefficient, which is similar to the CCM color correction matrix. The PCC coefficient can be used to adjust the color, perform corresponding color gamut compensation on the displayed content, reduce the color gamut difference between the displayed content color gamut and the original image content under illumination, so that the human eye can feel the color of the displayed content consistently under different illumination, so as to reduce the distortion of the color of the displayed content. For example, when the screen displays an RGB picture, the color value of the picture display can be modified accordingly under different illumination. For example, when the red in the displayed content changes to other colors due to the illumination, the color value of the red channel can be increased, and the color values of other channels can be adjusted so that the red can be normally perceived and recognized by the human eye, so as to achieve the effect of improving the color gamut. The implementation scheme of color gamut compensation in the disclosed embodiment can also be applied to the processing of display content of other types of color gamuts.
[0114] The display control method provided by the embodiment of the present disclosure can perform grayscale value compensation and color gamut compensation for the display content in the screen display under different ambient light illuminations, so that the adjacent grayscale values of the display content can be distinguished by the human eye under different ambient light illuminations, and the color distortion is reduced. By performing grayscale value compensation and color gamut compensation, the readability of the screen display content is improved, and the color of the display content is restored.
[0115] For the implementation process of using grayscale value compensation and the implementation process of using color gamut compensation, reference may be made to the relevant description of the above embodiments, which will not be repeated here.
[0116] The display control method provided by the embodiment of the present disclosure uses the value of the ambient contrast to perform grayscale compensation on the grayscale value under different illuminations, brightens the dark information and restores the brightness difference between adjacent grayscales to the greatest extent, maintains the human eye distinguishability between each grayscale, and improves the readability of the mobile phone screen in the sun; and considers the impact of the introduction of ambient light on the screen color gamut, sets different color gamut compensation coefficients under different illuminations, offsets the color gamut attenuation caused by ambient light, and realizes the color restoration display of the screen display content. For example, when a user uses a mobile phone to browse and read pictures outdoors, the pictures displayed on the mobile phone are processed through grayscale compensation and color gamut compensation, so that the pictures seen by the user are clearer and the colors of the pictures are the colors of the original pictures.
[0117] The display control method provided in the above embodiments of the present disclosure can be understood as a new display control function. The display control function is mainly used in scenes with high ambient light illumination to adjust and control the display of display content.
[0118] In an exemplary embodiment, the display control method provided in the embodiment of the present disclosure can be triggered to execute when a trigger condition is met. For example, in the embodiment of the present disclosure, when the light sensor in the terminal detects that the current ambient light illumination is greater than a threshold, the new display control function involved in the embodiment of the present disclosure can be started to compensate for the loss of terminal screen content when the ambient light illumination is greater than the threshold, bringing a better visual experience and improving the readability of the screen display content.
[0119] Figure 5 is a flow chart of a display control method according to an exemplary embodiment. Figure 5 , the method includes steps S51 and S52.
[0120] In step S51, the current ambient light illumination is obtained.
[0121] In step S52, it is determined whether the current ambient light illumination is higher than an ambient light illumination threshold.
[0122] In the embodiment of the present disclosure, when the current ambient light illumination is higher than the illumination threshold, the display control method in the embodiment of the present disclosure is enabled. The ambient light illumination can be obtained based on the light sensing element (light sensing sensor) in the terminal, and the ambient light illumination threshold is a pre-set value. The terminal device can determine whether to enable the display control method by itself without manual setting.
[0123] In the disclosed embodiment, the terminal detects that the ambient light illumination exceeds the preset illumination threshold, and responds to the ambient light illumination exceeding the preset ambient light illumination threshold. When the ambient light intensity exceeds the preset illumination intensity threshold, the display control method involved in the disclosed embodiment is automatically enabled. In the disclosed embodiment, obtaining the current ambient light illumination can also be used to determine the current grayscale value based on the current environmental contrast involved in the above disclosed embodiment, and further used to determine the grayscale compensation curve involved in the above disclosed embodiment and the color gamut compensation coefficient.
[0124] Based on the same concept, an embodiment of the present disclosure also provides a display control device.
[0125] It is understandable that the display control device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0126] Figure 6 is a block diagram of a display control device according to an exemplary embodiment. Figure 6 The device includes a detection module 101 and a processing module 102.
[0127] The detection module 101 is used to obtain the current ambient light illumination.
[0128] The processing module 102 is used to determine the current ambient light contrast based on the current ambient light illumination, and determine the current grayscale value of the content displayed in the terminal based on the current ambient light contrast; determine the current grayscale compensation curve that matches the current ambient light illumination based on the correspondence between the ambient light illumination and the grayscale compensation curve, the grayscale compensation curve characterizes the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and has a corresponding relationship with the ambient light illumination; determine the current compensated grayscale value corresponding to the current grayscale value based on the current grayscale compensation curve; perform grayscale compensation on the current grayscale value of the displayed content based on the current grayscale compensation value, and display the displayed content after grayscale compensation.
[0129] In one implementation provided by an embodiment of the present disclosure, the processing module 102 determines the grayscale compensation curve in the following manner: determine the target grayscale value of the black field brightness in a dark environment under the target ambient light illumination, the target ambient light illumination being a preset ambient light illumination corresponding to the grayscale compensation curve to be determined; divide the grayscale value that is less than or equal to the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a first step length as the grayscale value before compensation; divide the grayscale value that is greater than the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a second step length as the compensated grayscale value, the number of the plurality of grayscale values divided with the second step length being the same as the number of the plurality of grayscale values divided with the first step length; remap the grayscale value before compensation into the compensated grayscale value, and obtain a grayscale compensation curve that characterizes the mapping relationship between the grayscale value before compensation and the compensated grayscale value.
[0130] In an implementation manner provided by an embodiment of the present disclosure, the first step size includes multiple identical or different step sizes, and the second step size includes multiple identical or different step sizes; among the multiple grayscale values divided by the second step size, the brightness values corresponding to two adjacent grayscale values divided by the same second step size are different.
[0131] In an implementation manner provided by an embodiment of the present disclosure, the processing module 102 is also used to determine the color gamut parameters of the display content, and based on the correspondence between the ambient light illumination and the color gamut compensation coefficient, determine the current color gamut compensation coefficient corresponding to the current ambient light illumination; compensate the color gamut parameters based on the current color gamut compensation coefficient, and display the display content after color gamut compensation.
[0132] In an implementation manner provided by an embodiment of the present disclosure, the processing module 102 is further configured to determine whether the current ambient light illumination is higher than an ambient light illumination threshold.
[0133] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0134] Figure 7 2 is a block diagram of a device 200 for display control according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0135] Reference Figure 7 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0136] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0137] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0138] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0139] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0140] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0141] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0142] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0143] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0144] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0146] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0147] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. It is further understood that, unless otherwise specified, "connection" includes a direct connection between the two without the presence of other components, and also includes an indirect connection between the two with other elements.
[0148] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0149] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0150] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A display control method, characterized in that: Applied to terminals, including: Get the current ambient light intensity; Determining a current ambient light contrast based on the current ambient light illumination, and determining a current grayscale value of content displayed in the terminal based on the current ambient light contrast; Based on the correspondence between the ambient light illumination and the grayscale compensation curve, determining a current grayscale compensation curve that matches the current ambient light illumination, the grayscale compensation curve characterizing the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and having a correspondence with the ambient light illumination; Based on the current grayscale compensation curve, determining a current compensated grayscale value corresponding to the current grayscale value; Grayscale compensation is performed on the current grayscale value of the display content based on the current grayscale compensation value, and the display content after grayscale compensation is displayed.
2. The method according to claim 1, characterized in that: The grayscale compensation curve is determined in the following manner: Determine a target grayscale value of black field brightness in a dark environment under a target ambient light illumination, wherein the target ambient light illumination is a preset ambient light illumination corresponding to the grayscale compensation curve to be determined; Dividing the grayscale value less than or equal to the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a first step length as the grayscale value before compensation; Dividing a grayscale value greater than the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a second step length as compensation grayscale values, wherein the number of the plurality of grayscale values divided with the second step length is the same as the number of the plurality of grayscale values divided with the first step length; The pre-compensation grayscale value is remapped into a compensated grayscale value to obtain a grayscale compensation curve representing a mapping relationship between the pre-compensation grayscale value and the compensated grayscale value.
3. The method according to claim 2, characterized in that The first step length includes a plurality of the same or different step lengths, and the second step length includes a plurality of the same or different step lengths; Among the multiple grayscale values divided by the second step length, two adjacent grayscale values divided by the same second step length have different brightness values corresponding to them.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Determine a color gamut parameter of the displayed content, and determine a current color gamut compensation coefficient corresponding to the current ambient light illumination based on a correspondence between ambient light illumination and a color gamut compensation coefficient; The color gamut parameter is compensated based on the current color gamut compensation coefficient, and the display content after color gamut compensation is displayed.
5. The method according to claim 1, characterized in that The method further comprises: Determine whether the current ambient light level is above the ambient light threshold.
6. A display control device, characterized in that: Applied to terminals, including: Detection module, used to obtain the current ambient light intensity; A processing module is used to determine the current ambient light contrast based on the current ambient light illumination, and determine the current grayscale value of the content displayed in the terminal based on the current ambient light contrast; determine a current grayscale compensation curve that matches the current ambient light illumination based on the correspondence between the ambient light illumination and the grayscale compensation curve, the grayscale compensation curve characterizing the mapping relationship between the grayscale value before compensation and the compensated grayscale value, and having a corresponding relationship with the ambient light illumination; determine a current compensated grayscale value corresponding to the current grayscale value based on the current grayscale compensation curve; perform grayscale compensation on the current grayscale value of the displayed content based on the current grayscale compensation value, and display the displayed content after grayscale compensation.
7. The display control device according to claim 6, characterized in that: The grayscale compensation curve is determined in the following manner: Determine a target grayscale value of black field brightness in a dark environment under a target ambient light illumination, wherein the target ambient light illumination is a preset ambient light illumination corresponding to the grayscale compensation curve to be determined; Dividing the grayscale value less than or equal to the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a first step length as the grayscale value before compensation; Dividing a grayscale value greater than the target grayscale value under the target ambient light illumination into a plurality of grayscale values with a second step length as compensation grayscale values, wherein the number of the plurality of grayscale values divided with the second step length is the same as the number of the plurality of grayscale values divided with the first step length; The pre-compensation grayscale value is remapped into a compensated grayscale value to obtain a grayscale compensation curve representing a mapping relationship between the pre-compensation grayscale value and the compensated grayscale value.
8. The display control device according to claim 7, characterized in that: The first step length includes a plurality of the same or different step lengths, and the second step length includes a plurality of the same or different step lengths; Among the multiple grayscale values divided by the second step length, the brightness values corresponding to two adjacent grayscale values divided by the same second step length are different.
9. The display control device according to claim 6, characterized in that: The processing module is also used for: Determine a color gamut parameter of the displayed content, and determine a current color gamut compensation coefficient corresponding to the current ambient light illumination based on a correspondence between ambient light illumination and a color gamut compensation coefficient; The color gamut parameter is compensated based on the current color gamut compensation coefficient, and the display content after color gamut compensation is displayed.
10. The display control device according to claim 6, characterized in that: The detection module is also used for: Determine whether the current ambient light level is above the ambient light threshold.
11. A display control device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the display control method described in any one of claims 1 to 5.
12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the display control method described in any one of claims 1 to 5.
