Screen color temperature adjustment method and device
Determining the ambient color temperature reference range through multiple color temperature sensors and acceleration sensors, solving the problem that the terminal device screen color temperature adjustment cannot adapt to environmental changes in time, and improving user experience and image authenticity.
Patent Information
- Application Number
- CN202010734503.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-27
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-07-27
AI Technical Summary
The screen color temperature adjustment method of existing terminal devices cannot be automatically adjusted in time according to environmental changes, resulting in a reduced visual experience effect.
Multiple color temperature sensors and acceleration sensors are used to obtain multi-directional color temperature data and device orientation information to determine the ambient color temperature reference range, and adjust the screen color temperature according to this range to ensure that the color temperature data is within a reasonable range and avoid jump changes.
It realizes unified color temperature adjustment between the screen and the environment, improves user's visual experience and real color restoration of terminal equipment images, and enhances the accuracy and flexibility of color temperature data acquisition.
Smart Images

Figure CN112000305B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile terminal technology, and in particular to a method and device for adjusting screen color temperature, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of smart terminal devices, more and more people are using smart terminal devices, and terminal devices play an increasingly important role in people's lives. Watching videos, reading e-books, browsing web pages, playing electronic games, etc. are inseparable from the operation of the terminal device screen. The terminal device can be a mobile phone, tablet computer, etc. For users who often use terminal devices for entertainment activities, the brightness and color temperature of the terminal display screen have the most direct impact on users.
[0003] Color temperature is a temperature measurement method. The concept of color temperature is based on a fictitious black object that emits different colors of light when heated to different temperatures, and the object appears in different colors. Different color temperatures also directly affect human physiology and psychology. For example, high color temperature can improve attention and is suitable for reading and working; low color temperature with a yellowish tint gives people a warm and soft feeling, which can soothe the mood and is suitable for relaxation. In the display, the higher the color temperature value, the bluer the color is, which belongs to the cold tone, while the lower the color temperature value, the redder the color is, which belongs to the warm tone. In the display process of terminal equipment, color temperature is a very important factor. A comfortable color temperature can make the screen consistent with the surrounding environment, so that users can effectively reduce visual fatigue during use, and fit the real color of the image, bringing a better viewing experience. Therefore, users need to adjust the color temperature of the screen during use.
[0004] At present, the screen color temperature of terminal devices is usually adjusted manually by users or by setting a specific time. When the mobile terminal is in multiple different environmental conditions in a short period of time, the screen color temperature cannot be adjusted in time, thereby reducing the visual experience of the mobile terminal. It can be seen that the current screen color temperature adjustment method needs to be improved in terms of timely and automatic adjustment according to the current environment. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a screen color temperature adjustment method and device, an electronic device and a computer-readable storage medium.
[0006] According to a first aspect of an embodiment of the present disclosure, a screen color temperature adjustment method is provided, which is applied to a terminal device, wherein the terminal device includes a screen and a color temperature sensor, and the method includes: determining color temperature data through the color temperature sensor; determining color temperature adjustment data based on the color temperature data and according to an ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range; and adjusting the color temperature of the screen based on the color temperature adjustment data.
[0007] In one embodiment, the terminal device includes multiple color temperature sensors respectively arranged in different directions; determining color temperature data through the color temperature sensors includes: obtaining sub-color temperature data of corresponding directions through the multiple color temperature sensors respectively; and determining the color temperature data based on all the sub-color temperature data.
[0008] In one embodiment, the terminal device further includes an acceleration sensor; the method further includes: acquiring an ambient color temperature reference range through the acceleration sensor and the color temperature sensor.
[0009] In one embodiment, an ambient color temperature reference range is obtained through an acceleration sensor and a color temperature sensor, including: confirming multiple orientations of the terminal device through the acceleration sensor, and obtaining first color temperature data corresponding to each orientation through the color temperature sensor; and determining the ambient color temperature reference range based on all the first color temperature data.
[0010] In one embodiment, determining the ambient color temperature reference range based on all the first color temperature data includes: determining the upper limit value of the ambient color temperature reference range based on the maximum value of all the first color temperature data; and determining the lower limit value of the ambient color temperature reference range based on the upper limit value.
[0011] In one embodiment, determining the ambient color temperature reference range according to all the first color temperature data includes: recording user preference settings and obtaining user preference data; and determining the ambient color temperature reference range according to all the first color temperature data and the user preference data.
[0012] In one embodiment, the method further includes: obtaining a current location area; if the current location area is indoors, obtaining an ambient color temperature reference range of the current location area through an acceleration sensor and a color temperature sensor.
[0013] In one embodiment, the method further includes: setting an adjustment threshold; collecting color temperature data at a fixed frequency and comparing the color temperature data collected at the last moment; if the change value of the color temperature data is greater than the adjustment threshold, adjusting the screen color temperature.
[0014] According to a second aspect of an embodiment of the present disclosure, a screen color temperature adjustment device is provided, which is applied to a terminal device, wherein the terminal device includes a screen and a color temperature sensor, and the device includes: a data acquisition unit, which is used to determine color temperature data through the color temperature sensor; a color temperature calculation unit, which is used to determine color temperature adjustment data based on the color temperature data and according to an ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range; and an adjustment unit, which is used to adjust the color temperature of the screen based on the color temperature adjustment data.
[0015] In one embodiment, the terminal device includes multiple color temperature sensors respectively arranged in different directions; the data acquisition unit includes: a color temperature acquisition unit, used to obtain sub-color temperature data of corresponding directions through multiple color temperature sensors; a color temperature determination unit, used to determine the color temperature data based on all the sub-color temperature data.
[0016] In one embodiment, the terminal device further includes an acceleration sensor; the apparatus further includes: an ambient color temperature range calculation unit, configured to obtain an ambient color temperature reference range through the acceleration sensor and the color temperature sensor.
[0017] In one embodiment, the ambient color temperature range calculation unit includes: a directional color temperature acquisition unit, which is used to confirm multiple orientations of the terminal device through an acceleration sensor, and obtain first color temperature data corresponding to each orientation through a color temperature sensor; a range calculation unit, which is used to determine the ambient color temperature reference range based on all the first color temperature data.
[0018] In one embodiment, the range calculation unit includes: an upper limit determination unit, used to determine the upper limit value of the ambient color temperature reference range according to the maximum value of all the first color temperature data; and a lower limit determination unit, used to determine the lower limit value of the ambient color temperature reference range according to the upper limit value.
[0019] In one embodiment, the range calculation unit further includes: recording user preference settings and acquiring user preference data; and determining an ambient color temperature reference range according to all first color temperature data and user preference data.
[0020] In one embodiment, the device further includes: a position acquisition unit for acquiring a current position area; and a regional color temperature range calculation unit for acquiring an ambient color temperature reference range of the current position area through an acceleration sensor and a color temperature sensor when the current position area is indoors.
[0021] In one embodiment, the device also includes: a threshold setting unit, used to set an adjustment threshold; a color temperature comparison unit, used to collect color temperature data at a fixed frequency and compare the color temperature data collected at the previous moment; and an adjustment judgment unit, used to adjust the screen color temperature when the change value of the color temperature data is greater than the adjustment threshold.
[0022] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the screen color temperature adjustment method of the first aspect.
[0023] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, storing instructions, and when the instructions are executed by a processor, the screen color temperature adjustment method of the first aspect is executed.
[0024] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by collecting data in real time through multiple color temperature sensors, the current ambient color temperature can be obtained, so that the screen is unified with the surrounding environment. By setting the ambient color temperature reference range, the ambient color temperature can be effectively homogenized, and then a stable adjustment space is determined, so that the screen color temperature will not produce abrupt changes in color temperature value due to abnormal fluctuations in color temperature data when adjusting. The flexibility in the process of determining the ambient color temperature value and the accuracy of color temperature data collection are effectively improved, and the user's viewing experience and the restoration of the true color of the terminal device image are improved.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] 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.
[0027] Figure 1 is a flow chart of a method for adjusting screen color temperature according to an exemplary embodiment;
[0028] Figure 2 is a flow chart of another method for adjusting screen color temperature according to an exemplary embodiment;
[0029] Figure 3 is a flow chart of another method for adjusting screen color temperature according to an exemplary embodiment;
[0030] Figure 4 is a flow chart of another method for adjusting screen color temperature according to an exemplary embodiment;
[0031] Figure 5 is a schematic block diagram of a device for adjusting screen color temperature according to an exemplary embodiment;
[0032] Figure 6 is a schematic block diagram of another device for adjusting screen color temperature according to an exemplary embodiment;
[0033] Figure 7 is a schematic block diagram of another device for adjusting screen color temperature according to an exemplary embodiment;
[0034] Figure 8 It is a schematic block diagram of a device according to an exemplary embodiment.
[0035] Fig. 9 is a schematic block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0037] When the characteristics of light in the external environment change, users will have different feelings about the color temperature of the screen. For example, when the screen color temperature is cold, users will feel more glare in a dark environment at night than in an environment with strong sunlight. Therefore, in order to meet the actual needs of users, it is necessary to obtain light information in different environments as a reference for adjusting the screen color temperature.
[0038] In some current technologies, the color temperature of some terminal devices still needs to be adjusted manually. This solution is simple and unintelligent. It only adjusts the color temperature in different time periods and cannot interact with the surrounding environment. Some terminals use color temperature sensors to sense the color temperature of ambient light. However, when the color temperature sensor is used as the basis for adjusting the color temperature of the screen, the color temperature value often jumps due to sensor defects and abnormal fluctuations in the ambient color temperature during the use of scene changes, affecting the user's visual experience. The color temperature sensor is often set in one direction of the terminal device, such as the back of the mobile phone. It is easily affected by special lighting conditions such as strong light and shadows in a single direction, resulting in a deviation between the obtained ambient color temperature value and the actual environment, and the screen is adjusted to an inappropriate color temperature, causing users to feel obvious discomfort when watching.
[0039] In order to solve the above problems, the present invention provides a screen color temperature adjustment method 10. Figure 1 The screen color temperature adjustment method 10 is applied to a terminal device, the terminal device includes a screen and a color temperature sensor, and the screen color temperature adjustment method 10 includes steps S11 to S13, which are described in detail below:
[0040] Step S11, determining color temperature data through a color temperature sensor.
[0041] When the terminal device is in the screen-on state, the ambient light of the current environment is obtained through the color temperature sensor, and the color temperature data is obtained according to the ambient light value; wherein the color temperature sensor can be an infrared-based color temperature sensor or other sensor that can measure color temperature, and the present disclosure does not limit this. After receiving the ambient light, the color temperature sensor performs spectroscopic processing on the ambient light to obtain the infrared ratio of the ambient light; and calculates the ambient color temperature value of the ambient light according to the infrared ratio.
[0042] In one embodiment, the terminal device includes multiple color temperature sensors respectively arranged in different directions; determining color temperature data through the color temperature sensors includes: obtaining sub-color temperature data of corresponding directions through the multiple color temperature sensors respectively; and determining the color temperature data based on all the sub-color temperature data.
[0043] By setting up multiple color temperature sensors, we can avoid the problem that when using a single sensor, the collected ambient color temperature data is not accurate enough and cannot reflect the overall color temperature due to sensor defects and large changes in ambient color temperature in the same scene. This helps to quickly collect color temperature data in multiple directions, making the color temperature data closer to the current real environment.
[0044] Among them, the color temperature sensor can be set on the back and front of the terminal device, and collect sub-color temperature data in the corresponding direction at the same time. After obtaining all the sub-color temperature data, the color temperature data in different directions are weighted, and the color temperature data on the back of the device has a higher weight. The user's line of sight when watching the screen is consistent with the environmental direction of the color temperature sensor on the back. When calculating the overall color temperature data, the color temperature data on the back is given priority, and combined with the color temperature data on the front, a more reasonable ambient color temperature value can be obtained.
[0045] Step S12, determining color temperature adjustment data based on the color temperature data and according to the ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range.
[0046] In the process of adjusting the color temperature, especially when the color temperature in the current environment is very different, the color temperature data is prone to change in the same scene due to different screen orientations. When the screen color temperature changes significantly, it will cause discomfort to the user when watching the screen. In order to avoid color temperature fluctuations, the present disclosure sets an ambient color temperature reference range, maps the range with the collected real-time color temperature data, and ensures that all values of the changes caused by the color temperature data in the same environment can be mapped within the current ambient color temperature reference range, so that the color temperature adjustment in the current scene is more gentle and meets the user's eye needs.
[0047] Step S13, adjusting the color temperature of the screen based on the color temperature adjustment data.
[0048] Among them, the color temperature data can be mapped to the color temperature adjustment data through calculation. There is a preset correspondence between different color temperature data and different color temperature parameters, which is realized through mapping calculation. For example, the stronger the current color temperature, the lower the corresponding warmth level of the light environment, and the lower the corresponding color tone adjustment data, while the higher the current color temperature, the higher the corresponding warmth level of the dark environment, and the higher the corresponding color tone adjustment data.
[0049] like Figure 2 As shown, the present disclosure also provides another screen color temperature adjustment method 20, see Figure 3The screen color temperature adjustment method 20 is applied to a terminal device. The terminal device includes a screen and a color temperature sensor, and also includes an acceleration sensor. The screen color temperature adjustment method 20 includes steps S21 to S24, which are described in detail below:
[0050] Step S21, determining color temperature data through a color temperature sensor.
[0051] As described in the above embodiment, when the terminal device is in the screen-on state, the ambient light of the current environment is obtained through the color temperature sensor, and the color temperature data is obtained according to the ambient light value;
[0052] Step S22: Acquire the ambient color temperature reference range through the acceleration sensor and the color temperature sensor.
[0053] The accelerometer can measure the acceleration caused by gravity and calculate the tilt angle of the device relative to the horizontal plane. The accelerometer can sense the current direction of movement of the device, making it easier to collect different orientation information of the device when picking up or moving the device.
[0054] In one embodiment, if Figure 3 As shown, in step S22, obtaining the ambient color temperature reference range through the acceleration sensor and the color temperature sensor includes: step S221, confirming multiple orientations of the terminal device through the acceleration sensor, and obtaining the first color temperature data corresponding to each orientation through the color temperature sensor; step S222, determining the ambient color temperature reference range based on all the first color temperature data.
[0055] The scene change or use process is often accompanied by the movement of the device, and the acceleration sensor can monitor the direction of the device's movement. Combined with the color temperature sensor, it can record the color temperature data in the current direction. The combination of the acceleration sensor and the color temperature sensor can effectively obtain multi-directional data and obtain the overall color temperature data in the current environment that is closer to the real light. The multi-directional ambient color temperature data can be used to obtain a reasonable ambient color temperature reference range, avoiding data collection deviations caused by abnormal color temperature in a single direction.
[0056] In one embodiment, in step S222, the ambient color temperature reference range is determined based on all the first color temperature data, including: determining the upper limit of the ambient color temperature reference range based on the maximum value of all the first color temperature data; and determining the lower limit of the ambient color temperature reference range based on the upper limit. Usually, the maximum value of the data in the ambient color temperature can better reflect the current color temperature environment, and it is set as the upper limit. According to the preset range, the lower limit of the ambient color temperature is set so that the ambient color temperature has a reasonable and accurate range. When an abnormal color temperature change is detected, the corresponding data is mapped to the value in the ambient color temperature reference range, and the color temperature data is adjusted based on the mapped value.
[0057] In one embodiment, determining the ambient color temperature reference range according to all the first color temperature data in step S222 includes: recording user preference settings and obtaining user preference data; and determining the ambient color temperature reference range according to all the first color temperature data and the user preference data.
[0058] During the color temperature adjustment process, due to the preferences of some users, the screen color temperature will be manually adjusted according to their own perceptions. The corresponding environmental data will be recorded during each adjustment process. When the current environment is close to the environment when the user adjusted, the ambient color temperature reference range will be set based on the current environmental data and user preference data. This is more in line with the user's usage habits, avoids multiple manual adjustments during user use, and improves the user experience.
[0059] In one embodiment, if Figure 4 As shown, step S22 also includes: step S223 obtaining the current location area; step S224 if the current location area is indoors, obtaining the ambient color temperature reference range of the current location area through the acceleration sensor and the color temperature sensor.
[0060] When a user uses a terminal device indoors, the use environment is relatively stable and the use time is longer than that in an outdoor environment. Therefore, in this embodiment, when it is detected that the current location area is indoors, the color temperature is adjusted by combining an acceleration sensor and a color temperature sensor. On the one hand, when the device is outdoors, the outdoor lighting conditions are relatively stable, the light intensity is easier to detect, and the ambient color temperature value does not change significantly. On the other hand, when the user is outdoors, frequent scene switching and movement may occur, which will cause the acceleration sensor to continue working and consume more power. Therefore, in this embodiment, only when it is detected that the current location area is indoors, the ambient color temperature reference range of the current location area is obtained.
[0061] In one embodiment, the current location area is obtained in step S223, and further includes: confirming the current location area through a positioning system and / or an acceleration sensor of the terminal device. The location area can be obtained by using a positioning system to determine whether the current user is indoors, or by determining whether the acceleration sensor is in continuous motion to determine whether the user is outdoors. The present disclosure is not limited to this method for obtaining the location area.
[0062] Step S23, determining color temperature adjustment data based on the color temperature data and according to the ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range.
[0063] By setting the ambient color temperature reference range, the range is mapped with the collected real-time color temperature data to ensure that all values of the changes caused by the color temperature data in the same environment can be mapped within the current ambient color temperature reference range.
[0064] Step S24, adjusting the color temperature of the screen based on the color temperature adjustment data
[0065] The color temperature adjustment data is obtained according to the environment, and the color temperature value of the terminal device's screen is adjusted, which improves the flexibility and accuracy of determining the ambient color temperature value, enhances the user's viewing experience and the true color restoration of the terminal device's images.
[0066] In one embodiment, the method further includes: setting an adjustment threshold; collecting color temperature data at a fixed frequency or by determining whether the device is moving, and comparing the color temperature data collected at the last moment; if the change value of the color temperature data is greater than the adjustment threshold, adjusting the color temperature of the screen. In order to avoid unnecessary power consumption caused by too frequent adjustment of the screen color temperature, the method of setting an adjustment threshold is used in this embodiment to control whether the screen needs to adjust the color temperature. The color temperature data can be re-acquired by fixing the frequency or determining whether the device is moving, and compared with the last collected data, to further determine whether the color temperature environment has changed, thereby avoiding frequent detection and adjustment of the color temperature and saving power of the terminal device.
[0067] Some methods or steps in the above embodiments correspond to some methods or steps in the embodiment of the aforementioned screen color temperature adjustment method 10. The specific functional effects have been described and will not be repeated here.
[0068] Based on the same inventive concept, Figure 5 A screen color temperature adjustment device 100 is shown. Figure 5 As shown, the device is applied to a terminal device, the terminal device includes a screen and a color temperature sensor, and the device includes: a data acquisition unit 110, which is used to determine the color temperature data through the color temperature sensor; a color temperature calculation unit 120, which is used to determine the color temperature adjustment data based on the color temperature data and according to the ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range; an adjustment unit 130, which is used to adjust the color temperature of the screen based on the color temperature adjustment data
[0069] In one embodiment, the terminal device includes multiple color temperature sensors respectively arranged in different directions; the data acquisition unit 110 includes: a color temperature acquisition unit, used to obtain sub-color temperature data of corresponding directions through multiple color temperature sensors; a color temperature determination unit, used to determine the color temperature data based on all the sub-color temperature data.
[0070] In one embodiment, the terminal device further includes an acceleration sensor; Figure 6 As shown, the device further includes: an ambient color temperature range calculation unit 140, which is used to obtain an ambient color temperature reference range through an acceleration sensor and a color temperature sensor.
[0071] In one embodiment, the ambient color temperature range calculation unit 140 includes: a directional color temperature acquisition unit, used to confirm multiple orientations of the terminal device through an acceleration sensor, and obtain first color temperature data corresponding to each orientation through a color temperature sensor; a range calculation unit, used to determine the ambient color temperature reference range based on all the first color temperature data.
[0072] In one embodiment, the range calculation unit includes: an upper limit determination unit, used to determine the upper limit value of the ambient color temperature reference range according to the maximum value of all the first color temperature data; and a lower limit determination unit, used to determine the lower limit value of the ambient color temperature reference range according to the upper limit value.
[0073] In one embodiment, the range calculation unit further includes: recording user preference settings and acquiring user preference data; and determining an ambient color temperature reference range according to all first color temperature data and user preference data.
[0074] In one embodiment, if Figure 7 As shown, the device also includes: a position acquisition unit 150, which is used to obtain the current position area; and a regional color temperature range calculation unit, which is used to obtain the ambient color temperature reference range of the current position area through an acceleration sensor and a color temperature sensor when the current position area is indoors.
[0075] In one embodiment, the location acquisition unit 150 includes: confirming the current location area through a positioning system and / or an acceleration sensor of the terminal device.
[0076] In one embodiment, the device also includes: a threshold setting unit, used to set an adjustment threshold; a color temperature comparison unit, used to collect color temperature data at a fixed frequency and compare the color temperature data collected at the previous moment; and an adjustment judgment unit, used to adjust the screen color temperature when the change value of the color temperature data is greater than the adjustment threshold.
[0077] Figure 8 2 is a schematic block diagram of an apparatus according to any of the above embodiments, shown in accordance with an exemplary embodiment. For example, the apparatus 200 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, etc.
[0078] Reference Figure 8 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0079] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0080] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0081] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0082] The multimedia component 208 includes a screen that provides an output interface between the device 200 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0083] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0084] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as 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.
[0085] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0086] The communication component 216 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 200 can 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 216 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 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0087] In an exemplary embodiment, the apparatus 200 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0088] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0089] Fig. 9 3 is a block diagram of an electronic device 300 according to an exemplary embodiment. For example, the device 300 may be provided as a server. Fig. 9 , the apparatus 300 includes a processing component 322, which further includes one or more processors, and a memory resource represented by a memory 342 for storing instructions, such as an application, that can be executed by the processing component 322. The application stored in the memory 342 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 322 is configured to execute the instructions to perform the above method.
[0090] The device 300 may also include a power supply component 326 configured to perform power management of the device 300, a wired or wireless network interface 350 configured to connect the device 300 to a network, and an input / output (I / O) interface 358. The device 300 may operate based on an operating system stored in the memory 342, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0091] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0092] It should be understood that the present invention is not limited to the exact construction that has been 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 invention is limited only by the appended claims.
Claims
1. A screen color temperature adjustment method, characterized in that: Applied to a terminal device, the terminal device includes a screen, a color temperature sensor, and an acceleration sensor, and the method includes: Determining color temperature data by means of the color temperature sensor; Acquire an ambient color temperature reference range through the acceleration sensor and the color temperature sensor, wherein the ambient color temperature reference range has a mapping relationship with the color temperature data, and the ambient color temperature reference range is also determined based on user preference data; Based on the color temperature data and according to an ambient color temperature reference range, determining color temperature adjustment data, wherein the color temperature adjustment data is within the ambient color temperature reference range; and based on the color temperature adjustment data, adjusting the color temperature of the screen; The step of obtaining the ambient color temperature reference range by using the acceleration sensor and the color temperature sensor includes: Confirming multiple orientations of the terminal device through the acceleration sensor, and acquiring first color temperature data corresponding to each orientation through the color temperature sensor; The ambient color temperature reference range is determined according to all the first color temperature data.
2. The screen color temperature adjustment method according to claim 1, characterized in that: The terminal device includes a plurality of color temperature sensors respectively arranged in different directions; Determining color temperature data by using the color temperature sensor includes: Using the plurality of color temperature sensors, respectively acquiring sub-color temperature data in corresponding directions; The color temperature data is determined based on all the sub-color temperature data.
3. The screen color temperature adjustment method according to claim 1, characterized in that: The step of determining the ambient color temperature reference range according to all the first color temperature data includes: Determining an upper limit value of the ambient color temperature reference range according to a maximum value of all the first color temperature data; According to the upper limit value, a lower limit value of the ambient color temperature reference range is determined.
4. The screen color temperature adjustment method according to claim 1, characterized in that: The step of determining the ambient color temperature reference range according to all the first color temperature data includes: Record user preference settings and obtain user preference data; The ambient color temperature reference range is determined according to all of the first color temperature data and the user preference data.
5. The screen color temperature adjustment method according to claim 1, characterized in that: The method further comprises: Get the current location area; If the current location area is indoors, the ambient color temperature reference range of the current location area is acquired through the acceleration sensor and the color temperature sensor.
6. The screen color temperature adjustment method according to claim 1, characterized in that: The method further comprises: Set the regulation threshold; Collect color temperature data at a fixed frequency and compare the color temperature data collected at the previous moment; If the change value of the color temperature data is greater than the adjustment threshold, the screen color temperature is adjusted.
7. A screen color temperature adjustment device, characterized in that: Applied to a terminal device, the terminal device includes a screen, a color temperature sensor, and an acceleration sensor, and the device includes: A data acquisition unit, used to determine color temperature data through the color temperature sensor; an ambient color temperature range calculation unit, configured to obtain an ambient color temperature reference range through the acceleration sensor and the color temperature sensor, wherein the ambient color temperature reference range has a mapping relationship with the color temperature data, and the ambient color temperature reference range is also determined based on user preference data; A color temperature calculation unit, configured to determine color temperature adjustment data based on the color temperature data and according to an ambient color temperature reference range, wherein the color temperature adjustment data is within the ambient color temperature reference range; An adjusting unit, configured to adjust the color temperature of the screen based on the color temperature adjustment data; The ambient color temperature range calculation unit comprises: a directional color temperature acquisition unit, configured to confirm multiple directions of the terminal device through the acceleration sensor, and acquire first color temperature data corresponding to each direction through the color temperature sensor; A range calculation unit is used to determine the ambient color temperature reference range according to all the first color temperature data.
8. The screen color temperature adjustment device according to claim 7, characterized in that: The terminal device includes a plurality of color temperature sensors respectively arranged in different directions; The data acquisition unit comprises: A color temperature acquisition unit, used to respectively acquire sub-color temperature data of corresponding directions through a plurality of the color temperature sensors; A color temperature determining unit is used to determine the color temperature data based on all the sub-color temperature data.
9. The screen color temperature adjustment device according to claim 7, characterized in that: The range calculation unit comprises: an upper limit determination unit, configured to determine an upper limit value of the ambient color temperature reference range according to a maximum value of all the first color temperature data; A lower limit determination unit is used to determine a lower limit value of the ambient color temperature reference range according to the upper limit value.
10. The screen color temperature adjustment device according to claim 7, characterized in that: The range calculation unit also includes: Record user preference settings and obtain user preference data; The ambient color temperature reference range is determined according to all of the first color temperature data and the user preference data.
11. The screen color temperature adjustment device according to claim 7, characterized in that: The device also includes: A location acquisition unit, used to acquire the current location area; The regional color temperature range calculation unit is used to obtain the ambient color temperature reference range of the current location area through the acceleration sensor and the color temperature sensor when the current location area is indoors.
12. The screen color temperature adjustment device according to claim 7, characterized in that: The device also includes: A threshold setting unit, used for setting an adjustment threshold; A color temperature comparison unit, used to collect color temperature data at a fixed frequency and compare the color temperature data collected at the previous moment; The adjustment judgment unit is used to adjust the screen color temperature when the change value of the color temperature data is greater than the adjustment threshold.
13. An electronic device, characterized in that: include: A memory for storing instructions; as well as A processor, configured to call the instructions stored in the memory to execute the screen color temperature adjustment method as described in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed by the processor, the screen color temperature adjustment method as described in any one of claims 1 to 6 is executed.