CN115225759A - Color temperature detection device, method, equipment, terminal and storage medium - Google Patents

Color temperature detection device, method, equipment, terminal and storage medium Download PDF

Info

Publication number
CN115225759A
CN115225759A CN202110405909.5A CN202110405909A CN115225759A CN 115225759 A CN115225759 A CN 115225759A CN 202110405909 A CN202110405909 A CN 202110405909A CN 115225759 A CN115225759 A CN 115225759A
Authority
CN
China
Prior art keywords
color temperature
temperature detection
detection data
ambient light
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110405909.5A
Other languages
Chinese (zh)
Inventor
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110405909.5A priority Critical patent/CN115225759A/en
Publication of CN115225759A publication Critical patent/CN115225759A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Radiation Pyrometers (AREA)

Abstract

The disclosure relates to a color temperature detection device, a method, equipment, a terminal and a storage medium. The color temperature detection device comprises a first color temperature detection unit and a second color temperature detection unit, wherein a filtering unit is arranged on one side, close to the display side of the full-face screen, of the second color temperature detection unit; the filter unit is configured to filter ambient light for transmission by the original light, wherein the original light refers to light emitted by the light emitting units of the full-face screen. In the color temperature detection device, a first color temperature detection unit is used for detecting the comprehensive data of ambient light and original light and recording the comprehensive data as first color temperature detection data; the second color temperature detection unit is used for detecting data of the original light and recording the data as second color temperature detection data. Then through the difference of first colour temperature detected data and second colour temperature detected data, confirm the current colour temperature of ambient light to obtain the current colour temperature of accurate ambient light, and then realize the more accurate regulation to the colour of comprehensive screen.

Description

Color temperature detection device, method, equipment, terminal and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a color temperature detection apparatus, a color temperature detection method, a color temperature detection device, a color temperature detection apparatus, a color temperature detection terminal, and a storage medium.
Background
At present, in a terminal such as a mobile phone, in order to provide accurate color adjustment for a screen, a color temperature of external ambient light needs to be determined first. However, more and more terminals are beginning to set the screen as a full screen, which makes the color temperature detection of the external environment light more difficult.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a color temperature detection apparatus, method, device, terminal, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a color temperature detection apparatus disposed in a terminal having a full-face screen, the color temperature detection apparatus including a first color temperature detection unit and a second color temperature detection unit, a filter unit disposed on a side of the second color temperature detection unit near a display side of the full-face screen,
the filter unit is configured to filter ambient light for transmission by original light emitted by the light emitting units of the full-face screen.
Optionally, the filter unit comprises a polarizer and a quarter-wave plate; and/or
The filter unit includes a layer of filter material.
Optionally, when the filtering unit includes the quarter-wave plate, the polarizer and the filtering material layer at the same time, the filtering material layer is attached to the quarter-wave plate and/or the polarizer, and the filtering material layer is configured to filter light of a preset wavelength band.
Optionally, the preset wavelength band refers to a wavelength band with a wavelength greater than or equal to 700 nm.
Optionally, the first color temperature detection unit comprises at least one first color sensor; and/or the presence of a gas in the atmosphere,
the second color temperature detection unit includes at least one second color sensor.
Optionally, a spacer is arranged between the first color temperature detection unit and the second color temperature detection unit.
According to a second aspect of the embodiments of the present disclosure, there is provided a color temperature detection method applied to a terminal having a full-screen, the method including:
acquiring first color temperature detection data and second color temperature detection data, wherein the first color temperature detection data comprise light data of ambient light and original light emitted by a light emitting unit of a full-face screen, and the second color temperature detection data comprise light data of the ambient light;
and determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data.
Optionally, the determining a current color temperature of ambient light according to the first color temperature detection data and the second color temperature detection data includes:
determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light;
and processing the ambient light color temperature detection data according to a preset color temperature calculation model to determine the current color temperature.
Optionally, the determining a difference between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light includes:
acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
determining a difference value of the first correction detection data and the second correction detection data as the ambient light color temperature detection data.
Optionally, the preset color temperature calculation model comprises a linear calculation model and/or a matrix calculation model.
According to a third aspect of embodiments of the present application, there is provided a color temperature detection apparatus applied to a terminal having a full-screen, the apparatus including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first color temperature detection data and second color temperature detection data, the first color temperature detection data comprises light data of original light emitted by light emitting units of ambient light and a full-screen, and the second color temperature detection data comprises light data of the ambient light;
and the determining module is used for determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data.
Optionally, the determining module is further configured to:
determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light;
and processing the ambient light color temperature detection data according to a preset color temperature calculation model to determine the current color temperature.
Optionally, the determining module is further configured to:
acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
determining a difference value of the first correction detection data and the second correction detection data as the ambient light color temperature detection data.
Optionally, the preset color temperature calculation model comprises a linear calculation model and/or a matrix calculation model.
According to a fourth aspect of embodiments of the present application, there is provided a terminal, the terminal includes a full-screen and a color temperature detection device according to the first aspect, the color temperature detection device is located inside or inside the full-screen, the terminal further includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the color temperature detection method according to the second aspect.
According to a fifth aspect of embodiments herein, there is provided a non-transitory computer readable storage medium having instructions thereon, which, when executed by a processor of a terminal, enable the terminal to perform the color temperature detection method according to the second aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the color temperature detection device, a first color temperature detection unit is used for detecting comprehensive data of ambient light and original light and recording the comprehensive data as first color temperature detection data; the second color temperature detection unit is used for detecting data of the original light and recording the data as second color temperature detection data. Then through the difference of first colour temperature detected data and second colour temperature detected data, confirm the current colour temperature of ambient light to obtain the current colour temperature of accurate ambient light, and then realize the more accurate regulation to the colour of comprehensive screen.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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.
Fig. 1 is a schematic configuration diagram (including a full-screen) of a color temperature detection apparatus according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a color temperature detection method according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a color temperature detection apparatus according to an exemplary embodiment.
Fig. 4 is a block diagram of a terminal shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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. Rather, they are merely examples of devices and apparatus consistent with certain aspects of the invention, as detailed in the appended claims.
The utility model provides a color temperature detection device is applied to the terminal that has the full face screen. In the color temperature detection device, a first color temperature detection unit is used for detecting comprehensive data of ambient light and original light and recording the comprehensive data as first color temperature detection data; the second color temperature detection unit is used for detecting data of the original light and recording the data as second color temperature detection data. Then through the difference of first colour temperature detected data and second colour temperature detected data, confirm the current colour temperature of ambient light to obtain the current colour temperature of accurate ambient light, and then realize the more accurate regulation to the colour of comprehensive screen.
In one exemplary embodiment, a color temperature detection apparatus is provided for use in a terminal having a full-screen. Referring to fig. 1, the color temperature detection apparatus includes a first color temperature detection unit 3 and a second color temperature detection unit 4, a filter unit 2 is disposed on a side of the second color temperature detection unit 4 close to a display side of a full-screen 1, and the filter unit 2 is configured to filter ambient light for transmission of original light.
The original light refers to light emitted by the light emitting unit 11 of the full-face screen 1, and due to the problems of poor sealing and the like, light leakage exists in the full-face screen 1, that is, a part of the light emitted by the light emitting unit 11 is transmitted to the color temperature detection device. In the color temperature detection device, a first color temperature detection unit 3 can detect ambient light and original light to generate first color temperature detection data; since the ambient light is filtered by the filter unit 2, the original light can be detected by the second color temperature detection unit 4, generating second color temperature detection data. Therefore, the color temperature detection data of the ambient light can be determined through the difference between the second color temperature detection data and the first color temperature detection data, and then the current color temperature of the ambient light is obtained.
In the color temperature detection device, after the original light is reflected by the full-face screen 1, a part of the light can also be transmitted to the color temperature detection device, the part of the light transmitted to the color temperature detection device is marked as reflected light, and the filtering unit 2 can filter the reflected light. That is, the first color temperature detection data detected by the first color temperature detection unit 3 includes color temperature detection data of reflected light, and the second color temperature detection data detected by the second color temperature detection unit 4 does not include color temperature detection data of reflected light. However, since the reflected light reaching the color temperature detection means is very weak, the influence on the current color temperature of the finally determined ambient light is very small, and therefore the influence of the reflected light on the current color temperature is negligible.
The filter unit 2 includes the following three structural forms.
A first structural formula: the filter unit 2 may include a polarizing plate 22 and a quarter-wave plate 21 (also called "quarter retardation plate (retardation plate)") which is called a quarter-wave plate 21 and in which a phase difference between ordinary light and extraordinary light emitted when light of a certain wavelength passes through at normal incidence is 1/4 wavelength.
By the combination of the polarizer 22 and the quarter-wave plate 21, the filter unit 2 is made to filter ambient light and to be transparent to the original light. The polarizer 22 may be provided with at least one layer, and the quarter-wave plate 21 may be provided with at least one layer. When the polarizer 22 and the quarter-wave plate 21 are each provided in a multilayer, the polarizer 22 and the quarter-wave plate 21 may be provided in a stacked state in sequence or in a cross-stacked state.
For example, the polarizer includes two layers, the quarter-wave plate also includes two layers, and in the filter unit, from the side where the full-face screen is located to the side where the color temperature detection device is located, the polarizer a, the polarizer b, the quarter-wave plate c, and the quarter-wave plate d are arranged in this order.
For another example, the polarizer includes two layers, the quarter-wave plate also includes two layers, and in the filter unit, from the side where the full-face screen is located to the side where the color temperature detection device is located, the polarizer a, the quarter-wave plate c, the polarizer b, and the quarter-wave plate d are sequentially arranged.
The second structural form is as follows: the filter unit 2 may comprise a layer of filter material (not shown in the figures).
It should be noted that the wavelengths of the light that can be filtered by different materials are different, and therefore, the filtering material layer may include a plurality of material layers formed by different materials, so that the filtering unit 2 can filter the ambient light and transmit the original light through the multi-layer material layers formed by different materials. The filter material can be attached to transparent glass, and the transparent glass can be used for transmitting light with all wavelengths.
The third structural formula: the filter unit 2 may include a polarizer 22, a quarter wave plate 21 and a layer of filter material (not shown in the figure).
The combination of the polarizer 22, the quarter-wave plate 21 and the filter material layer allows the filter unit 2 to filter ambient light and transmit the original light. Wherein the layer of filter material may be attached to the polarizer 22 and/or the quarter wave plate 21. In the filtering structure, the filtering material layer can filter the ambient light of the preset wavelength band, and the polarizer 22 and the quarter-wave plate 21 can filter the ambient light of the remaining wavelength band, so that the filtering unit 2 can filter all the ambient light.
For example, referring to fig. 1, the filtering unit includes a quarter-wave plate 21 and a polarizer 22, and a filtering material layer (not shown) is attached on the quarter-wave plate 21 or the polarizer 22, wherein the filtering material layer is used for filtering light of a preset wavelength band, which may refer to a wavelength band of 700nm or more, that is, the filtering material layer is used for filtering light of a wavelength band of 700nm or more. The quarter-wave plate 21 and the polarizer 22 are used to filter the remaining part of the ambient light. In this way, the filter unit 2 can filter all the ambient light, and only the original light can pass through.
It should be noted that in the filter unit 2 with the above three structural forms, only one layer or more than one layer may be disposed on the quarter-wave plate 21, the polarizer 22 and the filter material layer according to practical situations, and details are not described herein.
Among this colour temperature detection device, filter the ambient light through filter unit 2, see through original light, make first colour temperature detection unit 3 generate first colour temperature detected data according to ambient light and original light, second colour temperature detection unit 4 generates second colour temperature detected data according to original light, then detect the difference of data through first colour temperature and second colour temperature, confirm the current colour temperature of ambient light, in order to obtain the current colour temperature of accurate ambient light, and then realize the more accurate regulation to the colour of comprehensive screen 1, the display effect of comprehensive screen 1 has been promoted.
In one exemplary embodiment, a color temperature detection apparatus is provided for use in a terminal having a full-screen. Referring to fig. 1, in the color temperature detection apparatus, the first color temperature detection unit 3 includes at least one first color sensor, which is an RGB sensor, and is configured to detect channel values of a red channel, a green channel, a blue channel, and a full spectrum channel of synthesized light formed by ambient light and original light to obtain corresponding first color temperature detection data.
In the first color temperature detection unit 3, the number of the first color sensors may be one, or two or more.
In the case of the example 1, the following,
the first color temperature detection unit 3 includes a first color sensor, that is, the first color temperature detection unit 3 includes an RGB sensor. In this example, the RGB sensor may directly use the ambient light and the raw light as the first color temperature detection data after generating the corresponding channel values.
In the case of example 2, the following example was carried out,
the first color temperature detection unit 3 includes three first color sensors, that is, the first color temperature detection unit 3 includes three RGB sensors. In this example, each of the RGB sensors may generate a set of color temperature detection data (i.e., a set of channel values) according to the ambient light and the raw light, and then average three sets of color temperature detection data detected by the three RGB sensors to obtain the first color temperature detection data. The channel values of the three groups of red channels obtained by the detection of the three RGB sensors are averaged to obtain the channel value of the red channel in the first color temperature detection data; the three RGB sensors detect the channel values of the three groups of green channels, and the average value is calculated to obtain the channel value of the green channel in the first color temperature detection data; the three RGB sensors detect the obtained channel values of the three groups of blue channels, and the average value is calculated to obtain the channel value of the blue channel in the first color temperature detection data; and the three RGB sensors detect the channel values of the three groups of full spectrum channels, and the average value is calculated to obtain the channel values of the full spectrum channels in the first color temperature detection data.
In the color temperature detection apparatus, the second color temperature detection unit 4 is similar to the first color temperature detection unit 3, the second color temperature detection unit 4 may include at least one second color sensor, the second color sensor may also be an RGB sensor, and then the second color temperature detection data of the original light is obtained in a manner similar to the first color temperature detection data, which is not described herein again.
Referring to fig. 1, a spacer 5 is disposed between the first color temperature detection unit 3 and the second color temperature detection unit 4, the spacer 5 may be an opaque structure, and the spacer 5 is used to avoid mutual influence between the two color temperature detection units, so as to improve stability of the first color temperature detection data and the second color temperature detection data.
In the color temperature detection device, first color temperature detection data and second color temperature detection data are obtained through detection of an RGB sensor, each color temperature detection data includes channel values of a red channel, a green channel, a blue channel, and a full spectrum channel, and then, according to a difference between the first color temperature detection data and the second color temperature detection data, ambient light color temperature detection data of ambient light is obtained. Then, according to the ambient light color temperature detection data, the current color temperature of the ambient light can be determined, so that more accurate adjustment of the color of the full-face screen 1 is realized, and the display effect of the full-face screen 1 is improved.
In an exemplary embodiment, a color temperature detection method is provided, which is applied to a terminal having a full-screen, and the terminal may include the color temperature detection apparatus described above. Referring to fig. 2, the method includes:
s110, obtaining first color temperature detection data and second color temperature detection data, wherein the first color temperature detection data comprise light data of ambient light and original light emitted by a light emitting unit of the full-face screen, and the second color temperature detection data comprise light data of the ambient light;
and S120, determining the current color temperature of the current ambient light according to the first color temperature detection data and the second color temperature detection data.
In step S110, the first color temperature detection data may include channel values of a red channel, a green channel, a blue channel, and a full spectrum channel, and the first color temperature detection data may be detected by a first color temperature detection unit, where the first color temperature detection unit may include a single RGB sensor or may include a plurality of RGB sensors. That is, the first color temperature detection data may be detected by one RGB sensor, or may be obtained by averaging data detected by more than one RGB sensor.
It should be noted that, when the first color temperature detection unit includes more than one RGB sensor, the first color temperature detection unit may further include a data processing unit, and the data processing unit processes the light data detected by the more than one RGB sensor to obtain final first color temperature detection data, and then transmits the final first color temperature detection data to the processor (CPU) of the terminal, so that the processor obtains the first color temperature detection data.
It is understood that, when the first color temperature detecting unit includes more than one RGB sensor, the light data detected by the more than one RGB sensors can be directly transmitted to the processor of the terminal, and then the processor processes the light data to obtain the final first color temperature detecting data.
The determination method of the second color temperature detection data is similar to that of the first color temperature detection data, and is not described herein again.
In step S120, after the first color temperature detection data is determined, a first color temperature corresponding to the first color temperature detection data may be determined according to channel values of a red channel, a green channel, a blue channel, and a full spectrum channel in the first color temperature detection data, where the first color temperature is a color temperature of the integrated light formed by the ambient light and the original light. After the second color temperature detection data is determined, a second color temperature corresponding to the second color temperature detection data can be determined according to channel values of a red channel, a green channel, a blue channel and a full spectrum channel in the second color temperature detection data, and the second color temperature is the color temperature of the original light. Then, according to the difference between the first color temperature and the second color temperature, the current color temperature of the ambient light can be determined.
According to the method, the first color temperature detection data comprise light data of ambient light and original light, the second color temperature detection data comprise light data of the original light, then the current color temperature of the ambient light can be determined through the difference between the first color temperature detection data and the second color temperature detection data, so that the accurate current color temperature of the ambient light can be obtained, more accurate adjustment of the color of the full-screen is achieved, and the display effect of the full-screen is improved.
In one exemplary embodiment, a color temperature detection method is provided, which is applied to a terminal having a full screen. This method is an improvement over step S120 of the above method. In an example, the method for determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data includes:
s210, determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light and color temperature detection data of ambient light;
and S220, processing the ambient light color temperature detection data according to the preset color temperature calculation model, and determining the current color temperature.
In step S210, the first color temperature detection data includes a first red channel value of the red channel, a first green channel value of the green channel, a first blue channel value of the blue channel, and a first full spectrum channel value of the full spectrum channel, and the second color temperature detection data also includes a second red channel value of the red channel, a second green channel value of the green channel, a second blue channel value of the blue channel, and a second full spectrum channel value of the full spectrum channel.
Obtaining a third red channel value according to the difference value of the first red channel value and the second red channel value; and analogizing in sequence to respectively obtain a third green channel value, a third blue channel value and a third full spectrum channel value. And then determining the third red channel value, the third green channel value, the third blue channel value and the third full spectrum channel value as the ambient light color temperature detection data of the ambient light.
In step S220, the preset color temperature calculation model may include a linear calculation model and/or a matrix calculation model. The preset color temperature calculation model can be set when the terminal leaves a factory, and can also be set by a user. After the preset color temperature calculation model is set, the user can modify the preset color temperature calculation model in the subsequent use process (including modifying the type of the model, relevant parameters and the like).
In addition, the two models can be preset in advance in the terminal, or only one model can be preset. When two models are preset in the terminal, the user can select the model which is required to be used currently according to actual requirements.
In the first case:
the preset calculation model comprises a linear color temperature calculation model, the linear calculation model comprises an infrared channel value calculation formula and first preset configuration information, and the first preset configuration information comprises a mapping relation between an infrared channel value and the linear color temperature calculation formula. According to the linear color temperature calculation model, processing the ambient light color temperature detection data, and determining the current color temperature, wherein the steps comprise:
s221, determining a third infrared channel value of the ambient light according to the ambient light color temperature detection data and the infrared channel value calculation formula;
s222, determining a linear color temperature calculation formula corresponding to the third infrared channel value as a target linear color temperature calculation formula according to the third infrared channel value and the first preset configuration information;
and S223, determining the current color temperature according to the ambient light color temperature detection data and the target linear color temperature calculation formula.
In this case, the ambient light temperature detection data (including the third red channel value R) for the ambient light is determined 3 Third green channel value G 3 The third blue channel value B 3 And a third full spectrum channel value C 3 ) Then, according to the formula IR = (R + G + B-C)/2C for calculating the infrared channel value, the third infrared channel value IR of the infrared channel of the ambient light is determined 3 =(R 3 +G 3 +B 3 -C 3 )/2C 3
And then searching a linear color temperature calculation formula corresponding to the third infrared channel value from the first preset configuration information, and taking the linear color temperature calculation formula as a target linear color temperature calculation formula.
In general, two linear color temperature calculation formulas may be set, corresponding to cool light (corresponding to a lower value of the infrared channel value) and warm light (corresponding to a higher value of the infrared channel value), respectively. That is, when the third infrared channel value represents that the ambient light is not cold, the cold light linear color temperature calculation formula CCT = K is used 11 *(B/R)+K 12 (ii) a When the third infrared channel value indicates that the ambient light is not warm, using a warm light linear color temperature calculation formula CCT = K 21 *(B/R)+K 22
CCT (Correlated Color Temperature) is recorded as the current Color Temperature. First luminescence weight K 11 Weights, first luminescence weights and first luminescence constants K that can be used to represent channel value ratios 12 All can be fitted by linear fittingAnd is determined. First warm light weight K 21 A weight, a first warm light weight and a first warm light constant K that can be used to represent a channel value ratio 22 It can also be determined by means of a linear fit.
Finally, the ambient light color temperature detection data (including the third red channel value R) 3 Third green channel value G 3 The third blue channel value B 3 And a third full spectrum channel value C 3 ) And substituting the target linear color temperature calculation formula to determine the current color temperature.
It is to be noted that, in the above-described cold light linear color temperature calculation formula and warm light linear color temperature calculation formula, only the difference of the calculation coefficients (weight and constant) used, that is, the difference of the first cold light weight from the first warm light weight, and the difference of the first cold light constant from the first warm light constant. Therefore, the linear calculation model may further include a linear color temperature calculation formula, and the first preset configuration information may also include a mapping relationship between the third infrared channel value and a calculation coefficient in the linear color temperature calculation formula. And determining a target calculation coefficient according to the third infrared channel value, and substituting the target calculation coefficient and the ambient light color temperature detection data into a linear color temperature calculation formula to calculate the current color temperature.
In the second case:
the preset color temperature calculation model comprises a matrix calculation model, the matrix calculation model comprises an infrared channel value calculation formula and second preset configuration information, and the second preset configuration information comprises a mapping relation between the infrared channel value and the matrix color temperature calculation formula. Processing the ambient light color temperature detection data according to the matrix calculation model, and determining the current color temperature, wherein the processing comprises the following steps:
s22-1, determining a third infrared channel value of the ambient light according to the ambient light color temperature detection data and the infrared channel value calculation formula;
s22-2, determining a matrix color temperature calculation formula corresponding to the third infrared channel value as a target matrix color temperature calculation formula according to the third infrared channel value and second preset configuration information;
s22-3, determining the current color temperature according to the ambient light color temperature detection data and the target matrix color temperature calculation formula.
Wherein the infrared channel value calculation formula in this case may be the same as the infrared channel value calculation formula in the first case. In this case, the ambient light temperature detection data (including the third red channel value R) for the ambient light is determined 3 The third green channel value G 3 The third blue channel value B 3 And a third full spectrum channel value C 3 ) Then, according to the formula IR = (R + G + B-C)/2C for calculating the infrared channel value, the third infrared channel value IR of the infrared channel of the ambient light is determined 3 =(R 3 +G 3 +B 3 -C 3 )/2C 3
And then searching a matrix color temperature calculation formula corresponding to the third infrared channel value from the first preset configuration information, and taking the matrix color temperature calculation formula as a target matrix color temperature calculation formula.
Finally, the ambient light color temperature detection data (including the third red channel value R) 3 Third green channel value G 3 The third blue channel value B 3 And a third full spectrum channel value C 3 ) And substituting the color temperature into a target matrix color temperature calculation formula to determine the current color temperature.
The principle of the matrix calculation model is as follows: detecting data (mainly RGB data including a third red channel value R) according to the detected ambient light color temperature 3 The third green channel value G 3 The third blue channel value B 3 ) And determining XYZ data, wherein the XYZ data are RGB tristimulus values. A certain corresponding relation exists between the XYZ data and the RGB data, wherein when the third infrared channel value represents that the ambient light is the cold light, the corresponding relation between the XYZ data and the RGB data can be represented by a cold light matrix color temperature calculation formula; when the third infrared channel value indicates that the ambient light is warm light, the corresponding relationship between the XYZ data and the RGB data may be represented by a warm light matrix color temperature calculation formula.
It should be noted that, similar to the linear calculation model, the matrix calculation model may further include a matrix color temperature calculation formula, and the second preset configuration information may also include a mapping relationship between the third infrared channel value and a coefficient matrix in the matrix color temperature calculation formula. And determining a target coefficient matrix (a cold light coefficient matrix or a warm light coefficient matrix) according to the third infrared channel value, and then substituting the target calculation coefficient and the ambient light color temperature detection data into a matrix color temperature calculation formula to calculate the current color temperature.
The method can realize accurate color temperature detection, provides external environment color temperature perception for the terminal with the full screen, optimizes the display effect of the full screen, and improves the use experience of users.
In addition, it should be noted that, in this method, an infrared sensor may also be directly provided, and a corresponding infrared channel value is detected by the infrared sensor. However, the infrared channel value is calculated by the RGB sensor detection data, so that the sensor cost can be reduced.
In one exemplary embodiment, a color temperature detection method is provided, which is applied to a terminal having a full screen. This method is an improvement over step S210 in the above method. Exemplarily, determining a difference value of the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light includes:
s310, acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
s320, acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
and S330, determining the difference value of the first correction detection data and the second correction detection data as the ambient light color temperature detection data.
In this method, step S310 and step S320 may be executed simultaneously, sequentially, or reversely, which is not limited herein. However, only after the first correction detection data and the second correction detection data are obtained, step S330 is executed.
It will be appreciated that there may be other substances between the color temperature detection method and the full screen, and not an absolute vacuum.
For example, referring to fig. 1, the full-screen may be an OLED (Organic Light-Emitting Diode) screen, in which the Light-Emitting unit 11 may be an OLED Light-Emitting body, a glass protection plate 13 may be further disposed outside the OLED Light-Emitting body, and a PET (polyester) film 12 may be further disposed inside the OLED Light-Emitting body. The structures of the glass protection plate 13, the PET film 12 and the like in the whole screen can have certain influence on the transmission of ambient light. The PET film 12 may also have some effect on the transmission of the original light.
The external ambient light can be detected by the color temperature detection method only by passing through the full-face screen and the other substances; the original light emitted by the light-emitting unit of the full-screen needs to pass through the other substances to be detected by the color temperature detection method.
In step S310, the first color temperature detection data may be corrected by a first preset coefficient, so as to eliminate or reduce the influence on the ambient light and the original light during the transmission process, so as to improve the accuracy of color temperature detection. For example, the product of the first preset coefficient and the first color temperature detection data is used as the first correction detection data, and the first correction detection data is the color temperature detection data after the influence of the full-screen and other substances is eliminated. The first predetermined coefficient may be determined through an experiment (e.g., a black box experiment), which is not described herein again.
The first preset coefficient may include a first red channel coefficient, a first green channel coefficient, a first blue channel coefficient, and a first full spectrum channel coefficient. When the first corrected detection data is determined, the product of the third red channel value and the first red channel coefficient is used as the first corrected red channel value of the first corrected detection data, and so on, and the first corrected green channel value, the first corrected blue channel value and the first corrected full spectrum channel value of the first corrected detection data are respectively determined, so that the first corrected detection data is determined.
In step S320, the method for determining the second correction detection data is similar to the method for determining the first correction detection data in step S310, and is not repeated herein. Wherein the second correction detection data may include a second correction red channel value, a second correction green channel value, a second correction blue channel value, and a second correction full-spectrum channel value.
In step S330, the second corrected red channel value may be subtracted from the first corrected red channel value to obtain a red channel value of the ambient light, which is recorded as a third corrected red channel value, and so on, to respectively determine a third corrected green channel value, a third corrected blue channel value, and a third corrected full spectrum channel value. The third corrected red channel value, the third corrected green channel value, the third corrected blue channel value and the third corrected full spectrum channel value constitute ambient light color temperature detection data.
According to the method, the influence of the ambient light and the original light in the transmission process can be eliminated by introducing the first preset coefficient and the second preset coefficient, so that the accuracy of color temperature detection is improved, more accurate color temperature detection is realized, the perception of the external ambient color temperature is provided for the terminal with the full-screen, the display effect of the full-screen is optimized, and the use experience of a user is improved.
In one exemplary embodiment, a color temperature detecting apparatus is provided, which is applied to a terminal having a full screen. The device is used for implementing the color temperature detection method described above, and as shown in fig. 3, the device comprises an acquisition module 101 and a determination module 102, in the course of implementing the method,
the acquisition module 101 is configured to acquire first color temperature detection data and second color temperature detection data, where the first color temperature detection data includes light data of original light emitted by light emitting units of ambient light and a full-screen, and the second color temperature detection data includes light data of ambient light;
the determining module 102 is configured to determine a current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data.
In one exemplary embodiment, a color temperature detecting apparatus is provided, which is applied to a terminal having a full screen. Referring to fig. 3, in the apparatus, the determining module 102 is further configured to:
determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light;
and processing the ambient light color temperature detection data according to the preset color temperature calculation model to determine the current color temperature.
In one exemplary embodiment, a color temperature detecting apparatus is provided, which is applied to a terminal having a full screen. Referring to fig. 3, in the apparatus, the determining module 102 is further configured to:
acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
the difference value of the first correction detection data and the second correction detection data is determined as ambient light color temperature detection data.
In one exemplary embodiment, a color temperature detection apparatus is provided for application to a terminal having a full-screen. In the device, the preset color temperature calculation model comprises a linear calculation model and/or a matrix calculation model.
In one exemplary embodiment, a terminal is provided, which may be a mobile phone, a tablet computer, a notebook computer, etc. having a full-screen. Referring to fig. 1, the terminal further includes the color temperature detection device, and the color temperature detection device is located inside (the side of the full-screen 1 close to the center of the terminal) or inside (the full-screen 1 is in the body) of the full-screen 1, so as to ensure the integrity of the full-screen 1 and avoid opening holes in the full-screen 1.
Wherein, when colour temperature detection device is located the inboard of full screen 1, also be that colour temperature detection device is located one side near the terminal center of full screen 1, be equivalent to and set up colour temperature detection device under the screen, can guarantee full screen 1's integrality to the at utmost, can confirm the current colour temperature of ambient light well moreover, realize the more accurate regulation to full screen 1's colour, promote full screen 1's display effect.
When the color temperature detection device is located inside the full-screen 1, that is, a placement space (which may be a placement groove, for example) is provided inside the full-screen 1, the color temperature detection device is placed in the placement space. Under this condition, though set up arrangement space in comprehensive screen 1, the one side of the user side of comprehensive screen 1 still can be complete, and from user's use impression, the whole screen 1 still the formula is complete, can confirm the current colour temperature of ambient light well moreover, realizes the more accurate regulation to the colour of comprehensive screen 1, promotes the display effect of whole screen 1.
In the terminal, the Light Emitting unit 11 of the full-screen 1 may include an OLED (Organic Light-Emitting Diode) Light emitter, that is, the full-screen 1 may be an OLED screen, in the OLED screen, a glass protection plate 13 and other structures may be further disposed on an outer side of the OLED Light emitter, and a PET (polyester) film 12 and other structures may be further disposed on an inner side of the OLED Light emitter.
In this terminal, through the inboard or the inside colour temperature detection device that sets up at comprehensive screen 1, can guarantee the integrality of comprehensive screen 1 in user's use sight sense, can realize again that the colour temperature to the ambient light detects, realizes the more accurate regulation to the colour of comprehensive screen 1, promotes the display effect of comprehensive screen 1.
In one exemplary embodiment, a terminal having a full screen is provided. Referring to fig. 4, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 includes a screen providing an output interface between the terminal 400 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and/or a rear camera module. When the terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and/or the rear camera module can receive external multimedia data. Each front camera module and rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The device 700 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the methods shown in the above-described embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (16)

1. A color temperature detection device is arranged at a terminal with a full-face screen and is characterized by comprising a first color temperature detection unit and a second color temperature detection unit, wherein one side of the second color temperature detection unit, which is close to the display side of the full-face screen, is provided with a filtering unit,
the filter unit is configured to filter ambient light for transmission by original light emitted by the light emitting units of the full-face screen.
2. The color temperature detection apparatus according to claim 1,
the filtering unit comprises a polarizer and a quarter-wave plate; and/or
The filter unit includes a filter material layer.
3. The color temperature detection apparatus of claim 2, wherein when the filter unit includes the quarter-wave plate, the polarizer and the filter material layer at the same time, the filter material layer is attached to the quarter-wave plate and/or the polarizer, and the filter material layer is configured to filter out light of a predetermined wavelength band.
4. The color temperature detection apparatus according to claim 3, wherein the predetermined wavelength band is a wavelength band having a wavelength of 700nm or more.
5. Color temperature detection apparatus according to any one of claims 1 to 4,
the first color temperature detection unit comprises at least one first color sensor; and/or the presence of a gas in the atmosphere,
the second color temperature detection unit includes at least one second color sensor.
6. The color temperature detection apparatus according to any one of claims 1 to 4,
and a spacer is arranged between the first color temperature detection unit and the second color temperature detection unit.
7. A color temperature detection method is applied to a terminal with a full-screen, and is characterized by comprising the following steps:
acquiring first color temperature detection data and second color temperature detection data, wherein the first color temperature detection data comprise light data of ambient light and original light emitted by a light emitting unit of a full-face screen, and the second color temperature detection data comprise light data of the ambient light;
and determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data.
8. The method of claim 7, wherein determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data comprises:
determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light;
and processing the ambient light color temperature detection data according to a preset color temperature calculation model to determine the current color temperature.
9. The color temperature detection method according to claim 8, wherein the determining the difference between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light comprises:
acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
determining a difference value of the first correction detection data and the second correction detection data as the ambient light color temperature detection data.
10. Color temperature detection method according to claim 8, characterized in that the preset color temperature calculation model comprises a linear calculation model and/or a matrix calculation model.
11. A color temperature detection apparatus applied to a terminal having a full-screen, the apparatus comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first color temperature detection data and second color temperature detection data, the first color temperature detection data comprises light data of ambient light and original light emitted by a light emitting unit of a full-face screen, and the second color temperature detection data comprises light data of the ambient light;
and the determining module is used for determining the current color temperature of the ambient light according to the first color temperature detection data and the second color temperature detection data.
12. The color temperature detection apparatus of claim 11, wherein the determination module is further configured to:
determining a difference value between the first color temperature detection data and the second color temperature detection data as ambient light color temperature detection data of ambient light;
and processing the ambient light color temperature detection data according to a preset color temperature calculation model to determine the current color temperature.
13. The color temperature detection method of claim 12, wherein the determination module is further configured to:
acquiring a first preset coefficient, and determining the product of the first preset coefficient and the first color temperature detection data as first correction detection data;
acquiring a second preset coefficient, and determining the product of the second preset coefficient and the second color temperature detection data as second correction detection data;
determining a difference value of the first correction detection data and the second correction detection data as the ambient light color temperature detection data.
14. Color temperature detection apparatus according to claim 12, characterized in that the preset color temperature calculation model comprises a linear calculation model and/or a matrix calculation model.
15. A terminal, characterized in that the terminal comprises a full-screen and a color temperature detection device according to any of claims 1-6, the color temperature detection device being located inside or within the full-screen, the terminal further comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the color temperature detection method of any one of claims 7-10.
16. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the color temperature detection method according to any one of claims 7 to 10.
CN202110405909.5A 2021-04-15 2021-04-15 Color temperature detection device, method, equipment, terminal and storage medium Pending CN115225759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110405909.5A CN115225759A (en) 2021-04-15 2021-04-15 Color temperature detection device, method, equipment, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110405909.5A CN115225759A (en) 2021-04-15 2021-04-15 Color temperature detection device, method, equipment, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115225759A true CN115225759A (en) 2022-10-21

Family

ID=83604291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110405909.5A Pending CN115225759A (en) 2021-04-15 2021-04-15 Color temperature detection device, method, equipment, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115225759A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080303918A1 (en) * 2007-06-11 2008-12-11 Micron Technology, Inc. Color correcting for ambient light
WO2017215142A1 (en) * 2016-06-17 2017-12-21 中兴通讯股份有限公司 Method and apparatus for adjusting colour temperature of terminal display content
US20200105183A1 (en) * 2018-09-27 2020-04-02 Apple Inc. Electronic Device With Polarized Ambient Light Sensor
CN112146758A (en) * 2019-06-27 2020-12-29 北京小米移动软件有限公司 Ambient light detection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080303918A1 (en) * 2007-06-11 2008-12-11 Micron Technology, Inc. Color correcting for ambient light
WO2017215142A1 (en) * 2016-06-17 2017-12-21 中兴通讯股份有限公司 Method and apparatus for adjusting colour temperature of terminal display content
US20200105183A1 (en) * 2018-09-27 2020-04-02 Apple Inc. Electronic Device With Polarized Ambient Light Sensor
CN112146758A (en) * 2019-06-27 2020-12-29 北京小米移动软件有限公司 Ambient light detection device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁桂芝;王晓红;: "不同环境下移动终端显示色光谱特性研究", 包装工程, no. 07 *

