Screen display method and device, storage medium, equipment and product

By acquiring the color saturation of the image to be displayed, the target color temperature in eye protection mode is dynamically adjusted. The color temperature conversion matrix solves the problem of existing eye protection functions affecting color display, achieving a more intelligent and comfortable eye protection effect.

CN121922055APending Publication Date: 2026-04-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-10-24
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing eye protection features reduce blue light by lowering the screen's color temperature, which affects color display and may exacerbate eye fatigue.

Method used

By acquiring the color saturation of the image to be displayed, the target color temperature in eye protection mode is dynamically adjusted. The RGB values ​​are converted into the corresponding RGB values ​​of the target color temperature using a color temperature conversion matrix, thereby achieving intelligent adjustment of the screen color temperature.

Benefits of technology

It enhances eye protection in low-saturation images and maintains true and accurate colors in high-saturation images, achieving a more intelligent and comfortable eye protection experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121922055A_ABST
    Figure CN121922055A_ABST
Patent Text Reader

Abstract

The invention provides a screen display method and device, a storage medium, equipment and a product. The method comprises the following steps: acquiring color saturation of a to-be-displayed picture at a set time interval, determining a target color temperature of the to-be-displayed picture in an eye protection mode according to the color saturation and a preset eye protection color temperature step length, and then determining a color temperature conversion matrix according to a difference between a source color temperature of a screen and the target color temperature, and converting the RGB value of each pixel point in the to-be-displayed picture into the RGB value corresponding to the target color temperature by using the color temperature conversion matrix, and displaying the processed picture. The target color temperature is determined according to the color saturation of the to-be-displayed picture, so that the screen eye protection effect is dynamically adjusted, and the more intelligent and more comfortable eye protection effect is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to a screen display method, apparatus, storage medium, device, and product. Background Technology

[0002] In the digital age, electronic devices have become an indispensable part of people's lives. However, staring at electronic screens for extended periods can cause eye strain. To alleviate this discomfort, electronic devices typically include eye-protection features.

[0003] Current eye protection features primarily reduce blue light by lowering the screen's color temperature. Specifically, once the system detects that the user has activated eye protection mode, the screen's color temperature automatically adjusts to a preset, lower level. However, this existing approach not only affects color display quality and the user's visual experience but may even exacerbate eye fatigue. Summary of the Invention

[0004] In view of the above, this disclosure provides a screen display method, apparatus, storage medium, device, and product.

[0005] According to a first aspect of the present disclosure, a screen display method is provided, the method comprising: acquiring the color saturation of a screen to be displayed at a set time interval; determining a target color temperature corresponding to the screen to be displayed in an eye protection mode based on the color saturation and a preset eye protection color temperature step size, wherein the target color temperature is positively correlated with the color saturation; determining a color temperature conversion matrix based on the difference between the source color temperature of the screen and the target color temperature; using the color temperature conversion matrix to convert the RGB value of each pixel in the screen to be displayed into the RGB value corresponding to the target color temperature, and displaying the converted screen.

[0006] In some embodiments, obtaining the color saturation of the image to be displayed includes: obtaining the image to be displayed and converting the image to be displayed from the RGB color space to the HSV color space; and determining the average saturation of the image to be displayed based on the color saturation of each pixel in the converted image.

[0007] In some embodiments, the method further includes: determining an eye-protection color temperature step size based on the eye-protection color temperature difference and a preset number of steps, wherein the eye-protection color temperature difference is determined based on the difference between the maximum eye-protection color temperature value and the minimum eye-protection color temperature value.

[0008] In some embodiments, determining the target color temperature of the image to be displayed in eye protection mode based on the color saturation and a preset eye protection color temperature step size includes: determining the color temperature adjustment value corresponding to the image to be displayed based on the product of the color saturation and the eye protection color temperature step size; and determining the target color temperature of the image to be displayed in eye protection mode based on the sum of the color temperature adjustment value and the minimum eye protection color temperature value.

[0009] In some embodiments, determining the color temperature conversion matrix based on the difference between the source color temperature and the target color temperature of the screen includes: calculating the target color coordinates of the white point corresponding to the target color temperature based on the blackbody trajectory curve; and determining the color temperature conversion matrix based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature.

