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

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

Info

Publication number
CN112397039A
CN112397039A CN202011280013.0A CN202011280013A CN112397039A CN 112397039 A CN112397039 A CN 112397039A CN 202011280013 A CN202011280013 A CN 202011280013A CN 112397039 A CN112397039 A CN 112397039A
Authority
CN
China
Prior art keywords
light source
color temperature
source type
signal value
display screen
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
CN202011280013.0A
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 CN202011280013.0A priority Critical patent/CN112397039A/en
Publication of CN112397039A publication Critical patent/CN112397039A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a color temperature adjusting method and device, a terminal and a storage medium, which are applied to a terminal comprising a light sensor and a display screen, wherein the method comprises the following steps: acquiring a signal value obtained by sensing ambient light by an acquisition channel of the light sensor; determining the target light source type of the ambient light according to the corresponding relation between the signal value and the light source type; and adjusting the color temperature of the display screen according to the type of the target light source. By the method, convenience is provided for adjusting the color temperature of the terminal without the color temperature sensor, the internal space of the terminal is saved, and the size of the terminal can be reduced on the premise of not reducing the functions of the terminal.

Description

Color temperature adjusting method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a color temperature adjustment method and apparatus, a terminal, and a storage medium.
Background
The requirements of the electronic device on light rays are different in different use scenes, for example, scenes such as bedrooms/study rooms need different color temperature display to obtain better experience, and under a night table lamp, softer light rays are needed to obtain better use visual experience.
Some electronic equipment contain the colour temperature sensor, can be fast accurate the colour temperature change of experience environment for electronic equipment can be based on the colour temperature regulation display screen's of environment colour temperature. However, some electronic devices do not have a color temperature sensor, so that it is difficult to automatically adjust the color temperature of the screen, and the user experience is poor.
Disclosure of Invention
The disclosure provides a color temperature adjusting method and device, a terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a color temperature adjusting method applied in a terminal including a light sensor and a display screen, including:
acquiring a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
determining the target light source type of the ambient light according to the corresponding relation between the signal value and the light source type;
and adjusting the color temperature of the display screen according to the type of the target light source.
Optionally, the adjusting the color temperature of the display screen according to the type of the target light source includes:
determining a light source color temperature of the target light source type;
and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
Optionally, the signal value includes at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
Optionally, the corresponding relationship between the signal value and the light source type is a relationship between a ratio between different signal values and the light source type.
Optionally, the determining the target light source type of the ambient light according to the corresponding relationship between the signal value and the light source type includes:
determining a first ratio between different signal values of the ambient light;
searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation;
and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
Optionally, the determining the target light source type of the ambient light according to the corresponding relationship between the signal value and the light source type includes:
and determining the target light source type according to the corresponding relation among the current weather environment, the signal value and the light source type.
According to a second aspect of the embodiments of the present disclosure, there is provided a color temperature adjusting apparatus applied in a terminal including a light sensor and a display screen, the apparatus including:
the first acquisition module is configured to acquire a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
the determining module is configured to determine a target light source type of the ambient light according to a corresponding relation between the signal value and the light source type;
and the adjusting module is configured to adjust the color temperature of the display screen according to the type of the target light source.
Optionally, the adjusting module is specifically configured to determine a light source color temperature of the target light source type; and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
Optionally, the signal value includes at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
Optionally, the corresponding relationship between the signal value and the light source type is a relationship between a ratio between different signal values and the light source type.
Optionally, the determining module is specifically configured to determine a first ratio between different signal values of the ambient light; searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation; and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
Optionally, the determining module is specifically configured to determine the target light source type according to a corresponding relationship between the current weather environment, the signal value, and the light source type.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the color temperature adjustment method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in said storage medium, when executed by a processor of the terminal, enable the terminal to perform the color temperature adjustment method as described in the above first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the terminal senses a signal value obtained by ambient light through the multiplexing light sensor, determines the type of a light source providing the ambient light (i.e., a target light source type) according to the signal value, and adjusts the color temperature of the display screen by combining the target light source type, so that the terminal without the color temperature sensor can also adjust the color temperature of the display screen. In addition, on the other hand, the scheme of the disclosure can enable the terminal equipment to obtain the color temperature of the ambient light without additionally installing a color temperature sensor to realize the adjustment of the color temperature of the display screen, thereby saving the internal space of the terminal and enabling the size of the terminal to be reduced on the premise of not reducing the functions of the terminal.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a color temperature adjustment method according to an embodiment of the disclosure.
Fig. 2 is a schematic diagram of the location of a light sensor in an exemplary terminal.
Fig. 3 is an exemplary diagram of a color temperature adjustment method applied to a mobile phone in an embodiment of the disclosure.
Fig. 4 is a diagram illustrating a color temperature adjusting apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram of a terminal device shown in an embodiment of the present disclosure.
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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a color temperature adjustment method according to an embodiment of the disclosure, and as shown in fig. 1, the color temperature adjustment method applied to a terminal includes the following steps:
s11, acquiring a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
s12, determining the target light source type of the ambient light according to the corresponding relation between the signal value and the light source type;
and S13, adjusting the color temperature of the display screen according to the type of the target light source.
In the embodiment of the present disclosure, the terminal includes a mobile phone, a tablet computer, a wearable device, or the like.
The terminal includes a display screen for displaying images, and the display screen may be a display screen manufactured by using an Organic Light-Emitting Diode (OLED). It should be noted that the display screen of the embodiment of the present disclosure may also be a touch screen with a touch function.
The terminal also comprises a light sensor which can be positioned below the display screen and can convert the ambient light penetrating through the display screen into an electric signal and determine the ambient light brightness according to the electric signal, so that the terminal can control the brightness of the display screen according to the external brightness information. Fig. 2 is a schematic diagram of a position of a light sensor in an exemplary terminal, as shown in fig. 2, a screen display area A3 is formed within a screen frame a4 of the terminal, a light sensor a1 is disposed below a screen of the screen display area A3, and a light-transmitting area a2, which is a light-receiving area of the light sensor, is around the light sensor a 1.
In step S11, in the process that the terminal device determines the brightness of the ambient light by using the light sensor to sense the ambient light, a signal value obtained by sensing the ambient light by the collection channel of the light sensor is obtained. It should be noted that the signal value obtained by the terminal acquiring the collection channel sensing ambient light may be a signal value obtained by acquiring a part of the collection channels with specific colors sensing ambient light, or a signal value obtained by acquiring all the collection channels of the light sensor sensing ambient light.
In one embodiment, the signal values include at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
In an embodiment of the present disclosure, the signal values obtained by sensing the ambient light by the collection channels of the light sensor include signal values of at least one color channel, such as a black signal value (C), a red signal value (R), a green signal value (G), and a blue signal value (B). In addition, in the present disclosure, the light sensor may further include a white channel, and thus a white signal value may also be obtained by sensing ambient light through the white channel.
In step S12, the terminal may determine the target light source type of the current ambient light according to the correspondence between the signal value and the light source type.
It should be noted that the correspondence between the signal value and the light source type may be determined in advance by the terminal in a laboratory environment. For example, the terminal fixes the light source type, and then obtains a signal value obtained by sensing ambient light by a collection channel of the light sensor, thereby establishing a corresponding relationship between the signal value and the light source type.
In addition, since the ambient light may be different under different weather environments, the corresponding relationship with the light source type may also be established based on the weather environment and the signal value. For example, the terminal firstly fixes the light source type, and then obtains the signal value obtained by the acquisition channel of the light sensor sensing the ambient light in different weather environments, thereby establishing the corresponding relationship among the weather environment, the signal value and the light source type. The weather environment may include: sunny, rainy, cloudy, snowy, and the like.
In one embodiment, the determining the target light source type of the ambient light according to the correspondence between the signal value and the light source type includes:
and determining the target light source type according to the corresponding relation among the current weather environment, the signal value and the light source type.
Based on the established correspondence between the weather environment, the signal value, and the light source type, the present disclosure may find the correspondence to determine the target light source type according to the current weather environment and the signal value of the current ambient light. It should be noted that the terminal of the present disclosure may obtain the current weather environment based on the weather application.
It can be understood that, in this embodiment, because signal values may be different in different weather environments for the same light source type, the present disclosure establishes a correspondence between a weather environment, a signal value, and a light source type based on signal values collected in different weather environments, thereby determining a target light source type corresponding to ambient light in a current weather environment, enabling a terminal to adjust a color temperature of a display screen based on the target light source type, achieving a purpose of adjusting the color temperature according to the ambient light, and adjusting more accurately so as to provide better experience for a user.
In the embodiments of the present disclosure, the terminal may establish a correspondence between different light source types and signal values, or a correspondence between a weather environment, a signal value, and a light source type. The signal value may be a signal value of a certain acquisition channel, or a corresponding relationship between signal values of different acquisition channels and a light source type.
In one embodiment, the correspondence between the signal values and the light source types is a relationship between a ratio between different signal values and the light source types.
In the embodiment of the present disclosure, the correspondence relationship is a ratio between different signal values, which may be a ratio between color signal values of all color channels, such as C: r: g: the value of B, or the ratio between the partial color signal values, is for example R: the value of G.
Based on the predetermined corresponding relationship, the terminal may determine the target light source type of the ambient light according to the currently acquired signal value of the ambient light.
In one embodiment, the determining the target light source type of the ambient light according to the correspondence between the signal value and the light source type includes:
determining a first ratio between different signal values of the ambient light;
searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation;
and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
In this embodiment, the corresponding relationship is a relationship between the ratio between the different signal values and the light source type, so when determining the target light source type of the ambient light, a first ratio between the different signal values of the ambient light may be determined first, then in the corresponding relationship, a second ratio, of which the difference from the first ratio is smaller than a preset difference threshold value, is searched, and the light source type corresponding to the second ratio is determined as the target light source type.
In the embodiment of the present disclosure, the light source types are divided into different types, such as D50, TL84, a light, and H light, and the color temperatures of the different light source types are different. For example, the color temperature of the D50 light source type is 5000 kelvin (K), sunlight is close to the D50 light source type; the color temperature of the TL84 light source type is 4000K, the shop light is close to the TL84 light source type, the color temperature of the A light is 3000K, and the light source of the incandescent lamp is close to the A light; the color temperature of the H light is 2000K, and the sunlight in the morning or in the evening is close to the H light.
For example, in the corresponding relationship, the ratio between different signal values for the D50 light source type is C: r: g: b is 5: 2: 3: 2, then when the first ratio between the different signal values of the ambient light and 5: 2: 3: 2, the light source type of the ambient light is considered to be D50.
In step S13, based on the determined target light source type, the color temperature of the display screen may be adjusted.
In the embodiment of the present disclosure, when the color temperature of the display screen is adjusted based on the target light source type, the color temperature of the display screen may be adjusted according to the correspondence between the light source type and the color temperature of the display screen. For example, the terminal may determine the color temperature of the display screen with better user experience feeling under the condition that different light source types are determined in a laboratory environment, so as to establish the corresponding relationship between the light source types and the color temperature of the display screen. In addition, the terminal device may also adjust the color temperature of the display screen based on the color temperature of the target light source type, i.e., the color temperature of the current ambient light.
In one embodiment, the adjusting the color temperature of the display screen according to the target light source type includes:
determining a light source color temperature of the target light source type;
and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
As previously mentioned, the terminal device may also adjust the color temperature of the display screen based on the color temperature of the target light source type. In this embodiment, the terminal may determine in advance a mapping relationship between the color temperature of the light source and the color temperature of the display screen that enables the user to have a better experience in the laboratory environment. Based on the mapping relationship established in advance, after the color temperature of the target light source type is obtained, for example, the color temperature of the display screen corresponding to the color temperature of the target light source type can be inquired in the mapping relationship, so that the color temperature of the display screen is adjusted to the inquired color temperature of the display screen.
For example, the light source color temperature of the target light source type D50 is 4000K, and the mapping relationship between the light source color temperature and the color temperature of the display screen is 1.1 times linear mapping, which will adjust the color temperature of the display screen to 4500K. Of course, the mapping relationship between the color temperature of the light source and the color temperature of the display screen is not limited to linear mapping, and may be non-linear mapping.
It can be understood that, in the embodiment of the present disclosure, the terminal uses the signal value obtained by the multiplexing light sensor sensing the ambient light, determines the type of the light source providing the ambient light (i.e., the target light source type) according to the signal value, and adjusts the color temperature of the display screen by combining the target light source type, so that the terminal without the color temperature sensor can also implement the color temperature adjustment of the display screen. In addition, on the other hand, the scheme of the disclosure can enable the terminal equipment to obtain the color temperature of the ambient light without additionally installing a color temperature sensor to realize the adjustment of the color temperature of the display screen, thereby saving the internal space of the terminal and enabling the size of the terminal to be reduced on the premise of not reducing the functions of the terminal.
In the embodiment of the disclosure, the terminal adjusts the color temperature of the display screen by multiplexing the signal value obtained by the light sensor sensing the ambient light, so that the terminal without the color temperature sensor can also realize the color temperature adjustment of the display screen. In addition, on the other hand, the scheme of the disclosure can enable the terminal equipment to obtain the color temperature of the ambient light without additionally installing a color temperature sensor to realize the adjustment of the color temperature of the display screen, thereby saving the internal space of the terminal and enabling the size of the terminal to be reduced on the premise of not reducing the functions of the terminal.
Fig. 3 is an exemplary diagram of a color temperature adjustment method applied in a mobile phone in an embodiment of the disclosure, as shown in fig. 3, the method includes the following steps:
s101, turning on the light sensor when the mobile phone is used.
In this embodiment, turning on the light sensor, i.e. the handset, senses the ambient light with the light sensor.
And S102, acquiring data of four color channels.
In this embodiment, the signal values obtained by sensing the ambient light by the acquisition channel may be obtained based on the opened light sensor, and include data of four color channels, that is, a black signal value of a black channel, a red signal value of a red channel, a green signal value of a green channel, and a blue signal value of a blue channel.
S103, judging the target light source type of the ambient light according to different characteristics of data of each color channel under the weather condition.
In this embodiment, the target light source type of the ambient light is determined according to different characteristics of data of each color channel under the weather condition, that is, the target light source type of the current ambient light is determined based on the corresponding relationship among the weather environment, the signal value, and the light source type. In the present disclosure, data of each color channel is a signal value.
And S104, determining the type of the target light source of the current ambient light to be any one of D50, TL84, A light and H light.
In this embodiment, the mapping relationship includes the weather environment and the mapping relationship between the data value of each color channel and the light source types such as D50, TL84, a light, and H light, so that based on the current weather environment and the acquired data of the four color channels, which light source type the current ambient light specifically belongs to can be determined.
And S105, adjusting the color temperature of the mobile phone according to the target light source type of the ambient light.
In the implementation, after the target light source type of the ambient light is determined, the color temperature of the display screen of the mobile phone can be adjusted, so that the use experience of a user is improved.
It can be understood that, in the embodiment of the present disclosure, the terminal uses the signal value obtained by the multiplexing light sensor sensing the ambient light, determines the type of the light source providing the ambient light (i.e., the target light source type) according to the signal value, and adjusts the color temperature of the display screen by combining the target light source type, so that the terminal without the color temperature sensor can also implement the color temperature adjustment of the display screen. In addition, on the other hand, the scheme of the disclosure can enable the terminal equipment to obtain the color temperature of the ambient light without additionally installing a color temperature sensor to realize the adjustment of the color temperature of the display screen, thereby saving the internal space of the terminal and enabling the size of the terminal to be reduced on the premise of not reducing the functions of the terminal.
Fig. 4 is a diagram illustrating a color temperature adjusting apparatus according to an exemplary embodiment, applied to a terminal including a light sensor and a display screen, and referring to fig. 4, the apparatus includes:
the first acquisition module 101 is configured to acquire a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
a determining module 102 configured to determine a target light source type of the ambient light according to a correspondence between a signal value and a light source type;
and the adjusting module 103 is configured to adjust the color temperature of the display screen according to the target light source type.
Optionally, the adjusting module 103 is specifically configured to determine a light source color temperature of the target light source type; and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
Optionally, the signal value includes at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
Optionally, the corresponding relationship between the signal value and the light source type is a relationship between a ratio between different signal values and the light source type.
Optionally, the determining module 102 is specifically configured to determine a first ratio between different signal values of the ambient light; searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation; and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
Optionally, the determining module 102 is specifically configured to determine the target light source type according to a corresponding relationship between the current weather environment, the signal value, and the light source type.
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. 5 is a block diagram illustrating a terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 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 device 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 device 800. The 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 the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 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 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 apparatus 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.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 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.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 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 apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, 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 device 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, instructions in which, when executed by a processor of a terminal, enable the terminal to perform a color temperature adjustment method, the terminal including a light sensor and a display screen, the method comprising:
acquiring a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
determining the target light source type of the ambient light according to the corresponding relation between the signal value and the light source type;
and adjusting the color temperature of the display screen according to the type of the target light source.
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 disclosure 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 (14)

