Screen color temperature calibration method and device, electronic equipment and storage medium

The color temperature calibration of the target screen is solved by referring to the color temperature correspondence of the color temperature of the white screen of different devices, and the accuracy and consistency of visual effects are achieved, and the user experience is improved.

CN119600907APending Publication Date: 2025-03-11BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311168316.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The prior art has failed to effectively calibrate the color temperature of white screens on screens of different devices, resulting in inconsistent display effects.

Method used

By referring to the color temperature correspondence of the screen, the correspondence between the color temperature and the color ratio is obtained, and the color temperature correspondence of the target screen is updated to achieve accurate calibration of the color temperature of the white screen.

Benefits of technology

It ensures the accuracy and consistency of visual effects when different screens are white, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119600907A_ABST
    Figure CN119600907A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of color temperature calibration, and particularly provides a screen color temperature calibration method and device, electronic equipment and a storage medium. The screen color temperature calibration method comprises the steps of obtaining reference color proportions corresponding to a plurality of color temperatures according to a first color temperature corresponding relation of a reference screen; the first color temperature corresponding relation is the corresponding relation between the color temperature and the color proportion of the reference screen; according to a first color when the reference screen displays the white picture, a second color when the target screen displays the white picture and reference color proportions corresponding to the multiple color temperatures, obtaining target color proportions corresponding to the multiple color temperatures; updating the second color temperature corresponding relation of the target screen according to the target color proportions corresponding to the multiple color temperatures; the second color temperature corresponding relation is the corresponding relation between the color temperature and the color proportion of the target screen. In this way, accurate color temperature calibration of the screen white pictures is achieved, and accuracy and consistency of visual effects of different screen white pictures are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of color temperature calibration, and in particular to a method, device, electronic device and storage medium for screen color temperature calibration. Background Art

[0002] When displaying on a device screen, since the screen manufacturing processes of different devices are usually different, the display effects presented on the screens of different devices are usually different.

[0003] In the prior art, only the screen color is calibrated, but the color temperature of the white screen of the screen is not calibrated. The color temperature display effects of the white screens of different screens are usually different. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for calibrating screen color temperature, so as to accurately calibrate the color temperature of the white screen of the screen.

[0005] On the one hand, an embodiment of the present application provides a method for calibrating screen color temperature, including:

[0006] Obtaining reference color ratios corresponding to a plurality of color temperatures according to a first color temperature correspondence of the reference screen; the first color temperature correspondence is a correspondence between the color temperatures and the color ratios of the reference screen;

[0007] Obtaining target color ratios corresponding to the multiple color temperatures according to the first color when the reference screen displays a white image, the second color when the target screen displays a white image, and the reference color ratios corresponding to the multiple color temperatures;

[0008] According to the target color ratios corresponding to the multiple color temperatures, the second color temperature correspondence of the target screen is updated; the second color temperature correspondence is the correspondence between the color temperature and the color ratio of the target screen.

[0009] In one embodiment, before obtaining reference color ratios corresponding to a plurality of color temperatures according to the first color temperature correspondence of the reference screen, the method further includes:

[0010] For each of the multiple color temperatures, perform the following steps:

[0011] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0012] If the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature are determined to meet the chromaticity coordinate conditions, the initial color ratio is determined to be the reference color ratio corresponding to the color temperature;

[0013] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0014] In one embodiment, determining the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature, and if the chromaticity coordinate conditions are met, determining the initial color ratio as the reference color ratio corresponding to the color temperature includes:

[0015] Determining a coordinate distance between a reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0016] If the coordinate distance is determined to be lower than the distance threshold, it is determined that the chromaticity coordinate condition is met;

[0017] The initial color ratio is determined as the reference color ratio corresponding to the color temperature.

[0018] In one embodiment, before obtaining reference color ratios corresponding to a plurality of color temperatures according to the first color temperature correspondence of the reference screen, the method further includes:

[0019] For each of the multiple color temperatures, perform the following steps:

[0020] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0021] If it is determined that the chromaticity coordinates of the target white screen corresponding to the reference chromaticity coordinates and the color temperature do not meet the chromaticity coordinate conditions, adjusting the initial color ratio to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the chromaticity coordinates of the target white screen meet the chromaticity coordinate conditions;

[0022] Determine a reference color ratio corresponding to the color temperature according to the adjusted initial color ratio;

[0023] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0024] In one embodiment, adjusting the initial color ratio to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the target white screen chromaticity coordinates meet the chromaticity coordinate conditions includes:

[0025] The following steps are executed repeatedly until the chromaticity coordinate conditions are met:

[0026] Adjust the current initial color ratio of the reference screen;

[0027] Get the current new reference chromaticity coordinates of the reference screen;

[0028] Determining a coordinate distance between a new reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0029] If it is determined that the coordinate distance is lower than the distance threshold or the number of cycles reaches the number threshold, it is determined that the chromaticity coordinate condition is met;

[0030] Otherwise, it is determined that the chromaticity coordinate condition is not met.

[0031] In one embodiment, determining a reference color ratio corresponding to a color temperature based on the adjusted initial color ratio includes:

[0032] If it is determined that the coordinate distance is not less than the distance threshold, the adjusted initial color ratio is determined as the reference color ratio corresponding to the color temperature;

[0033] If it is determined that the coordinate distance is lower than the distance threshold and the number of cycles reaches the number threshold, the minimum value of the initial color ratio in each cycle process is determined, and the minimum value is determined as the reference color ratio corresponding to the color temperature.

[0034] In one embodiment, obtaining target color ratios corresponding to multiple color temperatures based on a first color when a reference screen displays a white screen, a second color when a target screen displays a white screen, and reference color ratios corresponding to multiple color temperatures includes:

[0035] determining a ratio of the first color to the second color;

[0036] Target color ratios corresponding to multiple color temperatures are obtained according to the product of the ratio and the reference color ratio corresponding to each color temperature.