[0010] In some embodiments, determining the color temperature conversion matrix based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature includes: converting the source color coordinates of the white point corresponding to the source color temperature to the color-adapted coordinate system using a color adaptation matrix to obtain the color-adapted source color coordinates; converting the target color coordinates of the white point corresponding to the target color temperature to the color-adapted coordinate system using a color adaptation matrix to obtain the color-adapted target color coordinates; and obtaining the color temperature conversion matrix based on the color-adapted source color coordinates, the color-adapted target color coordinates, and the conversion matrix between the RGB color space and the XYZ color space.

[0011] According to a second aspect of the present disclosure, a screen display device is provided, the device comprising: an acquisition unit, configured to acquire the color saturation of a screen to be displayed at a set time interval; a determination unit, configured to determine a target color temperature corresponding to the screen to be displayed in an eye protection mode based on the color saturation and a preset eye protection color temperature step size, and to determine a color temperature conversion matrix based on the difference between the source color temperature of the screen and the target color temperature, wherein the target color temperature is positively correlated with the color saturation; and a processing unit, configured to use the color temperature conversion matrix to convert the RGB value of each pixel in the screen to be displayed into the RGB value corresponding to the target color temperature, and to display the converted screen.

[0012] In some embodiments, the acquisition unit is specifically used to acquire the image to be displayed and convert the image to be displayed from the RGB color space to the HSV color space; and determine the average saturation of the image to be displayed based on the color saturation of each pixel in the converted image.

[0013] In some embodiments, the determining unit is further configured to determine the eye-protection color temperature step size based on the eye-protection color temperature difference and a preset number of steps, wherein the eye-protection color temperature difference is determined based on the difference between the maximum eye-protection color temperature value and the minimum eye-protection color temperature value.

[0014] In some embodiments, the determining unit is specifically configured to determine the color temperature adjustment value corresponding to the image to be displayed based on the product of color saturation and the eye-protection color temperature step size; and to determine the target color temperature corresponding to the image to be displayed in eye protection mode based on the sum of the color temperature adjustment value and the minimum eye-protection color temperature value.

[0015] In some embodiments, the determining unit is specifically used to calculate the target color coordinates of the white point corresponding to the target color temperature based on the blackbody trajectory curve; and to determine the color temperature conversion matrix based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature.

[0016] In some embodiments, the determining unit is specifically used to transform the source color coordinates of the white point corresponding to the source color temperature to the color adaptation coordinate system using a color adaptation matrix to obtain the color-adapted source color coordinates; to transform the target color coordinates of the white point corresponding to the target color temperature to the color adaptation coordinate system using a color adaptation matrix to obtain the color-adapted target color coordinates; and to obtain a color temperature conversion matrix based on the color-adapted source color coordinates, the color-adapted target color coordinates, and the conversion matrix between the RGB color space and the XYZ color space.

[0017] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the methods described in the first aspect above.

[0018] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement any of the methods described in the first aspect above.

[0019] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program and instructions that, when executed by a processor, implement any of the methods described in the first aspect above.

[0020] The technical solution provided in this disclosure can include the following beneficial effects: acquiring the color saturation of the image to be displayed at set time intervals, determining the target color temperature of the image to be displayed in eye protection mode based on the color saturation and a preset eye-protection color temperature step size, then determining a color temperature conversion matrix based on the difference between the source color temperature of the screen and the target color temperature, using the color temperature conversion matrix to convert the RGB value of each pixel in the image to be displayed into the RGB value corresponding to the target color temperature, and displaying the converted image. This disclosure determines the target color temperature based on the color saturation of the image to be displayed, thereby realizing dynamic adjustment of the screen's eye protection effect and achieving a more intelligent and comfortable eye protection effect.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0023] Figure 1 This is a schematic diagram illustrating an application scenario of a laptop computer according to an exemplary embodiment of this disclosure;

[0024] Figure 2 This is a flowchart illustrating a screen display method according to an exemplary embodiment of the present disclosure;

[0025] Figure 3 This is a flowchart illustrating the determination of a color temperature conversion matrix according to an exemplary embodiment of the present disclosure;

[0026] Figure 4 This is a detailed flowchart illustrating a screen display method according to an exemplary embodiment of the present disclosure;

[0027] Figure 5 This is a schematic diagram of the structure of a screen display device according to an exemplary embodiment of the present disclosure;