Similar Documents

Publication Publication Date Title
US10002577B2 (en) Color adjustment method and device, liquid crystal display
RU2630167C1 (en) Method and device for switching colour range mode
US20200243042A1 (en) Screen color conversion method, storage medium, and electronic device
US10921584B2 (en) Method and device for displaying image
KR20190088000A (en) Interface image display method, apparatus, program, and recording medium
US10109248B2 (en) Method and device for adjusting liquid crystal display
CN112710383A (en) Light sensor calibration method and device and storage medium
US20210396589A1 (en) Electronic device, method and apparatus for measuring color temperature of ambient light, and storage medium
CN111210792A (en) Method and device for determining ambient light brightness, terminal and storage medium
US11971557B2 (en) Optical processing apparatus, camera module, electronic device and capturing method
US10627996B2 (en) Method and apparatus for sorting filter options
CN108184103B (en) Method and apparatus for displaying image
CN112146758A (en) Ambient light detection device
CN107808626B (en) Method and device for adjusting color temperature of display screen and computer readable storage medium
CN111131596B (en) Screen brightness adjusting method and device
US11991300B2 (en) Photographing method and apparatus, terminal, and storage medium
CN115225759A (en) Color temperature detection device, method, equipment, terminal and storage medium
US11749228B2 (en) Method and device for adjusting display brightness of screen, and storage medium
CN116453459A (en) Screen display method and device, readable storage medium and electronic equipment
CN114067739A (en) Color gamut mapping method and device, electronic equipment and storage medium
EP3975548B1 (en) Photographing method and apparatus, terminal, and storage medium
CN113709275A (en) Ambient light determination method and device, terminal equipment and storage medium
CN112146757A (en) Ambient light detection device
US20210132473A1 (en) Photographing method, photographing device and storage medium
CN115219032A (en) Ambient light detection method, ambient light detection device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination