Display control method and device and storage medium
By adjusting the display color gamut according to the ambient illumination in electronic devices, the problem of chromaticity shift of display colors in different environments is solved, and a good color experience under different lighting conditions is achieved.
Patent Information
- Application Number
- CN202310898662.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2025-01-21
AI Technical Summary
When existing electronic devices are used in different environments, they cannot effectively adjust the color chromaticity of the display color, resulting in poor color experience for users in different usage environments.
By determining the color gamut offset between the current standard color gamut and the display color gamut based on the current ambient illumination, the display color gamut is compensated. After the compensation is obtained, the color gamut is displayed, and the chromaticity of the display content is adjusted.
It realizes the chromaticity restoration of the display content in different environments, improves the user's color experience, and ensures good visual effects of the display content under different lighting conditions.
Smart Images

Figure CN119339647A_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] In life, we are increasingly dependent on the use of various electronic devices, and electronic devices with display functions have greatly facilitated the use of users. Screen display function has become an indispensable function of electronic devices. However, when using electronic devices in different environments, the screen display content will be affected differently.
[0003] In related technologies, it is a basic function that the screen display brightness and color temperature change with the ambient light intensity and color temperature. However, from the perspective of actual user experience, the visual changes brought about by the changes in ambient light and ambient color temperature are not only color temperature and brightness, but also include the chromaticity shift of the displayed content. However, various electronic devices currently do not realize dynamic adjustment of the chromaticity of the displayed color, and cannot guarantee users a good color experience in different usage environments. 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, comprising: determining a current color gamut offset between a current standard color gamut and a current display color gamut according to current ambient light illumination, wherein the current standard color gamut is a standard color gamut of content currently displayed by an electronic device; compensating the current display color gamut based on the current color gamut offset to obtain a compensated display color gamut; adjusting the current display content based on the compensated display color gamut, and displaying the adjusted display content.
[0006] In one implementation, the current display color gamut is determined in the following manner: based on the correspondence between ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
[0007] In one embodiment, determining the current color gamut offset between the current standard color gamut and the current display color gamut according to the current ambient light illumination includes: determining the current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination based on the correspondence between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset.
[0008] In one embodiment, the correspondence between the ambient light illumination, the display color gamut, the standard color gamut, and the color gamut offset is determined in the following manner: determining the target color gamut offset based on the target display color gamut and the target standard color gamut under the target ambient light illumination; and creating a correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset.
[0009] In one embodiment, a target color gamut offset is determined based on a target display color gamut and a target standard color gamut under a target ambient light illumination, including: determining a target display color gamut and a target standard color gamut for displaying content under a target ambient light illumination; determining a target standard color gamut color coordinate based on the target standard color gamut, and determining a target display color gamut color coordinate based on the target display color gamut; determining a target color gamut color coordinate offset between the target standard color gamut color coordinates and the target display color gamut color coordinates; and determining a target color gamut offset based on the target color gamut color coordinate offset.
[0010] In one embodiment, the method further includes: determining a current display color temperature that matches the current ambient light color temperature based on a correspondence between the ambient light color temperature and the display color temperature; determining a current white point color coordinate based on the current display color temperature; adjusting the color temperature of the display content based on the current white point color coordinates, and displaying the display content after the color temperature adjustment.
[0011] In one implementation, the correspondence between the ambient light color temperature and the display color temperature satisfies the following relationship:
[0012]
[0013] Among them, the T s To display the color temperature, T e is the ambient light color temperature, T e1 is the first ambient light threshold, T e2 is the second ambient light illumination threshold, and A, x, Y, and B are fixed parameters.
[0014] According to a second aspect of an embodiment of the present disclosure, a display control device is provided, comprising: a processing module, for determining a current color gamut offset between a current standard color gamut and a current display color gamut according to current ambient light illumination, wherein the current standard color gamut is a standard color gamut of content currently displayed by the electronic device; compensating the current display color gamut based on the current color gamut offset to obtain a compensated display color gamut; and a display module, for adjusting the current display content based on the compensated display color gamut, and displaying the adjusted display content.
[0015] In one implementation, the current display color gamut is determined in the following manner: based on the correspondence between ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
[0016] In one embodiment, the processing module determines the current color gamut offset between the current standard color gamut and the current display color gamut according to the current ambient light illumination in the following manner: based on the correspondence between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset, the current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination is determined.
[0017] In one embodiment, the correspondence between the ambient light illumination, the display color gamut, the standard color gamut, and the color gamut offset is determined in the following manner: determining the target color gamut offset based on the target display color gamut and the target standard color gamut under the target ambient light illumination; and creating a correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset.
[0018] In one embodiment, the processing module determines the target color gamut offset according to the target display color gamut and the target standard color gamut under the target ambient light illumination in the following manner: determining the target display color gamut and the target standard color gamut of the displayed content under the target ambient light illumination; determining the target standard color gamut color coordinates according to the target standard color gamut, and determining the target display color gamut color coordinates according to the target display color gamut; determining the target color gamut color coordinate offset between the target standard color gamut color coordinates and the target display color gamut color coordinates; and determining the target color gamut offset according to the target color gamut color coordinate offset.
[0019] In one embodiment, the device also includes: the processing module is also used to determine the current display color temperature that matches the current ambient light color temperature based on the correspondence between the ambient light color temperature and the display color temperature; based on the current display color temperature, determine the current white point color coordinates; the display module is also used to adjust the color temperature of the display content based on the current white point color coordinates, and display the display content after the color temperature adjustment.
[0020] In one implementation, the processing module determines that the corresponding relationship between the ambient light color temperature and the display color temperature satisfies the following relationship in the following manner:
[0021]
[0022] Among them, the T s To display the color temperature, T e is the ambient light color temperature, T e1 is the first ambient light threshold, Te2 is the second ambient light illumination threshold, and A, x, Y, and B are fixed parameters.
[0023] According to a third aspect of an embodiment of the present disclosure, a display control device is provided, comprising: 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.
[0024] 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 implementations of the first aspect.
[0025] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by determining the current display color gamut and the standard color gamut, compensating the current display color gamut, and then adjusting the color gamut after compensation, the chromaticity restoration of the displayed content is achieved, and the viewing experience of the displayed content is improved.
[0026] 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
[0027] 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.
[0028] Figure 1 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0029] Figure 2 The present invention is a flowchart of determining a current color gamut offset according to an exemplary embodiment.
[0030] Figure 3 The present invention is a flow chart showing a corresponding relationship among ambient light illumination, display color gamut, standard color gamut and color gamut offset according to an exemplary embodiment.
[0031] Figure 4 The invention is a flow chart showing a method for determining a target color gamut offset according to an exemplary embodiment.
[0032] Figure 5 The figure is a schematic diagram showing coordinate shift caused by ambient light according to an exemplary embodiment.
[0033] Figure 6 is a schematic diagram showing compensation according to a color coordinate offset according to an exemplary embodiment.
[0034] Figure 7 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0035] Figure 8 The diagram is a schematic diagram showing a method of generating a color gamut compensation matrix to adjust display content according to an exemplary embodiment.
[0036] Fig. 9 The figure is a block diagram of a display control device according to an exemplary embodiment.
[0037] Fig.10 It is a block diagram of a device for display control according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] 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.
[0039] The display control method provided in the present disclosure is mainly used for processing display content when displaying the display content using a display screen under ambient light. The display screen in the present disclosure can be a display screen capable of display control of a television, computer, mobile phone or other device.
[0040] When using electronic devices daily, the impact of ambient light on the display content of the electronic device display screen is different because the environment in which the electronic device is used is different. For example, when a user uses a mobile phone under high ambient light illumination, the content displayed on the mobile phone will become unclear and the content will be distorted. At this time, the display screen can be adjusted or the display content of the mobile phone can be processed so that the display content can be correctly recognized by the user. In the related art, the visual effect of the display content can be adjusted by adjusting the display screen brightness and the display color temperature of the display content. However, the impact of different ambient lighting on the visual effect of the display content is not limited to the display content brightness and display color temperature, but also causes chromaticity shift, thereby causing color distortion. The chromaticity shift is because the display color gamut changes with the ambient light, which may cause the display content to not be displayed normally. Therefore, the display content color gamut can be adjusted to achieve chromaticity adjustment so that the display content has a better visual effect.
[0041] In view of this, a display control method is proposed in an embodiment of the present disclosure. By determining the current color gamut offset according to the relationship between the ambient light illumination and the color gamut offset, it can be used to measure the change of the display color gamut with the ambient light, as a basis for color gamut compensation. The current display color gamut is compensated based on the color gamut offset to obtain the compensated display color gamut, and the display content is adjusted and displayed according to the compensated display color gamut. The color gamut offset changes with the change of different ambient lights. By compensating and displaying the display color gamut under different ambient lights, the adjustment of the display color gamut of the display content under different lighting is achieved, and then the real-time adjustment of the chromaticity of the display content is achieved, so that the visual effect of the display content under different ambient lights can be improved.
[0042] The display control method in the disclosed embodiment is described below.
[0043] Figure 1 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0044] In step S11, a current color gamut offset between a current standard color gamut and a current display color gamut is determined according to the current ambient light illumination, where the current standard color gamut is a standard color gamut of content currently displayed by the electronic device.
[0045] In the disclosed embodiment, the current standard color gamut is the display color gamut of the current display content in a dark environment, and can be directly read through the terminal. The current display color gamut is the color gamut of the current display content that can be recognized by the human eye under the current ambient light illumination. The current color gamut offset represents the difference between the current standard color gamut and the current display color gamut under the current ambient light illumination.
[0046] In step S12, the current display color gamut is compensated based on the current color gamut offset to obtain a compensated display color gamut.
[0047] In the embodiment of the present disclosure, the current display color gamut is compensated based on the current color gamut offset, that is, the current display color gamut is compensated based on the difference between the previous standard color gamut and the current display color gamut.
[0048] In step S13, the current display content is adjusted based on the compensated display color gamut, and the adjusted display content is displayed.
[0049] In the disclosed embodiment, the adjusted display content is the display content after the display color gamut is adjusted, and the display color gamut adjustment is the adjustment of the chromaticity of the display content.
[0050] In one embodiment, the current ambient light intensity can be obtained through a sensor provided by the electronic device, wherein the sensor provided by the electronic device includes but is not limited to a photoresistor, a camera, an infrared probe or other electronic components capable of receiving and determining the current ambient light intensity.
[0051] In one embodiment, the current ambient light intensity can also be obtained through a device external to the electronic device, wherein the device external to the electronic device includes but is not limited to an optical sensor, a camera, an infrared sensor or other electronic devices or electronic components capable of receiving and determining the current ambient light intensity.
[0052] In one embodiment, the electronic device can read the current standard color gamut of the current display content according to the current ambient light illumination obtained. Based on the correspondence between the ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined. Among them, the current display color gamut will change with the current ambient light illumination. Determine the current color gamut offset of the current standard color gamut and the current display color gamut. Among them, the current color gamut offset will also change with the change of ambient light. Based on the current color gamut offset, the current display color gamut is compensated to obtain the compensated display color gamut, and the display content is adjusted according to the compensated display color gamut and the adjusted display content is displayed. By determining the color gamut offset under different environments, the current display color gamut can be compensated, and the compensated color gamut can be used as the color gamut of the display content to adjust the chromaticity of the display content, thereby realizing the change of the chromaticity of the display content following the ambient light.
[0053] Before compensating the current display content, it is necessary to determine the current display color gamut in order to perform correct color gamut compensation on the current display content.
[0054] In one implementation, based on the correspondence between the ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
[0055] In the disclosed embodiment, the corresponding relationship among the ambient light illumination, the display color gamut and the standard color gamut is a predetermined relationship, and the current standard color gamut corresponds to a different current display color gamut under different ambient light illuminations.
[0056] In one implementation, the corresponding relationship between the ambient light illumination, the display color gamut and the standard color gamut may be predetermined through experiments.
[0057] In one implementation, the current display color gamut under the current ambient light illumination may also be determined and directly read by the electronic device.
[0058] If the current display content is to be compensated, it is necessary to determine the current color gamut offset of the display content in the current environment. The process of determining the current color gamut offset is described below.
[0059] Figure 2 The present invention is a flowchart of determining a current color gamut offset according to an exemplary embodiment.
[0060] In step S21, the current ambient light illumination is determined.
[0061] In the embodiment of the present disclosure, the current ambient light illumination is determined to determine the front display color gamut for determining the current color gamut offset.
[0062] In step S22, based on the correspondence between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset, the current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination is determined.
[0063] In the disclosed embodiment, the corresponding relationship among the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset is a predetermined relationship and exists in the electronic device.
[0064] In the embodiment of the present disclosure, the current color gamut offset between the current standard color gamut and the current display color gamut is the color gamut offset that needs to be compensated for the current display color gamut.
[0065] In one embodiment, under the current ambient light illumination, the current color gamut offset between the current standard color gamut and the current display color gamut is determined based on the correspondence between the ambient light illumination, the display color gamut, the standard color gamut, and the color gamut offset, which is used to compensate for the current display color gamut under the current lighting, so that the compensated display color gamut is the same as the current standard color gamut, thereby improving the display effect of the displayed content perceived by the human eye.
[0066] Figure 3 The present invention is a flow chart showing a corresponding relationship among ambient light illumination, display color gamut, standard color gamut and color gamut offset according to an exemplary embodiment.
[0067] In step S31, a target color gamut offset is determined according to a target display color gamut and a target standard color gamut under a target ambient light illumination.
[0068] In the disclosed embodiment, the target ambient light illumination is any illumination. The target standard color gamut is the standard color gamut of the target display content under the target ambient light illumination, and will not change due to changes in the target ambient light illumination. The target standard color gamut under each target illumination corresponds to the target display color gamut. There is a target color gamut offset corresponding to each target display color gamut and the target standard color gamut.
[0069] In step S32, a correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset is created.
[0070] In the disclosed embodiment, a correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut and the target color gamut offset is created to determine the color gamut offset under the current ambient illumination.
[0071] In one implementation, the target display color gamut and the target standard color gamut can be determined under target illumination, and the target color gamut offset between the target display color gamut and the target standard color gamut can be determined. According to the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset, a corresponding relationship between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset is created. The corresponding relationship between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset can be determined in advance through experiments and can be directly used when performing color gamut compensation.
[0072] Figure 4 The invention is a flow chart showing a method for determining a target color gamut offset according to an exemplary embodiment.
[0073] In step S41, a target display color gamut and a target standard color gamut of displayed content under a target ambient light illumination are determined.
[0074] In the embodiment of the present disclosure, the target display color gamut is the display color gamut after the target standard color gamut is shifted under the target ambient light illumination. The target standard color gamut is the display color gamut of the content displayed in a dark environment.
[0075] In step S42, the target standard color gamut color coordinates are determined according to the target standard color gamut, and the target display color gamut color coordinates are determined according to the target display color gamut.
[0076] In the embodiment of the present disclosure, the target standard color gamut color coordinates represent the target standard color gamut in the chromaticity diagram, and the target display color gamut color coordinates represent the target display color gamut in the chromaticity diagram. The chromaticity diagram is a coordinate diagram representing a color space, including color gamut information.
[0077] In step S43, the target color gamut color coordinate offset between the target standard color gamut color coordinate and the target display color gamut color coordinate is determined.
[0078] In the embodiment of the present disclosure, a color gamut offset between a target standard color gamut color coordinate and a target display color gamut color coordinate is determined in the chromaticity diagram as a target color gamut color coordinate offset.
[0079] In step S44, the target color gamut shift is determined according to the target color gamut color coordinate shift.
[0080] In the embodiment of the present disclosure, the target color gamut offset represents the offset between the target standard color gamut color coordinates and the target display color gamut color coordinates, that is, the target color gamut color coordinate offset.
[0081] Figure 5 The figure is a schematic diagram showing coordinate shift caused by ambient light according to an exemplary embodiment.
[0082] like Figure 5 As shown in the figure, the CIE 1931xy chromaticity diagram (a color system coordinate diagram) shows that the triangular area represents the color gamut of the displayed content under different ambient light. Figure 5 As shown in the figure, when the ambient light illuminance is 0lux, the display color gamut is larger, and when the ambient light illuminance becomes 2000lux or 5000lux, the display color gamut of the current display content will be reduced. That is, the color gamut of the displayed content will gradually decrease as the ambient light increases. When the ambient light illuminance can be a value other than 0lux, 2000lux, or 5000lux, the color gamut of the current display content will change accordingly, and the corresponding color gamut color coordinates will also change.
[0083] In one implementation, the terminal reads the color mode and color gamut information corresponding to the current display content, such as P3 or sRGB (two color gamuts), and based on the color gamut information of the current display content, respectively searches for and obtains the xy color coordinates Rxs, Rys, Gxs, Gys, Bxs, Bys, Wxs, and Wys of R, G, and B (R, G, and B are the unit quantities of the three primary colors red, green, and blue, respectively). The color coordinates represent the color gamut information in a dark environment, and are also the color gamut that can be directly measured by an optical instrument on the screen of the current color mode. The standard color gamut of the corresponding color mode is established with reference to this data.
[0084] In one embodiment, the color gamut shift formula can be determined through the following experimental process, and then the corresponding relationship between the ambient light illumination, the display color gamut and the standard color gamut can be obtained. Through experiments under different ambient lights, it is known that the display color gamut range of the displayed content gradually decreases as the ambient light increases, and in, for example, the CIE 1931xy chromaticity diagram, the RGB three-color xy color coordinate vertex shows a linear trend with the change of ambient light. Assuming that the current ambient light is Le, the minimum color gamut color coordinates of the corresponding display content color gamut when the ambient light is strong are Rxn, Ryn, Gxn, Gyn, Bxn, Byn, then the RGB three-color xy color coordinate shift formula is as follows:
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091] Among them, L maxis the preset light threshold. Rx, Ry, Gx, Gy, Bx, By are the display color gamut color coordinates after offset under ambient light Le. The minimum color gamut is the minimum color range of the display content, which is determined by the color range of the display content and represents the minimum display color gamut of the display content. According to the above formula, the display color gamut color coordinates of the display content under different illuminations can be determined, and the color gamut offset under different illuminations can be determined based on the display color gamut color coordinates and the standard color gamut color coordinates, thereby obtaining the corresponding relationship between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset.
[0092] In one implementation, in the RGB chromaticity diagram, since the color gamut ratio and RGB color coordinates change with ambient light, the RGB value of the screen display content can be dynamically changed to reduce the color gamut visible to the human eye due to ambient light changes, and the RGB content of the mobile phone can be updated according to the algorithm, so that the human eye recognition result is consistent with the display color gamut of the display content in a dark state, thereby realizing the restoration of the original color gamut.
[0093] In one implementation, the limit of dynamic change of the color gamut of the screen display content will not exceed the maximum color gamut of the screen. When the ambient light illumination is between 0 and Lmax, the color gamut color coordinates of the current display content in the chromaticity diagram can change with the change of ambient light, that is, the color gamut of the current display content can change with the change of ambient light. When the ambient light illumination is equal to 0, the color gamut of the displayed content corresponds to the standard color gamut of the current display content. When it is greater than or equal to Lmax, the color gamut area of the displayed content in the chromaticity diagram is maintained under the maximum color gamut of the screen, that is, it will not exceed the maximum color gamut that the screen can display.
[0094] Figure 6 is a schematic diagram showing compensation according to a color coordinate offset according to an exemplary embodiment.
[0095] like Figure 6 As shown, (Rxs, Rys)[0Lux] is the color coordinate of the display color gamut when the display content is in a dark environment. (Rx, Ry)[Lmax lux] is the color coordinate of the display color gamut after (Rxs, Rys)[0Lux] is shifted when the illumination is Lmax. (Rxm, Rym)[0lux] is the standard color gamut color coordinate of the display content in a dark environment after (Rxs, Rys)[0Lux] is shifted according to the color coordinate shift equation. Among them, Lmax is the preset ambient light illumination. The color coordinate shift equation represents the color coordinate information as the ambient light Le changes, and the color coordinate information after the color coordinate shift, and a is a parameter.
[0096] In one embodiment, if Figure 6 As shown, when the ambient light is Lmax, (Rxs, Rys) will shift to (Rx, Ry). At this time, the color coordinate shift equation can be measured under the influence of ambient light:
[0097] Rx=aRx*Le+Rxs
[0098] Ry=aRy*Le+Rys
[0099] According to the above color coordinate shift equation, the offset from (Rxs, Rys) to (Rx, Ry) under Lmax can be determined, and (Rx, Ry) can be shifted to (Rxs, Rys) according to the offset. And because of the offset of (Rx, Ry), (Rxs, Rys) will be shifted to (Rxm, Rym). The display color gamut color coordinate information between (Rx, Ry) under Lmax and (Rxs, Rys) under 0Lux is the same, so the display color gamut information of the two display contents is the same, and the human eye's recognition results of the display content are also the same. Among them, (Rxs, Rys) under 0Lux is the standard display color gamut information. If the color coordinates at 0Lux are shifted to the maximum color gamut, the measured color gamut can reach the standard color gamut under Lmax ambient light. That is, the standard display color gamut range will not exceed the maximum color gamut that the display screen can display. If (Rxm, Rym) after the offset exceeds the maximum color gamut that the display screen can display, the maximum color gamut is used as the standard color gamut to offset the color coordinates. The maximum color gamut is determined by factors such as the display screen and the display color mode.
[0100] In one implementation, the color coordinates corresponding to the color gamut of the displayed content will gradually shift from Rxs, Rys to Rx, Ry as the ambient light changes from 0 to Lmax. To ensure that the standard color gamut color coordinates of Rxs, Rys can be measured under Lmax, Rxs, Rys at 0lux are shifted to Rxm, Rym, which can ensure that the standard color gamut of this mode is reached under Lmax. According to the current ambient light Le and the formula of the color coordinate offset equation, the current color coordinate compensation formula can be obtained as follows:
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107] In the above formula, Rxm, Rym, Gxm, Gym, Bxm, Bym are the maximum display color gamut coordinates of the screen display, Rxs, Rys, Gxs, Gys, Bxs, Bys are the standard color gamut color coordinates, and Rx, Ry, Gx, Gy, Bx, By are the current display color gamut color coordinates. According to the above formula, the color gamut color coordinate offset between the current display color gamut color coordinates and the standard color gamut color coordinates when the current ambient light color temperature is 0 to Lmax, and the color coordinate offset between the current display color gamut color coordinates and the maximum display color gamut color coordinates when the previous ambient light color temperature is Lmax can be obtained. The current display color gamut color coordinates can be offset according to the color gamut color coordinate offset under different ambient lights to obtain the color gamut color coordinates after compensation, and further obtain the display color gamut after compensation to achieve compensation of the current display color gamut.
[0108] Figure 7 The figure is a flow chart of a display control method according to an exemplary embodiment.
[0109] In step S51, based on the correspondence between the ambient light color temperature and the display color temperature, a current display color temperature matching the current ambient light color temperature is determined.
[0110] In the disclosed embodiment, the corresponding relationship between the ambient light color temperature and the display color temperature is predetermined, and the current display color temperature can be determined according to the current ambient light color temperature.
[0111] In step S52, the current white point color coordinates are determined based on the current display color temperature.
[0112] In the embodiment of the present disclosure, the current display color temperature is converted into white point color coordinates to determine the current white point color coordinates. When the current color temperature changes, the current white point color coordinates will also change.
[0113] In step S53, the color temperature of the display content is adjusted based on the current white point color coordinates, and the display content after the color temperature adjustment is displayed.
[0114] In the embodiment of the present disclosure, the color temperature of the displayed content is adjusted so that the current display color temperature has the same display effect as the original color temperature of the displayed content.
[0115] In one implementation, the electronic device can obtain the current ambient light color temperature through a built-in sensor, wherein the sensor includes a camera, a multi-spectral sensor, or other electronic components that can receive and determine the ambient light color temperature.
[0116] In one embodiment, the electronic device can obtain the current ambient light color temperature through an external sensor or electronic device, wherein the external sensor or electronic device includes a color sensor, a color temperature sensor, a camera with a color temperature sensing function, or other electronic devices and electronic components that can receive and determine the ambient light color temperature.
[0117] In one implementation, after the current ambient light color temperature is determined, the corresponding target color temperature may be determined by the following color temperature offset formula:
[0118]
[0119] Among them, Ts is the target color temperature, Te is the current ambient light color temperature, Te1 is the first color temperature threshold, Te2 is the second color temperature threshold, and A, x, Y, and B are fixed parameters.
[0120] In the embodiments of the present disclosure, Ts, Te, Te1, Te2, A, x, Y, and B may be empirical values, which may be experimental values determined based on experiments.
[0121] In an example, A is 4250, B is 7250, x is 0.5, and Y is 3000. Ts, Te, Te1, Te2, A, x, Y, and B satisfy the following formula:
[0122]
[0123] In the embodiment of the present disclosure, the relationship between the current display color temperature and the current ambient light color temperature can be determined from the above formula according to the current ambient light color temperature, and the current display color temperature can be determined according to the relationship between the current ambient light color temperature and the current display color temperature. According to the current display color temperature, the current display color temperature can be compensated according to the standard color gamut, so that the current display color temperature is consistent with the standard color gamut, and the color temperature of the displayed content is restored.
[0124] In one implementation, the white point color coordinates Wx and Wy corresponding to the target color temperature in the chromaticity diagram may be obtained according to the current display color temperature by using the following white point color coordinate conversion formula:
[0125] W x =-4.6070×10 9 ·T s 3 +2.9678×10 6 ·T s 2 +0.09911×10 3 ·T s +0.244063
[0126] W y =-3·W x 2 +2.87 W x -0.275
[0127] Among them, Ts is the target color temperature.
[0128] In one implementation, the white point color coordinate information and the color gamut color coordinate information of the display content may be merged to obtain a composite color gamut color coordinate including the white point color coordinate information and the color gamut color coordinate information of the display content.
[0129] Figure 8 The diagram is a schematic diagram showing a method of generating a color gamut compensation matrix to adjust display content according to an exemplary embodiment.
[0130] like Figure 8 As shown, (Rxs, Rys), (Gxs, Gys), (Bxs, Bys), (Wxs, Wys) are the color coordinates of the standard color gamut, including the color gamut color coordinate information and the white point color coordinate information of the standard color temperature, which can be obtained according to the current color display mode and the corresponding display content when the display screen displays the display content. (Rx, Ry), (Gx, Gy), (Bx, By), (Wx, Wy) are the target color gamut color coordinates under the current ambient light illumination and ambient light color temperature, including the target color gamut color coordinate information and the target color temperature white point color coordinate information, which can be determined according to the color gamut offset formula and the color temperature offset formula. Ri, Gi, Bi are the color value distribution of the display content, and Ro, Go, Bo are the color value distribution after processing.
[0131] In one embodiment, if Figure 8 As shown, based on the synthetic color gamut color coordinates including the target color gamut color coordinate information and the target color temperature white point color coordinate information and the synthetic color gamut color coordinates including the standard color gamut color coordinate information and the standard color temperature white point color coordinate information, according to the current color gamut compensation formula and the current color temperature offset formula corresponding to the current ambient light illumination and ambient color temperature, a color gamut mapping matrix can be generated. The color gamut mapping matrix is used to perform matrix transformation on Ri, Gi, and Bi of the display content to obtain Ro, Go, and Bo. The display content is adjusted according to Ro, Go, and Bo, and the adjusted display content is displayed.
[0132] Based on the same concept, an embodiment of the present disclosure also provides a display control device.
[0133] 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.
[0134] Fig. 9 is a block diagram of a display control device according to an exemplary embodiment. Fig. 9 The device includes a processing module 101 and a display module 102.
[0135] The processing module 101 is configured to determine a current color gamut offset between a current standard color gamut and a current display color gamut according to the current ambient light illumination, wherein the current standard color gamut is a standard color gamut of the current display content of the electronic device; and compensate the current display color gamut based on the current color gamut offset to obtain a compensated display color gamut;
[0136] The display module 102 is configured to adjust the current display content based on the compensated display color gamut and display the adjusted display content.
[0137] In one implementation provided by an embodiment of the present disclosure, the current display color gamut is determined in the following manner: based on the correspondence between ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
[0138] In one implementation provided by an embodiment of the present disclosure, the processing module 101 determines the current color gamut offset between the current standard color gamut and the current display color gamut in the following manner: based on the correspondence between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset, the current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination is determined.
[0139] In one implementation provided by an embodiment of the present disclosure, the correspondence between ambient light illumination, display color gamut, standard color gamut, and color gamut offset is determined in the following manner: determine the target color gamut offset based on the target display color gamut and the target standard color gamut under the target ambient light illumination; create a correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset.
[0140] In one implementation provided by an embodiment of the present disclosure, the processing module 101 determines a target color gamut offset according to a target display color gamut and a target standard color gamut under a target ambient light illumination in the following manner: determining a target display color gamut and a target standard color gamut for displaying content under a target ambient light illumination; determining a target standard color gamut color coordinate according to the target standard color gamut, and determining a target display color gamut color coordinate according to the target display color gamut; determining a target color gamut color coordinate offset between the target standard color gamut color coordinates and the target display color gamut color coordinates; and determining a target color gamut offset according to the target color gamut color coordinate offset.
[0141] In an implementation manner provided by an embodiment of the present disclosure, the processing module 101 is further configured to determine a current display color temperature that matches the current ambient light color temperature based on the correspondence between the ambient light color temperature and the display color temperature; determine a current white point color coordinate based on the current display color temperature; and the display module 102 is further configured to adjust the color temperature of the display content based on the current white point color coordinates, and display the display content after the color temperature adjustment.
[0142] In an implementation manner provided by an embodiment of the present disclosure, the processing module 101 determines the corresponding relationship between the ambient light color temperature and the display color temperature in the following manner to satisfy the following relationship:
[0143]
[0144] Among them, T s To display the color temperature, T e is the ambient light color temperature, T e1 is the first ambient light threshold, T e2 is the second ambient light illumination threshold, and A, x, Y, and B are fixed parameters.
[0145] 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.
[0146] Fig.10 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.
[0147] Reference Fig.10 , 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 .
[0148] 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.
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] 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.
[0158] 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.
[0159] 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 can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0160] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0161] 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.
[0162] 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.
[0163] 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: include: Determine a current color gamut offset between a current standard color gamut and a current display color gamut according to the current ambient light illumination, wherein the current standard color gamut is a standard color gamut of content currently displayed by the electronic device; Compensating the current display color gamut based on the current color gamut offset to obtain a compensated display color gamut; The current display content is adjusted based on the compensated display color gamut, and the adjusted display content is displayed.
2. The method according to claim 1, characterized in that The current display color gamut is determined in the following manner: Based on the corresponding relationship between the ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
3. The method according to any one of claims 1 or 2, characterized in that: The determining, according to the current ambient light illumination, a current color gamut offset between a current standard color gamut and a current display color gamut comprises: Based on the corresponding relationship among the ambient light illumination, the display color gamut, the standard color gamut, and the color gamut offset, a current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination is determined.
4. The method according to claim 3, characterized in that The corresponding relationship between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset is determined in the following manner: Determine a target color gamut offset according to a target display color gamut and a target standard color gamut under target ambient light illumination; A correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset is created.
5. The method according to claim 4, characterized in that According to the target display color gamut and the target standard color gamut under the target ambient light illumination, the target color gamut offset is determined, including: Determine a target display color gamut and a target standard color gamut of displayed content under target ambient light illumination; Determining target standard color gamut color coordinates according to the target standard color gamut, and determining target display color gamut color coordinates according to the target display color gamut; Determine a target color gamut color coordinate offset between the target standard color gamut color coordinate and the target display color gamut color coordinate; A target color gamut offset is determined according to the target color gamut color coordinate offset.
6. The method according to claim 1, characterized in that The method further comprises: Determine a current display color temperature that matches the current ambient light color temperature based on a correspondence between the ambient light color temperature and the display color temperature; Based on the current display color temperature, determining current white point color coordinates; The color temperature of the display content is adjusted based on the current white point color coordinates, and the display content after the color temperature adjustment is displayed.
7. The method according to claim 6, characterized in that The corresponding relationship between the ambient light color temperature and the display color temperature satisfies the following relationship: Among them, the T s To display the color temperature, T e is the ambient light color temperature, T e1 is the first ambient light threshold, T e2 is the second ambient light illumination threshold, and A, x, Y, and B are fixed parameters.
8. A display control device, characterized in that: include: A processing module, configured to determine a current color gamut offset between a current standard color gamut and a current display color gamut according to the current ambient light illumination, wherein the current standard color gamut is a standard color gamut of content currently displayed by the electronic device; Compensating the current display color gamut based on the current color gamut offset to obtain a compensated display color gamut; The display module is used to adjust the current display content based on the compensated display color gamut and display the adjusted display content.
9. The device according to claim 8, characterized in that The current display color gamut is determined in the following manner: Based on the corresponding relationship between the ambient light illumination, the display color gamut and the standard color gamut, the current display color gamut corresponding to the current standard color gamut is determined according to the current ambient light illumination.
10. The device according to any one of claims 8 or 9, characterized in that: The processing module determines the current color gamut offset between the current standard color gamut and the current display color gamut according to the current ambient light illumination in the following manner: Based on the corresponding relationship among the ambient light illumination, the display color gamut, the standard color gamut, and the color gamut offset, a current color gamut offset between the current standard color gamut and the current display color gamut under the current ambient light illumination is determined.
11. The device according to claim 10, characterized in that The corresponding relationship between the ambient light illumination, the display color gamut, the standard color gamut and the color gamut offset is determined in the following manner: Determine a target color gamut offset according to a target display color gamut and a target standard color gamut under target ambient light illumination; A correspondence between the target ambient light illumination, the target display color gamut, the target standard color gamut, and the target color gamut offset is created.
12. The device according to claim 11, characterized in that The processing module determines the target color gamut offset according to the target display color gamut and the target standard color gamut under the target ambient light illumination in the following manner: Determine a target display color gamut and a target standard color gamut of displayed content under target ambient light illumination; Determining target standard color gamut color coordinates according to the target standard color gamut, and determining target display color gamut color coordinates according to the target display color gamut; Determine a target color gamut color coordinate offset between the target standard color gamut color coordinate and the target display color gamut color coordinate; A target color gamut offset is determined according to the target color gamut color coordinate offset.
13. The device according to claim 8, characterized in that The device also includes: The processing module is further used to determine a current display color temperature that matches the current ambient light color temperature based on a correspondence between the ambient light color temperature and the display color temperature; Based on the current display color temperature, determining current white point color coordinates; The display module is further configured to adjust the color temperature of the display content based on the current white point color coordinates, and display the display content after the color temperature adjustment.
14. The device according to claim 13, characterized in that The processing module determines that the corresponding relationship between the ambient light color temperature and the display color temperature satisfies the following relationship in the following manner: Among them, the T s To display the color temperature, T e is the ambient light color temperature, T e1 is the first ambient light threshold, T e2 is the second ambient light illumination threshold, and A, x, Y, and B are fixed parameters.
15. 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 7.
16. 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 according to any one of claims 1 to 7.