[0028] Figure 6 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0030] Current eye protection functions can cause color distortion in highly saturated colors, affecting color display and user experience, and may even exacerbate eye fatigue. Therefore, this disclosure provides a screen display method that, in eye protection mode, dynamically adjusts the screen color temperature based on the color saturation of the image to be displayed, thereby making low-saturation images more eye-friendly and high-saturation images more realistic and accurate, achieving a more intelligent and comfortable eye protection effect.

[0031] The screen display method provided in this disclosure is applicable to electronic devices with screens, including but not limited to mobile phones, computers, laptops, tablets, etc. Figure 1As shown, taking a laptop as an example, when the laptop is in eye protection mode, using this disclosure for screen display can improve the eye protection effect.

[0032] The following embodiments will describe the screen display method provided in this disclosure in conjunction with the accompanying drawings.

[0033] Figure 2 This is a flowchart illustrating a screen display method according to an exemplary embodiment of the present disclosure, such as... Figure 2 As shown, the screen display method provided in this disclosure includes the following steps 201 to 204.

[0034] In step 201, the color saturation of the image to be displayed is obtained at a set time interval.

[0035] When an electronic device is in eye protection mode, the color saturation of the image to be displayed is acquired at a set time interval. This time interval can be set according to actual needs; for example, it can be set to 5 seconds.

[0036] Those skilled in the art should understand that, in addition to acquiring the color saturation of the image to be displayed at set time intervals, the color saturation of the image to be displayed can also be acquired in real time, with the acquisition frequency being greater than or equal to the real-time refresh rate of the screen.

[0037] When the conditions for entering eye protection mode are met, the electronic device enters eye protection mode. These conditions include detecting an external command to activate eye protection mode, or detecting that the current environment of the electronic device meets preset conditions. For example, the preset conditions may include the current time being within a preset time period for eye protection, or the current ambient brightness being within a preset brightness range.

[0038] In step 202, the target color temperature of the image to be displayed in eye protection mode is determined based on the color saturation and the preset eye protection color temperature step size.

[0039] In this embodiment, a pre-defined correlation between color saturation range and eye-protection color temperature step size can be established. Given the color saturation of the image to be displayed, the color saturation range to which it belongs is first determined. Then, the eye-protection color temperature step size corresponding to the color saturation range is obtained through the pre-defined correlation, and this step size is defined as the color temperature adjustment value. Subsequently, the target color temperature of the image to be displayed in eye-protection mode is obtained by summing the color temperature adjustment value and the minimum eye-protection color temperature value. In this embodiment, the target color temperature is positively correlated with the color saturation.

[0040] In step 203, a color temperature conversion matrix is ​​determined based on the difference between the source color temperature and the target color temperature of the screen.

[0041] In this embodiment, the source color temperature of the screen refers to the color temperature when the screen displays a white image. A color temperature conversion matrix is ​​a tool used to adjust the color temperature of an image; it can convert an image from its source color temperature to a target color temperature. In this embodiment, the color temperature conversion matrix can be derived based on the difference between the source color temperature and the target color temperature.

[0042] In step 204, the RGB value of each pixel in the image to be displayed is converted to the RGB value corresponding to the target color temperature using the color temperature conversion matrix, and the converted image is displayed.

[0043] The color temperature conversion matrix is ​​used to process the RGB values ​​of each pixel in the image to be displayed, and the processed RGB values ​​of each pixel are then output, thereby displaying the processed image on the screen.

[0044] This disclosure allows for dynamic adjustment of the target color temperature in eye protection mode based on the color saturation of the displayed image. For low-saturation images, such as those used in document viewing or reading scenarios, the eye protection level is increased by lowering the target color temperature in eye protection mode. Conversely, for high-saturation images, such as those used in videos or images, the eye protection level is reduced to ensure accurate color reproduction and a better visual experience. This disclosure makes low-saturation images more eye-friendly and high-saturation images more realistic and accurate in color, achieving a more intelligent and comfortable eye protection effect.

[0045] In some embodiments, the color saturation of the image to be displayed can be characterized by average saturation. That is, obtaining the color saturation of the image to be displayed may include: obtaining the image to be displayed and converting the image to be displayed from the RGB color space to the HSV color space; and determining the average saturation of the image to be displayed based on the color saturation of each pixel in the converted image.