1. A color temperature adjustment method, applied to a terminal including a light sensor and a display screen, the method comprising:
acquiring a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
determining the target light source type of the ambient light according to the corresponding relation between the signal value and the light source type;
and adjusting the color temperature of the display screen according to the type of the target light source.
2. The method of claim 1, wherein said adjusting the color temperature of the display screen based on the target light source type comprises:
determining a light source color temperature of the target light source type;
and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
3. The method of claim 1, wherein the signal values comprise at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
4. The method of claim 3, wherein the correspondence between the signal values and the light source types is a relationship between a ratio between different signal values and the light source types.
5. The method of claim 4, wherein determining the target light source type of the ambient light according to the correspondence between the signal value and the light source type comprises:
determining a first ratio between different signal values of the ambient light;
searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation;
and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
6. The method according to any one of claims 1 to 5, wherein the determining the target light source type of the ambient light according to the correspondence between the signal value and the light source type comprises:
and determining the target light source type according to the corresponding relation among the current weather environment, the signal value and the light source type.
7. A color temperature adjusting apparatus, applied to a terminal including a light sensor and a display screen, the apparatus comprising:
the first acquisition module is configured to acquire a signal value obtained by sensing ambient light by an acquisition channel of the light sensor;
the determining module is configured to determine a target light source type of the ambient light according to a corresponding relation between the signal value and the light source type;
and the adjusting module is configured to adjust the color temperature of the display screen according to the type of the target light source.
8. The apparatus of claim 7,
the adjusting module is specifically configured to determine a light source color temperature of the target light source type; and adjusting the color temperature of the display screen according to the light source color temperature of the target light source type and the mapping relation between the light source color temperature and the color temperature of the display screen.
9. The apparatus of claim 7, wherein the signal value comprises at least one of:
a black signal value of the black channel;
a red signal value of the red channel;
a green signal value for the green channel;
blue signal value of blue channel.
10. The apparatus of claim 9, wherein the correspondence between the signal values and the light source types is a relationship between a ratio between different signal values and the light source types.
11. The apparatus of claim 10,
the determining module is specifically configured to determine a first ratio between different signal values of the ambient light; searching a second ratio, of which the difference with the first ratio is smaller than a preset difference threshold value, in the corresponding relation; and determining the light source type corresponding to the second ratio in the corresponding relation as the target light source type.
12. The apparatus according to any one of claims 7 to 11,
the determining module is specifically configured to determine the target light source type according to a corresponding relationship between the current weather environment, the signal value, and the light source type.
13. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the color temperature adjustment method of any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium, instructions in which, when executed by a processor of a terminal, enable the terminal to perform the color temperature adjustment method of any one of claims 1 to 6.
CN202011280013.0A 2020-11-16 2020-11-16 Color temperature adjusting method and device, terminal and storage medium Pending CN112397039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011280013.0A CN112397039A (en) 2020-11-16 2020-11-16 Color temperature adjusting method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011280013.0A CN112397039A (en) 2020-11-16 2020-11-16 Color temperature adjusting method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112397039A true CN112397039A (en) 2021-02-23

