Color effect processing method and device, electronic equipment and storage medium
By obtaining the actual color temperature of the display and determining the target color conversion coefficient, the initial color is converted to the target color matching the actual color temperature, solving the problem of mismatch between the display color effect and the color temperature, and improving the accuracy and user experience of color display.
Patent Information
- Application Number
- CN202410073562.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2025-07-18
AI Technical Summary
At the color temperature of different display screens, the color effect displayed does not match the actual color temperature, affecting the user's visual experience.
By obtaining the actual color temperature of the display screen, determining the target color conversion coefficient, and converting the initial color to the target color matching the actual color temperature based on this coefficient, the display effect of the display screen is processed using the target color conversion coefficient.
While maintaining the current color temperature of the display screen, the color effect matches the human eye vision, improving the accuracy of color display and user viewing experience.
Smart Images

Figure CN120340388A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of color processing, and in particular, to a color effect processing method, apparatus, electronic device, and storage medium. Background Art
[0002] In recent years, various display devices have been equipped with the function of automatically or manually adjusting the color temperature of the display screen to meet the user's requirements for different color temperatures of the display screen and improve the display comfort in different environments. However, when implementing various color effects under different color temperatures of the display screen, it is easy to have the problem that the displayed color effect does not match the color temperature of the display screen, which affects the user's visual experience. Summary of the Invention
[0003] The present disclosure provides a color effect processing method, apparatus, electronic device, and storage medium to overcome the problem that the displayed color effect does not match the actual color temperature of the display screen.
[0004] According to a first aspect of an embodiment of the present disclosure, a color effect processing method is provided, including:
[0005] Obtaining the actual color temperature of the display screen;
[0006] When a first instruction is detected, determining a target color conversion coefficient corresponding to the actual color temperature; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature; the target color conversion coefficient is determined based at least on a target color and a standard color conversion coefficient of the target color under a standard color temperature;
[0007] Based on the target color conversion coefficient, converting the initial color displayed on the display screen to a target color that matches the actual color temperature.
[0008] In some embodiments, the determining the target color conversion coefficient corresponding to the actual color temperature includes:
[0009] Determining a standard color conversion coefficient of the target color under a standard color temperature;
[0010] Based on the standard color conversion coefficient, determining the target color conversion coefficient.
[0011] In some embodiments, the determining the target color conversion coefficient based on the standard color conversion coefficient includes:
[0012] Obtaining actual color parameters of a standard pixel under the actual color temperature; wherein, the color parameters of the standard pixel remain unchanged after color conversion processing;
[0013] Based on the actual color parameters of the standard pixel and the standard color conversion coefficient, determining the target color conversion coefficient.
[0014] In some embodiments, determining the target color conversion coefficient based on the actual color parameters of the standard pixels and the standard color conversion coefficient includes:
[0015] Determining a correction parameter based on the actual color parameters of the standard pixels and the standard color conversion coefficient;
[0016] Obtaining the target color conversion coefficient based on the correction parameter and the standard color conversion coefficient.
[0017] In some embodiments, converting the initial color displayed on the display screen to a target color matching the actual color temperature based on the target color conversion coefficient includes:
[0018] Based on the target color conversion coefficient, adjusting the display parameters of the display screen from the initial display parameters corresponding to the initial color to the target display parameters corresponding to the target color;
[0019] Performing screen display through the target display parameters.
[0020] In some embodiments, converting the initial color displayed on the display screen to a target color matching the actual color temperature based on the target color conversion coefficient includes:
[0021] Performing conversion processing on the initial color of the image displayed on the display screen based on the target color conversion coefficient to obtain an image with the target color;
[0022] Displaying the image with the target color through the display screen.
[0023] In some embodiments, obtaining the actual color temperature of the display screen includes:
[0024] When detecting the display content of the display screen, obtaining the actual brightness parameter of the display screen;
[0025] Based on the actual brightness parameter and the correspondence between the brightness parameter and the color temperature, obtaining the actual color temperature of the display screen;
[0026] Wherein, the correspondence between the brightness parameter and the color temperature is determined by detecting with an optical measuring instrument.
[0027] According to a second aspect of the embodiments of the present disclosure, there is provided a color effect processing device, including:
[0028] An acquisition module configured to acquire the actual color temperature of the display screen;
[0029] A determination module, configured to determine a target color conversion coefficient corresponding to the actual color temperature when a first instruction is detected; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature; the target color conversion coefficient is determined based at least on a target color and a standard color conversion coefficient of the target color under a standard color temperature;
[0030] A processing module, configured to convert the initial color displayed on the display screen to a target color that matches the actual color temperature based on the target color conversion coefficient.
[0031] In some embodiments, the determination module is further configured to:
[0032] Determine the standard color conversion coefficient of the target color under the standard color temperature;
[0033] Determine the target color conversion coefficient based on the standard color conversion coefficient.
[0034] In some embodiments, the determination module is further configured to:
[0035] Obtain the actual color parameters of a standard pixel under the actual color temperature; wherein, the color parameters of the standard pixel remain unchanged after color conversion processing;
[0036] Determine the target color conversion coefficient based on the actual color parameters of the standard pixel and the standard color conversion coefficient.
[0037] In some embodiments, the determination module is further configured to:
[0038] Determine a correction parameter based on the actual color parameters of the standard pixel and the standard color conversion coefficient;
[0039] Obtain the target color conversion coefficient based on the correction parameter and the standard color conversion coefficient.
[0040] In some embodiments, the processing module is further configured to:
[0041] Based on the target color conversion coefficient, adjust the display parameters of the display screen from the initial display parameters corresponding to the initial color to the target display parameters corresponding to the target color;
[0042] Perform screen display through the target display parameters.
[0043] In some embodiments, the processing module is further configured to:
[0044] Perform conversion processing on the initial color of the image displayed on the display screen based on the target color conversion coefficient to obtain an image with the target color;
[0045] Display an image with the target color through the display screen.
[0046] In some embodiments, the obtaining module is further configured to:
[0047] When it is detected that the display screen displays content, obtain the actual brightness parameter of the display screen;
[0048] Based on the actual brightness parameter and the corresponding relationship between the brightness parameter and the color temperature, obtain the actual color temperature of the display screen;
[0049] Wherein, the corresponding relationship between the brightness parameter and the color temperature is detected and determined by an optical measuring instrument.
[0050] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0051] A processor;
[0052] A memory configured to store executable instructions of the processor;
[0053] Wherein, the processor is configured to be able to execute the color effect processing method described in the first aspect above when calling the executable instructions in the memory.
[0054] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the color effect processing method described in the first aspect above.
[0055] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0056] In the color effect processing method of the present disclosure, the actual color temperature of the display screen is obtained. When it is determined that the initial color displayed on the display screen does not match the actual color temperature, the target color conversion coefficient corresponding to the actual color temperature is determined. Based on the target color conversion coefficient, the initial color displayed on the display screen is converted to the target color that matches the actual color temperature. That is, while maintaining the current actual color temperature of the display screen, the display effect of the display screen is processed using the target color conversion coefficient corresponding to the actual color temperature, and the initial color is converted to the target color, realizing the color change that conforms to the human eye vision under the corresponding color temperature, and improving the accuracy of color display and the user viewing experience.
[0057] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Description of the Drawings
[0058] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0059] Figure 1 is a schematic flowchart of a color effect processing method shown according to an exemplary embodiment Figure 1 .
[0060] Figure 2 is a schematic flowchart of a color effect processing method shown according to an exemplary embodiment Figure 2 .
[0061] Figure 3 is a schematic flowchart of a color effect processing method shown according to an exemplary embodiment Figure 3 .
[0062] Figure 4 is a schematic flowchart of a color effect processing method shown according to an exemplary embodiment Figure 4 .
[0063] Figure 5 is a schematic flowchart of a color effect processing method shown according to an exemplary embodiment Figure 5 .
[0064] Figure 6 is a schematic structural diagram of a color effect processing device shown according to an exemplary embodiment.
[0065] Figure 7 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0066] Here, the exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0067] In the specification, unless otherwise clearly stated, the terms "first" and "second" are only used for description to distinguish constituent elements and should not be construed as indicating an order. Unless otherwise clearly stated, terms such as "connection" and "fixation" should be understood in a broad sense, including but not limited to "connection" and "fixation" directly, indirectly, removably, etc.
[0068] Figure 1 is the flowchart of a color effect processing method shown according to an exemplary embodiment Figure 1 , such asFigure 1 As shown in the figure, the method mainly includes the following steps:
[0069] In step 101, obtain the actual color temperature of the display screen.
[0070] It should be noted that this method can be applied to electronic devices. Electronic devices can be mobile phones, tablet computers, handheld computers, laptop computers, desktop computers, wearable devices, cameras, augmented reality devices, virtual reality devices, in-vehicle devices, and so on.
[0071] Color temperature is a measurement unit representing the color components contained in light. It can be simply understood that color temperature is the color of the light source. If the light emitted by a certain light source has the same spectral components as the light emitted by an absolute black body at a certain temperature, the color temperature of the light source is that temperature. For example: The color of the light emitted by a 100W light bulb is the same as the color of an absolute black body at 2527°C. Then the color temperature of the light emitted by this light bulb is 2527°C. Since the international unit of color temperature is Kelvin (K), the color temperature of the light emitted by this light bulb is (2527 + 273)K = 2800K.
[0072] The higher the color temperature, the colder the color emitted by the light source; the lower the color temperature, the warmer the color emitted by the light source. Therefore, the color temperature of the light emitted by the display screen will affect the color displayed on the display screen, and further affect the user's visual perception of color.
[0073] In this embodiment, during the process of obtaining the current actual color temperature of the display screen, the color temperature parameter can be directly obtained from the display device including the display screen as the actual color temperature value, or an optical measuring instrument can be used to directly detect the color temperature of the display screen to obtain the actual color temperature value of the display screen. To ensure the accuracy of the obtained actual color temperature value of the display screen, the first color temperature parameter can be obtained from the display device, the color temperature of the display screen can be detected by an optical measuring instrument to obtain the second color temperature parameter, and the average color temperature value of the first color temperature parameter and the second color temperature parameter can be calculated, and the average color temperature value can be used as the actual color temperature value of the display screen.
[0074] In step 102, when the first instruction is detected, determine the target color conversion coefficient corresponding to the actual color temperature; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature, and the target color conversion coefficient is determined based at least on the target color and the standard color conversion coefficient of the target color under the standard color temperature.
[0075] In this embodiment, when it is determined that the initial color displayed on the display screen does not match the actual color temperature, that is, when the first instruction is received, the target color conversion coefficient corresponding to the actual color temperature is determined; when it is determined that the initial color displayed on the display screen matches the actual color temperature, it indicates that the color display effect of the display screen conforms to the visual perception of the human eye.
[0076] In the process of determining whether the initial color displayed on the display screen matches the actual color temperature, it can be determined that the initial color displayed does not match the actual color temperature based on the received first instruction. For example, the first instruction is an instruction triggered by the user indicating that the initial color does not match the actual color temperature; or, when the first instruction is an instruction indicating that the initial color displayed is to be processed, it indicates that the initial color does not match the actual color temperature. In addition, it is also possible to calculate the color similarity between the initial color displayed on the display screen and the target color that matches the actual color temperature. When the similarity is less than the preset similarity threshold, it is determined that the initial color does not match the actual color temperature; among them, the target color that matches the actual color temperature is the color corresponding to the best visual perception of the human eye; the process of calculating the color similarity is as follows: obtain the RGB value (or HSV value or color value of other color models) of the initial color and the RGB value (or HSV value or color value of other color models) of the standard color, and calculate the similarity between the RGB value of the initial color and the RGB value of the standard color based on the similarity formula. The similarity formula can be the Euclidean distance calculation formula, the Hamming distance calculation formula, the Pearson correlation coefficient calculation formula, etc.
[0077] In some embodiments, the target color conversion coefficient is determined based at least on the target color and the standard color conversion coefficient of the target color at the standard color temperature.
[0078] The target color is the color that matches the actual color temperature. The standard color conversion coefficient can convert various colors at the standard color temperature into the target color. The target color conversion coefficient can convert various colors at the actual color temperature into the target color. And there is a certain proportional relationship between the standard color conversion coefficient and the target color conversion coefficient. Therefore, when calculating the target color conversion coefficient, it can be determined based on the target color and the standard color conversion coefficient of the target color at the standard color temperature.
[0079] The target color can be determined and adjusted in real time based on factors or parameters such as the user's visual perception requirements, the ambient light brightness value of the environment where the display screen is located, the hue and brightness of the image to be displayed on the display screen, etc. For example, when the ambient light brightness of the environment where the display screen is located is low and the user has the best visual perception of the target color effect when all colors are reddish, the color corresponding to when all colors are reddish is the target color.
[0080] In step 103, based on the target color conversion coefficient, the initial color displayed on the display screen is converted to the target color that matches the actual color temperature.
[0081] In this embodiment, after determining the target color conversion coefficient, the initial color displayed on the display screen can be converted and processed to the target color that matches the actual color temperature by using the target color conversion coefficient. In the conversion process, the target color conversion coefficient and the color parameters of the initial color can be substituted into a preset color conversion function or color conversion algorithm to obtain the target color.
[0082] That is to say, when the initial color displayed on the display screen does not match the actual color temperature of the display screen, instead of adjusting the actual color temperature of the display screen to make the initial color conform to the visual perception of the human eye, the initial color is directly converted based on the target color conversion coefficient, so that the display screen can quickly and accurately achieve the color effect that conforms to the actual color temperature and the visual perception of the human eye while maintaining the current actual color temperature, avoiding the situation that the color effect still does not conform to the visual perception of the human eye after multiple color temperature adjustments. For example: when the display screen is in a high color temperature situation, the user needs most colors to be cold-toned and a small part of the colors to be warm-toned. However, the higher the color temperature, the colder the color emitted by the light source, and the lower the color temperature, the warmer the color emitted by the light source. Therefore, even if the color temperature is adjusted multiple times, the corresponding color effect may still not conform to the visual perception of the human eye.
[0083] In some embodiments, as Figure 2 shown, step 102 includes: steps 202 to 203:
[0084] In step 201, the actual color temperature of the display screen is obtained.
[0085] In step 202, when the initial color displayed through the display screen does not match the actual color temperature, the standard color conversion coefficient of the target color under the standard color temperature is determined.
[0086] In step 203, based on the standard color conversion coefficient, the target color conversion coefficient is determined.
[0087] In step 204, based on the target color conversion coefficient, the initial color displayed on the display screen is converted to the target color that matches the actual color temperature.
[0088] In this embodiment, the standard color conversion coefficient of the target color under the standard color temperature can be obtained from a pre-established standard color database. The standard color conversion coefficient can be simply understood as a kind of "filter", and through the standard color conversion coefficient, various colors under the standard color temperature can be converted into the target color. For example: the color of red under the standard color temperature is (255, 0, 0), and through the standard color conversion coefficient, the red (255, 0, 0) can be converted into a bluish red (250, 0, 100).
[0089] The color parameter values of various colors under the standard color temperature are RGB, the color parameter values of the target color are RGB', and the standard color conversion coefficient is C. Then, through the standard color conversion coefficient C, various colors RGB under the standard color temperature can be converted into the target color RGB'. It can be described by the mathematical formula as:
[0090]
[0091] Among them, the standard conversion coefficient of the target color in the standard color temperature database can be determined by the following method: Assume that the color temperature when the color parameters of the specified white pixel are (255, 255, 255) is the standard color temperature, that is, 6500K. Then, obtain the original color parameter values RGB of various colors at 6500K. Assume that under the standard color temperature, if the user expects all colors to be more red, then all colors being more red is the target color. Determine the target color parameter values RGB' of the target color. Based on the target color parameter values RGB' and the original color parameter values RGB of the target color, using the above formula, the standard color conversion coefficient C can be determined.
[0092] It can be understood that since the target color can be determined and adjusted in real time based on factors or parameters such as the user's visual perception requirements, the ambient light brightness value of the environment where the display screen is located, the hue and brightness of the image to be displayed on the display screen, etc. Therefore, the standard color conversion coefficients of the target color in various situations under the standard color temperature can be determined in advance and stored in a preset standard color database. When needed, directly obtain them from the standard color database.
[0093] After obtaining the standard color conversion coefficient C, the target color conversion coefficient Ct corresponding to the actual color temperature can be determined based on the standard color conversion coefficient C.
[0094] It should be noted that Figure 2 The specific implementation details of steps 201 and 204 are basically the same as those in the above embodiments and will not be elaborated here.
[0095] In one embodiment, as Figure 3 shown, step 203 includes steps 303 to 304:
[0096] In step 301, obtain the actual color temperature of the display screen.
[0097] In step 302, when the initial color displayed on the display screen does not match the actual color temperature, determine the standard color conversion coefficient of the target color under the standard color temperature.
[0098] In step 303, obtain the actual color parameter of the standard pixel at the actual color temperature; among them, the color parameter of the standard pixel remains unchanged after color conversion processing;
[0099] In step 304, based on the actual color parameter of the standard pixel and the standard color conversion coefficient, determine the target color conversion coefficient.
[0100] In step 305, based on the target color conversion coefficient, convert the initial color displayed on the display screen to the target color that matches the actual color temperature.
[0101] In this embodiment, the standard pixel can be a white pixel, that is, the color parameter values of the white pixel W = (Wr, Wg, Wb) remain unchanged after any color conversion process. It can be understood that the color parameter value W of the white pixel remains unchanged after being processed by the standard color conversion coefficient C or the target color conversion coefficient Ct. That is, C * W = W, Ct * W = W. And the color parameter value of the white pixel under the standard color temperature is W = (255, 255, 255). Since the change in color temperature will affect the change in color, it is necessary to obtain the color parameter value W' of the white pixel under the actual color temperature. For example, when the actual color temperature is 3000K, the actual color parameter value of the white pixel at 3000K is W' = (255, 200, 180).
[0102] Then, since the color parameter values of the white pixel remain unchanged after any color conversion process C * W = W, Ct * W = W, there is C * W' = W', Ct * W' = W'. For other color pixels except the white pixel, corresponding color changes will occur after the color conversion process, that is
[0103]
[0104] Of course, for the target color conversion coefficient, for other color pixels except the white pixel, corresponding color changes will also occur after being processed by the target color conversion coefficient. Therefore, the target color conversion coefficient Ct and the standard color conversion coefficient C are in a proportional relationship. Assuming this proportional relationship is M, then
[0105]
[0106] And Ct * W' = W', that is
[0107]
[0108]
[0109] Based on the above two formulas Ct * W' = W' and M * C = Ct, the target color conversion coefficient Ct can be calculated.
[0110] It should be noted that Figure 3 The specific implementation details of steps 301, 302, and 305 are basically the same as those in the above embodiment and will not be elaborated here.
[0111] In one embodiment, determining the target color conversion coefficient based on the actual color parameters of the standard pixel and the standard color conversion coefficient includes: determining a correction parameter based on the actual color parameters of the standard pixel and the standard color conversion coefficient; obtaining the target color conversion coefficient based on the correction parameter and the standard color conversion coefficient.
[0112] In this embodiment, since the target color conversion coefficient Ct and the standard color conversion coefficient C have a proportional relationship M, this proportional relationship M can be understood as a correction parameter, that is, the standard color conversion coefficient can be corrected by the correction parameter to obtain the target color conversion coefficient. Then, based on Ct*W’ = W’ and M*C = Ct, we can get M*C*W’ = W’, that is
[0113]
[0114] where W’ is the actual color parameter of the standard pixel (such as: white pixel) at the actual color temperature, and C is the standard color conversion coefficient. From these two parameters, the correction parameter M can be obtained, that is
[0115]
[0116]
[0117]
[0118]
[0119] Based on the correction parameter M and the standard color conversion coefficient C, Ct = MC can be obtained, that is
[0120]
[0121] In some embodiments, as Figure 4 shown, step 103 includes steps 403 to 404:
[0122] In step 401, the actual color temperature of the display screen is obtained.
[0123] In step 402, when the initial color displayed on the display screen does not match the actual color temperature, the target color conversion coefficient corresponding to the actual color temperature is determined.
[0124] In step 403, based on the target color conversion coefficient, the display parameters of the display screen are adjusted from the initial display parameters corresponding to the initial color to the target display parameters corresponding to the target color.
[0125] In step 404, the picture is displayed through the target display parameters.
[0126] In this embodiment, the display device of the display screen receives the digital signal corresponding to the picture to be displayed, converts the digital signal into an analog signal, and controls display parameters such as the brightness, contrast, and color of the display screen during the conversion process, so that the analog signal is displayed under the set display parameters. Therefore, the present disclosure can use the target color conversion coefficient calculated to match the actual color temperature as the display parameter related to color in the display screen, that is, adjust the display parameter of the display screen from the initial display parameter corresponding to the initial color to the target display parameter corresponding to the target color, so that the color displayed by any picture to be displayed is the target color.
[0127] It should be noted that Figure 4 The specific implementation details of steps 401 and 402 are basically the same as those of the above embodiment and will not be elaborated here.
[0128] In some embodiments, as Figure 5 shown, step 103 includes steps 503 to 504:
[0129] In step 501, obtain the actual color temperature of the display screen.
[0130] In step 502, when the initial color displayed by the display screen does not match the actual color temperature, determine the target color conversion coefficient corresponding to the actual color temperature.
[0131] In step 503, perform a conversion process on the initial color of the image displayed by the display screen based on the target color conversion coefficient to obtain an image with the target color;
[0132] In step 504, display the image with the target color through the display screen.
[0133] In this embodiment, in addition to adjusting the display parameters of the display screen, the target color conversion coefficient can also be directly used to perform a color conversion process on the image displayed by the display screen, convert the initial color of the image into the target color, and display the image with the target color through the display screen.
[0134] That is to say, there are two methods to convert the initial color displayed on the display screen to the target color that matches the actual color temperature. One is to use the target color conversion coefficient to adjust the display parameters of the display screen, that is, the image to be displayed itself does not change, and the display parameters of the display screen are adjusted. The other is to use the target color conversion coefficient to adjust the image to be displayed, that is, directly change the color of the image to be displayed itself, and do not change the display parameters of the display screen. For the image to be displayed that occupies a large amount of memory, the former method is more convenient to directly change the display parameters of the display screen, because the efficiency of the color conversion processing may be relatively low, and the target color can be quickly achieved. For the case where the target color needs to be displayed only on the specified image to be displayed, the latter method can perform color conversion in a targeted manner, and the color effect is more flexible, which improves the user experience of the display screen.
[0135] It should be noted that Figure 5 The specific implementation details of step 501 and step 502 are basically the same as those in the above embodiment and will not be repeated here.
[0136] In some embodiments, obtaining the actual color temperature of a display screen includes: obtaining an actual brightness parameter of the display screen when detecting that the display screen displays content; obtaining the actual color temperature of the display screen based on the actual brightness parameter and the correspondence between the brightness parameter and the color temperature; wherein the correspondence between the brightness parameter and the color temperature is determined by detection by an optical measuring instrument.
[0137] In this embodiment, when the display screen is detected to display content, that is, when the display screen is in working state, the actual brightness parameter of the display screen is obtained, and the actual brightness parameter can be directly obtained from the display device of the display screen, or can be determined by using a light sensor. Then, based on the preset correspondence between the brightness parameter and the color temperature, the actual color temperature corresponding to the current actual brightness parameter is determined.
[0138] The higher the color temperature, the cooler the visual experience (bluer or whiter), and the lower the color temperature, the warmer the visual experience (redder). The higher the brightness, the brighter the visual experience, and the lower the brightness, the darker the visual experience. Colors such as blue and white are usually considered "bright" colors, that is, light sources with high color temperatures are usually associated with higher brightness, and light sources with low color temperatures are usually associated with lower brightness.
[0139] Therefore, the correspondence between the brightness parameter and the color temperature can be established in advance, and the correspondence between the brightness parameter and the color temperature (such as: a brightness parameter and color temperature comparison table, a brightness parameter and color temperature conversion function) can be stored in the electronic device. Subsequently, by obtaining the brightness parameter of the display screen, the current actual color temperature of the display screen can be determined.
[0140] In some embodiments, establishing the correspondence between the brightness parameter and the color temperature includes the following steps: When the brightness of the display screen is at different brightness parameters, use an optical measuring instrument to obtain the spectrogram of the display screen light source corresponding to different brightness parameters; determine the tristimulus values based on the spectrograms corresponding to different brightness parameters, and convert the tristimulus values into chromaticity coordinates; based on the chromaticity coordinates and the color temperature calculation function, obtain the actual color temperature corresponding to different brightness parameters.
[0141] When using an optical measuring instrument to detect the color temperature of the display screen, the actual color temperature value of the display screen can be directly obtained using a color temperature meter. It is also possible to use a spectrometer to measure the spectrogram when the display screen emits light, calculate the tristimulus values X, Y, Z according to the spectrogram and the color matching functions corresponding to red, green, and blue specified by the International Commission on Illumination, and then convert the tristimulus values into chromaticity coordinates x, y. Based on the chromaticity coordinates and the color temperature calculation function, the actual color temperature of the display screen can be obtained. The color temperature calculation function is: CCT = 449n 3 + 3525n 2 + 6823.3n + 5520.33, where n = (x - 0.3320) / (0.1858 - y).
[0142] In some embodiments, the correspondence between the brightness parameter and the color temperature can be that one brightness parameter value corresponds to one color temperature value, or one brightness parameter range corresponds to one color temperature value.
[0143] Figure 6 A color effect processing device shown according to an exemplary embodiment is as Figure 6 shown, and the device includes:
[0144] An acquisition module 601 configured to acquire the actual color temperature of the display screen;
[0145] A determination module 602 configured to, when a first instruction is detected, determine the target color conversion coefficient corresponding to the actual color temperature; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature; the target color conversion coefficient is determined based at least on the target color and the standard color conversion coefficient of the target color under the standard color temperature;
[0146] A processing module 603 configured to convert the initial color displayed on the display screen to the target color that matches the actual color temperature based on the target color conversion coefficient.
[0147] In some embodiments, the determination module 602 is further configured to:
[0148] Determine the standard color conversion coefficient of the target color under the standard color temperature;
[0149] Determine the target color conversion coefficient based on the standard color conversion coefficient.
[0150] In some embodiments, the determining module 602 is further configured to:
[0151] Obtain the actual color parameters of the standard pixel at the actual color temperature; wherein, the color parameters of the standard pixel remain unchanged after color conversion processing;
[0152] Determine the target color conversion coefficient based on the actual color parameters of the standard pixel and the standard color conversion coefficient.
[0153] In some embodiments, the determining module 602 is further configured to:
[0154] Determine a correction parameter based on the actual color parameters of the standard pixel and the standard color conversion coefficient;
[0155] Obtain the target color conversion coefficient based on the correction parameter and the standard color conversion coefficient.
[0156] In some embodiments, the processing module 603 is further configured to:
[0157] Based on the target color conversion coefficient, adjust the display parameters of the display screen from the initial display parameters corresponding to the initial color to the target display parameters corresponding to the target color;
[0158] Perform screen display through the target display parameters.
[0159] In some embodiments, the processing module 603 is further configured to:
[0160] Perform conversion processing on the initial color of the image displayed on the display screen based on the target color conversion coefficient to obtain an image with the target color;
[0161] Display the image with the target color through the display screen.
[0162] In some embodiments, the obtaining module 601 is further configured to:
[0163] When it is detected that the display screen displays content, obtain the actual brightness parameter of the display screen;
[0164] Obtain the actual color temperature of the display screen based on the actual brightness parameter and the corresponding relationship between the brightness parameter and the color temperature;
[0165] Wherein, the corresponding relationship between the brightness parameter and the color temperature is detected and determined by an optical measuring instrument.
[0166] Regarding the color effect processing device in the above embodiments, the specific ways in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0167] As Figure 7 shown, an embodiment of the present disclosure also provides an electronic device 700, including:
[0168] A memory 704 for storing processor-executable instructions;
[0169] A processor 720, connected to the memory 704;
[0170] Wherein, the processor 720 is configured to execute the color effect processing method provided by any of the foregoing technical solutions.
[0171] A block diagram of an electronic device 700 shown according to an exemplary embodiment. For example, the electronic device 700 may be a smart phone, a tablet computer, a laptop computer, a portable learning machine, etc.
[0172] Referring to Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 718.
[0173] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0174] The memory 704 is configured to store various types of data to support the operation of the electronic device 700. Examples of these data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 may 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, a magnetic disk, or an optical disk.
[0175] The power supply component 706 provides power for various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.
[0176] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 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 can be implemented as a touch screen 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 can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0177] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 704 or transmitted via the communication component 718. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
[0178] The I / O interface 712 provides an interface between the processing component 702 and the peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0179] The sensor assembly 714 includes one or more sensors for providing an assessment of the status of various aspects of the electronic device 700. For example, the sensor assembly 714 can detect the on / off state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700. The sensor assembly 714 can also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0180] The communication component 718 is configured to facilitate communication, either wired or wirelessly, between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 718 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 718 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0181] In an exemplary embodiment, the electronic device 700 can 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 for performing the above-described methods.
[0182] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, is also provided. The above instructions can be executed by the processor 720 of the electronic device 700 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data writing device, etc.
[0183] An embodiment of the present application provides a non - transitory computer - readable storage medium. When the instructions in the storage medium are executed by a processor of a computer, the computer can execute the color effect processing method described in the foregoing one or more technical solutions.
[0184] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0185] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for processing color effects, characterized in that, including: obtaining the actual color temperature of the display screen; when a first instruction is detected, determining a target color conversion coefficient corresponding to the actual color temperature; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature; the target color conversion coefficient is determined based at least on a target color and a standard color conversion coefficient of the target color under a standard color temperature; based on the target color conversion coefficient, converting the initial color displayed on the display screen to a target color that matches the actual color temperature.
2. The color effect processing method according to claim 1, wherein The determining the target color conversion coefficient corresponding to the actual color temperature includes: determining a standard color conversion coefficient of the target color under a standard color temperature; based on the standard color conversion coefficient, determining the target color conversion coefficient.
3. The color effect processing method according to claim 2, wherein The determining the target color conversion coefficient based on the standard color conversion coefficient includes: obtaining actual color parameters of a standard pixel under the actual color temperature; wherein, the color parameters of the standard pixel remain unchanged after color conversion processing; based on the actual color parameters of the standard pixel and the standard color conversion coefficient, determining the target color conversion coefficient.
4. The color effect processing method according to claim 3, characterized in that The determining the target color conversion coefficient based on the actual color parameters of the standard pixel and the standard color conversion coefficient includes: based on the actual color parameters of the standard pixel and the standard color conversion coefficient, determining a correction parameter; based on the correction parameter and the standard color conversion coefficient, obtaining the target color conversion coefficient.
5. The color effect processing method according to claim 1, wherein The converting the initial color displayed on the display screen to a target color that matches the actual color temperature based on the target color conversion coefficient includes: based on the target color conversion coefficient, adjusting the display parameters of the display screen from the initial display parameters corresponding to the initial color to target display parameters corresponding to the target color; performing screen display through the target display parameters.
6. The color effect processing method according to claim 1, wherein The converting the initial color displayed on the display screen to a target color that matches the actual color temperature based on the target color conversion coefficient includes: performing conversion processing on the initial color of the image displayed on the display screen based on the target color conversion coefficient to obtain an image with the target color; displaying the image with the target color through the display screen.
7. The color effect processing method according to claim 1, characterized in that The obtaining the actual color temperature of the display screen includes: when the display content of the display screen is detected, obtaining the actual brightness parameter of the display screen; based on the actual brightness parameter and the corresponding relationship between the brightness parameter and the color temperature, obtaining the actual color temperature of the display screen; wherein, the corresponding relationship between the brightness parameter and the color temperature is detected and determined by an optical measuring instrument.
8. A color effect processing device, characterized in that, including: an obtaining module configured to obtain the actual color temperature of the display screen; a determining module configured to, when a first instruction is detected, determine a target color conversion coefficient corresponding to the actual color temperature; the first instruction is used to indicate that the initial color displayed on the display screen does not match the actual color temperature; the target color conversion coefficient is determined based at least on a target color and a standard color conversion coefficient of the target color under a standard color temperature; The processing module is configured to convert the initial color displayed on the display screen to a target color matching the actual color temperature based on the target color conversion coefficient.
9. An electronic device, characterized in that, It includes: A processor; A memory configured to store executable instructions executable by the processor; Wherein, the processor is configured to be capable of executing the color effect processing method according to any one of claims 1 to 7 when calling the executable instructions in the memory.
10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the color effect processing method according to any one of claims 1 to 7 above.