[0046] The RGB color space is a color space defined based on human visual perception. In RGB, R represents Red, G represents Green, and B represents Blue. By layering these three basic colors to varying degrees, a rich and wide range of colors can be produced. The HSV color space was proposed for better digital color processing. In HSV, H represents Hue, S represents Saturation, and V represents Value. Hue is related to the dominant wavelength of light in the mixed spectrum; saturation refers to relative purity, or the amount of white light mixed with a color; and value reflects the lightness or darkness perceived by the human eye, and this indicator is related to the reflectivity of an object.

[0047] Since most electronic device screens operate based on the RGB color model, the image to be displayed is represented in the RGB color space. Then, image processing software or library functions (such as OpenCV) can be used to convert the RGB image to the HSV color space. In the HSV color space, it is easier to determine the average saturation of the image to be displayed.

[0048] For example, the average saturation of the image to be displayed can be determined by the following formula (1).

[0049]

[0050] In formula (1), S AVG S represents the average saturation of the image to be displayed. SUM This represents the sum of the saturation of all pixels in the image to be displayed; m represents the number of pixels horizontally; n represents the number of pixels vertically; S ij This represents the saturation of the pixel in the i-th row and j-th column.

[0051] Those skilled in the art should understand that, in addition to using average saturation to characterize the color saturation of the image to be displayed, parameters such as saturation variance, saturation covariance, saturation standard deviation, and saturation median can also be used to characterize the color saturation of the image to be displayed. This implementation does not impose any limitations on this.

[0052] In this embodiment, the eye-protection color temperature step size can be understood as the smallest unit or step size of color temperature change within the eye-protection range. The eye-protection color temperature step size can be determined based on the screen's color temperature adjustment capability or the eye-protection color temperature adjustment range. For example, if the eye-protection color temperature adjustment range is from 6500K to 4500K, the eye-protection color temperature step size can be set to 200K, 100K, 50K, or even smaller, depending on the actual needs.

[0053] In this embodiment, the eye-protection color temperature step size can be determined based on the eye-protection color temperature difference and the preset number of steps, wherein the eye-protection color temperature difference is determined based on the difference between the maximum eye-protection color temperature value and the minimum eye-protection color temperature value.

[0054] In this embodiment, for images with low saturation, a lower target color temperature is desired in eye protection mode; conversely, for images with high saturation, to achieve more realistic and accurate colors, a smaller reduction in screen color temperature is desired in eye protection mode. The following embodiments will specifically illustrate how to calculate the target color temperature under eye protection function based on color saturation.

[0055] When the eye-protection color temperature step size is known, determining the target color temperature of the image to be displayed in eye protection mode based on the color saturation and the preset eye-protection color temperature step size may include: determining the color temperature adjustment value corresponding to the image to be displayed based on the product of the color saturation and the eye-protection color temperature step size; and determining the target color temperature of the image to be displayed in eye protection mode based on the sum of the color temperature adjustment value and the minimum eye-protection color temperature value.

[0056] When the color saturation of the image to be displayed is characterized by average saturation, the color temperature adjustment value corresponding to the image to be displayed can be determined by multiplying the average saturation and the eye-protection color temperature step size. The sum of the color temperature adjustment value and the minimum eye-protection color temperature value is then determined as the target color temperature of the image to be displayed in eye-protection mode.

[0057] For example, the target color temperature of the image to be displayed in eye protection mode can be determined according to the following formula (2).

[0058]

[0059] In formula (2), T target Indicates the target color temperature of the image to be displayed in eye protection mode; T max Indicates the maximum eye-protection color temperature value; T min This indicates the minimum eye-protection color temperature value; Q indicates the preset number of steps.

[0060] In one possible implementation, the maximum eye-protection color temperature value can be 6500, the minimum eye-protection color temperature value can be 4500, and the preset number of steps can be 100.

[0061] After determining the target color temperature through the above embodiments, you can refer to... Figure 3 The flowchart shown determines the color temperature conversion matrix, such as... Figure 3 As shown, determining the color temperature conversion matrix based on the difference between the source color temperature and the target color temperature of the screen may include the following steps 301 and 302.

[0062] In step 301, the target color coordinates of the white point corresponding to the target color temperature are calculated based on the blackbody trajectory curve.

[0063] The blackbody trajectory curve, also known as the Planck blackbody trajectory curve or Planck trajectory curve, is a curve showing the change in the chromaticity coordinates of the spectrum emitted by an absolute blackbody at different temperatures. The target chromaticity coordinates of the white point corresponding to the target color temperature can be calculated from the blackbody trajectory curve.

