Color temperature adjusting method and device, storage medium and electronic equipment
By determining the color lookup table (LUT) corresponding to different color temperatures in electronic devices, and calculating the corresponding second LUT based on the target color temperature, dynamically adjusting the screen color temperature, the problem of difficulty in taking into account both eye protection and color accuracy in the prior art is solved, and higher usability and color accuracy are achieved.
Patent Information
- Application Number
- CN202311575541.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-23
AI Technical Summary
When the prior art changes the screen color temperature, it is difficult to achieve the improvement of eye protection effect and color accuracy at the same time, and color accuracy will be greatly reduced.
By determining a first LUT corresponding to different color temperatures and determining a second LUT corresponding to the target color temperature based on a plurality of first LUTs, the color temperature of the screen is dynamically adjusted to achieve a balance of eye protection and color accuracy.
While achieving eye protection, it improves the accuracy of the screen's color display and improves the usability of the device.
Smart Images

Figure CN120032601A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing, and in particular to a color temperature adjustment method and device, a storage medium, and an electronic device. Background Art
[0002] At present, smart devices are becoming more and more popular. In addition to enjoying the convenience and speed they bring, users are also paying more and more attention to the eye protection effect and color accuracy of the device display.
[0003] To address the damage caused by changes in ambient light, the device's eye protection function can be activated. That is, after monitoring changes in ambient light through a light sensor, the screen display color temperature can be dynamically changed to reduce damage to the eyes caused by changes in ambient light. However, in the process of changing the color temperature, the color accuracy will drop significantly, making it difficult to enjoy the benefits of eye protection and accurate color display at the same time. The color temperature adjustment solution needs to be optimized. Summary of the invention
[0004] In view of this, the present application discloses a color temperature adjustment method and device, a storage medium and an electronic device.
[0005] According to a first aspect of an embodiment of the present disclosure, a color temperature adjustment method is provided, comprising:
[0006] Determine different first LUTs corresponding to different first color temperatures; wherein the different first LUTs are obtained by compensating for the color accuracy of different reference LUTs corresponding to different first color temperatures;
[0007] Determining a second color temperature to which the screen of the electronic device is expected to be adjusted;
[0008] Determine a second LUT corresponding to the second color temperature based on the plurality of first LUTs;
[0009] Based on the second LUT, the color temperature of the screen of the electronic device is adjusted to the second color temperature.
[0010] According to a second aspect of an embodiment of the present disclosure, a color temperature adjustment device is provided, the device comprising:
[0011] A first LUT determination module is used to determine different first LUTs corresponding to different first color temperatures; wherein the different first LUTs are obtained by compensating for the color accuracy of different reference LUTs corresponding to different first color temperatures;
[0012] A color temperature determination module, used to determine a second color temperature to which the screen of the electronic device is expected to be adjusted;
[0013] A second LUT determining module, configured to determine a second LUT corresponding to the second color temperature based on the plurality of first LUTs;
[0014] A color temperature adjustment module is used to adjust the color temperature of the screen of the electronic device to the second color temperature based on the second LUT.
[0015] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the color temperature adjustment method described in any one of the first aspects are implemented.
[0016] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0017] processor;
[0018] a memory for storing processor-executable instructions;
[0019] The processor is configured to execute the executable instructions to implement the steps of the color temperature adjustment method described in any one of the first aspects.
[0020] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0021] In the present disclosure, different reference LUTs under different first color temperatures can be compensated to obtain different first LUTs of electronic devices under different first color temperatures, that is, for different electronic devices, a first LUT suitable for the electronic device can be obtained through compensation. Then, when the ambient light changes or the user manually triggers the color temperature adjustment, the second color temperature to which the screen of the electronic device is expected to be adjusted is determined, a second LUT corresponding to the second color temperature is determined based on multiple first LUTs, and the color temperature of the screen of the electronic device is adjusted based on the second LUT, so as to adjust the color temperature of the screen of the electronic device to the second color temperature. In the embodiment of the present disclosure, the color temperature of the screen can be changed dynamically, and the color display accuracy of the screen can be improved while achieving eye protection, and the usability is high.
[0022] 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
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0024] Figure 1 is a flow chart of a color temperature adjustment method according to an exemplary embodiment of the present disclosure;
[0025] Figure 2A is a schematic diagram of a sliding bar for adjusting color temperature according to an exemplary embodiment of the present disclosure;
[0026] Figure 2B is a schematic diagram of a scenario for determining a second LUT according to an exemplary embodiment of the present disclosure;
[0027] Figure 3 is a flow chart of another color temperature adjustment method according to an exemplary embodiment of the present disclosure;
[0028] Figure 4 is a flow chart of another color temperature adjustment method according to an exemplary embodiment of the present disclosure;
[0029] Figure 5 is a flow chart of another color temperature adjustment method according to an exemplary embodiment of the present disclosure;
[0030] Figure 6 is a flow chart of another color temperature adjustment method according to an exemplary embodiment of the present disclosure;
[0031] Figure 7 is a block diagram of a color temperature adjustment device according to an exemplary embodiment of the present disclosure;
[0032] Figure 8 It is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] 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, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0034] The color temperature adjustment method provided by the present invention is first introduced below.
[0035] Reference Figure 1 As shown, Figure 1 is a schematic diagram of a color temperature adjustment method shown in an exemplary embodiment of the present disclosure. The color temperature adjustment method can be deployed on an electronic device, and the electronic device may include but is not limited to a mobile phone, a laptop computer, a desktop computer, a tablet computer, etc. Figure 1 As shown, the color temperature adjustment method may include:
[0036] In step 101, different first LUTs corresponding to different first color temperatures are determined.
[0037] In some embodiments, a color look-up table (LUT) means that after the color information of each pixel is repositioned through the LUT, a new color value can be obtained.
[0038] In the embodiment of the present disclosure, different first LUTs are obtained by compensating for the color accuracy of different reference LUTs corresponding to different first color temperatures.
[0039] LUT can be divided into a one-dimensional color lookup table (1D LUT) and a three-dimensional color lookup table (3D LUT). In 1D LUT, the three primary colors (Red Green Blue, RGB) data are independent of each other and can only affect the brightness of R, G, and B. In 3D LUT, each color component of RGB is related to the three input components. Through 3D LUT, hue, saturation, brightness, etc. can be affected, which can affect almost all aspects of the picture. Therefore, in the embodiment of the present disclosure, 3D LUT can be used.
[0040] Among them, color accuracy refers to the accuracy of the color displayed on the screen of an electronic device.
[0041] In some embodiments, the screen parameters (e.g., size, pixel pitch, resolution, scanning frequency, refresh rate, power consumption, electromagnetic radiation, etc.) of the electronic device and the standard prototype may be the same. In the embodiments of the present disclosure, before the electronic device leaves the factory, one electronic device of the same model may be selected as the standard prototype. In some embodiments, color temperature is a unit of measurement indicating the color components contained in light, and may be measured in Kelvin (k).
[0042] In some embodiments, the standard prototype determines different reference LUTs at different first color temperatures, and the electronic device compensates for different reference LUTs to obtain different first LUTs corresponding to different first color temperatures. This will be introduced in subsequent embodiments and will not be introduced here.
[0043] In step 102, a second color temperature to which the screen of the electronic device is expected to be adjusted is determined.
[0044] In some embodiments, the electronic device may monitor the ambient light through a light sensor, and when it is detected that the ambient light changes or the brightness value of the changed ambient light exceeds a preset threshold, the color temperature corresponding to the changed ambient light is determined as the second color temperature.
[0045] Exemplarily, a correspondence between the brightness value of the ambient light and the color temperature may be pre-stored in the electronic device, and based on the correspondence, a second color temperature corresponding to the changed brightness value of the ambient light is determined.
[0046] In some embodiments, the electronic device may output a slider bar for adjusting the color temperature, for example Figure 2A As shown, the electronic device detects that the user manually adjusts the color temperature on the sliding bar, and determines the color temperature corresponding to the position where the touch point on the sliding bar finally stops as the second color temperature.
[0047] In step 103, a second LUT corresponding to the second color temperature is determined based on the plurality of first LUTs.
[0048] In some embodiments, if the second color temperature is equal to one of the first color temperatures, the electronic device may directly determine the first LUT corresponding to the first color temperature equal to the second color temperature as the second LUT.
[0049] In some embodiments, if the second color temperature is within the color temperature range formed by two adjacent first color temperatures, the second LUT may be determined based on the first LUTs and smoothing coefficients corresponding to the two adjacent first color temperatures.
[0050] The smoothing coefficient α is equal to the quotient of the first difference and the second difference; the first difference is the difference between the maximum value of two adjacent first color temperatures and the second color temperature, and the second difference is the difference between the second color temperature and the minimum value of two adjacent first color temperatures.
[0051] In one example, the second LUT may be expressed using the following formula 1:
[0052]
[0053] Where, T is the second color temperature, T 1 , T 2 are two adjacent first color temperatures, and T 1 Less than T 2 , α is the smoothing coefficient. LUT 1 It is T 1 The corresponding first LUT, LUT 2 It is T 2 The corresponding first LUT.
[0054] For example Figure 2BAs shown, assuming that the color temperature adjustment range in the system of the electronic device is 4000K to 8000K, while ensuring that the color accuracy is not affected by the non-calibrated calculation LUT, the first LUT corresponding to multiple first color temperatures can be stored, and for the unstored color temperatures (for example, when the second color temperature is within the color temperature range formed by two adjacent first color temperatures), the corresponding LUT can be calculated using Formula 1.
[0055] For example, assuming that the interval between two adjacent first color temperatures is 50 K, T 2 =T 1 +50, when the electronic device adjusts the second color temperature T according to the ambient light or the user manually (T 1 , T 2 ) range, the smoothing coefficient can be determined Based on T 1 Corresponding LUT 1 , T 2 Corresponding LUT 2 and the smoothing coefficient together determine the second LUT corresponding to the second color temperature T.
[0056] In step 104, based on the second LUT, the color temperature of the screen of the electronic device is adjusted to the second color temperature.
[0057] In some embodiments, the electronic device may adjust the color temperature of the screen based on the second LUT so as to adjust the color temperature of the screen to the second color temperature.
[0058] In the above embodiment, the color temperature of the screen can be changed dynamically, which can improve the color display accuracy of the screen while achieving eye protection and high usability.
[0059] In some embodiments, reference Figure 3 As shown, Figure 3 is based on Figure 1 In another color temperature adjustment method shown in the embodiment shown, step 101 may include the following steps:
[0060] In step 301, a first number of first optical color data is obtained.
[0061] In some embodiments, the electronic device may directly collect a first number of first optical color data XYZ of the screen at a first color temperature through an optical instrument, wherein the first number may be a positive integer, and in the embodiment of the present disclosure, the first number may be 4913. Exemplarily, the optical instrument may be a color analyzer, such as CA410.
[0062] Among them, the optical color space and the three-primary color space are two parallel spaces. The three stimulus values in the optical color space are XYZ, which correspond to red, green, and blue in the three-primary color space respectively. XYZ can represent the equivalent (or stimulus value) of red, green, and blue respectively.
[0063] In some embodiments, considering that it takes a long time for the electronic device to collect the first number of first optical color data, in order to reduce the collection time, the electronic device may only collect the second number of first optical color data of the screen at the first color temperature. The second number may be much smaller than the first number. For example, the first number is 4913, and the second number may be a positive integer less than or equal to 50.
[0064] Further, the electronic device may predict the first number of the first optical color data based on the second number of the first optical color data.
[0065] Exemplarily, the electronic device can predict the first number of first optical color data through the LUT and the second number of first optical color data. The LUT here can be a LUT pre-stored on the electronic device and obtained based on experience.
[0066] In step 302, a difference value between each of the first optical color data and each of the second optical color data is determined respectively.
[0067] In some embodiments, the second optical color data is optical color data of a screen of a standard prototype at the first color temperature, and the number of the second optical color data is equal to the first number.
[0068] In the embodiment of the present disclosure, a difference value between each first optical color data and each second optical color data may be determined, and 4913 difference values may be obtained.
[0069] In step 303, based on the difference value, the color accuracy of the reference LUT at the first color temperature is compensated to obtain the first LUT at the first color temperature.
[0070] In the embodiment of the present disclosure, the electronic device may add or multiply each second optical color data with the corresponding difference value, and then use the 3D LUT to obtain a first LUT at a first color temperature suitable for the electronic device.
[0071] The above process can be used, for example Figure 4As shown, the electronic device can first collect the second number of first optical color data, and then predict the first number of first optical color data. By subtracting the first number of second optical color data from the standard prototype, a corresponding difference value is obtained, and the color accuracy in the reference LUT is compensated by the difference value to obtain an accurate first LUT at the first color temperature suitable for the electronic device.
[0072] In the above embodiment, the time for collecting the first optical color data can be reduced, and the color accuracy of the reference LUT under the first color temperature can be compensated based on the difference between the first optical color data of the electronic device and the second optical color data of the standard prototype, so as to obtain a first LUT suitable for the electronic device, and improve the accuracy of color display when the color temperature needs to be changed.
[0073] In some embodiments, reference Figure 5 As shown, Figure 5 Another color temperature adjustment method is shown in an embodiment based on an embodiment. At any first color temperature, the process of determining the corresponding reference LUT by the standard prototype may include the following steps:
[0074] In step 501, a first number of second optical color data is collected.
[0075] In some embodiments, the standard prototype can collect 4913 second optical color data of the screen of the standard prototype at the first color temperature through an optical instrument, such as CA410. The second optical color data is color data in the XYZ space.
[0076] In step 502, a first color coordinate is calculated.
[0077] In some embodiments, the first color coordinates are color coordinates corresponding to white at the first color temperature, and the white is located on a black body color temperature trajectory on the screen of the standard prototype.
[0078] The color temperature trajectory refers to the trajectory of the change of the luminous color at different temperatures. In the present disclosure, the black body color temperature trajectory refers to the trajectory of the change of the luminous color of the black body at different temperatures.
[0079] The standard prototype can use the following formula 2 to calculate the first color coordinate:
[0080]
[0081] Among them, (W xd , W yd ) represents the first color temperature T d The first color coordinates below.
[0082] It should be noted that the color coordinates of corresponding colors on other color temperature trajectory lines may be used for exemplary purposes only, and the present disclosure does not limit this.
[0083] In step 503, the second color coordinates are calculated.
[0084] In some embodiments, the second color coordinates are color coordinates corresponding to the three primary colors RGB under the target color gamut.
[0085] Among them, color gamut is a method of encoding a color, and also refers to the sum of colors that a technical system can produce. In computer graphics processing, color gamut is a complete subset of colors.
[0086] In the embodiment of the present disclosure, the P3 color gamut may be used as the target color gamut. The P3 color gamut is a wide color gamut and is the color gamut of digital cinemas.
[0087] In some embodiments, the standard prototype may calculate the second color coordinates corresponding to the standard three primary colors RGB under the target color gamut P3.
[0088] It should be noted that the color gamut has a corresponding relationship with the color coordinates corresponding to the standard three primary colors. After the target color gamut is determined, the second color coordinates corresponding to the standard three primary colors under the target color gamut can be determined.
[0089] In step 504, a first matrix is determined based on the first color coordinates and the second color coordinates.
[0090] In some embodiments, the first matrix Md is a matrix that converts the three-primary color space into an optical color space under the target color gamut.
[0091] Exemplarily, the first matrix Md can be calculated using the following formula 3:
[0092]
[0093] Among them, R x , R y G is the second color coordinate corresponding to red in the three primary colors. x , G y It is the second color coordinate corresponding to green in the three primary colors, B x , B y It is the second color coordinate corresponding to the blue in the three primary colors.
[0094] Among them, w r 、w g 、w b is an intermediate variable, which can be calculated based on formula 4:
[0095]
[0096] Among them, (Wxd , W yd ) is the first color temperature T calculated using the above formula 2 d The first color coordinates below.
[0097] In step 505, a third color coordinate is determined.
[0098] In some embodiments, the standard prototype can acquire the first number of second optical color data through an optical instrument such as CA410. Further, the second optical color data corresponding to the boundary points on the color boundary line of the screen of the standard prototype can be screened, that is, the second optical color data corresponding to the four primary colors (Red Green Blue White, RGBW) can be screened. The second optical color data corresponding to RGBW is converted into chromaticity coordinates xy and brightness coordinates lv, wherein the converted chromaticity coordinates xy are the third color coordinates.
[0099] In step 506, a second matrix is determined based on the third color coordinates.
[0100] In some embodiments, the second matrix Mn is a matrix for converting the three-primary color space into the optical color space under the current color gamut corresponding to the screen of the standard prototype.
[0101] Exemplarily, the second matrix Mn can be calculated using the following formula 5:
[0102]
[0103] Among them, R x , R y G is the third color coordinate corresponding to red in the four primary colors. x , G y Is the third color coordinate corresponding to green in the four primary colors, B x , B y It is the third color coordinate corresponding to blue among the four primary colors.
[0104] Among them, w r '、w g '、w b ' is an intermediate variable, which can be calculated based on formula 6:
[0105]
[0106] Among them, W x , W y It is the third color coordinate corresponding to white among the four primary colors.
[0107] In step 507, a mapping matrix is obtained based on the product of the first matrix, the inverse matrix of the second matrix and the second matrix.
[0108] In some embodiments, the mapping matrix M can be calculated using the following formula 7:
[0109]
[0110] Among them, M d is the first matrix, M n is the second matrix.
[0111] In step 508, a reference LUT at a first color temperature is mapped based on the product of a mapping matrix and the first number of the second optical color data.
[0112] In some embodiments, after obtaining the mapping matrix M, M can be directly multiplied by the first number of second optical color data at the first color temperature collected by the standard prototype. Since the first number of second optical color data corresponds to the 3D LUT standard node one by one, the color RGB value after 3D LUT mapping can be obtained based on the product of the above two, that is, the reference LUT at the first color temperature is obtained. The reference LUT represents the LUT at the first color temperature Td and the target color gamut P3, and the theoretical color difference ΔE between any color in the color gamut and the standard value is small, and illustratively, ΔE is less than 2.
[0113] Subsequently, compensation can be performed based on the reference LUT to obtain a first LUT at a first color temperature suitable for the electronic device, so that the first optical color data corresponding to the color displayed by the screen of the electronic device at any color temperature is extremely different from the standard color, to the extent that it is difficult for the naked eye to distinguish.
[0114] In the above embodiment, reference LUTs corresponding to different first color temperatures can be obtained, which is easy to implement and has high usability.
[0115] In some embodiments, reference Figure 6 As shown, the standard prototype can first collect the first number of second optical color data XYZ of the screen of the standard prototype at the first color temperature. Then filter and obtain the second optical color data corresponding to the four primary colors RGBW. Convert the second optical color data corresponding to the four primary colors RGBW into the third chromaticity coordinate xy and the brightness coordinate lv. Based on the third chromaticity coordinate, use Formula 5 and Formula 6 to calculate the conversion matrix of RGB and XYZ under the original screen color gamut, that is, the second matrix M n .
[0116] In addition, the standard prototype can calculate the first color coordinates corresponding to the white color on the black body color temperature trajectory line at the first color temperature Td. The target color gamut P3 can also be determined to calculate the second color coordinates corresponding to the standard three primary colors RGB under the target color gamut P3. Based on the first color coordinates and the second color coordinates, formula 3 and formula 4 are used to calculate the conversion matrix of RGB and XYZ under the first color temperature Td and the target color gamut P3, that is, the first matrix M d .
[0117] Based on the first matrix and the second matrix, the mapping matrix M is calculated using Formula 7.
[0118] In the above embodiment, reference LUTs corresponding to different first color temperatures can be obtained, which is easy to implement and has high usability.
[0119] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device embodiment.
[0120] Reference Figure 7 As shown, Figure 7 FIG. 1 is a schematic diagram of a color temperature adjustment device according to an exemplary embodiment of the present disclosure. The device can be deployed on an electronic device, which may include but is not limited to a mobile phone, a laptop computer, a desktop computer, a tablet computer, etc. Figure 7 As shown, the device may include:
[0121] The first LUT determination module 701 is used to determine different first LUTs corresponding to different first color temperatures; wherein the different first LUTs are obtained by compensating the color accuracy of different reference LUTs corresponding to different first color temperatures;
[0122] A color temperature determination module 702 is used to determine a second color temperature to which the screen of the electronic device is expected to be adjusted;
[0123] A second LUT determining module 703, configured to determine a second LUT corresponding to the second color temperature based on the plurality of first LUTs;
[0124] The color temperature adjustment module 704 is used to adjust the color temperature of the screen of the electronic device to the second color temperature based on the second LUT.
[0125] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0126] Correspondingly, the present disclosure further provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to implement the steps of any one of the above-mentioned color temperature adjustment methods when executed by a processor.
[0127] Accordingly, the present disclosure also provides an electronic device, including:
[0128] processor;
[0129] a memory for storing processor-executable instructions;
[0130] The processor is configured to execute the executable instructions to implement the steps of any one of the above-mentioned color temperature adjustment methods.
[0131] Figure 8 800 is a block diagram of a color temperature adjustment device according to an exemplary embodiment. For example, the device 800 may be a terminal device such as a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. The terminal device may correspond to the above electronic device.
[0132] Reference Figure 8 , 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 816 , and a communication component 818 .
[0133] 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.
[0134] One of the processors 820 in the processing component 802 may be configured to execute any of the above-mentioned color temperature adjustment methods.
[0135] 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.
[0136] The power supply component 806 provides power to the various components of the device 800. The power supply 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.
[0137] 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.
[0138] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 818. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0139] 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.
[0140] The sensor assembly 816 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 816 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, the sensor assembly 816 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 816 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 816 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 816 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0141] The communication component 818 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 WiFi, 3G, 4G, 5G, 6G or a combination thereof. In an exemplary embodiment, the communication component 818 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 818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0142] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0143] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0145] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0146] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A color temperature adjustment method, It is characterized in that include: Determine different first LUTs corresponding to different first color temperatures; wherein the different first LUTs are obtained by compensating for the color accuracy of different reference LUTs corresponding to different first color temperatures; Determining a second color temperature to which the screen of the electronic device is expected to be adjusted; Determine a second LUT corresponding to the second color temperature based on the plurality of first LUTs; Based on the second LUT, the color temperature of the screen of the electronic device is adjusted to the second color temperature.
2. The method according to claim 1, It is characterized in that The determining different first LUTs corresponding to different first color temperatures includes: Acquire a first number of first optical color data; wherein the first optical color data is optical color data of the screen of the electronic device at the first color temperature; respectively determining a difference value between each of the first optical color data and each of the second optical color data; wherein the second optical color data is the optical color data of the screen of the standard prototype at the first color temperature, and the number of the second optical color data is equal to the first number; Based on the difference value, the color accuracy of the reference LUT at the first color temperature is compensated to obtain the first LUT at the first color temperature.
3. The method according to claim 2, It is characterized in that The step of obtaining a first number of first optical color data comprises: Collecting a second number of first optical color data of the screen of the electronic device at the first color temperature, where the second number is smaller than the first number; The first number of the first optical color data is predicted based on the second number of the first optical color data.
4. The method according to any one of claims 1 to 3, It is characterized in that The reference LUT at the first color temperature is obtained based on the product mapping of a mapping matrix and a first number of second optical color data; wherein the mapping matrix is used to map the optical color data into a LUT, and the second optical color data is the optical color data of the screen of a standard prototype at the first color temperature.
5. The method according to claim 4, It is characterized in that The mapping matrix is equal to the product of the first matrix, the inverse matrix of the second matrix and the second matrix; wherein the first matrix is a matrix that converts the three-primary color space into the optical color space under the target color gamut, and the second matrix is a matrix that converts the three-primary color space into the optical color space under the current color gamut corresponding to the screen of the standard prototype.
6. The method according to claim 5, It is characterized in that The first matrix is determined based on first color coordinates and second color coordinates; wherein the first color coordinates are the color coordinates corresponding to white at the first color temperature, the white is located on the blackbody color temperature trajectory on the screen of the standard prototype, and the second color coordinates are the color coordinates corresponding to the three primary colors under the target color gamut.
7. The method according to claim 5, It is characterized in that The second matrix is determined based on third color coordinates; wherein the third color coordinates are color coordinates obtained by screening the first number of the second optical color data to obtain the second optical color data corresponding to the four primary colors, and then converting the second optical color data corresponding to the four primary colors.
8. The method according to any one of claims 1 to 3, It is characterized in that The determining, based on the plurality of the first LUTs, a second LUT corresponding to the second color temperature comprises: If the second color temperature is equal to one of the first color temperatures, determining the first LUT corresponding to the first color temperature equal to the second color temperature as the second LUT; or The second color temperature is within a color temperature range formed by two adjacent first color temperatures, and the second LUT is determined based on a smoothing coefficient and the first LUTs corresponding to two adjacent first color temperatures.
9. The method according to claim 8, It is characterized in that The smoothing coefficient is equal to the quotient of the first difference and the second difference; wherein the first difference is the difference between the maximum value of two adjacent first color temperatures and the second color temperature, and the second difference is the difference between the second color temperature and the minimum value of two adjacent first color temperatures.
10. A color temperature adjustment device, It is characterized in that include: A first LUT determination module is used to determine different first LUTs corresponding to different first color temperatures; wherein the different first LUTs are obtained by compensating for the color accuracy of different reference LUTs corresponding to different first color temperatures; A color temperature determination module, used to determine a second color temperature to which the screen of the electronic device is expected to be adjusted; A second LUT determining module, configured to determine a second LUT corresponding to the second color temperature based on the plurality of first LUTs; A color temperature adjustment module is used to adjust the color temperature of the screen of the electronic device to the second color temperature based on the second LUT.
11. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the color temperature adjustment method according to any one of claims 1 to 9 are implemented.
12. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the color temperature adjustment method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Control method and control device
CN107066223A
Color gamut matching method and device, display terminal and readable storage medium
CN109286802A
Picture adjusting method and device and electronic equipment
CN113949856A
Image processing method and device, display equipment, electronic equipment and storage medium
CN115273723A
Interface display method and device, electronic equipment and storage medium
CN115657905A