CN107677377B - Method and device for determining color temperature - Google Patents

Method and device for determining color temperature Download PDF

Info

Publication number
CN107677377B
CN107677377B CN201710875166.1A CN201710875166A CN107677377B CN 107677377 B CN107677377 B CN 107677377B CN 201710875166 A CN201710875166 A CN 201710875166A CN 107677377 B CN107677377 B CN 107677377B
Authority
CN
China
Prior art keywords
spectral
light source
determining
matching
feature
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.)
Active
Application number
CN201710875166.1A
Other languages
Chinese (zh)
Other versions
CN107677377A (en
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 CN201710875166.1A priority Critical patent/CN107677377B/en
Publication of CN107677377A publication Critical patent/CN107677377A/en
Application granted granted Critical
Publication of CN107677377B publication Critical patent/CN107677377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/60Radiation pyrometry, e.g. infrared or optical thermometry using determination of colour temperature
    • G01J5/601Radiation pyrometry, e.g. infrared or optical thermometry using determination of colour temperature using spectral scanning

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The disclosure relates to a method and a device for determining color temperature, which are used for improving the accuracy of detecting the color temperature. The method comprises the following steps: determining a first spectral characteristic of a light source to be detected; determining a spectral feature matching the first spectral feature from the second spectral feature of each of the at least one preset light source; determining a calibration coefficient corresponding to the spectral feature matched with the first spectral feature; and determining the color temperature of the light source to be measured based on the calibration coefficient. The technical scheme of the disclosure can improve the accuracy of detecting the color temperature.

Description

Method and device for determining color temperature
Technical Field
The present disclosure relates to the field of sensor technologies, and in particular, to a method and an apparatus for determining a color temperature.
Background
In the related art, the relative color temperature value can be obtained by using an RGB light Sensor (RGB light Sensor). However, due to individual differences, in order to obtain relatively accurate relative color temperature values, calibration of the RGB light Sensor is required. Currently, the calibration methods are mostly: obtaining a group of calibration coefficients under a plurality of light sources, obtaining an average value of the calibration coefficients by fitting the obtained group of calibration coefficients, and calculating a relative color temperature value based on the average value of the calibration coefficients.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for determining a color temperature, so as to improve the accuracy of detecting the color temperature.
According to a first aspect of embodiments of the present disclosure, there is provided a method of determining a color temperature, comprising:
determining a first spectral characteristic of a light source to be detected;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
and determining the color temperature of the light source to be detected based on the calibration coefficient.
In one embodiment, before determining the first spectral characteristic of the light source to be measured, the method may include:
determining spectral information of the light source to be detected;
the determining the first spectral characteristic of the light source to be measured may include:
determining at least one first characteristic information in the spectral information;
determining the first spectral feature based on the at least one first feature information.
In one embodiment, the determining the spectral feature matching the first spectral feature from the second spectral feature of each of the at least one preset light source may include:
determining at least one piece of second characteristic information included in the second spectral characteristic of each of the at least one preset light source;
matching the first spectral characteristics with respective second spectral characteristics of the at least one preset light source based on the at least one piece of first characteristic information and the at least one piece of second characteristic information to obtain a matching result;
determining spectral features that match the first spectral features based on the matching results.
In one embodiment, the determining the spectral feature that matches the first spectral feature based on the matching result may include:
determining the matching degree of the first spectral feature and the second spectral feature of each of at least one preset light source based on the matching result to obtain at least one matching degree;
determining a matching degree higher than a preset threshold value from the at least one matching degree;
and determining a second spectral feature corresponding to the matching degree higher than a preset threshold value as the spectral feature matched with the first spectral feature.
In one embodiment, the determining the second spectral feature corresponding to the degree of matching higher than the preset threshold as the spectral feature matching the first spectral feature may include:
when at least two matching degrees exist and are higher than the preset threshold value, determining the maximum matching degree;
and determining the second spectral feature corresponding to the maximum matching degree as the spectral feature matched with the first spectral feature.
In one embodiment, after determining the first spectral characteristic of the light source to be measured, the method may further include:
when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each at least one preset light source, determining a calibration coefficient corresponding to each at least one preset light source;
and determining the color temperature of the light source to be detected based on the calibration coefficient corresponding to the at least one preset light source.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for determining a color temperature, including:
a first determination module configured to determine a first spectral feature of a light source under test;
a second determination module configured to determine a spectral feature matching the first spectral feature from respective second spectral features of at least one preset light source;
a third determination module configured to determine calibration coefficients corresponding to spectral features matching the first spectral features;
a fourth determination module configured to determine the color temperature of the light source to be measured based on the calibration coefficient.
In one embodiment, the apparatus may further include:
a fifth determination module configured to determine spectral information of the light source to be measured;
the first determining module includes:
a first determination sub-module configured to determine at least one first characteristic information in the spectral information;
a second determination submodule configured to determine the first spectral feature based on the at least one first feature information.
In one embodiment, the second determining module may include:
a third determining submodule configured to determine at least one second characteristic information included in a second spectral characteristic of each of the at least one preset light source;
a matching sub-module configured to match the first spectral feature with a respective second spectral feature of the at least one preset light source based on the at least one first characteristic information and the at least one second characteristic information, so as to obtain a matching result;
a fourth determination submodule configured to determine a spectral feature that matches the first spectral feature based on the matching result.
In one embodiment, the fourth determining sub-module may include:
a fifth determining submodule configured to determine, based on the matching result, a matching degree of the first spectral feature and a second spectral feature of each of at least one preset light source, resulting in at least one matching degree;
a sixth determining submodule configured to determine a degree of matching higher than a preset threshold from the at least one degree of matching;
a seventh determining sub-module configured to determine a second spectral feature corresponding to a degree of matching higher than a preset threshold as a spectral feature matching the first spectral feature.
In one embodiment, the seventh determining sub-module may include:
an eighth determining submodule configured to determine a maximum matching degree when there are at least two matching degrees higher than the preset threshold;
a ninth determination submodule configured to determine the second spectral feature corresponding to the maximum matching degree as the spectral feature matching the first spectral feature.
In one embodiment, the apparatus may further include:
a sixth determining module, configured to determine a calibration coefficient corresponding to each of the at least one preset light source when a spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source;
a seventh determining module configured to determine the color temperature of the light source to be measured based on the calibration coefficient corresponding to each of the at least one preset light source.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for determining a color temperature, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a first spectral characteristic of a light source to be detected;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
and determining the color temperature of the light source to be detected based on the calibration coefficient.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
determining a first spectral characteristic of a light source to be detected;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
and determining the color temperature of the light source to be detected based on the calibration coefficient.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of determining spectral characteristics matched with first spectral characteristics of a light source to be detected from respective second spectral characteristics of at least one preset light source through spectral matching, then determining calibration coefficients corresponding to the spectral characteristics matched with the first spectral characteristics, and determining the color temperature of the light source to be detected according to the calibration coefficients corresponding to the spectral characteristics matched with the first spectral characteristics. That is, the preset light source matched with the spectrum of the light source to be measured is found out from the at least one preset light source through spectrum matching, and the color temperature of the light source to be measured is determined by using the calibration coefficient of the preset light source matched with the spectrum of the light source to be measured. Therefore, the color temperature of the light source to be detected can be prevented from being determined directly by adopting the average value of the calibration coefficients of at least one preset light source, and the accuracy of detecting the color temperature can be improved.
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. 1A is a flowchart illustrating a method of determining a color temperature according to an exemplary embodiment.
FIG. 1B is a schematic diagram illustrating a spectrum of a D65 light source, according to an example embodiment.
FIG. 2 is a flow chart illustrating a method of determining color temperature according to an exemplary embodiment.
FIG. 3 is a flowchart illustrating a method of determining a color temperature according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a method of determining a color temperature according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of determining a color temperature according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for determining a color temperature according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating an apparatus for determining a color temperature according to an exemplary embodiment.
Fig. 8 is a flowchart illustrating an apparatus for determining a color temperature according to an exemplary embodiment.
Fig. 9 is a flowchart illustrating an apparatus for determining a color temperature according to a seventh exemplary embodiment.
Fig. 10 is a flowchart illustrating an apparatus for determining a color temperature according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating an apparatus for determining a color temperature according to an exemplary 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 apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1A is a flow chart illustrating a method of determining color temperature according to an exemplary embodiment, and FIG. 1B is a spectral diagram illustrating a D65 light source according to an exemplary embodiment. The method for determining the color temperature can be applied to terminal equipment (e.g. a smart phone and a tablet computer) provided with a color temperature sensor (such as an RGB sensor). As shown in fig. 1A, the method of determining a color temperature includes the following steps S101 to S104:
in step S101, a first spectral feature of a light source to be measured is determined.
The spectrum is a pattern in which monochromatic light dispersed by a dispersion system (such as a prism and a grating) is sequentially arranged according to the size of wavelength (or frequency) after the monochromatic light is dispersed by the dispersion system, and is collectively called an optical spectrum. In one exemplary embodiment, the spectrum of a light source may be a pattern of relative intensities of individual monochromatic lights dispersed by color of light emitted by the light source arranged sequentially by wavelength (or frequency) magnitude. For example, as shown in FIG. 1B, a diagram of the spectrum of a D65 light source is shown, with the horizontal axis being wavelength in nanometers (nm) and the vertical axis being relative intensity. The light emitted by the D65 light source is polychromatic light, the wavelength of the dispersed monochromatic light is continuous, and the wavelength range is between 350nm and 750 nm. The relative intensities of monochromatic light of different wavelengths dispersed may vary.
As for the spectral characteristics, a spectrum of light emitted by one light source has characteristics that can be distinguished from a spectrum of light emitted by another light source. The spectrum of the light emitted by each light source has its own characteristics. Continuing with the exemplary embodiment described above, the spectral signature of a light source may be made up of the wavelengths and relative intensities to which all or some of the feature points in the spectrum correspond, where each feature point corresponds to a wavelength and relative intensity of that wavelength. For example, as shown in fig. 1B, the spectral signature of the D65 light source may be made up of the wavelengths and relative intensities corresponding to each of the signature points O, P, Q, R, S, T in the spectrum.
In this embodiment, the first spectral feature may be determined based on spectral information of the light source to be measured. The spectrum information may be a graph of the spectrum of the light source to be measured, or may be a data table. And performing data processing on the spectral information of the light source to be detected to obtain the first spectral characteristic. In an exemplary embodiment, the spectral information of the light source to be measured is a graph about a spectrum, points corresponding to a maximum value and a minimum value existing on the graph can be obtained through data processing as characteristic points, and respective wavelengths and relative intensities corresponding to the characteristic points are obtained to form the first spectral feature.
In step S102, a spectral feature matching the first spectral feature is determined from the second spectral feature of each of the at least one preset light source.
In this embodiment, the terminal device may store the second spectral characteristics of at least one preset light source in advance. In an exemplary embodiment, the terminal device may be pre-stored with spectral characteristics corresponding to the light sources D65, D50, A, TL84, H. Wherein, the light source of D65 is international standard Artificial sunlight (Artificial Daylight), the color temperature is 6500K, and the power is 18W. The color temperature of the D50 light source was 5000K. The light source A is an American kitchen window spotlight, the color temperature is 2856K, and the power is 60W. The TL84 light source is a light source of European, Japanese and Chinese shops, the color temperature is 4000K, and the power is 18W. The color temperature of the H light source is 2300K.
In the above exemplary embodiment, the second spectral characteristic of each of the at least one preset light source is also composed of the wavelength and the relative intensity corresponding to each of all or part of the characteristic points in the corresponding spectrum. For example, the spectral characteristics of the preset light source D65 may be composed of the wavelengths and relative intensities corresponding to the characteristic points O ', P ', Q ', R ', S ', T ', G ' in the spectrum.
In this embodiment, the spectral characteristics matching the first spectral characteristics are determined by matching the first spectral characteristics with the respective second spectral characteristics of the at least one preset light source. When the first spectral feature is matched with the second spectral feature of the preset light source, the feature points included in the first spectral feature and the feature points included in the second spectral feature may be respectively compared to determine the feature point matching number. When it is determined that the respective wavelengths and the relative intensities of the two feature points are correspondingly the same, it may be determined that the two feature points are matched. And determining the matching degree of the first spectral feature and the second spectral feature based on the matching number of the feature points and the number of the feature points included in the first spectral feature. When it is determined that the degree of matching of the first spectral feature with the second spectral feature is higher than a preset threshold, it may be determined that the first spectral feature matches the second spectral feature.
In an exemplary embodiment, the determined first spectral characteristics of the light source to be measured are composed of the wavelength and the relative intensity corresponding to the characteristic point O, P, Q, R, S, T, and the terminal device stores the spectral characteristics corresponding to the light sources D65, D50, A, TL84, and H in advance. When spectral features matching the first spectral features are determined from the spectral features corresponding to the light sources D65, D50, A, TL84, H, the first spectral features are respectively matched with the spectral features corresponding to the light sources D65, D50, A, TL84, H, and the spectral features matching the first spectral features are determined. When the first spectral feature is matched with the spectral feature of the light source D65, the wavelength and the relative intensity corresponding to each of the feature points O, P, Q, R, S, T are compared with the wavelength and the relative intensity corresponding to each of the feature points O ', P ', Q ', R ', S ', T ', G ' included in the spectral feature of the D65 light source one by one, and a comparison result is obtained: the wavelength and relative intensity corresponding to the characteristic point O, P, Q, R, S, T are the same as the wavelength and relative intensity corresponding to the characteristic points O ', P', Q ', R', S ', and T', respectively. For example, the wavelength corresponding to the feature point O is the same as the wavelength corresponding to the feature point O ', and the relative intensity corresponding to the feature point O is the same as the relative intensity corresponding to the feature point O'. The matching number of the feature points is determined to be 6 according to the comparison result, and since the number of the feature points included in the first spectral feature is 7, the matching degree of the first spectral feature and the second spectral feature can be determined to be 85.7%. Assuming that the preset threshold is 85%, it may be determined that the matching degree of the first spectral feature and the second spectral feature is higher than the preset threshold. It is further possible to determine the spectral feature matching the first spectral feature as the spectral feature of the preset light source D65.
In step S103, calibration coefficients corresponding to spectral features matching the first spectral feature are determined.
In this embodiment, the terminal device further stores a calibration coefficient of each of the at least one preset light source in advance. The calibration coefficient of each of the at least one preset light source may be stored in correspondence with the second spectral characteristic of each of the at least one preset light source. In the above-described exemplary embodiment, the calibration coefficient of the preset light source D65 may be stored in correspondence with the second spectral characteristic of the preset light source D65.
When a spectral feature matching the first spectral feature is determined, a calibration coefficient corresponding to the spectral feature matching the first spectral feature may be determined. In the above-described exemplary embodiment, when the spectral characteristic matching the first spectral characteristic is determined to be the spectral characteristic of the preset light source D65, the calibration coefficient of the preset light source D65 may be determined.
In step S104, the color temperature of the light source to be measured is determined based on the calibration coefficient.
In this embodiment, the color temperature of the light source to be measured may be obtained by substituting the calibration coefficient corresponding to the spectral feature matched with the first spectral feature into a calculation formula for calculating the color temperature. In the above exemplary embodiment, after determining that the spectral feature matched with the first spectral feature is the spectral feature of the preset light source D65, the determined calibration coefficient of the preset light source D65 may be substituted into the calculation formula for calculating the color temperature, so as to obtain the color temperature of the light source to be measured.
In this embodiment, in general, the spectral characteristics and the calibration coefficients corresponding to at least one preset light source are pre-stored in the terminal device, when the color temperature of the light source to be detected is detected, the preset light source matched with the spectrum of the light source to be detected can be found through spectrum matching, the calibration coefficient of the preset light source matched with the spectrum of the light source to be detected is used as the calibration coefficient of the light source to be detected, and the calibration coefficient is substituted into a calculation formula for calculating the color temperature, so as to obtain the color temperature of the light source to be detected.
In this embodiment, a spectral feature matched with a first spectral feature of a light source to be measured is determined from respective second spectral features of at least one preset light source through spectral matching, then, a calibration coefficient corresponding to the spectral feature matched with the first spectral feature is determined, and a color temperature of the light source to be measured is determined according to the calibration coefficient corresponding to the spectral feature matched with the first spectral feature. That is, the preset light source matched with the spectrum of the light source to be measured is found out from the at least one preset light source through spectrum matching, and the color temperature of the light source to be measured is determined by using the calibration coefficient of the preset light source matched with the spectrum of the light source to be measured. Therefore, the color temperature of the light source to be detected can be prevented from being determined directly by adopting the average value of the calibration coefficients of at least one preset light source, but the color temperature of the light source to be detected can be determined based on the calibration coefficients of the preset light source matched with the spectral characteristics of the light source to be detected, so that the factors influencing the color temperature calculation are reduced, and the accuracy of detecting the color temperature can be improved.
In one embodiment, before determining the first spectral characteristic of the light source to be measured, the method may include:
determining spectral information of the light source to be detected;
the determining the first spectral characteristic of the light source to be measured may include:
determining at least one first characteristic information in the spectral information;
determining the first spectral feature based on the at least one first feature information.
In one embodiment, the determining the spectral feature matching the first spectral feature from the second spectral feature of each of the at least one preset light source may include:
determining at least one piece of second characteristic information included in the second spectral characteristic of each of the at least one preset light source;
matching the first spectral characteristics with respective second spectral characteristics of the at least one preset light source based on the at least one piece of first characteristic information and the at least one piece of second characteristic information to obtain a matching result;
determining spectral features that match the first spectral features based on the matching results.
In one embodiment, the determining the spectral feature that matches the first spectral feature based on the matching result may include:
determining the matching degree of the first spectral feature and the second spectral feature of each of at least one preset light source based on the matching result to obtain at least one matching degree;
determining a matching degree higher than a preset threshold value from the at least one matching degree;
and determining a second spectral feature corresponding to the matching degree higher than a preset threshold value as the spectral feature matched with the first spectral feature.
In one embodiment, the determining the second spectral feature corresponding to the degree of matching higher than the preset threshold as the spectral feature matching the first spectral feature may include:
when at least two matching degrees exist and are higher than the preset threshold value, determining the maximum matching degree;
and determining the second spectral feature corresponding to the maximum matching degree as the spectral feature matched with the first spectral feature.
In one embodiment, after determining the first spectral characteristic of the light source to be measured, the method may further include:
when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each at least one preset light source, determining a calibration coefficient corresponding to each at least one preset light source;
and determining the color temperature of the light source to be detected based on the calibration coefficient corresponding to the at least one preset light source.
Please refer to the following embodiments for the specific determination of the color temperature.
Therefore, in the method provided by the embodiment of the present disclosure, a spectral feature matched with a first spectral feature of a light source to be measured is determined from respective second spectral features of at least one preset light source through spectral matching, then, a calibration coefficient corresponding to the spectral feature matched with the first spectral feature is determined, and a color temperature of the light source to be measured is determined according to the calibration coefficient corresponding to the spectral feature matched with the first spectral feature. That is, the preset light source matched with the spectrum of the light source to be measured is found out from the at least one preset light source through spectrum matching, and the color temperature of the light source to be measured is determined by using the calibration coefficient of the preset light source matched with the spectrum of the light source to be measured. Therefore, the color temperature of the light source to be detected can be prevented from being determined directly by adopting the average value of the calibration coefficients of at least one preset light source, and the accuracy of detecting the color temperature can be improved.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 2 is a flow chart illustrating a method of determining color temperature according to one exemplary embodiment; the present embodiment uses the above method provided by the embodiments of the present disclosure to exemplarily describe the spectrum matching based on the characteristic information in the spectrum information, as shown in fig. 2, including the following steps:
in step S201, spectral information of the light source to be measured is determined.
In this embodiment, the determined spectrum information of the light source to be measured may be a graph in which the relative intensities of the individual monochromatic lights dispersed in the color of the light source to be measured are sequentially arranged according to the size of the wavelength (or the frequency), or may be a corresponding data table of the relative intensities of the individual monochromatic lights dispersed in the color of the light source to be measured and the corresponding wavelength (or the frequency), where the fields corresponding to the wavelength (or the frequency) may be sequentially arranged according to the size of the wavelength (or the frequency).
In step S202, at least one first characteristic information in the spectral information is determined.
In this embodiment, at least one piece of first characteristic information is obtained by performing data processing on the above-mentioned spectral information. In an exemplary embodiment, the determined spectral information of the light source to be measured is a graph in which the relative intensities of the individual monochromatic lights dispersed in the color of the light source to be measured are arranged in order of magnitude of wavelength (or frequency). And obtaining at least one characteristic point existing on the graph by performing data processing on the obtained graph. The wavelength and the relative intensity corresponding to each characteristic point are determined as first characteristic information by obtaining the wavelength and the relative intensity corresponding to at least one characteristic point. The characteristic point may be a maximum value on the graph or a point corresponding to the minimum value.
In step S203, the first spectral feature is determined based on the at least one first feature information.
In this embodiment, information in which the determined at least one piece of first characteristic information is arranged in order of magnitude of wavelength (frequency) may be determined as the first spectral characteristic described above. In an exemplary embodiment, as shown in fig. 1B, the spectral characteristics of the D65 light source may be information in which the feature points O, P, Q, R, S, T are arranged in sequence corresponding to the first feature information, or information in which the feature points T, S, R, Q, P, O are arranged in sequence corresponding to the first feature information, but may not be information in which the above feature points are arranged in other sequences.
In step S204, at least one second characteristic information included in the second spectral characteristic of each of the at least one preset light source is determined.
In this embodiment, the method for determining at least one second feature information included in the second spectral feature of the preset light source is similar to the method for determining at least one first feature information included in the first spectral feature of the light source to be measured, and is not described herein again.
In step S205, based on the at least one first characteristic information and the at least one second characteristic information, the first spectral characteristic and a second spectral characteristic of each of the at least one preset light source are matched to obtain a matching result.
In this embodiment, when the first spectral feature is matched with the second spectral feature of one preset light source, at least one first feature information included in the first spectral feature may be matched with at least one second feature information included in the second spectral feature of the preset light source one by one according to the arrangement order. And obtaining a matching result after the first spectral characteristics are matched with the respective second spectral characteristics of all the preset light sources.
In this embodiment, when matching a piece of first feature information with a piece of second feature information, when the wavelength in the first feature information is the same as the wavelength of the second feature information and the relative intensity in the first feature information is the same as the relative intensity of the second feature information, the matching of the first feature information and the second feature information is successful, otherwise, the matching fails.
In this embodiment, the matching result includes the number of successful matches between the first characteristic information including the first spectral characteristic and the second characteristic information included in each of the second spectral characteristics. Based on the matching result, the respective matching degree of the first spectral feature and each second spectral feature can be obtained. And for the matching degree of the first spectral feature and one second spectral feature, the matching degree is equal to the percentage of the number of the successfully matched first feature information to the total number of the first feature information included in the first spectral feature.
In step S206, a spectral feature matching the first spectral feature is determined based on the matching result.
In this embodiment, the spectral feature matched with the first spectral feature may be determined according to the matching degree of the first spectral feature and each second spectral feature in the matching result and a preset threshold. In one exemplary embodiment, the second spectral feature corresponding to the degree of matching greater than the preset threshold may be determined as the spectral feature matching the first spectral feature. In another exemplary embodiment, when there are at least two matching degrees higher than the preset threshold, a maximum matching degree is determined, and the second spectral feature corresponding to the maximum matching degree is determined as the spectral feature matching the first spectral feature.
In step S207, calibration coefficients corresponding to spectral features matching the first spectral feature are determined.
In step S208, the color temperature of the light source to be measured is determined based on the calibration coefficient.
Steps S207 to S208 in this embodiment are similar to steps S103 to S104 shown in fig. 1A, and are not described again here.
In this embodiment, by determining the characteristic information in the spectral information, performing spectral matching based on the characteristic information, rather than performing matching based on all information in the spectral information, and determining the spectral characteristic matched with the first spectral characteristic, the data processing amount is small, and the speed of color temperature detection can be improved.
FIG. 3 is a flow chart illustrating a method of determining color temperature according to an exemplary embodiment two; the present embodiment utilizes the above method provided by the embodiments of the present disclosure, and takes the example of determining the spectral feature matched with the first spectral feature based on the matching result as an example, as shown in fig. 3, the method includes the following steps:
in step S301, a matching degree between the first spectral feature and a second spectral feature of at least one preset light source is determined based on the matching result, so as to obtain at least one matching degree.
In step S302, a matching degree higher than a preset threshold is determined from the at least one matching degree.
In step S303, a second spectral feature corresponding to a matching degree higher than a preset threshold is determined as a spectral feature matching the first spectral feature.
In this embodiment, the matching result includes the number of successful matches between the first characteristic information of the first spectral feature and the second characteristic information included in each of the second spectral features. For example, the light source to be tested is D65, and the preset light source includes D65, D50, A, TL84 and H. The matching result comprises the number of successfully matched first characteristic information of the light source D65 to be detected and second characteristic information of the preset light source D65, the number of successfully matched first characteristic information of the light source D65 to be detected and second characteristic information of the preset light source D50, … …, and the number of successfully matched first characteristic information of the light source D65 and second characteristic information of the preset light source H.
In this embodiment, the matching degree between the first spectral feature and the second spectral feature of each of the at least one preset light source may be determined based on the matching result, so as to obtain the at least one matching degree. And determining the matching degree higher than a preset threshold value from the at least one matching degree, and determining the second spectral feature corresponding to the matching degree higher than the preset threshold value as the spectral feature matched with the first spectral feature.
In this embodiment, the matching degree of the first spectral feature and the respective second spectral feature of the at least one preset light source is determined based on the matching result, and the spectral feature matched with the first spectral feature is determined based on the matching degree, so that the calculation is simple, and the speed of detecting the color temperature is improved.
FIG. 4 is a flow chart illustrating a method of determining color temperature in accordance with an exemplary embodiment; the present embodiment uses the above method provided by the embodiments of the present disclosure to exemplarily describe how to determine the spectral feature matching with the first spectral feature when at least two matching degrees are higher than the preset threshold, as shown in fig. 4, including the following steps:
in step S401, when there are at least two matching degrees higher than the preset threshold, a maximum matching degree is determined.
In step S402, the second spectral feature corresponding to the maximum matching degree is determined as the spectral feature matching the first spectral feature.
In this embodiment, if it is determined that there are at least two matching degrees higher than the preset threshold, the maximum matching degree is determined from the matching degrees higher than the preset threshold, and the second spectral feature corresponding to the maximum matching degree is determined as the spectral feature matching the first spectral feature. In this way, the accuracy of the spectral feature determined to match the first spectral feature can be improved, and the accuracy of the color temperature detection can be improved.
FIG. 5 is a flow chart of a method of determining color temperature according to a fourth illustrative embodiment; the present embodiment uses the above method provided by the embodiments of the present disclosure to exemplarily explain that a spectral feature matching with the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source, as shown in fig. 5, the method includes the following steps:
in step S501, a first spectral feature of a light source to be measured is determined.
In step S502, a spectral feature matching the first spectral feature is determined from the second spectral feature of each of the at least one preset light source.
In step S503, when a spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source, determining a calibration coefficient corresponding to each of the at least one preset light source.
In step S504, the color temperature of the light source to be measured is determined based on the calibration coefficient corresponding to each of the at least one preset light source.
Step S501 in this embodiment is similar to step S101 shown in fig. 1A, and is not described herein again. The specific implementation method of step S502 in this embodiment may refer to the method described in any of the above embodiments, and is not described herein again.
In this embodiment, when any one of the at least one matching degree is lower than the preset threshold, it may be considered that the spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source.
In this embodiment, when the spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source, the calibration coefficient corresponding to each of the at least one preset light source is determined. In one embodiment, the color temperature of the light source to be measured may be determined according to an average value of the calibration coefficients corresponding to the at least one preset light source. In another embodiment, the color temperature of the light source to be measured may be determined according to a weighted average of the calibration coefficients corresponding to the at least one preset light source. Wherein, the weighting coefficient of the calibration coefficient corresponding to each of the at least one preset light source can be determined based on the matching degree corresponding to each. For example, the weighting factor of the calibration factor of the preset light source D50 may be determined based on the matching degree of the second spectral characteristic of the preset light source D50 and the first spectral characteristic described above. Of course, the weighting factor of the calibration factor corresponding to each of the at least one preset light source may be determined in other manners.
In this embodiment, when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source, the calibration coefficient may be obtained by averaging the calibration coefficients corresponding to the at least one preset light source, and the color temperature of the light source to be detected is calculated based on the calibration coefficient, so that the compatibility of detecting the color temperature is improved.
Fig. 6 is a block diagram illustrating an apparatus for determining a color temperature according to an exemplary embodiment, where the apparatus for determining a color temperature, as shown in fig. 6, includes:
a first determination module 61 configured to determine a first spectral feature of the light source to be measured;
a second determining module 62 configured to determine a spectral feature matching the first spectral feature from respective second spectral features of at least one preset light source;
a third determining module 63 configured to determine calibration coefficients corresponding to spectral features matching the first spectral features;
a fourth determining module 64 configured to determine the color temperature of the light source to be measured based on the calibration coefficient.
In an exemplary embodiment five, as shown in fig. 7, the apparatus for determining a color temperature may further include:
a fifth determining module 65 configured to determine spectral information of the light source to be measured;
the first determining module 61 may include:
a first determining submodule 611 configured to determine at least one first characteristic information of the spectral information;
a second determination submodule 612 configured to determine the first spectral feature based on the at least one first feature information.
The second determining module 62 may include:
a third determining submodule 621 configured to determine at least one second characteristic information included in a second spectral characteristic of each of the at least one preset light source;
a matching sub-module 622 configured to match the first spectral feature with a respective second spectral feature of the at least one preset light source based on the at least one first characteristic information and the at least one second characteristic information, so as to obtain a matching result;
a fourth determination sub-module 623 configured to determine a spectral feature matching the first spectral feature based on the matching result.
In a sixth exemplary embodiment, as shown in fig. 8, the fourth determining sub-module 623 may include:
a fifth determining sub-module 6231 configured to determine, based on the matching result, a matching degree of the first spectral feature and a second spectral feature of each of at least one preset light source, resulting in at least one matching degree;
a sixth determining sub-module 6232 configured to determine a matching degree higher than a preset threshold from the at least one matching degree;
a seventh determining sub-module 6233 configured to determine the second spectral feature corresponding to the matching degree higher than the preset threshold as the spectral feature matching the first spectral feature.
In an exemplary embodiment seven, as shown in fig. 9, the seventh determining sub-module 6233 may include:
an eighth determining submodule 62331, configured to determine the maximum matching degree when there are at least two matching degrees higher than the preset threshold;
a ninth determining submodule 62332 configured to determine the second spectral feature corresponding to the maximum matching degree as the spectral feature matching the first spectral feature.
In an exemplary embodiment eight, as shown in fig. 10, the apparatus may further include:
a sixth determining module 66 configured to determine a calibration coefficient corresponding to each of the at least one preset light source when a spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source;
a seventh determining module 67 configured to determine the color temperature of the light source to be measured based on the calibration coefficient corresponding to each of the at least one preset light source.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an apparatus for determining a color temperature according to an exemplary embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operation at the device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 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.
Power components 1106 provide power to the various components of device 1100. The power components 1106 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a 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 1108 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 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 assembly 1114 includes one or more sensors for providing various aspects of state assessment for the apparatus 1100. For example, the sensor assembly 1114 may detect an open/closed state of the device 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, an orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 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 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1116 also 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 apparatus 1100 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 1104 comprising instructions, executable by the processor 1120 of the apparatus 1100 to perform the method described above 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.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (10)

1. A method of determining a color temperature, the method comprising:
determining a first spectral characteristic of a light source to be detected; the first spectral feature is composed of wavelengths and relative intensities corresponding to all or part of feature points in the spectral information of the light source to be detected; the wavelength and the relative intensity of one characteristic point in the first spectral characteristic form first characteristic information;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
determining the color temperature of the light source to be detected based on the calibration coefficient;
after the first spectral feature of the light source to be measured is determined, the method further includes:
when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each at least one preset light source, determining a calibration coefficient corresponding to each at least one preset light source;
determining the color temperature of the light source to be detected based on the calibration coefficient corresponding to each of the at least one preset light source;
the determining the spectral characteristics matched with the first spectral characteristics from the second spectral characteristics of the at least one preset light source comprises:
determining at least one piece of second characteristic information included in the second spectral characteristic of each of the at least one preset light source; the wavelength and the relative intensity of one characteristic point in the second spectral characteristic form second characteristic information;
matching the first spectral characteristics with respective second spectral characteristics of the at least one preset light source based on the at least one piece of first characteristic information and the at least one piece of second characteristic information to obtain a matching result; the matching result comprises the number of successful matching of the first characteristic information of the first spectral characteristic and the second characteristic information included in each second spectral characteristic; when the wavelength in the first characteristic information is the same as the wavelength in the second characteristic information, and the relative intensity in the first characteristic information is the same as the relative intensity in the second characteristic information, the first characteristic information and the second characteristic information are successfully matched;
determining spectral features that match the first spectral features based on the matching results.
2. The method of claim 1, wherein prior to determining the first spectral characteristic of the light source under test, comprising:
determining spectral information of the light source to be detected;
the determining the first spectral characteristics of the light source to be measured includes:
determining at least one first characteristic information in the spectral information; the first characteristic information is the wavelength and the relative intensity corresponding to the characteristic point in the spectrum information;
determining the first spectral feature based on the at least one first feature information.
3. The method of claim 1, wherein said determining spectral features that match said first spectral features based on said matching results comprises:
determining the matching degree of the first spectral feature and the second spectral feature of each of at least one preset light source based on the matching result to obtain at least one matching degree;
determining a matching degree higher than a preset threshold value from the at least one matching degree;
and determining a second spectral feature corresponding to the matching degree higher than a preset threshold value as the spectral feature matched with the first spectral feature.
4. The method according to claim 3, wherein the determining the second spectral feature corresponding to the degree of match higher than the preset threshold as the spectral feature matching the first spectral feature comprises:
when at least two matching degrees exist and are higher than the preset threshold value, determining the maximum matching degree;
and determining the second spectral feature corresponding to the maximum matching degree as the spectral feature matched with the first spectral feature.
5. An apparatus for determining a color temperature, the apparatus comprising:
a first determination module configured to determine a first spectral feature of a light source under test; the first spectral feature is composed of wavelengths and relative intensities corresponding to all or part of feature points in the spectral information of the light source to be detected; the wavelength and the relative intensity of one characteristic point in the first spectral characteristic form first characteristic information;
a second determination module configured to determine a spectral feature matching the first spectral feature from respective second spectral features of at least one preset light source;
a third determination module configured to determine calibration coefficients corresponding to spectral features matching the first spectral features;
a fourth determination module configured to determine a color temperature of the light source to be measured based on the calibration coefficient;
the device, still include:
a sixth determining module, configured to determine a calibration coefficient corresponding to each of the at least one preset light source when a spectral feature matching the first spectral feature is not obtained from the second spectral feature of each of the at least one preset light source;
a seventh determining module, configured to determine the color temperature of the light source to be measured based on the calibration coefficient corresponding to each of the at least one preset light source;
the second determining module includes:
a third determining submodule configured to determine at least one second characteristic information included in a second spectral characteristic of each of the at least one preset light source; the wavelength and the relative intensity of one characteristic point in the second spectral characteristic form second characteristic information;
a matching sub-module configured to match the first spectral feature with a respective second spectral feature of the at least one preset light source based on the at least one first characteristic information and the at least one second characteristic information, so as to obtain a matching result; the matching result comprises the number of successful matching of the first characteristic information of the first spectral characteristic and the second characteristic information included in each second spectral characteristic; when the wavelength in the first characteristic information is the same as the wavelength in the second characteristic information, and the relative intensity in the first characteristic information is the same as the relative intensity in the second characteristic information, the first characteristic information and the second characteristic information are successfully matched;
a fourth determination submodule configured to determine a spectral feature that matches the first spectral feature based on the matching result.
6. The apparatus of claim 5, further comprising:
a fifth determination module configured to determine spectral information of the light source to be measured;
the first determining module includes:
a first determination sub-module configured to determine at least one first characteristic information in the spectral information; the first characteristic information is the wavelength and the relative intensity corresponding to the characteristic point in the spectrum information;
a second determination submodule configured to determine the first spectral feature based on the at least one first feature information.
7. The apparatus of claim 5, wherein the fourth determination submodule comprises:
a fifth determining submodule configured to determine, based on the matching result, a matching degree of the first spectral feature and a second spectral feature of each of at least one preset light source, resulting in at least one matching degree;
a sixth determining submodule configured to determine a degree of matching higher than a preset threshold from the at least one degree of matching;
a seventh determining sub-module configured to determine a second spectral feature corresponding to a degree of matching higher than a preset threshold as a spectral feature matching the first spectral feature.
8. The apparatus of claim 7, wherein the seventh determination submodule comprises:
an eighth determining submodule configured to determine a maximum matching degree when there are at least two matching degrees higher than the preset threshold;
a ninth determination submodule configured to determine the second spectral feature corresponding to the maximum matching degree as the spectral feature matching the first spectral feature.
9. An apparatus for determining a color temperature, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a first spectral characteristic of a light source to be detected; the first spectral feature is composed of wavelengths and relative intensities corresponding to all or part of feature points in the spectral information of the light source to be detected; the wavelength and the relative intensity of one characteristic point in the first spectral characteristic form first characteristic information;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
determining the color temperature of the light source to be detected based on the calibration coefficient;
after the first spectral feature of the light source to be measured is determined, the method further includes:
when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each at least one preset light source, determining a calibration coefficient corresponding to each at least one preset light source;
determining the color temperature of the light source to be detected based on the calibration coefficient corresponding to each of the at least one preset light source;
the determining the spectral characteristics matched with the first spectral characteristics from the second spectral characteristics of the at least one preset light source comprises:
determining at least one piece of second characteristic information included in the second spectral characteristic of each of the at least one preset light source; the wavelength and the relative intensity of one characteristic point in the second spectral characteristic form second characteristic information;
matching the first spectral characteristics with respective second spectral characteristics of the at least one preset light source based on the at least one piece of first characteristic information and the at least one piece of second characteristic information to obtain a matching result; the matching result comprises the number of successful matching of the first characteristic information of the first spectral characteristic and the second characteristic information included in each second spectral characteristic; when the wavelength in the first characteristic information is the same as the wavelength in the second characteristic information, and the relative intensity in the first characteristic information is the same as the relative intensity in the second characteristic information, the first characteristic information and the second characteristic information are successfully matched;
determining spectral features that match the first spectral features based on the matching results.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of:
determining a first spectral characteristic of a light source to be detected; the first spectral feature is composed of wavelengths and relative intensities corresponding to all or part of feature points in the spectral information of the light source to be detected; the wavelength and the relative intensity of one characteristic point in the first spectral characteristic form first characteristic information;
determining a spectral feature matching the first spectral feature from the respective second spectral features of at least one preset light source;
determining calibration coefficients corresponding to spectral features matching the first spectral features;
determining the color temperature of the light source to be detected based on the calibration coefficient;
after the first spectral feature of the light source to be measured is determined, the method further includes:
when the spectral feature matched with the first spectral feature is not obtained from the second spectral feature of each at least one preset light source, determining a calibration coefficient corresponding to each at least one preset light source;
determining the color temperature of the light source to be detected based on the calibration coefficient corresponding to each of the at least one preset light source;
the determining the spectral characteristics matched with the first spectral characteristics from the second spectral characteristics of the at least one preset light source comprises:
determining at least one piece of second characteristic information included in the second spectral characteristic of each of the at least one preset light source; the wavelength and the relative intensity of one characteristic point in the second spectral characteristic form second characteristic information;
matching the first spectral characteristics with respective second spectral characteristics of the at least one preset light source based on the at least one piece of first characteristic information and the at least one piece of second characteristic information to obtain a matching result; the matching result comprises the number of successful matching of the first characteristic information of the first spectral characteristic and the second characteristic information included in each second spectral characteristic; when the wavelength in the first characteristic information is the same as the wavelength in the second characteristic information, and the relative intensity in the first characteristic information is the same as the relative intensity in the second characteristic information, the first characteristic information and the second characteristic information are successfully matched;
determining spectral features that match the first spectral features based on the matching results.
CN201710875166.1A 2017-09-25 2017-09-25 Method and device for determining color temperature Active CN107677377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710875166.1A CN107677377B (en) 2017-09-25 2017-09-25 Method and device for determining color temperature

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710875166.1A CN107677377B (en) 2017-09-25 2017-09-25 Method and device for determining color temperature

Publications (2)

Publication Number Publication Date
CN107677377A CN107677377A (en) 2018-02-09
CN107677377B true CN107677377B (en) 2020-01-07

Family

ID=61138069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710875166.1A Active CN107677377B (en) 2017-09-25 2017-09-25 Method and device for determining color temperature

Country Status (1)

Country Link
CN (1) CN107677377B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110796996B (en) * 2018-08-02 2021-03-16 Oppo(重庆)智能科技有限公司 Color temperature calibration method and device for mobile terminal, electronic equipment and storage medium
CN111551266B (en) * 2020-05-25 2021-01-22 吉林求是光谱数据科技有限公司 Environmental color temperature testing method and system based on multispectral image detection technology
CN115118946A (en) * 2021-03-22 2022-09-27 北京小米移动软件有限公司 White balance correction method, device and storage medium
CN116385566B (en) * 2022-05-27 2024-04-30 上海玄戒技术有限公司 Light source estimation method, device, electronic equipment, chip and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4215275A (en) * 1977-12-07 1980-07-29 Luxtron Corporation Optical temperature measurement technique utilizing phosphors
US6299346B1 (en) * 1999-03-08 2001-10-09 C. I. Systems Ltd Active pyrometry with emissivity extrapolation and compensation
CN102541950A (en) * 2010-12-31 2012-07-04 上海广茂达光艺科技股份有限公司 Method and device for establishing color temperature database of combined light and method for realizing combined light
CN106872146A (en) * 2017-02-24 2017-06-20 中国测试技术研究院 A kind of correlated color temperature of light source and colour rendering index analysis method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572206B (en) * 2010-12-31 2015-05-13 比亚迪股份有限公司 Color correction method
KR101306793B1 (en) * 2012-02-13 2013-09-10 한국광기술원 Apparatus and method for controlling mixture spectrum
CN105681782B (en) * 2016-01-11 2017-09-29 广东欧珀移动通信有限公司 Color temperature sensor calibration method and relevant apparatus
CN105632413B (en) * 2016-01-11 2018-09-11 京东方科技集团股份有限公司 A kind of adjusting method of backlight, regulating device and display device
CN106331344B (en) * 2016-08-23 2019-10-29 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of screen color temp

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4215275A (en) * 1977-12-07 1980-07-29 Luxtron Corporation Optical temperature measurement technique utilizing phosphors
US6299346B1 (en) * 1999-03-08 2001-10-09 C. I. Systems Ltd Active pyrometry with emissivity extrapolation and compensation
CN102541950A (en) * 2010-12-31 2012-07-04 上海广茂达光艺科技股份有限公司 Method and device for establishing color temperature database of combined light and method for realizing combined light
CN106872146A (en) * 2017-02-24 2017-06-20 中国测试技术研究院 A kind of correlated color temperature of light source and colour rendering index analysis method

Also Published As

Publication number Publication date
CN107677377A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
EP3179711B1 (en) Method and apparatus for preventing photograph from being shielded
CN107677377B (en) Method and device for determining color temperature
WO2016110145A1 (en) Method and device for setting screen brightness
US10181184B2 (en) Method and apparatus for identifying image type
CN111586300B (en) Color correction method, device and readable storage medium
CN112449026B (en) Ambient light compensation method, device, terminal and storage medium
CN107463052B (en) Shooting exposure method and device
WO2018107752A1 (en) Screen luminance control method and device
CN106843666B (en) method and device for adjusting display interface
CN107480785B (en) Convolutional neural network training method and device
US10109248B2 (en) Method and device for adjusting liquid crystal display
CN107808626B (en) Method and device for adjusting color temperature of display screen and computer readable storage medium
CN105677352B (en) Method and device for setting application icon color
CN109215615B (en) Display unit working parameter compensation method and device
US10627996B2 (en) Method and apparatus for sorting filter options
CN112033527B (en) Ambient brightness detection method, device, equipment and storage medium
CN107657608B (en) Image quality determination method and device and electronic equipment
CN111131596B (en) Screen brightness adjusting method and device
WO2016112730A1 (en) Method and device for adjusting display brightness
US11991300B2 (en) Photographing method and apparatus, terminal, and storage medium
CN115883976A (en) Endoscope calibration method, device, electronic apparatus, and storage medium
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN108763906B (en) Biological feature recognition method and device
CN108108668B (en) Age prediction method and device based on image
CN114187860B (en) Spectrum information determining method and device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant