Screen display method and device, and computer storage medium
By obtaining the ambient light color temperature and calculating the target RGB value, and using the color adaptation matrix and color conversion matrix to adjust the screen color, the problem of color distortion of electronic devices in eye protection mode is solved, and accurate color display and eye protection effects are achieved.
Patent Information
- Application Number
- CN201911229407.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-12-04
AI Technical Summary
Existing electronic devices adjust the red, green, and blue proportions in equal proportions in the eye protection mode, resulting in color distortion on the screen.
By obtaining the ambient light color temperature of the screen, the target color temperature is determined, and the target RGB value of each pixel is calculated based on the target color temperature. The color adaptation matrix and the color conversion matrix are used for color adjustment to ensure that the screen display color temperature changes with the environment and solve color problems. Distortion problem.
It realizes that under different ambient light conditions, the screen output color can not only achieve the effect of eye protection, but also ensure accurate display, solving the problem of color distortion.
Smart Images

Figure CN112905141B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a screen display method and device, and a computer storage medium. Background Art
[0002] At present, some electronic devices support eye protection mode, which adjusts the screen white point coordinates by changing the ratio of red, green and blue in the display screen, thereby achieving an eye protection mode similar to the paper effect. However, for each color, the ratio of red, green and blue is adjusted in equal proportion, and this eye protection mode often causes the problem of screen color distortion. Summary of the invention
[0003] The present invention provides a screen display method and device, and a computer storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a screen display method is provided, the method comprising:
[0005] Get the ambient light color temperature of the screen;
[0006] Determining a target color temperature of the screen according to the color temperature of the ambient light;
[0007] Determining a target red, green, and blue (RGB) value for each pixel in the image to be displayed according to the target color temperature;
[0008] The image to be displayed is displayed according to the target RGB value corresponding to each pixel.
[0009] In the above solution, determining the target color temperature of the screen according to the color temperature of the ambient light includes:
[0010] Obtain the blackbody radiation trajectory curve;
[0011] Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
[0012] In the above solution, determining the target RGB value of each pixel in the image to be displayed according to the target color temperature includes:
[0013] Determining a target conversion matrix according to the target color temperature;
[0014] The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
[0015] In the above solution, determining the target conversion matrix according to the target color temperature includes:
[0016] Determine a color conversion matrix based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first type of element, a second type of element, and a third type of element, wherein the first type of element represents a component of R in a G or B-based color system, the second type of element represents a component of G in a R or B-based color system, and the third type of element represents a component of B in a G or R-based color system;
[0017] Determine a first conversion matrix for converting from RGB to Commission Internationale de L'Eclairage (CIE) XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space in which the screen works;
[0018] A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
[0019] In the above solution, determining the color conversion matrix based on the color adaptation matrix includes:
[0020] Determine the target white point coordinates according to the target color temperature;
[0021] Determine the current white point coordinates of the screen;
[0022] A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
[0023] According to a second aspect of an embodiment of the present disclosure, a screen display device is provided, the device comprising:
[0024] A detection module is configured to obtain the ambient light color temperature of the screen;
[0025] A first determination module is configured to determine a target color temperature of the screen according to the color temperature of the ambient light;
[0026] A second determination module is configured to determine a target RGB value of each pixel in the image to be displayed according to the target color temperature;
[0027] The display control module is configured to display the image to be displayed according to the target RGB value corresponding to each pixel.
[0028] In the above solution, the first determining module is configured as follows:
[0029] Obtain the blackbody radiation trajectory curve;
[0030] Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
[0031] In the above solution, the first determining module is configured as follows:
[0032] Determining a target conversion matrix according to the target color temperature;
[0033] The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
[0034] In the above solution, the first determining module is configured as follows:
[0035] Determine a color conversion matrix based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first type of element, a second type of element, and a third type of element, wherein the first type of element represents a component of R in a G or B-based color system, the second type of element represents a component of G in a R or B-based color system, and the third type of element represents a component of B in a G or R-based color system;
[0036] Determine a first conversion matrix for converting from RGB to CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space in which the screen works;
[0037] A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
[0038] In the above solution, the first determining module is configured as follows:
[0039] Determine the target white point coordinates according to the target color temperature;
[0040] Determine the current white point coordinates of the screen;
[0041] A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
[0042] According to a third aspect of an embodiment of the present disclosure, a screen display device is provided, including:
[0043] processor;
[0044] a memory for storing executable instructions;
[0045] Wherein, the processor is configured to: execute the executable instructions to implement the screen display method described in any of the aforementioned solutions.
[0046] According to a fourth aspect of an embodiment of the present disclosure, a computer storage medium is provided, in which executable instructions are stored. When the executable instructions are executed by a processor, the processor executes the screen display method described in any one of the aforementioned schemes.
[0047] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0048] Acquire the ambient light color temperature of the screen; determine the target color temperature of the screen according to the ambient light color temperature; determine the target RGB value of each pixel in the image to be displayed according to the target color temperature; display the image to be displayed according to the target RGB value corresponding to each pixel. In this way, the screen display color temperature can change with the change of the ambient color temperature, which can solve the problem of screen display color distortion.
[0049] 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
[0050] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the description, are used to explain the principles of the present invention. In the drawings:
[0051] Figure 1 is a flowchart of a screen display method according to an exemplary embodiment;
[0052] Figure 2 is a flow chart showing a method for implementing screen display processing according to an exemplary embodiment;
[0053] Figure 3 is a method for determining a target transformation matrix M according to an exemplary embodiment. RGB Schematic diagram of the process;
[0054] Figure 4 is a block diagram of a screen display device according to an exemplary embodiment;
[0055] Figure 5 is a block diagram of a device 800 for implementing screen display processing according to an exemplary embodiment. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.
[0057] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "an", "the" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0058] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at" or "when" or "in response to determination".
[0059] Embodiment 1
[0060] Figure 1 is a flow chart of a screen display method according to an exemplary embodiment. Figure 1 As shown, the screen display method is applied to electronic devices with display screens. The electronic devices include but are not limited to fixed devices and mobile devices. For example, the fixed devices include but are not limited to: personal computers (PCs), televisions, etc.; the mobile devices include but are not limited to: mobile phones, tablet computers, wearable devices, etc. The screen display method includes the following steps:
[0061] In step S11, the ambient light color temperature of the screen is obtained;
[0062] In step S12, a target color temperature of the screen is determined according to the color temperature of the ambient light;
[0063] In step S13, a target red, green, and blue (RGB) value of each pixel in the image to be displayed is determined according to the target color temperature;
[0064] In step S14, the image to be displayed is displayed according to the target RGB value corresponding to each pixel.
[0065] In this embodiment, the ambient light refers to the ambient light of the environment in which the screen of the electronic device is located.
[0066] In this embodiment, the ambient light includes but is not limited to artificial ambient light and natural ambient light. Exemplarily, the artificial ambient light includes lamplight, and the natural ambient light includes sunlight, moonlight, etc.
[0067] In this embodiment, the target color temperature is a target color temperature to which the color temperature of the current ambient light should be set.
[0068] In actual applications, the eye protection mode supported by electronic devices is achieved by adjusting the screen color temperature.
[0069] By adopting the technical solution described in this embodiment, when the screen is displaying, its display color temperature changes with the change of the ambient color temperature, which can solve the problem of color distortion of the screen display. In addition, by combining the screen color temperature with the ambient light color temperature, it is achieved that under different ambient light color temperatures, by adjusting the screen color temperature, the screen output color can achieve the effect of both protecting the eyes and ensuring accurate display.
[0070] In some embodiments, determining the target color temperature of the screen according to the color temperature of the ambient light includes:
[0071] Obtain the blackbody radiation trajectory curve;
[0072] Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
[0073] Here, the full English name of the black body radiation locus is: Black Body Locus.
[0074] In some embodiments, based on the blackbody radiation trajectory, a XYZ curve along the correlated color temperature (CCT) is fitted: (Xd, Yd, Zd) = f(CCT), where f(CCT) represents the target color temperature curve, and (Xd, Yd, Zd) represents the target coordinate value of the pixel point at the target color temperature.
[0075] In this way, the target color temperature is related to the ambient light, thereby ensuring that the eye protection mode used by the user is strongly related to the environment, so that the screen output color can achieve both eye protection and accurate display effects.
[0076] In some implementations, determining a target RGB value for each pixel in the image to be displayed according to the target color temperature includes:
[0077] Determine the target conversion matrix M according to the target color temperature RGB ;
[0078] According to the target transformation matrix M RGB and the original RGB value of each pixel in the image to be displayed, and determine the target RGB value corresponding to each pixel.
[0079] Here, the original RGB value can be understood as the RGB value of the image that will be displayed on the screen without eye protection processing.
[0080] Here, the target RGB value is the RGB value of the image corresponding to the target color temperature adapted to the ambient light to be displayed on the screen under the current ambient light.
[0081] In this way, the eye protection mode used by the user is strongly related to the environment, so that the color of the image output by the screen can both protect the eyes and ensure accurate display.
[0082] In some implementations, determining a target conversion matrix according to the target color temperature includes:
[0083] Based on the chromatic adaptation matrix M A Determine the color conversion matrix M;
[0084] The first conversion matrix M for converting from RGB to the International Commission on Illumination (Commission Internationale de L'Eclairage, CIE) XYZ color space is determined using the color space of the screen. t , and the second conversion matrix M from CIEXYZ to RGB color space t ';
[0085] According to the color conversion matrix M, the first conversion matrix M t and the second transformation matrix M t ', determine the target transformation matrix M RGB .
[0086] Among them, the target transformation matrix M RGB Equal to the second conversion matrix Mt' and the color conversion matrix M and the first conversion matrix M t The product of. That is: M RGB =M t '*M*M t .
[0087] Wherein, the color adaptation matrix M A It includes at least one of the first type of elements, the second type of elements and the third type of elements, wherein the first type of elements represents the component of R in a color system where G or B is the main color, the second type of elements represents the component of G in a color system where R or B is the main color, and the third type of elements represents the component of B in a color system where G or R is the main color.
[0088] The color adaptation mechanism of the human eye means that even if the color coordinates X, Y, and Z of two colors are exactly the same, the colors displayed under different lighting conditions are different. This is the color appearance model of the human eye. The fundamental reason for the color appearance phenomenon is the color adaptation mechanism of the human eye. Color adaptation is the ability of the human visual system to maintain the color appearance of an object according to the color change of the lighting source.
[0089] In this way, the target transformation matrix M is determined based on the chromatic adaptation matrix RGB , which can combine the screen's eye-protection color temperature with the color temperature of ambient light and the visual perception of the human eye, so that the screen has the ability to maintain the color appearance of objects when displaying images according to the color changes of the lighting source.
[0090] In some implementations, determining a color conversion matrix based on a chromatic adaptation matrix includes:
[0091] Determine the target white point coordinates (X WD , Y WD , Z WD );
[0092] Determine the current white point coordinates of the screen (X WS , Y WS , Z WS );
[0093] According to the target white point coordinates (X WD , Y WD , Z WD ), the current white point coordinates (X WS , Y WS , Z WS ) and the chromatic adaptation matrix M A , determine the color conversion matrix M of all current colors on the screen.
[0094] The target white point coordinates are determined according to the target color temperature, including: obtaining the target white point coordinates according to the black body radiation curve and the target color temperature.
[0095] Wherein, the color adaptation matrix M A , the color conversion matrix M, the target conversion matrix M RGB , are all 3*3 matrices. Among them,
[0096]
[0097] Among them, e 11 、e 22 and e 33 Respectively represent the ratio of R, G, and B; e 12 Represents the component of G when R is the main color system; e 13 It represents the component of B when R is the main color system; e 21 Represents the component of R when G is the main color system; e 23 Indicates the component of B when G is the main color; e 31 Represents the component of R when B is the main color; e 32 Indicates the component of G when B is the primary color. For example,
[0098]
[0099] In this embodiment, the chromatic adaptation matrix M A The improved 3×3 matrix further takes into account the component of R in the G or B-dominant color system, the component of G in the R or B-dominant color system, and the component of B in the G or R-dominant color system compared to the 3×1 color adaptation matrix used in the related art, so that the model can adjust the color gamut boundary.
[0100] In the above embodiment, at least one of the component of R in the color system dominated by G or B, the component of G in the color system dominated by R or B, and the component of B in the color system dominated by G or R is a non-zero element. Optionally, according to the user's adjustment requirements for the color gamut boundary, appropriate components can be considered (other components are set to 0) for calculation.
[0101] In a preferred embodiment, the target transformation matrix M RGB All 9 elements of are non-zero elements. Through the above processing, we can get the 3x3 target transformation matrix M RGB After the matrix, the pure red, green and blue colors at the gamut boundary will be mixed with other color components, so that the gamut boundary can be modified.
[0102] In this way, the target conversion matrix model that incorporates the human eye color adaptation mechanism makes up for the shortcoming that the existing model cannot adjust the color gamut boundary.
[0103] The technical solution described in the embodiment of the present disclosure obtains the ambient light color temperature of the screen; determines the target color temperature of the screen according to the ambient light color temperature; determines the target RGB value of each pixel in the image to be displayed according to the target color temperature; and displays the image to be displayed according to the target RGB value corresponding to each pixel. In this way, when the screen is displayed, its display color temperature changes with the change of the ambient color temperature, which can solve the problem of color distortion of the screen display.
[0104] Embodiment 2
[0105] Figure 2 is a flowchart showing a method for implementing screen display processing according to an exemplary embodiment. Figure 2 As shown, the screen display processing flow includes the following steps.
[0106] In step S201, the correlated color temperature (CCT) of the ambient light of the screen is obtained;
[0107] In step S202, a blackbody radiation trajectory curve is determined;
[0108] In step S203, the target CCT of the screen is determined;
[0109] In step S204, a color conversion matrix M is determined;
[0110] In step S205, the target transformation matrix M is determined RGB ;
[0111] In step S206, original RGB data is obtained;
[0112] In step S207, the converted RGB data is determined.
[0113] In this way, the ambient light color temperature of the screen is obtained; the target color temperature of the screen is determined according to the ambient light color temperature and the black body radiation trajectory curve; the color conversion matrix M and the target conversion matrix M are determined according to the target color temperature. RGB ; Get the original RGB value of each pixel in the image to be displayed; according to the target transformation matrix M RGB The target RGB value corresponding to each pixel is obtained; and the image to be displayed is displayed according to the target RGB value corresponding to each pixel. In this way, when the screen is displayed, its display color temperature changes with the change of the ambient color temperature, which can solve the problem of color distortion of the screen display.
[0114] It should be understood that Figure 2 The process shown is merely illustrative and is not limited in this application.
[0115] Embodiment 3
[0116] Figure 3 is a method for determining a target transformation matrix M according to an exemplary embodiment. RGB The process diagram is as follows: Figure 3 As shown, the process mainly includes:
[0117] In step S301, a target CCT of the screen is determined;
[0118] In step S302, a blackbody radiation trajectory curve is determined;
[0119] In step S303, the target white point coordinates of the screen are determined;
[0120] In step S304, the chromatic adaptation matrix M is determined. A ;
[0121] In step S305, the screen working white point coordinates are determined;
[0122] In step S306, a color conversion matrix M is determined;
[0123] In step S307, the working color space of the screen is determined;
[0124] In step S308, determine the XYZ domain RGB interconversion matrix M t and M t ';
[0125] In step S309, the target transformation matrix M is determined RGB .
[0126] In this way, the target white point coordinates of the screen are obtained according to the target color temperature of the screen and the black body radiation trajectory curve; according to the working white point coordinates of the screen, the color adaptation matrix M A And determine the target white point coordinates of the screen to obtain the color conversion matrix M; determine the XYZ domain RGB mutual conversion matrix M according to the working color space of the screen t and M t '; According to the color conversion matrix M, M t and M t 'Determine the target transformation matrix M RGB .
[0127] It should be understood that Figure 3 The process shown is merely illustrative and is not limited in this application.
[0128] Embodiment 4
[0129] Figure 4 is a block diagram of a screen display device according to an exemplary embodiment. Figure 4 The device includes a detection module 10, a first determination module 20, a second determination module 30 and a display control module 40.
[0130] The detection module 10 is configured to obtain the color temperature of the ambient light of the screen;
[0131] The first determination module 20 is configured to determine the target color temperature of the screen according to the ambient light color temperature;
[0132] The second determination module 30 is configured to determine a target RGB value of each pixel in the image to be displayed according to the target color temperature;
[0133] The display control module 40 is configured to display the image to be displayed according to the target RGB value corresponding to each pixel.
[0134] In the above solution, the first determining module 20 is configured as follows:
[0135] Obtain the blackbody radiation trajectory curve;
[0136] Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
[0137] In the above solution, the first determining module 20 is configured as follows:
[0138] Determining a target conversion matrix according to the target color temperature;
[0139] The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
[0140] In the above solution, the first determining module 20 is configured as follows:
[0141] Determine a color conversion matrix based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first type of element, a second type of element, and a third type of element, wherein the first type of element represents a component of R in a G or B-based color system, the second type of element represents a component of G in a R or B-based color system, and the third type of element represents a component of B in a G or R-based color system;
[0142] Determine a first conversion matrix for converting from RGB to CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space in which the screen works;
[0143] A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
[0144] In the above solution, the first determining module 20 is configured as follows:
[0145] Determine the target white point coordinates according to the target color temperature;
[0146] Determine the current white point coordinates of the screen;
[0147] A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
[0148] 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.
[0149] In actual applications, the specific structures of the above-mentioned detection module 10, first determination module 20, second determination module 30 and display control module 40 can be implemented by a central processing unit (CPU, Central Processing Unit), a microprocessor (MCU, Micro Controller Unit), a digital signal processor (DSP, Digital Signal Processing) or a programmable logic device (PLC, Programmable Logic Controller) in the screen display device or the electronic device to which the screen display device belongs.
[0150] The screen display device described in this embodiment can be arranged in an electronic device having a display screen.
[0151] Of course, the screen display device can also exist as an independent device.
[0152] Those skilled in the art should understand that the functions of each processing module in the screen display device of the embodiment of the present disclosure can be understood with reference to the relevant description of the aforementioned screen display method. Each processing module in the screen display device of the embodiment of the present disclosure can be implemented by an analog circuit that implements the functions described in the embodiment of the present disclosure, or can be implemented by running software that executes the functions described in the embodiment of the present disclosure on an electronic device.
[0153] The screen display device described in the embodiment of the present disclosure can change the screen display color temperature as the ambient color temperature changes, thereby solving the problem of screen display color distortion.
[0154] The embodiment of the present disclosure also records a screen display device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the screen display method provided by any one of the aforementioned technical solutions is implemented.
[0155] As an implementation manner, when the processor executes the program, the following is achieved:
[0156] Get the ambient light color temperature of the screen;
[0157] Determining a target color temperature of the screen according to the color temperature of the ambient light;
[0158] Determine a target RGB value for each pixel in the image to be displayed according to the target color temperature;
[0159] The image to be displayed is displayed according to the target RGB value corresponding to each pixel.
[0160] As an implementation manner, when the processor executes the program, the following is achieved:
[0161] Obtain the blackbody radiation trajectory curve;
[0162] Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
[0163] As an implementation manner, when the processor executes the program, the following is achieved:
[0164] Determining a target conversion matrix according to the target color temperature;
[0165] The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
[0166] As an implementation manner, when the processor executes the program, the following is achieved:
[0167] determining a color conversion matrix based on the chromatic adaptation matrix;
[0168] Determine a first conversion matrix for converting from RGB to CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space in which the screen works;
[0169] A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
[0170] As an implementation manner, when the processor executes the program, the following is achieved:
[0171] Determine the target white point coordinates according to the target color temperature;
[0172] Determine the current white point coordinates of the screen;
[0173] A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
[0174] The screen display device provided in the embodiment of the present application can change the screen display color temperature as the ambient color temperature changes, thereby solving the problem of screen display color distortion.
[0175] The embodiment of the present application also describes a computer storage medium, in which computer executable instructions are stored, and the computer executable instructions are used to execute the screen display method described in the above embodiments. That is, after the computer executable instructions are executed by the processor, the screen display method provided by any of the above technical solutions can be implemented.
[0176] Those skilled in the art should understand that the functions of each program in the computer storage medium of this embodiment can be understood by referring to the relevant description of the screen display method described in the above embodiments.
[0177] Embodiment 5
[0178] Figure 5 8 is a block diagram of an apparatus 800 for implementing screen display processing according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0179] Reference Figure 5 The device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0180] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0181] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0182] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0183] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen 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 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera 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.
[0184] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0185] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0186] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0187] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
[0188] In an exemplary embodiment, the device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned control processing method applied to the electronic device side.
[0189] In an exemplary embodiment, a non-transitory computer storage medium including executable instructions is also provided, such as a memory 804 including executable instructions, and the above executable instructions can be executed by the processor 820 of the device 800 to complete the above method. For example, the non-transitory computer storage medium can be a ROM, a random access memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0190] The technical solutions described in the embodiments of the present disclosure can be combined arbitrarily without conflict.
[0191] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0192] It should be understood that the present invention is not limited to the exact construction that has 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 invention is limited only by the appended claims.
Claims
1. A screen display method, characterized in that: The method comprises: Get the ambient light color temperature of the screen; Determining a target color temperature of the screen according to the color temperature of the ambient light; Determine the target red, green, and blue (RGB) value of each pixel in the image to be displayed according to the target color temperature; Displaying the image to be displayed according to the target RGB value corresponding to each pixel; Wherein, determining the target RGB value of each pixel in the image to be displayed according to the target color temperature includes: A target conversion matrix is determined according to the target color temperature and a color adaptation matrix; the color adaptation matrix includes at least one of a first-category element, a second-category element, and a third-category element, wherein the first-category element represents a component of R in a G or B-based color system, the second-category element represents a component of G in a R or B-based color system, and the third-category element represents a component of B in a G or R-based color system; The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
2. The screen display method according to claim 1, characterized in that: The determining the target color temperature of the screen according to the color temperature of the ambient light comprises: Obtain the blackbody radiation trajectory curve; Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
3. The screen display method according to claim 1, characterized in that: Determining a target conversion matrix according to the target color temperature and the color adaptation matrix includes: determining a color conversion matrix based on the chromatic adaptation matrix; Determine a first conversion matrix for converting from RGB to International Commission on Illumination CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space of the screen; A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
4. The screen display method according to claim 3, characterized in that: Determining a color conversion matrix based on a color adaptation matrix includes: Determine the target white point coordinates according to the target color temperature; Determine the current white point coordinates of the screen; A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
5. A screen display device, characterized in that: The device comprises: A detection module is configured to obtain the ambient light color temperature of the screen; A first determination module is configured to determine a target color temperature of the screen according to the color temperature of the ambient light; A second determination module is configured to determine a target RGB value for each pixel in the image to be displayed according to the target color temperature; A display control module is configured to display the image to be displayed according to the target RGB value corresponding to each pixel; Wherein, the first determining module is configured to: A target conversion matrix is determined according to the target color temperature and a color adaptation matrix; the color adaptation matrix includes at least one of a first-category element, a second-category element, and a third-category element, wherein the first-category element represents a component of R in a G or B-based color system, the second-category element represents a component of G in a R or B-based color system, and the third-category element represents a component of B in a G or R-based color system; The target RGB value corresponding to each pixel is determined according to the target conversion matrix and the original RGB value of each pixel in the image to be displayed.
6. The screen display device according to claim 5, characterized in that: The first determining module is configured to: Obtain the blackbody radiation trajectory curve; Based on the blackbody radiation trajectory curve and the ambient light color temperature, a target color temperature of the screen is determined.
7. The screen display device according to claim 5, characterized in that: The first determining module is configured to: determining a color conversion matrix based on the chromatic adaptation matrix; Determine a first conversion matrix for converting from RGB to CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space using the color space in which the screen works; A target conversion matrix is determined according to the color conversion matrix, the first conversion matrix, and the second conversion matrix.
8. The screen display device according to claim 7, characterized in that: The first determining module is configured to: Determine the target white point coordinates according to the target color temperature; Determine the current white point coordinates of the screen; A color conversion matrix for all current colors of the screen is determined according to the target white point coordinates, the current white point coordinates and the chromatic adaptation matrix.
9. A screen display device, comprising: processor; a memory for storing executable instructions; Wherein, the processor is configured to: execute the executable instructions to implement the screen display method described in any one of claims 1 to 4.
10. A computer storage medium, wherein executable instructions are stored in the computer storage medium, and when the executable instructions are executed by a processor, the processor executes the screen display method according to any one of claims 1 to 4.