[0037] In one embodiment, before updating the second color temperature correspondence of the target screen according to the target color ratios corresponding to the plurality of color temperatures, the method includes:

[0038] The target color ratio corresponding to each color temperature is normalized respectively to obtain multiple normalized target color ratios.

[0039] In one embodiment, the method further comprises:

[0040] When it is determined that a screen display instruction for a target screen has been received, obtaining a target color temperature included in the screen display instruction;

[0041] Obtaining a target color ratio corresponding to the target color temperature according to the second color temperature correspondence relationship;

[0042] Based on the target color ratio corresponding to the target color temperature, a screen display operation is performed.

[0043] In one embodiment, obtaining a target color ratio corresponding to a target color temperature according to the second color temperature correspondence includes:

[0044] If it is determined that the target color temperature is not included in the second color temperature correspondence, obtaining target color ratios corresponding to multiple adjacent color temperatures of the target color temperature according to the second color temperature correspondence;

[0045] Based on the target color ratios corresponding to adjacent color temperatures, an interpolation operation is performed to obtain the target color ratio corresponding to the target color temperature.

[0046] On the one hand, an embodiment of the present application provides a device for calibrating screen color temperature, including:

[0047] A first obtaining unit is configured to obtain reference color ratios corresponding to a plurality of color temperatures according to a first color temperature correspondence of a reference screen; the first color temperature correspondence is a correspondence between color temperatures and color ratios of the reference screen;

[0048] a second obtaining unit, configured to obtain target color ratios corresponding to the plurality of color temperatures according to the first color when the reference screen displays a white picture, the second color when the target screen displays a white picture, and the reference color ratios corresponding to the plurality of color temperatures;

[0049] The updating unit is used to update the second color temperature correspondence of the target screen according to the target color ratios corresponding to the multiple color temperatures; the second color temperature correspondence is the correspondence between the color temperature and the color ratio of the target screen.

[0050] In one embodiment, the first obtaining unit is further configured to:

[0051] For each of the multiple color temperatures, perform the following steps:

[0052] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0053] If the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature are determined to meet the chromaticity coordinate conditions, the initial color ratio is determined to be the reference color ratio corresponding to the color temperature;

[0054] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0055] In one embodiment, the first obtaining unit is further configured to:

[0056] Determining a coordinate distance between a reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0057] If the coordinate distance is determined to be lower than the distance threshold, it is determined that the chromaticity coordinate condition is met;

[0058] The initial color ratio is determined as the reference color ratio corresponding to the color temperature.

[0059] In one embodiment, the first obtaining unit is further configured to:

[0060] For each of the multiple color temperatures, perform the following steps:

[0061] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0062] If it is determined that the chromaticity coordinates of the target white screen corresponding to the reference chromaticity coordinates and the color temperature do not meet the chromaticity coordinate conditions, adjusting the initial color ratio to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the chromaticity coordinates of the target white screen meet the chromaticity coordinate conditions;

[0063] Determine a reference color ratio corresponding to the color temperature according to the adjusted initial color ratio;

[0064] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0065] In one embodiment, the first obtaining unit is further configured to:

[0066] The following steps are executed repeatedly until the chromaticity coordinate conditions are met:

[0067] Adjust the current initial color ratio of the reference screen;

[0068] Get the current new reference chromaticity coordinates of the reference screen;

[0069] Determining a coordinate distance between a new reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0070] If it is determined that the coordinate distance is lower than the distance threshold or the number of cycles reaches the number threshold, it is determined that the chromaticity coordinate condition is met;

[0071] Otherwise, it is determined that the chromaticity coordinate condition is not met.

[0072] In one embodiment, the first obtaining unit is further configured to:

[0073] If it is determined that the coordinate distance is not less than the distance threshold, the adjusted initial color ratio is determined as the reference color ratio corresponding to the color temperature;

[0074] If it is determined that the coordinate distance is lower than the distance threshold and the number of cycles reaches the number threshold, the minimum value of the initial color ratio in each cycle process is determined, and the minimum value is determined as the reference color ratio corresponding to the color temperature.

[0075] In one embodiment, the second obtaining unit is configured to:

[0076] determining a ratio of the first color to the second color;

[0077] Target color ratios corresponding to multiple color temperatures are obtained according to the product of the ratio and the reference color ratio corresponding to each color temperature.

[0078] In one embodiment, before updating the second color temperature correspondence of the target screen according to the target color ratios corresponding to the plurality of color temperatures, the method includes:

[0079] The target color ratio corresponding to each color temperature is normalized respectively to obtain multiple normalized target color ratios.

[0080] In one embodiment, the updating unit is further configured to:

[0081] When it is determined that a screen display instruction for a target screen has been received, obtaining a target color temperature included in the screen display instruction;

[0082] Obtaining a target color ratio corresponding to the target color temperature according to the second color temperature correspondence relationship;

[0083] Based on the target color ratio corresponding to the target color temperature, a screen display operation is performed.

[0084] In one embodiment, the updating unit is further configured to:

[0085] If it is determined that the target color temperature is not included in the second color temperature correspondence, obtaining target color ratios corresponding to multiple adjacent color temperatures of the target color temperature according to the second color temperature correspondence;

[0086] Based on the target color ratios corresponding to adjacent color temperatures, an interpolation operation is performed to obtain the target color ratio corresponding to the target color temperature.

[0087] In one aspect, an embodiment of the present application provides an electronic device, including:

[0088] processor; and

[0089] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the steps of the method provided in any of the various optional implementations of screen color temperature calibration described above.

[0090] On the one hand, an embodiment of the present application provides a storage medium storing computer instructions, which are used to enable a computer to execute the steps of the method provided in any of the various optional implementations of screen color temperature calibration described above.

