CN111901459A - Color temperature adjusting method, device, terminal and storage medium - Google Patents

Color temperature adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN111901459A
CN111901459A CN202010732143.7A CN202010732143A CN111901459A CN 111901459 A CN111901459 A CN 111901459A CN 202010732143 A CN202010732143 A CN 202010732143A CN 111901459 A CN111901459 A CN 111901459A
Authority
CN
China
Prior art keywords
color temperature
screen
light
terminal
collected 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
CN202010732143.7A
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 CN202010732143.7A priority Critical patent/CN111901459A/en
Publication of CN111901459A publication Critical patent/CN111901459A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/13Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on liquid crystals, e.g. single liquid crystal display cells
    • G02F1/133Constructional arrangements; Operation of liquid crystal cells; Circuit arrangements
    • G02F1/1333Constructional arrangements; Manufacturing methods
    • G02F1/13338Input devices, e.g. touch panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Optics & Photonics (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a color temperature adjusting method, a color temperature adjusting device, a terminal and a storage medium, which are applied to a terminal comprising a screen, wherein the terminal further comprises a first type of light sensor with different orientation from the screen and a second type of light sensor with same orientation as the screen. The method comprises the following steps: acquiring ambient light by using the first type of light sensor to obtain first acquired data, and acquiring ambient light by using the second type of light sensor to obtain second acquired data; determining the environmental color temperature of the environment where the terminal is located according to the first collected data and the second collected data; and adjusting the display color temperature of the screen according to the environment color temperature. The color temperature of the comfortable display screen can be provided, so that the screen is unified with the surrounding environment, the visual fatigue of a user when the user uses the terminal is reduced, better experience is brought to the user in the aspect of impression, and the user experience degree is improved.

Description

Color temperature adjusting method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of intelligent terminal technologies, and in particular, to a color temperature adjustment method, device, terminal, and storage medium.
Background
The intelligent terminal is at the in-process that shows, and the colour temperature is a very important factor, and comfortable colour temperature can make screen and surrounding environment unified, and the user can effectual reduction visual fatigue at the intelligent terminal in-process like this to bring better experience in the impression, but the colour temperature in the current terminal needs manual regulation, and the colour temperature of regulation is single, and is not intelligent, if carries out the colour temperature regulation by the time slot, then can't carry out the adaptability adjustment with surrounding environment.
Disclosure of Invention
The present disclosure provides a color temperature adjusting method, apparatus, terminal and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a color temperature adjusting method applied to a terminal including a screen, the terminal further including a first type of light sensor oriented in a different direction from the screen and a second type of light sensor oriented in a same direction as the screen, including:
acquiring ambient light by using the first type of light sensor to obtain first acquired data, and acquiring ambient light by using the second type of light sensor to obtain second acquired data;
determining the environmental color temperature of the environment where the terminal is located according to the first collected data and the second collected data;
and adjusting the display color temperature of the screen according to the environment color temperature.
Optionally, the determining, according to the first collected data and the second collected data, an environmental color temperature of an environment where the terminal is located includes:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
Optionally, the performing weighted average on the first collected data and the second collected data to obtain an ambient color temperature of an environment where the terminal is located includes:
performing deviation calculation on the first collected data and the second collected data to obtain a color temperature deviation value;
and when the color temperature deviation value is smaller than a preset deviation value, carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located.
Optionally, the first type of light sensor is located in a back module of the terminal; and the second type of light sensor is positioned below the screen.
Optionally, the acquiring ambient light by using a first type of light sensor with a different orientation from the screen to obtain first acquired data includes:
collecting white light, red light, blue light and yellow light in an environment by using a first type of light sensor with different orientation of the screen;
and carrying out weighted average on the data of the collected white light, the data of the red light, the data of the blue light and the data of the yellow light to obtain first collected data.
According to a second aspect of the embodiments of the present disclosure, there is provided a color temperature adjusting apparatus applied to a terminal including a screen, the terminal further including a first type of light sensor oriented in a different direction from the screen and a second type of light sensor oriented in a same direction as the screen, including:
the data acquisition unit is configured to acquire the ambient light by using the first type of light sensor to obtain first acquired data and acquire the ambient light by using the second type of light sensor to obtain second acquired data;
the current environment color temperature determining unit is configured to determine the environment color temperature of the environment where the terminal is located according to the first collected data and the second collected data;
a color temperature adjusting unit configured to adjust a display color temperature of the screen according to the ambient color temperature.
Optionally, the current ambient color temperature determining unit is specifically configured to:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
Optionally, the current ambient color temperature determining unit is specifically configured to:
performing deviation calculation on the first collected data and the second collected data to obtain a color temperature deviation value;
and when the color temperature deviation value is smaller than a preset deviation value, carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located.
Optionally, the first type of light sensor is located in a back module of the terminal; and the second type of light sensor is positioned below the screen.
Optionally, the data obtaining unit is specifically configured to:
collecting white light, red light, blue light and yellow light in an environment by using a first type of light sensor with different orientation of the screen;
and carrying out weighted average on the data of the collected white light, the data of the red light, the data of the blue light and the data of the yellow light to obtain first collected data.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal including a screen, further including:
a first type of light sensor oriented differently from the screen;
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in the color temperature adjustment method as provided in any one of the first aspect of the above embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the color temperature adjusting method as any one of the above-mentioned embodiments provided in the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the present disclosure is applied to a terminal including a screen, the terminal further including a first type of light sensor oriented differently from the screen and a second type of light sensor oriented identically to the screen. The method comprises the following steps: the method comprises the steps of acquiring ambient light by using a first type of light sensor to obtain first acquired data, acquiring ambient light by using a second type of light sensor to obtain second acquired data, and determining the ambient color temperature of the environment where the terminal is located according to the first acquired data and the second acquired data, so that the influence of a display screen on the acquired ambient color temperature is reduced, and the variation of the acquired ambient color temperature can be more accurate; the display color temperature of the screen is adjusted according to the environment color temperature, so that comfortable color temperature can be provided for a user, the screen is unified with the surrounding environment, visual fatigue of the user is effectively reduced when the user uses the terminal, better experience is brought to the user in the aspect of impression, and the user experience degree is 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. 1 is a flow chart illustrating a color temperature adjustment method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a specific implementation of step S11 according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a specific implementation of step S12 according to an exemplary embodiment.
Fig. 4 is a schematic structural diagram of a mobile phone applying a color temperature adjustment method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a color temperature adjusting apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a hardware configuration of a terminal 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. 1 is a flowchart illustrating a color temperature adjustment method according to an exemplary embodiment, where the color temperature adjustment method of the present embodiment is applied to a terminal including a screen, and the terminal further includes a first type of light sensor oriented differently from the screen and a second type of light sensor oriented identically to the screen. The color temperature adjusting method includes the following steps.
In step S11, the first type of light sensor is used to collect ambient light to obtain first collected data, and the second type of light sensor is used to collect ambient light to obtain second collected data.
In practical application, the color temperature of the terminal is an important factor, and the comfortable color temperature can enable the screen to be unified with the surrounding environment, so that the visual fatigue of a user can be effectively reduced in the use process of the mobile phone, and better experience is brought to the appearance.
The embodiment provides a color temperature adjusting method, which is based on a first type of light sensor with different screen orientation and a second type of light sensor with the same screen orientation, establishes a software algorithm to complete the identification of the current color temperature, and adjusts the screen color temperature according to the obtained current ambient light color temperature.
Because the light sensors with the same orientation as the screen are generally under-screen sensors, the collection of the color temperature is affected by the display of the screen of the terminal, and the obtained color temperature data may have certain deviation.
Optionally, in this embodiment, the positions of the first type light sensor and the second type light sensor at the terminal are not limited, and the first type light sensor may be disposed on a side surface of the terminal, or may be disposed on a back surface of the terminal. For example, referring to fig. 4, the first type of light sensor 100 is disposed on a side of a back panel of a mobile phone, so that data collection by the optical fiber sensor is not interfered, a user uses a terminal is not interfered, the first type of light sensor is not affected by a screen, and user experience is high. The second type of light sensor can be arranged below the screen, namely, the second type of light sensor is a sensor under the screen, and can also be arranged on the edge of the screen, so that the use of the screen by a user is not influenced.
Here, the first collected data is color temperature data of the ambient light collected by the first type of light sensor, and the second collected data is color temperature data of the ambient light collected by the second type of light sensor. For example, the color temperature of yellow light, green light, red light, etc. in the environment. The color temperature reflects that the color components contained in a light ray are different in each color ratio, and the obtained color temperature data are different.
The light sensors are added to the screen side and the back plate side of the terminal, and the collected color temperature data can have certain deviation due to the fact that the light sensors on the front side of the screen are affected by display of a mobile phone screen, so that the data of the light sensors on the back plate side can be used as a main color temperature data source. Simultaneously, this embodiment has increased the light sensor the same with the screen orientation, and two kinds of sensors gather ambient light simultaneously, and the colour temperature data of the ambient light that can be more comprehensive acquisition terminal place can make screen and surrounding environment more unified when adjusting the screen colour temperature, and effectual reduction user's visual fatigue.
In one embodiment, referring to fig. 2, the specific implementation procedure of acquiring the ambient light by using the first type of light sensor with the orientation different from that of the screen in step S11 to obtain the first acquired data includes:
in step S21, white, red, blue and yellow light in the environment is collected using a first type of light sensor oriented differently from the screen.
In step S22, the data of the white light, the data of the red light, the data of the blue light, and the data of the yellow light are weighted and averaged to obtain first collected data.
It should be understood that the present embodiment is not limited to the data of white light, the data of red light, the data of blue light, and the data of yellow light. Generally, the weight of each color light can be set according to the user's needs. For example, the blue light has a large irritation to eyes, the yellow light has a small irritation to eyes, the weight of the data of the blue light is the largest, and the weight of the data of the yellow light is the smallest, so that the color temperature of the obtained ambient light is more prominent than that of the blue light, and when the color temperature of the screen is adjusted, the screen can be adjusted to be warm light, and the irritation to eyes is reduced.
Optionally, in this embodiment, the first collected data may be filtered to filter interference of other external light. For example, the collected light from the tiny light sources of other display devices or lighting devices has less data, and the light rays which have less influence on the ambient light are filtered out, so that the collected data is more accurate and reliable.
In step S12, an ambient color temperature of an environment where the terminal is located is determined according to the first collected data and the second collected data.
Here, the environment is an environment in which the terminal, the first type light sensor, and the second type light sensor are simultaneously located. For example, outdoors or indoors, may include: illumination light and natural light.
Optionally, in this embodiment, the ambient color temperature of the environment where the terminal is located may be calculated according to the first collected data in the preset proportion. For example, 90% of the first collected data is used to determine the ambient color temperature, for example, the values of both ends of the first collected data are filtered out, which may be the maximum value and the minimum value, and the remaining first collected data is taken to determine the ambient color temperature. Because the ambient light collected by the first type of light sensor is accurate and is not interfered, the first collected data is mainly used, namely the preset proportion is more than 50%, and the obtained ambient color temperature is more real and accurate.
In step S13, the display color temperature of the screen is adjusted according to the ambient color temperature.
For example, if the ambient color temperature increases, the display color temperature of the screen is increased, and if the ambient color temperature decreases, the display color temperature of the screen is decreased. Namely, the change trend of the display color temperature of the display screen is equal to the change trend of the environmental color temperature; and/or the change amount of the display color temperature of the display screen can be equal to the change amount of the environmental color temperature.
The present embodiment may further adjust the display color temperature of the screen according to the color temperature of each of the ambient color temperatures. For example, if the yellow color temperature of the ambient color temperature is low, the color temperature of the yellow light of the screen is increased, and if the blue color temperature of the ambient color temperature is high, the color temperature of the blue light of the screen is decreased.
Optionally, after the display color temperature of the screen is adjusted, the present embodiment may further determine whether a difference between the display color temperature of the current screen and the ambient color temperature is within a preset color temperature error range. And if the current color temperature is within the preset color temperature error range, determining the color temperature of the current adjusted screen as the display color temperature. If the current screen is not in the preset color temperature error range, the first type of light sensor with the direction different from that of the screen is reused for collecting the ambient light, and the steps S11 to S13 are executed until the difference value between the display color temperature of the current screen and the ambient color temperature is in the preset color temperature error range, or the display color temperature of the current screen is equal to the ambient color temperature.
Here, the preset color temperature error range may be set to an initial value, and then learned according to a user's requirement, and a critical value of the preset color temperature error range may be adjusted according to a learning result. For example, the embodiment may acquire a dimming action performed by the user, and if it is detected that the user starts the dimming application or performs the dimming action, it indicates that the adjusted display color temperature does not meet the user requirement, record a difference between the current display color temperature and the ambient color temperature, and compare the difference with a maximum critical value or a minimum critical value of an initially set preset color temperature error range.
And if the difference is smaller than the maximum critical value of the initially set preset color temperature error range, taking the difference as the maximum critical value of the preset color temperature error range. Or, if the difference is greater than the initially set minimum critical value of the preset color temperature error range, the difference is taken as the minimum critical value of the preset color temperature error range.
In the embodiment, the color temperature data of the current environment is collected by the optical fiber sensor with different screen orientations, the display color temperature of the screen is automatically adjusted according to the color temperature data, a comfortable color temperature environment is created for a user, the comfortable color temperature can enable the screen to be unified with the surrounding environment, the user can effectively reduce visual fatigue in the use process of the mobile phone, and better experience is brought to the impression.
In one embodiment, the terminal may further include a second type of light sensor oriented in the same direction as the screen.
Optionally, the specific implementation process of determining the ambient color temperature of the environment where the terminal is located according to the first collected data and the second collected data in step S12 includes:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
Because the second type of light sensor is arranged on the front side of the screen, collected ambient light can be influenced by the display of the mobile phone screen, and a certain deviation can occur in a collection result. Therefore, when the display screen of the terminal is in a bright screen state, the data of the first-type light sensor is used as a main color temperature data source in the embodiment, namely the weight of the first collected data is greater than that of the second collected data, so that the ambient light can be reflected truly and comprehensively, the collected result is more accurate, the color temperature and the environment adjusted by the final screen are more uniform, better comfort is provided for a user, fatigue is reduced, and user experience is improved.
Optionally, when the second type of light sensor is used for collecting ambient light, and the screen of the current terminal is in a black screen state, performing weighted average on the first collected data and the second collected data to obtain an ambient color temperature of an environment where the terminal is located; and the weight value of the first acquisition data is less than or equal to the weight value of the second acquisition data. Because the front side of the environment where the terminal is located can better reflect the color temperature needed by the user when the terminal is used, the comfort level of the user when the terminal is used can be increased.
Generally, the sum of the weight of the first collected data and the weight of the second collected data is equal to 1. The embodiment mainly comprises a first type of light sensor and a second type of light sensor, so that the collected data of the two types of light sensors are also taken as the main points. In this embodiment, under the condition that the display includes other light sensors and the screen state is bright, the weight of the first collected data should be greater than 0.5, and the sum of the weight of the first collected data and the weight of the second collected data is less than 1.
For example, the first type of light sensor is arranged on the back of the mobile phone, the second type of light sensor is arranged on one side of the screen, the screen is in a bright screen state, the third type of light sensor is arranged on the side of the mobile phone, and at the moment, the sum of the weight of the first collected data, the weight of the second collected data and the weight of the third collected data collected by the third type of light sensor is equal to 1, but the interference of the first type of light sensor is minimum, so that the first collected data is mainly used.
In an embodiment, referring to fig. 3, a specific implementation process of performing weighted average on the first collected data and the second collected data to obtain the ambient color temperature of the environment where the terminal is located may include:
in step S31, a deviation between the first collected data and the second collected data is calculated to obtain a color temperature deviation value.
In step S32, when the color temperature deviation value is smaller than a preset deviation value, performing weighted average on the first collected data and the second collected data to obtain an environmental color temperature of an environment where the terminal is located.
The embodiment first calculates the deviation between the first collected data and the second collected data, i.e. first determines whether the error between the first collected data and the second collected data is too large.
And if the color temperature deviation value is larger than the preset deviation value, the first type light sensor and the second type light sensor are required to gather the ambient light again to obtain new first gathering data and new second gathering data, and then deviation calculation is carried out until the color temperature deviation value is smaller than the preset deviation value.
In one embodiment, if the color temperature deviation value is smaller than a preset deviation value, performing weighted average on the first collected data and the second collected data to obtain an environmental color temperature of an environment where the terminal is located; and if the color temperature deviation value is larger than the preset deviation value and the screen state is bright, determining the ambient color temperature by using the first collected data. If the color temperature deviation value is larger than the preset deviation value and the screen state is a black screen, the environment color temperature is determined by the second collected data, the obtained environment color temperature is ensured to be more consistent with the current environment, so that the environment light can be reflected more truly and comprehensively, and the collection result is more accurate.
In one embodiment, if the color temperature deviation value is smaller than a preset deviation value, performing weighted average on the first collected data and the second collected data to obtain an environmental color temperature of an environment where the terminal is located; and if the color temperature deviation value is greater than the preset deviation value and the screen state is a bright screen, increasing the weight of the first collected data and reducing the weight of the second collected data, or if the color temperature deviation value is greater than the preset deviation value and the screen state is a black screen, reducing the weight of the first collected data and increasing the weight of the second collected data. And carrying out weighted average on the first collected data and the second collected data through the newly defined weight to obtain the environmental color temperature of the environment where the terminal is located, so as to ensure that the environmental light is reflected truly and comprehensively.
And when the color temperature deviation value is smaller than the preset deviation value, the data acquired by the first type of light sensors and the second type of light sensors are accurate, and then the first acquired data and the second acquired data are weighted and averaged to obtain the environmental color temperature of the environment where the terminal is located. For example, when the screen state is bright, the second collected data × 20% + the first collected data × 80% may be averaged to obtain the ambient color temperature of the environment where the terminal is located.
Before the environment color temperature is determined, the error between the first type of light sensor and the second type of light sensor is determined, the acquired data can be ensured to be more accurate and real, meanwhile, the color temperature of the environment light where the terminal is located can be more comprehensively reflected, when the color temperature of the screen is adjusted, the screen and the surrounding environment can be more unified, the accuracy of adjusting the color temperature of the screen is improved, and the visual fatigue of a user is effectively reduced.
Optionally, the first type of light sensor of this embodiment can set up in the back module at the terminal, and is preferred, can set up this first light sensor near terminal back camera module to shelter from this light sensor when avoiding holding the terminal, and second light sensor can set up the below at display screen, and is preferred, and this screen light sensor can set up below the screen top region, in order to avoid holding sheltering from this light sensor when holding the terminal. As shown in fig. 4, the first type of light sensor 100 is located on the back of the backlight in the terminal, and the second type of light sensor 200 is located on one side or edge of the screen, so that the ambient light can be sensed in an all-around manner, and the collected ambient light is more comprehensive and accurate.
In this embodiment, the number of the first-type light sensors and the second-type light sensors is not limited, and may be one or more. For example, one first type light sensor is located on the back of the backlight in the terminal, another first type light sensor is located on the side of the backlight in the terminal, etc.
In practical application, the light sensor can acquire clear (white light), red light, blue light and yellow light in light, weight the light according to the proportion of the white light, the red light, the blue light and the yellow light, and determine the color temperature value of the current environment according to the weighted light.
For example, referring to fig. 4, first, light sensors are added on the screen side and the back panel side of the mobile phone, and since the second light sensor on the front side is an off-screen sensor, the color temperature will be affected by the display of the mobile phone screen, and at this time, a certain deviation will occur. Therefore, the data of the backlight sensor is used as the main color temperature data source in the embodiment. Integrating the color temperature data of the front light sensor and the color temperature data of the rear light sensor, setting a threshold value after the integration, and obtaining the color temperature of the current ambient light by using the ratio of 20% in front and 80% in rear when the color temperature value deviation output by the front light sensor and the rear light sensor is within the threshold value. And adjusting the color temperature of the screen according to the color temperature.
According to the terminal, the first type of light sensor with the different orientation from the screen and the second type of light sensor with the same orientation as the screen are used for collecting ambient light, first collected data and second collected data are obtained respectively, the ambient color temperature of the environment where the terminal is located is determined according to the first collected data and the second collected data, the ambient light is collected in an all-dimensional mode, the influence of the display screen on the obtained ambient color temperature is reduced, and the variation of the obtained ambient color temperature is more accurate; the display color temperature of the screen is adjusted according to the environment color temperature, so that comfortable color temperature can be provided for a user, the screen is unified with the surrounding environment, visual fatigue of the user is effectively reduced when the user uses the terminal, better experience is brought to the user in the aspect of impression, and the user experience degree is improved.
Fig. 5 is a block diagram illustrating a color temperature adjusting apparatus 120 according to an exemplary embodiment. Referring to fig. 5, the apparatus is applied to a terminal including a screen, and the terminal further includes a first type of light sensor oriented differently from the screen and a second type of light sensor oriented identically to the screen. The apparatus mainly includes a data acquisition unit 121, a current ambient color temperature determination unit 122, and a color temperature adjustment unit 123.
The data acquisition unit 121 is configured to acquire ambient light with the first type of light sensor to obtain first acquired data, and acquire ambient light with the second type of light sensor to obtain second acquired data.
The current ambient color temperature determining unit 122 is configured to determine an ambient color temperature of an environment where the terminal is located according to the first collected data and the second collected data.
The color temperature adjusting unit 123 is configured to adjust a display color temperature of the screen according to the ambient color temperature.
Further, the current ambient color temperature determination unit 122 is specifically configured to:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
Optionally, the current ambient color temperature determining unit 122 is specifically configured to:
and carrying out deviation calculation on the first collected data and the second collected data to obtain a color temperature deviation value.
And when the color temperature deviation value is smaller than a preset deviation value, carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located.
Optionally, the first type of light sensor is located in a back module of the terminal; and the second type of light sensor is positioned below the screen.
Optionally, the data obtaining unit 121 is specifically configured to:
collecting white light, red light, blue light and yellow light in an environment by using a first type of light sensor with different orientation of the screen;
and carrying out weighted average on the data of the collected white light, the data of the red light, the data of the blue light and the data of the yellow light to obtain first collected data.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 6 is a block diagram illustrating a terminal 800 according to an example embodiment. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 6, terminal 800 may include one or more of the following components: a first type of light sensor 822 that is oriented differently than the screen, a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen providing an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive 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 acquire the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 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 800 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 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 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, 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 804 comprising instructions, executable by the processor 820 of the terminal 800 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.
A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a color temperature adjustment method applied to a terminal including a screen, the terminal further including a first type of light sensor oriented differently from the screen and a second type of light sensor oriented identically to the screen. The method comprises the following steps:
acquiring ambient light by using the first type of light sensor to obtain first acquired data, and acquiring ambient light by using the second type of light sensor to obtain second acquired data;
determining the environmental color temperature of the environment where the terminal is located according to the first collected data and the second collected data;
and adjusting the display color temperature of the screen according to the environment color temperature.
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 (12)

1. A color temperature adjustment method applied to a terminal including a screen, the terminal further including a first type of light sensor oriented in a different direction from the screen and a second type of light sensor oriented in the same direction as the screen, the method comprising:
acquiring ambient light by using the first type of light sensor to obtain first acquired data, and acquiring ambient light by using the second type of light sensor to obtain second acquired data;
determining the environmental color temperature of the environment where the terminal is located according to the first collected data and the second collected data;
and adjusting the display color temperature of the screen according to the environment color temperature.
2. The method for adjusting color temperature according to claim 1, wherein the determining the ambient color temperature of the environment where the terminal is located according to the first collected data and the second collected data comprises:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
3. The color temperature adjustment method according to claim 2, wherein the performing weighted average on the first collected data and the second collected data to obtain an ambient color temperature of an environment in which the terminal is located includes:
performing deviation calculation on the first collected data and the second collected data to obtain a color temperature deviation value;
and when the color temperature deviation value is smaller than a preset deviation value, carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located.
4. The color temperature adjustment method according to claim 2, wherein the first type of light sensor is located in a rear module of the terminal; and the second type of light sensor is positioned below the screen.
5. The color temperature adjustment method according to claim 1, wherein the acquiring of the ambient light with a first type of light sensor oriented differently from the screen to obtain first acquired data comprises:
collecting white light, red light, blue light and yellow light in an environment by using a first type of light sensor with different orientation of the screen;
and carrying out weighted average on the data of the collected white light, the data of the red light, the data of the blue light and the data of the yellow light to obtain first collected data.
6. A color temperature adjusting apparatus applied to a terminal including a screen, the terminal further including a first type of light sensor oriented in a different direction from the screen and a second type of light sensor oriented in a same direction as the screen, comprising:
the data acquisition unit is configured to acquire the ambient light by using the first type of light sensor to obtain first acquired data and acquire the ambient light by using the second type of light sensor to obtain second acquired data;
the current environment color temperature determining unit is configured to determine the environment color temperature of the environment where the terminal is located according to the first collected data and the second collected data;
a color temperature adjusting unit configured to adjust a display color temperature of the screen according to the ambient color temperature.
7. The color temperature adjustment apparatus according to claim 6, wherein the current ambient color temperature determination unit is specifically configured to:
carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located; wherein the weight of the first collected data is greater than the weight of the second collected data.
8. The color temperature adjustment apparatus according to claim 7, wherein the current ambient color temperature determination unit is specifically configured to:
performing deviation calculation on the first collected data and the second collected data to obtain a color temperature deviation value;
and when the color temperature deviation value is smaller than a preset deviation value, carrying out weighted average on the first collected data and the second collected data to obtain the environmental color temperature of the environment where the terminal is located.
9. The color temperature adjustment device of claim 7, wherein the first type of light sensor is located in a rear module of the terminal; and the second type of light sensor is positioned below the screen.
10. The color temperature adjustment device of claim 6, wherein the data acquisition unit is specifically configured to:
collecting white light, red light, blue light and yellow light in an environment by using a first type of light sensor with different orientation of the screen;
and carrying out weighted average on the data of the collected white light, the data of the red light, the data of the blue light and the data of the yellow light to obtain first collected data.
11. A terminal, comprising a screen, further comprising:
a first type of light sensor oriented differently from the screen;
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in the color temperature adjustment method according to any of the claims 1 to 5.
12. A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the color temperature adjustment method according to any one of claims 1 to 5.
CN202010732143.7A 2020-07-27 2020-07-27 Color temperature adjusting method, device, terminal and storage medium Pending CN111901459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010732143.7A CN111901459A (en) 2020-07-27 2020-07-27 Color temperature adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010732143.7A CN111901459A (en) 2020-07-27 2020-07-27 Color temperature adjusting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111901459A true CN111901459A (en) 2020-11-06

Family

ID=73189697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010732143.7A Pending CN111901459A (en) 2020-07-27 2020-07-27 Color temperature adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111901459A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112397039A (en) * 2020-11-16 2021-02-23 北京小米移动软件有限公司 Color temperature adjusting method and device, terminal and storage medium
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN113643673A (en) * 2021-07-22 2021-11-12 武汉华星光电技术有限公司 Ambient light detection method and device and display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104428829A (en) * 2012-06-21 2015-03-18 华为终端有限公司 Color control method and communication apparatus
CN104517585A (en) * 2013-09-29 2015-04-15 联想(北京)有限公司 Method and device for adjusting display screen
CN104780320A (en) * 2014-01-15 2015-07-15 联想(北京)有限公司 Ambient light detection method and electronic equipment
CN106331344A (en) * 2016-08-23 2017-01-11 维沃移动通信有限公司 Adjustment method for color temperature of screen and mobile terminal
CN106791164A (en) * 2017-01-11 2017-05-31 广东欧珀移动通信有限公司 terminal control method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104428829A (en) * 2012-06-21 2015-03-18 华为终端有限公司 Color control method and communication apparatus
CN104517585A (en) * 2013-09-29 2015-04-15 联想(北京)有限公司 Method and device for adjusting display screen
CN104780320A (en) * 2014-01-15 2015-07-15 联想(北京)有限公司 Ambient light detection method and electronic equipment
CN106331344A (en) * 2016-08-23 2017-01-11 维沃移动通信有限公司 Adjustment method for color temperature of screen and mobile terminal
CN106791164A (en) * 2017-01-11 2017-05-31 广东欧珀移动通信有限公司 terminal control method, device and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112397039A (en) * 2020-11-16 2021-02-23 北京小米移动软件有限公司 Color temperature adjusting method and device, terminal and storage medium
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN113643673A (en) * 2021-07-22 2021-11-12 武汉华星光电技术有限公司 Ambient light detection method and device and display device

Similar Documents

Publication Publication Date Title
CN104517268B (en) Adjust the method and device of brightness of image
CN111901459A (en) Color temperature adjusting method, device, terminal and storage medium
CN107463052B (en) Shooting exposure method and device
CN108200279B (en) Backlight adjusting method, device and equipment
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN109151217B (en) Backlight mode adjusting method and device
CN113191198B (en) Fingerprint identification method, fingerprint identification device, mobile terminal and storage medium
CN112033527B (en) Ambient brightness detection method, device, equipment and storage medium
CN111131596B (en) Screen brightness adjusting method and device
CN108830194B (en) Biological feature recognition method and device
CN112951162B (en) Display screen and control method and device thereof
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN108156381B (en) Photographing method and device
CN112017598A (en) Backlight brightness adjusting method and device
CN106775246B (en) Screen brightness adjusting method and device
CN114187874B (en) Brightness adjusting method, device and storage medium
CN112086075B (en) Screen display parameter adjusting method and device and storage medium
CN112037719B (en) Screen brightness adjusting method and device
CN111385400A (en) Backlight brightness adjusting method and device
CN108763906B (en) Biological feature recognition method and device
CN111314550A (en) Display control method and device, mobile terminal and storage medium
CN112087539A (en) Screen light adjusting method for terminal equipment and terminal equipment
CN112019680A (en) Screen brightness adjusting method and device
WO2023221052A1 (en) Display screen control method and apparatus, electronic device and readable storage medium
CN108965849B (en) Image processing method, device and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201106