Family

ID=74600418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011280013.0A Pending CN112397039A (en) 2020-11-16 2020-11-16 Color temperature adjusting method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112397039A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616633A (en) * 2015-02-27 2015-05-13 上海天奕达电子科技有限公司 Method and device for adjusting display screen of portable terminal
CN105632413A (en) * 2016-01-11 2016-06-01 京东方科技集团股份有限公司 Backlight regulation method, adjustment device and display device
CN107731199A (en) * 2017-10-27 2018-02-23 努比亚技术有限公司 A kind of screen color temp adjusting method, terminal and computer-readable recording medium
CN108182923A (en) * 2018-01-02 2018-06-19 京东方科技集团股份有限公司 The method, display device and electronic equipment of image are shown on the display apparatus
CN109215612A (en) * 2017-06-30 2019-01-15 北京小米移动软件有限公司 Adjusting method and device that screen is shown, electronic equipment, storage medium
CN111901459A (en) * 2020-07-27 2020-11-06 北京小米移动软件有限公司 Color temperature adjusting method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616633A (en) * 2015-02-27 2015-05-13 上海天奕达电子科技有限公司 Method and device for adjusting display screen of portable terminal
CN105632413A (en) * 2016-01-11 2016-06-01 京东方科技集团股份有限公司 Backlight regulation method, adjustment device and display device
CN109215612A (en) * 2017-06-30 2019-01-15 北京小米移动软件有限公司 Adjusting method and device that screen is shown, electronic equipment, storage medium
CN107731199A (en) * 2017-10-27 2018-02-23 努比亚技术有限公司 A kind of screen color temp adjusting method, terminal and computer-readable recording medium
CN108182923A (en) * 2018-01-02 2018-06-19 京东方科技集团股份有限公司 The method, display device and electronic equipment of image are shown on the display apparatus
CN111901459A (en) * 2020-07-27 2020-11-06 北京小米移动软件有限公司 Color temperature adjusting method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107038037B (en) Display mode switching method and device
CN106843666B (en) method and device for adjusting display interface
CN105517222A (en) Light adjustment method and device
EP3477374B1 (en) Method and device for correcting color temperature of flash lamp
CN107797361B (en) Flash lamp adjusting method and device and storage medium
CN106484356A (en) Adjust the method and device of brightness of image
CN111290723A (en) Display background adjusting method, device, terminal and storage medium
CN114067003A (en) Color gamut conversion method and device, electronic equipment and storage medium
US10627996B2 (en) Method and apparatus for sorting filter options
CN111210792A (en) Method and device for determining ambient light brightness, terminal and storage medium
CN114067740B (en) Screen calibration method and device, electronic equipment and storage medium
CN111131596B (en) Screen brightness adjusting method and device
CN109005360B (en) Light supplementing method and device for shooting environment and computer readable storage medium
CN108650412B (en) Display method, display device and computer readable storage medium
EP3975548A1 (en) Photographing method and apparatus, terminal, and storage medium
CN112905141A (en) Screen display method and device and computer storage medium
CN112397039A (en) Color temperature adjusting method and device, terminal and storage medium
CN115731836A (en) Display effect control method and device of display screen, terminal equipment and medium
CN114067739B (en) Color gamut mapping method and device, electronic equipment and storage medium
WO2021147976A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN116453459A (en) Screen display method and device, readable storage medium and electronic equipment
CN111314550A (en) Display control method and device, mobile terminal and storage medium
CN108647594B (en) Information processing method and device
CN106713782B (en) A kind of method and apparatus of image taking
CN112087539A (en) Screen light adjusting method for terminal equipment and terminal equipment

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: 20210223