[0091] The screen color temperature calibration method in the embodiment of the present application includes obtaining reference color ratios corresponding to multiple color temperatures based on a first color temperature correspondence of a reference screen; the first color temperature correspondence is the correspondence between color temperature and the color ratio of the reference screen; obtaining target color ratios corresponding to multiple color temperatures based on a first color when the reference screen displays a white screen, a second color when the target screen displays a white screen, and the reference color ratios corresponding to the multiple color temperatures; updating a second color temperature correspondence of the target screen based on the target color ratios corresponding to the multiple color temperatures; the second color temperature correspondence is the correspondence between color temperature and the color ratio of the target screen. In this way, by using a reference model to calibrate the color temperature of the target screen, accurate color temperature calibration for the white screen is achieved, ensuring the accuracy and consistency of visual effects when displaying white screens on different screens, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0093] Figure 1 This is a flow chart of a method for calibrating screen color temperature in an embodiment of the present application.

[0094] Figure 2 This is an example table of a 3D LUT in an embodiment of the present application.

[0095] Figure 3 This is a flowchart of an implementation method of a reference screen color temperature calibration method in an embodiment of the present application.

[0096] Figure 4 This is an example diagram of a method for calibrating the color temperature of a target screen in an embodiment of the present application.

[0097] Figure 5 This is a structural block diagram of a device for calibrating screen color temperature in an embodiment of the present application.

[0098] Figure 6 It is a structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0099] The technical solutions of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0100] First, some of the terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0101] Terminal device: can be a mobile terminal, fixed terminal or portable terminal, such as a mobile phone, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio / video player, digital camera / camcorder, positioning device, television receiver, radio broadcast receiver, e-book device, gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of user interface (such as wearable device), etc.

[0102] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.

[0103] The technical concept of this application is described below:

[0104] With the advancement of device screen technology (e.g., mobile phone screen technology), users have increasingly demanded higher accuracy and consistency in device display effects. Because the manufacturing processes of different devices often differ, different screens (e.g., the same type of screen) often exhibit different display effects.

[0105] Under traditional technology, various manufacturers have introduced a variety of different color calibration algorithms to ensure the accuracy and consistency of screen visual effects. However, these color calibration algorithms usually only calibrate the color and do not propose technical solutions for calibrating the color temperature of the screen's white screen.

[0106] Based on the defects of the above-mentioned related technologies, the embodiments of the present application provide a method, device, electronic device and storage medium for screen color temperature calibration, aiming to accurately calibrate the color temperature of the white screen.

[0107] In an embodiment of the present application, a method for screen color temperature calibration is provided, which can be applied to electronic devices. The present application does not limit the type of electronic device, and it can be any type of device suitable for implementation, such as a terminal device and a server, etc. The present application will not elaborate on this.

[0108] See Figure 1 As shown in the figure, it is a flow chart of the method for calibrating the screen color temperature in the embodiment of the present application. Figure 1 The method is described below. The specific implementation process of the method is as follows:

[0109] Step 100: Obtain reference color ratios corresponding to a plurality of color temperatures according to a first color temperature correspondence of a reference screen.

[0110] The first color temperature correspondence is a correspondence between color temperature and the color ratio of the reference screen, because by setting different color ratios, the screen can display different color temperatures.

[0111] Color temperature (CCT) is a unit of measurement that represents the color components of light. A reference screen serves as a reference for screen color temperature calibration, allowing subsequent calibration of the target screen (i.e., the screen to be calibrated) using the reference screen. Color ratio refers to the ratio of different primary colors.

[0112] Color refers to color. Optionally, color can be represented by red, green, and blue (RGB), and the color ratio can be an RGB ratio, that is, R:G:B.

[0113] It's important to note that, theoretically, color temperature refers to the color exhibited by an absolute black body after being heated from absolute zero (-273°C). As a black body is heated, it gradually changes from black to red, then yellow, then white, and finally blue. When heated to a certain temperature, the spectral composition of the light emitted by a black body is called the color temperature at that temperature, measured in "K" (Kelvin). If the light emitted by a light source has the same spectral composition as the light emitted by a black body at a certain temperature, it is said to have a color temperature of a certain K.

[0114] For example, the color of light emitted by a 100W (watt) bulb is the same as the color of an absolute black body at 2527℃, so the color temperature of the light emitted by this bulb is: (2527+273)K=2800K.

[0115] Furthermore, in order to improve the accuracy of screen color temperature calibration, the color temperature of the reference screen may be calibrated first using a color temperature calibration model.

[0116] It should be noted that it is usually necessary to calibrate multiple color temperatures sampled within a calibration color temperature range. For example, the calibration color temperature range may be 4000-7000K, and the color temperature sampling interval may be 50K.

[0117] In one embodiment, for each of the plurality of color temperatures, the following steps are performed:

[0118] S1001: Acquire reference chromaticity coordinates corresponding to a white screen in a reference screen, an initial color ratio of the reference screen, and chromaticity coordinates of a target white screen corresponding to a color temperature.

[0119] In one embodiment, the white screen of the reference screen is measured using an optical instrument to obtain reference chromaticity coordinates, and the initial color ratio of the reference screen is obtained through the configuration information stored in the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature are determined based on the color temperature coordinate expression.

[0120] As an example, without any color adjustment or calibration of the reference screen, the reference chromaticity coordinates of the reference screen when it is in white are measured using the optical instrument CA410.

[0121] In one embodiment, a color temperature coordinate expression is determined based on the relationship between the color temperature locus and the chromaticity coordinates. Common color temperature trajectories include the daylight locus and the blackbody locus. In the embodiment of the present application, a daylight locus expression (i.e., a color temperature coordinate expression) determined based on the daylight locus within the color temperature calibration range is used to determine the chromaticity coordinates of the target white screen corresponding to the color temperature.

[0122] Specifically, when determining the chromaticity coordinates of the target white screen corresponding to the color temperature, the following daylight trajectory expression can be used:

[0123]

[0124] Among them, (W xd , W yd ) is the target white screen chromaticity coordinate, T d is the color temperature.

[0125] It should be noted that a white screen refers to a screen display that appears white. The reference chromaticity coordinates corresponding to a white screen refer to the chromaticity coordinates of a reference screen displaying a white screen. Chromaticity coordinates are color coordinates, also known as a colorimetric system, a term in computer science and technology first introduced in 2018.

[0126] It should be noted that luminescent materials are typically described using luminescent color. Due to psychological and physiological factors, people's perception of color varies. Even normal vision varies. To quantitatively describe a color and measure color using physical methods instead of the human eye, a chromaticity diagram is used. Chromaticity coordinates can be represented by (z, y), and a point on the chromaticity diagram can be identified using these coordinates. This point accurately represents the luminescent color. In other words, chromaticity coordinates accurately represent the color. The color coordinates of standard red are (0.67, 0.33), standard green are (0.21, 0.71), and standard blue are (0.14, 0.08). The color coordinates of pure white light are (0.33, 0.33). Chromaticity coordinates are the same as those of the International Commission on Illumination (CIE).

[0127] Because the chromaticity coordinates have two numbers and are not intuitive, people like to use color temperature to roughly represent the luminous color of the lighting source.

[0128] S1002: If it is determined that the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature meet the chromaticity coordinate conditions, the initial color ratio is determined as the reference color ratio corresponding to the color temperature.

[0129] In one embodiment, when executing S1002, the following steps may be performed:

[0130] S10021: Determine the coordinate distance between the reference chromaticity coordinates and the target white screen chromaticity coordinates.

[0131] In one embodiment, the following formula may be used to determine the coordinate distance D:

[0132] D=|W xs -W xd |+|W ys -W yd |;

[0133] Among them, (W xs , W ys ) is the reference chromaticity coordinate, (W xd , W yd ) is the target white screen chromaticity coordinate.

[0134] In practical applications, the coordinate distance can be obtained by other methods, which are not limited here.

[0135] S10022: If it is determined that the coordinate distance is lower than the distance threshold, it is determined that the chromaticity coordinate condition is met.

[0136] In one embodiment, if D<δ, then it is determined that the chromaticity coordinate condition is met, where δ is a distance threshold.

[0137] S10023: Determine the initial color ratio as a reference color ratio corresponding to the color temperature.

[0138] It should be noted that in actual applications, the chromaticity coordinate conditions can be set according to the actual application scenario and are not limited here. For example, the chromaticity coordinate condition can also be that the reference chromaticity coordinates are located in the first coordinate area and / or the target white screen chromaticity coordinates are located in the second coordinate area. The chromaticity coordinate condition can also be that the angle between the reference chromaticity coordinates and the target white screen chromaticity coordinates is less than a set angle. The first coordinate area, the second coordinate area, and the set angle can all be set according to the actual application scenario and are not limited here.

[0139] In this way, the reference color ratio of the reference screen can be directly obtained.

[0140] S1003: If it is determined that the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature meet the chromaticity coordinate condition, the initial color ratio is adjusted to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the target white screen chromaticity coordinates meet the chromaticity coordinate condition; based on the adjusted initial color ratio, the reference color ratio corresponding to the color temperature is determined.

[0141] In one embodiment, when executing S1003, the following steps may be executed repeatedly until it is determined that the chromaticity coordinate condition is met:

[0142] S10031: Adjust the current initial color ratio of the reference screen.

[0143] S10032: Obtain the current new reference chromaticity coordinates of the reference screen.

[0144] In one embodiment, the reference chromaticity coordinates are obtained by measuring the white image of the reference screen using an optical instrument.

[0145] It should be noted that when the color ratio of the device screen changes, the chromaticity coordinates of the device screen will also change accordingly. Therefore, the reference chromaticity coordinates of the reference screen can be changed by adjusting the initial color ratio of the reference screen.

[0146] S10033: Determine the coordinate distance between the new reference chromaticity coordinates and the target white screen chromaticity coordinates.

[0147] S10034: Determine whether the coordinate distance is lower than the distance threshold or whether the number of cycles is lower than the number threshold, and then determine that the chromaticity coordinate condition is met. If so, execute S10035; otherwise, execute S10036.

[0148] It should be noted that the loop will be repeated at least once. For example, in the first loop, the number of loops is 1 and the coefficient threshold is 2.

[0149] S10035: Determine whether the chromaticity coordinate conditions are met.

[0150] S10036: Determine that the chromaticity coordinate condition is not met.

[0151] In this way, the reference chromaticity coordinates of the reference screen can be changed by adjusting the initial color ratio of the reference screen, so that the reference chromaticity coordinates of the reference screen can be close to the chromaticity coordinates of the target white screen, and thus the color temperature presented by the reference screen can be close to the target color temperature.

[0152] S10037: Determine the adjusted initial color ratio as a reference color ratio corresponding to the color temperature.

[0153] In one embodiment, if it is determined that the coordinate distance is not lower than the distance threshold, the adjusted initial color ratio is determined as the reference color ratio corresponding to the color temperature; if it is determined that the coordinate distance is lower than the distance threshold and the number of cycles reaches the number threshold, the minimum value of the initial color ratio in each cycle process is determined, and the minimum value is determined as the reference color ratio corresponding to the color temperature.

[0154] S1004: Obtain a first color temperature correspondence relationship according to a reference color ratio corresponding to the color temperature.

[0155] In one embodiment, when executing S1004, any of the following methods may be used:

[0156] Method 1: For the first color temperature, a first color temperature correspondence is established based on the first color temperature and its corresponding reference color ratio. For other color temperatures, each time a reference color ratio corresponding to a color temperature is obtained, the first color temperature correspondence is updated based on the color temperature and its corresponding reference color ratio.

[0157] Method 2: After determining and obtaining the reference color ratios corresponding to all color temperatures, a first color temperature correspondence relationship is established based on all color temperatures and their corresponding reference color ratios.

[0158] In this way, the color temperature of the reference screen can be calibrated first based on the optimization model.

[0159] Step 101: Obtain target color ratios corresponding to a plurality of color temperatures according to a first color when a reference screen displays a white image, a second color when a target screen displays a white image, and reference color ratios corresponding to a plurality of color temperatures.

[0160] The target screen and the reference screen are different screens. In one embodiment, the reference screen and any target screen to be calibrated are of the same type. In actual applications, the target screen and the reference screen may also be of different types, which is not limited here.

[0161] In one embodiment, a ratio of a first color to a second color is determined; and target color ratios corresponding to a plurality of color temperatures are obtained by multiplying the ratio by a reference color ratio corresponding to each color temperature.

[0162] In one embodiment, when determining the target color ratio corresponding to any color temperature, the following expression may be used:

[0163]

[0164]

[0165]

[0166] Among them, (R r , G r , B r ) is the first color, (R t , G t , B t ) is the second color, R c :G c :B c is the reference color ratio, R c1 :G c1 :B c1 is the target color ratio.

[0167] In an embodiment of the present application, after a single reference screen completes color temperature calibration through a black box optimization algorithm (i.e., an optimization model), the reference screen is used as a standard sample for color temperature calibration to obtain a first color temperature correspondence of the reference screen. Based on the first color temperature correspondence of the reference screen, the color temperature of the target screen is calibrated according to the above expression, i.e., the target color ratios corresponding to the respective color temperatures are determined.

[0168] Furthermore, due to the change in RGB ratio, the brightness of the target screen will decay when displaying a white picture. To ensure that the brightness decay is minimized under the target color ratio, normalization can be performed according to the maximum value of the target color ratio corresponding to each color temperature.

[0169] Specifically, the target color ratio corresponding to each color temperature is normalized to obtain multiple normalized target color ratios.

[0170] In one embodiment, when normalizing any target color ratio, the following color ratio expression may be used:

[0171]

[0172]

[0173]

[0174] Among them, R c1 :G c1 :B c1 is the target color ratio, and R:G:B is the normalized target color ratio.

[0175] Step 102: updating the second color temperature correspondence of the target screen according to target color ratios corresponding to the plurality of color temperatures.

[0176] The second color temperature corresponding relationship is a corresponding relationship between color temperature and the color ratio of the target screen.

[0177] In one implementation, the second color temperature correspondence may be represented by a three-dimensional (3D) color lookup table (LUT).

[0178] See Figure 2 The following is an example table of a 3D LUT. Figure 2 The 3D LUT in the image can be used to find the RGB ratios corresponding to multiple color temperatures.

[0179] Color temperature calibration targets the D65 white point and P3 / sRGB color gamut. This calibration generates a 3D LUT for the target screen. This chromaticity calibration ensures the screen's color temperature accurately matches the D65 and P3 / sRGB color gamuts.

[0180] In this way, color temperature calibration can be performed on multiple target screens to obtain a 3D LUT corresponding to each target screen, so that a white picture can be displayed on the target screen of the device, and the second color temperature correspondence in the 3D LUT can be read by the system of the device, and a color temperature that meets the requirements can be presented according to the second color temperature correspondence.

[0181] Furthermore, after color temperature calibration is performed on the target screen (i.e., the second color temperature correspondence is updated), the device equipped with the target screen can control the display of the target screen using the second color temperature correspondence. The device equipped with the target screen and the electronic device performing the screen color temperature calibration operation can be the same device or different devices.

[0182] In one embodiment, when the device performs a screen display operation, the following steps may be performed:

[0183] S1021: When it is determined that a screen display instruction for a target screen is received, obtain a target color temperature included in the screen display instruction.

[0184] S1022: Obtain a target color ratio corresponding to the target color temperature according to the second color temperature correspondence.

[0185] In one implementation, a second color temperature correspondence is obtained through a 3D LUT of the target screen, and a target RGB ratio is obtained based on the second color temperature correspondence and the target color temperature.

[0186] Furthermore, since the color temperatures in the second color temperature correspondence are obtained by sampling, the second color temperature correspondence may not include the target color temperature. In this case, an interpolation operation can be used to obtain the target color ratio corresponding to the target color temperature.

[0187] In one embodiment, if it is determined that the target color temperature is not included in the second color temperature correspondence, the target color ratios corresponding to multiple adjacent color temperatures of the target color temperature are obtained according to the second color temperature correspondence; based on the target color ratios corresponding to the adjacent color temperatures, an interpolation operation is performed to obtain the target color ratio corresponding to the target color temperature.

[0188] S1023: Executing a screen display operation based on the target color ratio corresponding to the target color temperature.

[0189] See Figure 3 The following is a flow chart of a method for calibrating the color temperature of a reference screen. Figure 3 A method for color temperature calibration based on an optimization model is described.

[0190] Step 300: Obtain the color temperature to be calibrated, and refer to the reference chromaticity coordinates (W xs , W ys ), and the initial color ratio of the reference screen (a:b:c).

[0191] Step 301: Obtain the target white screen chromaticity coordinates (W xd , W yd ).

[0192] Step 302: Determine the coordinate distance |W xs -W xd |+|W ys -W yd Is it lower than the distance threshold δ? If so, execute step 307; otherwise, execute step 303.

[0193] Step 303: Determine whether the number of cycles is lower than the number threshold n. If so, execute step 304; otherwise, execute step 305.

[0194] Wherein, n is a natural number.

[0195] Step 304: Select the minimum value of each (a:b:c) in each cycle as a reference color ratio.

[0196] Step 305: Adjust the current initial color ratio of the reference screen.

[0197] Step 306: Get the current new (W xs , W ys ), execute step 302.

[0198] Step 307: Determine the adjusted (a:b:c) as the reference color ratio corresponding to the color temperature.

[0199] Specifically, the execution steps of step 300 to step 307 are specifically referred to the above step 100, which will not be repeated here.

[0200] See Figure 4 The following is an example diagram of a method for calibrating the color temperature of a target screen. Figure 4 , a method for calibrating the color temperature of a target screen based on a reference screen is described.

[0201] Step 401: Obtain target color temperature.

[0202] Step 402: Obtain a reference color ratio corresponding to the target color temperature.

[0203] Step 403: Acquire a first white mapping relationship of the reference screen.

[0204] The first white mapping relationship is a correspondence between a white image of a reference screen and colors.

[0205] Step 404: According to the first white mapping relationship, obtain the first color when the reference screen displays a white image.

[0206] Step 405: Acquire a second white mapping relationship of the target screen.

[0207] The second white mapping relationship is a correspondence between the white image and the color of the target screen.

[0208] Step 406: Obtain a second color when the reference screen displays a white image according to the second white mapping relationship.

[0209] Step 407: Determine a target color ratio according to the first color, the second color, and the reference color ratio.

[0210] Step 408: Store the target color temperature and the target color ratio.

[0211] Specifically, the execution steps of step 401 to step 408 are specifically referred to the above step 101, which will not be repeated here.

[0212] In this way, the color ratio corresponding to the target color temperature of the target screen can be calibrated according to the first color and reference color ratio of the reference screen and the second color of the target screen to obtain the target color ratio.

[0213] In an embodiment of the present application, the color temperature of the reference screen is first calibrated through the optimization model, and then the difference in RGB luminous efficiency between the reference screen and the target screen is compensated through the calibrated reference model and the color ratio expression, thereby achieving precise color temperature calibration for the white screen of the target screen, ensuring the accuracy and consistency of the visual effects of the white screens of different screens, and improving the user experience.

[0214] Based on the same inventive concept, an embodiment of the present application also provides a device for calibrating screen color temperature. Since the principle of solving the problem solved by the above device and equipment is similar to that of a method for calibrating screen color temperature, the implementation of the above device can refer to the implementation of the method, and the repeated parts will not be repeated. The device can be applied to electronic devices. This application does not limit the type of electronic device. It can be any type of device suitable for implementation, such as terminal devices and servers, and this application will not repeat them.

[0215] See Figure 5 FIG. 1 is a block diagram of a device for calibrating screen color temperature according to an embodiment of the present application. In some embodiments, the device for calibrating screen color temperature according to an embodiment of the present application includes:

[0216] A first obtaining unit 501 is configured to obtain reference color ratios corresponding to a plurality of color temperatures according to a first color temperature correspondence of a reference screen; the first color temperature correspondence is a correspondence between color temperatures and color ratios of the reference screen;

[0217] The second obtaining unit 502 is configured to obtain target color ratios corresponding to the plurality of color temperatures according to the first color when the reference screen displays a white image, the second color when the target screen displays a white image, and the reference color ratios corresponding to the plurality of color temperatures;

[0218] The updating unit 503 is configured to update the second color temperature correspondence of the target screen according to target color ratios corresponding to the multiple color temperatures; the second color temperature correspondence is a correspondence between color temperatures and color ratios of the target screen.

[0219] In one embodiment, the first obtaining unit 501 is further configured to:

[0220] For each of the multiple color temperatures, perform the following steps:

[0221] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0222] If the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature are determined to meet the chromaticity coordinate conditions, the initial color ratio is determined to be the reference color ratio corresponding to the color temperature;

[0223] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0224] In one embodiment, the first obtaining unit 501 is further configured to:

[0225] Determining a coordinate distance between a reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0226] If the coordinate distance is determined to be lower than the distance threshold, it is determined that the chromaticity coordinate condition is met;

[0227] The initial color ratio is determined as the reference color ratio corresponding to the color temperature.

[0228] In one embodiment, the first obtaining unit 501 is further configured to:

[0229] For each of the multiple color temperatures, perform the following steps:

[0230] Obtain the reference chromaticity coordinates corresponding to the white screen in the reference screen, the initial color ratio of the reference screen, and the chromaticity coordinates of the target white screen corresponding to the color temperature;

[0231] If it is determined that the chromaticity coordinates of the target white screen corresponding to the reference chromaticity coordinates and the color temperature do not meet the chromaticity coordinate conditions, adjusting the initial color ratio to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the chromaticity coordinates of the target white screen meet the chromaticity coordinate conditions;

[0232] Determine a reference color ratio corresponding to the color temperature according to the adjusted initial color ratio;

[0233] A first color temperature correspondence is obtained according to a reference color ratio corresponding to the color temperature.

[0234] In one embodiment, the first obtaining unit 501 is further configured to:

[0235] The following steps are executed repeatedly until the chromaticity coordinate conditions are met:

[0236] Adjust the current initial color ratio of the reference screen;

[0237] Get the current new reference chromaticity coordinates of the reference screen;

[0238] Determining a coordinate distance between a new reference chromaticity coordinate and a target white screen chromaticity coordinate;

[0239] If it is determined that the coordinate distance is lower than the distance threshold or the number of cycles reaches the number threshold, it is determined that the chromaticity coordinate condition is met;

[0240] Otherwise, it is determined that the chromaticity coordinate condition is not met.

[0241] In one embodiment, the first obtaining unit 501 is further configured to:

[0242] If it is determined that the coordinate distance is not less than the distance threshold, the adjusted initial color ratio is determined as the reference color ratio corresponding to the color temperature;

[0243] If it is determined that the coordinate distance is lower than the distance threshold and the number of cycles reaches the number threshold, the minimum value of the initial color ratio in each cycle process is determined, and the minimum value is determined as the reference color ratio corresponding to the color temperature.

[0244] In one embodiment, the second obtaining unit 502 is configured to:

[0245] determining a ratio of the first color to the second color;

[0246] Target color ratios corresponding to multiple color temperatures are obtained according to the product of the ratio and the reference color ratio corresponding to each color temperature.

[0247] In one embodiment, before updating the second color temperature correspondence of the target screen according to the target color ratios corresponding to the plurality of color temperatures, the method includes:

[0248] The target color ratio corresponding to each color temperature is normalized respectively to obtain multiple normalized target color ratios.

[0249] In one implementation, the updating unit 503 is further configured to:

[0250] When it is determined that a screen display instruction for a target screen has been received, obtaining a target color temperature included in the screen display instruction;

[0251] Obtaining a target color ratio corresponding to the target color temperature according to the second color temperature correspondence relationship;

[0252] Based on the target color ratio corresponding to the target color temperature, a screen display operation is performed.

[0253] In one implementation, the updating unit 503 is further configured to:

[0254] If it is determined that the target color temperature is not included in the second color temperature correspondence, obtaining target color ratios corresponding to multiple adjacent color temperatures of the target color temperature according to the second color temperature correspondence;

[0255] Based on the target color ratios corresponding to adjacent color temperatures, an interpolation operation is performed to obtain the target color ratio corresponding to the target color temperature.

[0256] In one aspect, an embodiment of the present application provides an electronic device, including:

[0257] processor; and

[0258] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the steps of the method provided in any of the various optional implementations of screen color temperature calibration described above.

[0259] On the one hand, an embodiment of the present application provides a storage medium storing computer instructions, which are used to enable a computer to execute the steps of the method provided in any of the various optional implementations of screen color temperature calibration described above.

[0260] The screen color temperature calibration method in the embodiment of the present application includes obtaining reference color ratios corresponding to multiple color temperatures based on a first color temperature correspondence of a reference screen; the first color temperature correspondence is the correspondence between color temperature and the color ratio of the reference screen; obtaining target color ratios corresponding to multiple color temperatures based on a first color when the reference screen displays a white screen, a second color when the target screen displays a white screen, and the reference color ratios corresponding to the multiple color temperatures; updating a second color temperature correspondence of the target screen based on the target color ratios corresponding to the multiple color temperatures; the second color temperature correspondence is the correspondence between color temperature and the color ratio of the target screen. In this way, by using a reference model to calibrate the color temperature of the target screen, accurate color temperature calibration for the white screen is achieved, ensuring the accuracy and consistency of visual effects when displaying white screens on different screens, and improving the user experience.

[0261] In an embodiment of the present application, an electronic device is provided, including:

[0262] processor; and

[0263] The memory stores computer instructions, where the computer instructions are used to enable the processor to execute the method of any of the above embodiments.

[0264] In an embodiment of the present application, a storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method of any of the above embodiments. Figure 6 FIG. 6 shows a schematic structural diagram of an electronic device 6000. Figure 6 As shown, the electronic device 6000 includes: a processor 6010 and a memory 6020, and optionally, may also include a power supply 6030, a display unit 6040, and an input unit 6050.

[0265] The processor 6010 is the control center of the electronic device 6000. It uses various interfaces and lines to connect various components, and performs various functions of the electronic device 6000 by running or executing software programs and / or data stored in the memory 6020, thereby monitoring the electronic device 6000 as a whole.

[0266] In the embodiment of the present application, the processor 6010 executes the various steps in the above embodiment when calling the computer program stored in the memory 6020.

[0267] Optionally, the processor 6010 may include one or more processing units. Preferably, the processor 6010 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and applications, and the modem processor primarily processes wireless communications. It is understood that the modem processor may not be integrated into the processor 6010. In some embodiments, the processor and memory may be implemented on a single chip. In some embodiments, they may also be implemented on separate chips.

[0268] The memory 6020 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, various applications, etc., and the data storage area may store data created based on the use of the electronic device 6000. In addition, the memory 6020 may include a high-speed random access memory and a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0269] The electronic device 6000 also includes a power supply 6030 (such as a battery) for supplying power to various components. The power supply can be logically connected to the processor 6010 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0270] The display unit 6040 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 6000. In the embodiment of the present application, it is mainly used to display the display interface of each application in the electronic device 6000 and objects such as text and pictures displayed on the display interface. The display unit 6040 may include a display panel 6041. The display panel 6041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0271] The input unit 6050 can be used to receive information such as numbers or characters input by the user. The input unit 6050 may include a touch panel 6051 and other input devices 6052. The touch panel 6051, also known as a touch screen, can receive user touch operations on or near it (for example, operations performed by the user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 6051).

[0272] Specifically, the touch panel 6051 can detect user touch operations and the signals generated by the touch operations, convert these signals into touch point coordinates, send them to the processor 6010, and receive and execute commands sent by the processor 6010. In addition, the touch panel 6051 can be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 6052 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, a joystick, etc.

[0273] Of course, the touch panel 6051 can cover the display panel 6041. When the touch panel 6051 detects a touch operation on or near it, it transmits the information to the processor 6010 to determine the type of touch event. Then, the processor 6010 provides corresponding visual output on the display panel 6041 according to the type of touch event. Figure 6 In the embodiment, the touch panel 6051 and the display panel 6041 are two independent components to realize the input and output functions of the electronic device 6000, but in some embodiments, the touch panel 6051 and the display panel 6041 can be integrated to realize the input and output functions of the electronic device 6000.

[0274] The electronic device 6000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the electronic device 6000 may also include other components such as a camera. Since these components are not the key components used in the embodiments of this application, Figure 6 It is not shown and will not be described in detail.

[0275] Those skilled in the art will understand that Figure 6 The electronic device is merely an example and does not limit the electronic device. The electronic device may include more or fewer components than shown in the figure, or may include a combination of certain components or different components.

[0276] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0277] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the embodiments. Those skilled in the art will appreciate that other variations or modifications can be made based on the above description. It is not necessary and impossible to enumerate all embodiments here. Obvious variations or modifications arising therefrom remain within the scope of protection of this application.

Claims

1. A method for calibrating screen color temperature, characterized in that: The method comprises: According to a first color temperature correspondence relationship of a reference screen, reference color ratios corresponding to a plurality of color temperatures are obtained; the first color temperature correspondence relationship is a correspondence relationship between color temperatures and color ratios of the reference screen; Obtain target color ratios corresponding to multiple color temperatures according to the first color when the reference screen displays a white picture, the second color when the target screen displays a white picture, and reference color ratios corresponding to multiple color temperatures; According to the target color ratios corresponding to the multiple color temperatures respectively, the second color temperature correspondence relationship of the target screen is updated; the second color temperature correspondence relationship is the correspondence relationship between the color temperature and the color ratio of the target screen.

2. The method according to claim 1, characterized in that Before obtaining reference color ratios corresponding to a plurality of color temperatures respectively according to the first color temperature correspondence of the reference screen, the method further includes: For each of the multiple color temperatures, perform the following steps: Acquire reference chromaticity coordinates corresponding to the white screen in the reference screen, an initial color ratio of the reference screen, and chromaticity coordinates of the target white screen corresponding to the color temperature; If it is determined that the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature meet the chromaticity coordinate conditions, the initial color ratio is determined as the reference color ratio corresponding to the color temperature; The first color temperature corresponding relationship is obtained according to the reference color ratio corresponding to the color temperature.

3. The method according to claim 2, characterized in that The step of determining the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature, and determining the initial color ratio as the reference color ratio corresponding to the color temperature, if the chromaticity coordinates meet the chromaticity coordinate conditions, includes: Determining a coordinate distance between the reference chromaticity coordinates and the target white screen chromaticity coordinates; If it is determined that the coordinate distance is lower than the distance threshold, it is determined that the chromaticity coordinate condition is met; The initial color ratio is determined as a reference color ratio corresponding to the color temperature.

4. The method according to claim 1, characterized in that: Before obtaining reference color ratios corresponding to a plurality of color temperatures respectively according to the first color temperature correspondence of the reference screen, the method further includes: For each of the multiple color temperatures, perform the following steps: Acquire reference chromaticity coordinates corresponding to the white screen in the reference screen, an initial color ratio of the reference screen, and chromaticity coordinates of the target white screen corresponding to the color temperature; If it is determined that the reference chromaticity coordinates and the target white screen chromaticity coordinates corresponding to the color temperature do not meet the chromaticity coordinate condition, adjusting the initial color ratio to obtain new reference chromaticity coordinates until the new reference chromaticity coordinates and the target white screen chromaticity coordinates meet the chromaticity coordinate condition; Determining a reference color ratio corresponding to the color temperature according to the adjusted initial color ratio; The first color temperature corresponding relationship is obtained according to the reference color ratio corresponding to the color temperature.

5. The method according to claim 4, characterized in that The initial color ratio is adjusted to obtain a new reference chromaticity coordinate until the new reference chromaticity coordinate and the target white screen chromaticity coordinate meet the chromaticity coordinate condition, including: The following steps are executed repeatedly until the chromaticity coordinate condition is met: Adjusting the current initial color ratio of the reference screen; Obtaining the current new reference chromaticity coordinates of the reference screen; Determining a coordinate distance between the new reference chromaticity coordinates and the target white screen chromaticity coordinates; If it is determined that the coordinate distance is lower than the distance threshold or the number of cycles reaches the number threshold, it is determined that the chromaticity coordinate condition is met; Otherwise, it is determined that the chromaticity coordinate condition is not met.

6. The method according to claim 4, characterized in that The step of determining the reference color ratio corresponding to the color temperature according to the adjusted initial color ratio includes: If it is determined that the coordinate distance is not less than the distance threshold, the adjusted initial color ratio is determined as the reference color ratio corresponding to the color temperature; If it is determined that the coordinate distance is lower than the distance threshold and the number of cycles reaches the number threshold, the minimum value of the initial color ratio in each cycle process is determined, and the minimum value is determined as the reference color ratio corresponding to the color temperature.

7. The method according to any one of claims 1 to 6, characterized in that: The step of obtaining target color ratios corresponding to a plurality of color temperatures according to the first color when the reference screen displays a white picture, the second color when the target screen displays a white picture, and the reference color ratios corresponding to a plurality of color temperatures respectively includes: determining a ratio of the first color to the second color; According to the product of the ratio and the reference color ratio corresponding to each color temperature, target color ratios corresponding to multiple color temperatures are obtained.

8. The method according to any one of claims 1 to 6, characterized in that: Before updating the second color temperature correspondence relationship of the target screen according to the target color ratios corresponding to the multiple color temperatures, the method includes: The target color ratio corresponding to each color temperature is normalized respectively to obtain multiple normalized target color ratios.

9. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When it is determined that a screen display instruction for the target screen is received, obtaining a target color temperature included in the screen display instruction; According to the second color temperature corresponding relationship, obtaining a target color ratio corresponding to the target color temperature; Based on the target color ratio corresponding to the target color temperature, a screen display operation is performed.

10. The method according to claim 9, characterized in that The step of obtaining a target color ratio corresponding to the target color temperature according to the second color temperature corresponding relationship includes: If it is determined that the target color temperature is not included in the second color temperature corresponding relationship, obtaining target color ratios corresponding to a plurality of adjacent color temperatures of the target color temperature according to the second color temperature corresponding relationship; An interpolation operation is performed based on target color ratios corresponding to adjacent color temperatures to obtain a target color ratio corresponding to the target color temperature.

11. A device for calibrating screen color temperature, characterized in that: The device comprises: A first obtaining unit, configured to obtain reference color ratios corresponding to a plurality of color temperatures respectively according to a first color temperature correspondence relationship of a reference screen; the first color temperature correspondence relationship is a correspondence relationship between color temperatures and color ratios of the reference screen; A second obtaining unit is used to obtain target color ratios corresponding to multiple color temperatures according to the first color when the reference screen displays a white picture, the second color when the target screen displays a white picture, and the reference color ratios corresponding to the multiple color temperatures; The updating unit is used to update the second color temperature correspondence of the target screen according to the target color ratios corresponding to the multiple color temperatures respectively; the second color temperature correspondence is the correspondence between the color temperature and the color ratio of the target screen.

12. An electronic device, characterized in that: include: processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any one of claims 1 to 10.

13. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 10.