[0064] For example, the target color coordinates of the white point corresponding to the target color temperature can be determined according to the following formula (3).

[0065]

[0066] In formula (3), x target The x-coordinate represents the target color coordinates; y target The vertical coordinates of the target color coordinates are represented by a1, a2, a3, and a4; b1, b2, b3, and b4 are constants.

[0067] In practical calculations, the above constants can take the following values:

[0068] a1=3.025869, a2=2.1070379, a3=0.2226347, a4=0.240390.

[0069] b1=3.0817580, b2=5.87338670, b3=3.75112997, b4=0.37001483.

[0070] In step 302, the color temperature conversion matrix is ​​determined based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature.

[0071] Since color temperature conversion matrices are typically calculated in a specific color space (such as RGB, XYZ, etc.), it is necessary to convert the source color coordinates corresponding to the white point of the source color temperature and the target color coordinates corresponding to the white point of the target color temperature to the same color space. The XYZ color space, defined by the International Commission on Illumination (CIE), is a color space that is easier to calculate. The XYZ color system requires that the three color ratio coefficients X, Y, and Z are all greater than 0; the value of Y is exactly the brightness of the colored light; and X = Y = Z represents standard white light.

[0072] In some embodiments, the source color coordinates and target color coordinates can be transformed to the same color space using a color adaptation matrix, and a color temperature conversion matrix can be calculated based on the transformed color coordinates. That is, determining the color temperature conversion matrix based on the source color coordinates corresponding to the white point of the source color temperature and the target color coordinates corresponding to the white point of the target color temperature can include: transforming the source color coordinates corresponding to the white point of the source color temperature to the color adaptation coordinate system using the color adaptation matrix to obtain the color-adapted source color coordinates; transforming the target color coordinates corresponding to the white point of the target color temperature to the color adaptation coordinate system using the color adaptation matrix to obtain the color-adapted target color coordinates; and obtaining the color temperature conversion matrix based on the color-adapted source color coordinates, the color-adapted target color coordinates, and the conversion matrix between the RGB color space and the XYZ color space.

[0073] In this embodiment, the CAT02 color adaptation matrix can be used to transform the source and target color coordinates to the same color space. CAT02 is a color adaptation transformation model used to transform colors from one observation condition to another, simulating human color perception under different lighting conditions. The CAT02 color adaptation matrix is ​​the mathematical tool used in this transformation process. The color adaptation coordinate system is a special color space used to describe colors after color adaptation transformation. In this coordinate system, the representation of colors can better reflect human color perception under different lighting conditions.

[0074] Both the source and target color coordinates are multiplied by the CAT02 color adaptation matrix, thus transforming them from the original color space to the color-adapted coordinate system. Based on the color-adapted source and target color coordinates, and the transformation matrix between the RGB and XYZ color spaces, a color temperature conversion matrix can be constructed using linear interpolation or iterative methods. This constructed color temperature conversion matrix is ​​then applied to the image to be displayed to obtain the image data at the target color temperature.

[0075] For example, in this embodiment, x source The x-coordinate represents the source color coordinates; y source The ordinate of the source color coordinate is represented by the following formula (4), which represents the source color coordinate after color adaptation conversion and the target color coordinate after color adaptation conversion.

[0076]

[0077] In the above formula (4), (X source Y source Z source () represents the source color coordinates after color adaptation conversion, obtained by transforming the source color coordinates to the XYZ color space; (X target Y target Z target This represents the target color coordinates after color adaptation conversion, obtained by converting the target color coordinates to the XYZ color space.

[0078] In this embodiment, the CAT02 color adaptation matrix MA is shown in the following formula (5).

[0079]

[0080] The color temperature conversion matrix obtained through the above embodiments is shown in the following formula (6).

[0081]

[0082] In the above formula (6), PCC represents the color temperature conversion matrix; M RGBtoXYZThis represents the transformation matrix from the RGB color space to the XYZ color space; ConeS = MA * [X source Y source Z source ConeT = MA*[X] target Y target Z target ]; M XYZtoRGB This represents the transformation matrix from the XYZ color space to the RGB color space.

[0083] For ease of understanding, the following embodiments will be described in conjunction with the accompanying drawings to illustrate a specific implementation of this disclosure.

[0084] Figure 4 This is a detailed flowchart illustrating a screen display method according to an exemplary embodiment of the present disclosure, such as... Figure 4 As shown, the screen display method provided in this disclosure includes the following steps 401 to 406.

[0085] In step 401, the RGB color coordinates of the image to be displayed are obtained.

[0086] In step 402, the RGB color coordinates are converted to the HSV color space.

[0087] In step 403, the average saturation of all pixels in the image to be displayed is calculated in the HSV color space.

[0088] In step 404, the target color temperature of the image to be displayed in eye protection mode is calculated based on the average saturation.

[0089] In step 405, the color temperature conversion matrix is ​​obtained based on the source color coordinates of the screen, the target color coordinates corresponding to the target color temperature, and the CAT02 color adaptation matrix.

[0090] In step 406, the RGB value of each pixel in the image to be displayed is multiplied by the color temperature conversion matrix, and the resulting color is the target color of the dynamic eye protection mode in the image to be displayed.

[0091] This disclosure enables dynamic adjustment of the eye protection effect based on the color saturation of the image to be displayed on the screen. It is more eye-friendly for low-saturation images, such as reading and document viewing, and maintains color accuracy and reproduction for high-saturation images, such as videos and images, thus achieving a smarter and more comfortable eye protection effect.

[0092] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should know that this disclosure is not limited to the described order of actions, because according to this disclosure, some steps may be performed in other orders or simultaneously.

[0093] Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by this disclosure.

[0094] Corresponding to the aforementioned application function implementation method embodiments, this disclosure also provides embodiments of application function implementation apparatus and corresponding terminals.

[0095] Figure 5 This is a schematic diagram of the structure of a screen display device in an exemplary embodiment of this disclosure, as shown below. Figure 5 As shown, the screen display device may include:

[0096] The acquisition unit 501 is used to acquire the color saturation of the image to be displayed at a set time interval;

[0097] The determining unit 502 is used to determine the target color temperature of the screen to be displayed in eye protection mode based on the color saturation and the preset eye protection color temperature step size, and to determine the color temperature conversion matrix based on the difference between the source color temperature of the screen and the target color temperature, wherein the target color temperature is positively correlated with the color saturation.

[0098] The processing unit 503 is used to convert the RGB value of each pixel in the image to be displayed into the RGB value corresponding to the target color temperature using the color temperature conversion matrix, and then display the converted image.

[0099] In some embodiments, the acquisition unit 501 is specifically used to acquire the image to be displayed and convert the image to be displayed from the RGB color space to the HSV color space; and determine the average saturation of the image to be displayed based on the color saturation of each pixel in the converted image.

[0100] In some embodiments, the determining unit 502 is further configured to determine the eye protection color temperature step size based on the eye protection color temperature difference and the preset number of steps, wherein the eye protection color temperature difference is determined based on the difference between the maximum eye protection color temperature value and the minimum eye protection color temperature value.

[0101] In some embodiments, the determining unit 502 is specifically used to determine the color temperature adjustment value corresponding to the image to be displayed based on the product of color saturation and the eye-protection color temperature step size; and to determine the target color temperature corresponding to the image to be displayed in eye protection mode based on the sum of the color temperature adjustment value and the minimum eye-protection color temperature value.

[0102] In some embodiments, the determining unit 502 is specifically used to calculate the target color coordinates of the white point corresponding to the target color temperature based on the blackbody trajectory curve; and to determine the color temperature conversion matrix based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature.

[0103] In some embodiments, the determining unit 502 is specifically used to transform the source color coordinates of the white point corresponding to the source color temperature to the color adaptation coordinate system using a color adaptation matrix to obtain the color-adapted source color coordinates; transform the target color coordinates of the white point corresponding to the target color temperature to the color adaptation coordinate system using a color adaptation matrix to obtain the color-adapted target color coordinates; and obtain a color temperature conversion matrix based on the color-adapted source color coordinates, the color-adapted target color coordinates, and the conversion matrix between the RGB color space and the XYZ color space.

[0104] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0105] Accordingly, this disclosure provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to:

[0106] Obtain the color saturation of the image to be displayed at set time intervals;

[0107] Based on the color saturation and the preset eye-protection color temperature step size, the target color temperature of the image to be displayed in eye-protection mode is determined, and the target color temperature is positively correlated with the color saturation.

[0108] A color temperature conversion matrix is ​​determined based on the difference between the source color temperature and the target color temperature of the screen;

[0109] Using the color temperature conversion matrix, the RGB value of each pixel in the image to be displayed is converted into the RGB value corresponding to the target color temperature, and the converted image is displayed.

[0110] Figure 6 This is a schematic diagram illustrating the structure of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a user device, specifically a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, wearable device such as smartwatch, smart glasses, smart bracelet, smart running shoes, etc.

[0111] Reference Figure 6The electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0112] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

[0113] Memory 604 is configured to store various types of data to support the operation of device 600. Examples of this data include instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 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 storage, flash memory, magnetic disk, or optical disk.

[0114] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.

[0115] Multimedia component 608 includes a screen that provides an output interface between the aforementioned electronic device 600 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0116] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

[0117] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0118] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 can detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0119] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the aforementioned communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0120] In an exemplary embodiment, the electronic device 600 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 methods described above.

[0121] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 604 including instructions, which, when executed by a processor 620 of an electronic device 600, enables the electronic device 600 to perform a screen display method.

[0122] The non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0123] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0124] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A screen display method, characterized in that, The method includes: Obtain the color saturation of the image to be displayed at set time intervals; Based on the color saturation and the preset eye-protection color temperature step size, the target color temperature of the image to be displayed in eye-protection mode is determined, and the target color temperature is positively correlated with the color saturation. A color temperature conversion matrix is ​​determined based on the difference between the source color temperature and the target color temperature of the screen; Using the color temperature conversion matrix, the RGB value of each pixel in the image to be displayed is converted into the RGB value corresponding to the target color temperature, and the converted image is displayed.

2. The method according to claim 1, characterized in that, The process of obtaining the color saturation of the image to be displayed includes: Obtain the image to be displayed, and convert the image to be displayed from the RGB color space to the HSV color space; The average saturation of the image to be displayed is determined based on the color saturation of each pixel in the converted image.

3. The method according to claim 1, characterized in that, The method further includes: The eye-protection color temperature step size is determined based on the eye-protection color temperature difference and the preset number of steps. The eye-protection color temperature difference is determined based on the difference between the maximum and minimum eye-protection color temperature values.

4. The method according to claim 3, characterized in that, The step of determining the target color temperature of the image to be displayed in eye protection mode based on the color saturation and the preset eye-protection color temperature step size includes: The color temperature adjustment value corresponding to the image to be displayed is determined based on the product of color saturation and the eye-protection color temperature step size. The target color temperature of the image to be displayed in eye protection mode is determined based on the sum of the color temperature adjustment value and the minimum eye protection color temperature value.

5. The method according to claim 1, characterized in that, Determining the color temperature conversion matrix based on the difference between the source color temperature and the target color temperature of the screen includes: Calculate the target color coordinates of the white point corresponding to the target color temperature based on the blackbody trajectory curve; The color temperature conversion matrix is ​​determined based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature.

6. The method according to claim 5, characterized in that, The step of determining the color temperature conversion matrix based on the difference between the source color coordinates of the white point corresponding to the source color temperature and the target color coordinates of the white point corresponding to the target color temperature includes: The source color coordinates corresponding to the white point of the source color temperature are transformed to the color adaptation coordinate system using the color adaptation matrix to obtain the source color coordinates after color adaptation transformation; The target color coordinates of the white point corresponding to the target color temperature are transformed to the color adaptation coordinate system using the color adaptation matrix to obtain the target color coordinates after color adaptation transformation; The color temperature conversion matrix is ​​obtained based on the source color coordinates after color adaptation conversion, the target color coordinates after color adaptation conversion, and the conversion matrix between the RGB color space and the XYZ color space.

7. A screen display device, characterized in that, The device includes: The acquisition unit is used to acquire the color saturation of the image to be displayed at set time intervals; The determining unit is used to determine the target color temperature of the image to be displayed in eye protection mode based on the color saturation and the preset eye protection color temperature step size, and to determine the color temperature conversion matrix based on the difference between the source color temperature of the screen and the target color temperature, wherein the target color temperature is positively correlated with the color saturation. The processing unit is used to convert the RGB value of each pixel in the image to be displayed into the RGB value corresponding to the target color temperature using the color temperature conversion matrix, and then display the converted image.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in any one of claims 1 to 6.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program and instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.