CN111433734A - Method and terminal for adjusting color temperature of screen - Google Patents

Method and terminal for adjusting color temperature of screen Download PDF

Info

Publication number
CN111433734A
CN111433734A CN201880078336.6A CN201880078336A CN111433734A CN 111433734 A CN111433734 A CN 111433734A CN 201880078336 A CN201880078336 A CN 201880078336A CN 111433734 A CN111433734 A CN 111433734A
Authority
CN
China
Prior art keywords
color temperature
value
terminal
display interface
text content
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.)
Granted
Application number
CN201880078336.6A
Other languages
Chinese (zh)
Other versions
CN111433734B (en
Inventor
罗红磊
刘宏亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN111433734A publication Critical patent/CN111433734A/en
Application granted granted Critical
Publication of CN111433734B publication Critical patent/CN111433734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a terminal for adjusting screen color temperature, relates to the field of terminals, and can intelligently adjust the screen color temperature and improve the experience of a user in reading. The method comprises the following steps: the terminal displays a first display interface containing text content; the terminal acquires a first emotion temperature ET value of the text content, wherein the first ET value is used for reflecting emotion colors conveyed by the text content; the terminal acquires a first color temperature corresponding to the first ET value according to a preset corresponding relation between the ET value and the color temperature value, wherein the first color temperature is consistent with the emotional color conveyed by the first ET value; and the terminal adjusts the screen color temperature of the first display interface to the first color temperature.

Description

Method and terminal for adjusting color temperature of screen Technical Field
The application relates to the field of terminals, in particular to a method and a terminal for adjusting color temperature of a screen.
Background
Color temperature (color temperature) is a unit of measure indicating that a color component is contained in a light ray, and has a unit of "K" (kelvin). Theoretically, color temperature refers to the color that an absolute black body would appear after warming from absolute zero (-273 ℃). After being heated, the absolute black body gradually turns from black to red, turns yellow and becomes white, and finally emits blue light. When heated to a certain temperature, the spectral components contained in the light emitted by an absolute black body are referred to as the color temperature at that temperature.
At present, screens of many display devices support a function of adjusting color temperature. For example, the user may manually adjust the color temperature of the screen to a warm tone (e.g., 3300K or less) or a cool tone (e.g., 5300K or more). For another example, some mobile phones can automatically adjust the color temperature of the screen according to the current ambient light, so that the content displayed by the mobile phone in different environments is more suitable for human eyes, and the mobile phone looks more comfortable and natural visually.
However, different users have different preferences for screen color temperature, and the same user has different preferences for screen color temperature in different application scenes, so that the conventional method for adjusting screen color temperature depending on the change of ambient light is single, and the screen color temperature cannot meet the requirements of different users.
Disclosure of Invention
The embodiment of the application provides a method and a terminal for adjusting screen color temperature, which can intelligently adjust the screen color temperature and improve the experience of a user in reading.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for adjusting a color temperature of a screen, including: the terminal displays a first display interface containing text content; the terminal acquires a first ET value of the text content, wherein the first ET value can reflect the emotional color conveyed by the text content; because the cognition of the user on the emotional colors has strong correlation with the colors, the terminal can acquire a first color temperature corresponding to the first ET value according to the corresponding relation between the preset ET value and the color temperature value, and the first color temperature is consistent with the emotional colors transmitted by the first ET value; therefore, after the terminal adjusts the screen color temperature of the first display interface to the first color temperature, the screen color temperature of the terminal can correspond to the emotional color conveyed by the currently displayed text content, so that the user can obtain an immersive experience in the process of reading the text.
In one possible design method, the terminal displays a first display interface containing text content, and the method includes: and the terminal displays the first display interface containing the text content according to the second color temperature (the second color temperature is different from the first color temperature), namely the color temperature of the first display interface is changed in the display process.
In a possible design method, the obtaining, by the terminal, the first ET value of the text content includes: the terminal acquires N ET items (N is an integer larger than 0) associated with the text content, wherein the N ET items can reflect the emotional colors conveyed by the text content; the terminal acquires the score of each ET project in the N ET projects; and the terminal obtains the first ET value of the text content according to the score of each ET item in the N ET items, so that the emotional color of the whole text content is reflected.
In a possible design method, the obtaining, by the terminal, a score of each ET item of the N ET items includes: the terminal acquires the score of each ET project according to the keywords or semantics in the ET project; the ET item reflects a more cool and tense emotional color as the score of the ET item is higher, and reflects a more warm and relaxed emotional color as the score of the ET item is lower.
In a possible design method, the terminal obtains a first ET value of the text content according to a score of each ET item in the N ET items, including: the terminal calculates a first ET value of the text content according to a preset formula and the score of each ET item in the N ET items; when the first ET value is larger, the emotional color reflected by the text content is more favorable to cool and tense; when the first ET value is smaller, the emotional color reflected by the text content is more biased to be warm and relaxed.
Illustratively, the ET item includes at least one of: a name corresponding to the textual content, a chapter title corresponding to the textual content, a category corresponding to the textual content, or a key phrase in the textual content.
In a possible design method, when the first ET value is larger, the first color temperature value corresponding to the first ET value is larger; when the first ET value is smaller, the first color temperature value corresponding to the first ET value is smaller, so that the atmosphere corresponding to the emotional color of the text content is created.
In a possible design method, after the terminal obtains a first color temperature corresponding to a first ET value according to a preset correspondence between the ET value and the color temperature value, the method further includes: the terminal acquires the ambient light intensity of the current ambient light; when the first color temperature is greater than a first preset color temperature value and the ambient light intensity is less than a first preset light intensity value, the terminal corrects the first color temperature into a first corrected color temperature which is less than the first color temperature, so that stimulation of a screen light source to human eyes is reduced; when the first color temperature is smaller than the second preset color temperature value and the ambient light intensity is larger than the second preset light intensity value, the terminal corrects the first color temperature into a second corrected color temperature, and the second corrected color temperature is larger than the first color temperature, so that a user can clearly see text contents displayed in a screen under strong light.
In a possible design method, after the terminal obtains a first color temperature corresponding to a first ET value according to a preset correspondence between the ET value and the color temperature value, the method further includes: the terminal displays candidate color temperature options in a first display interface, wherein the candidate color temperature options comprise a first color temperature; wherein, the terminal is with the screen color temperature adjustment of first display interface to first color temperature, includes: and responding to the operation that the user selects the first color temperature in the candidate color temperature options, and adjusting the screen color temperature of the first display interface to the first color temperature by the terminal.
In one possible design method, after the terminal adjusts the screen color temperature of the first display interface to the first color temperature, the method further includes: and the terminal displays M continuous display interfaces with the first display interface at the first color temperature, wherein M is an integer larger than 0.
The M display interfaces and the first display interface belong to the same application; or the text content in the M display interfaces and the text content in the first display interface belong to the same article.
In one possible design method, after the terminal displays the first display interface containing the text content, the method further includes: the terminal predicts the screen color temperature of a second display interface to be a third color temperature, the second display interface is the next display interface of the first display interface, and the third color temperature is the same as or different from the first color temperature; the terminal displays the second display interface according to the third color temperature, so that the phenomenon of jumping among different screen color temperatures cannot occur in the display process of the second display interface.
In one possible design method, the terminal predicts the screen color temperature of the second display interface as a third color temperature, and includes: the terminal acquires a second ET value of a second display interface, wherein the second ET value is used for reflecting the emotional color conveyed by the text content in the second display interface; and the terminal acquires a third color temperature corresponding to the second ET value according to the preset corresponding relation between the ET value and the color temperature value, and the third color temperature is consistent with the emotional color conveyed by the second ET value.
In a second aspect, the present application provides a display method, including: the method comprises the steps that a terminal obtains a first ET value of a first display interface to be displayed, wherein the first ET value is used for reflecting emotional colors conveyed by text contents in the first display interface; the terminal acquires a first color temperature corresponding to the first ET value according to the corresponding relation between the preset ET value and the color temperature value, wherein the first color temperature is consistent with the emotional color conveyed by the first ET value; the terminal displays the first display interface at the first color temperature, so that the phenomenon of jumping among different screen color temperatures cannot occur in the display process of the second display interface. For the method for the terminal to obtain the first ET value of the first display interface and the first color temperature corresponding to the first ET value, reference may be made to the related description in the first aspect, and details are not repeated here.
In a third aspect, the present application provides a terminal, including a display unit, an obtaining unit, and an adjusting unit, where the display unit is configured to: displaying a first display interface containing text content; the acquisition unit is used for: acquiring a first emotion temperature ET value of the text content, wherein the first ET value is used for reflecting emotion colors conveyed by the text content; acquiring a first color temperature corresponding to the first ET value according to the corresponding relation between the preset ET value and the color temperature value, wherein the first color temperature is consistent with the emotional color conveyed by the first ET value; the adjusting unit is used for: and adjusting the screen color temperature of the first display interface to a first color temperature.
In one possible design method, the display unit is specifically configured to: and displaying a first display interface containing the text content according to a second color temperature, wherein the second color temperature is different from the first color temperature.
In a possible design method, the obtaining unit is specifically configured to: acquiring N ET items associated with the text content, wherein the N ET items can reflect emotional colors conveyed by the text content, and N is an integer greater than 0; obtaining the score of each ET project in the N ET projects; and obtaining a first ET value of the text content according to the score of each ET item in the N ET items.
In a possible design method, the obtaining unit is specifically configured to: obtaining the score of each ET project according to the keywords or semantics in the ET project; the ET item reflects a more cool and tense emotional color as the score of the ET item is higher, and reflects a more warm and relaxed emotional color as the score of the ET item is lower.
In a possible design method, the obtaining unit is specifically configured to: calculating a first ET value of the text content according to a preset formula and the score of each ET item in the N ET items; when the first ET value is larger, the emotional color reflected by the text content is more favorable to cool and tense; when the first ET value is smaller, the emotional color reflected by the text content is more biased to be warm and relaxed.
In a possible design method, the obtaining unit is further configured to: acquiring the ambient light intensity of the current ambient light; the adjusting unit is further configured to: when the first color temperature is greater than a first preset color temperature value and the ambient light intensity is less than a first preset light intensity value, correcting the first color temperature into a first corrected color temperature, wherein the first corrected color temperature is less than the first color temperature; and when the first color temperature is less than a second preset color temperature value and the ambient light intensity is greater than a second preset light intensity value, correcting the first color temperature into a second corrected color temperature, wherein the second corrected color temperature is greater than the first color temperature.
In one possible design approach, the display unit is further configured to: displaying candidate color temperature options in a first display interface, wherein the candidate color temperature options comprise a first color temperature; and adjusting the screen color temperature of the first display interface to the first color temperature in response to the operation of selecting the first color temperature in the candidate color temperature option by the user.
In one possible design approach, the display unit is further configured to: and displaying M continuous display interfaces with the first display interface according to the first color temperature, wherein M is an integer larger than 0. The M display interfaces and the first display interface belong to the same application; or the text content in the M display interfaces and the text content in the first display interface belong to the same article.
In a possible design method, the terminal further includes a prediction unit, configured to: predicting the screen color temperature of a second display interface to be a third color temperature, wherein the second display interface is the next display interface of the first display interface, and the third color temperature is the same as or different from the first color temperature; the display unit is further configured to: and displaying the second display interface according to the third color temperature.
In a possible design method, the prediction unit is specifically configured to: acquiring a second ET value of a second display interface, wherein the second ET value is used for reflecting the emotional color conveyed by the text content in the second display interface; and acquiring a third color temperature corresponding to the second ET value according to the preset corresponding relation between the ET value and the color temperature value, wherein the third color temperature is consistent with the emotional color conveyed by the second ET value.
In a fourth aspect, the present application provides a terminal, comprising: a touch screen, one or more processors, memory, and one or more programs; wherein, the processor is coupled with the memory, the one or more programs are stored in the memory, and when the terminal runs, the processor executes the one or more programs stored in the memory, so that the terminal executes any one of the above methods for adjusting the color temperature of the screen.
In a fifth aspect, the present application provides a computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform the method of adjusting a screen color temperature according to any one of the first aspect.
In a sixth aspect, the present application provides a computer program product for causing a computer to perform the method of adjusting a color temperature of a screen according to any one of the first aspect when the computer program product is run on the computer.
It is to be understood that the terminal according to the third and fourth aspects, the computer storage medium according to the fifth aspect, and the computer program product according to the sixth aspect are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the method can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Drawings
Fig. 1 is a first schematic structural diagram of a terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating an architecture of an operating system in a terminal according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a method for adjusting a color temperature of a screen according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for adjusting a color temperature of a screen according to an embodiment of the present disclosure;
FIG. 5 is a first view of a first scenario illustrating a method for adjusting a color temperature of a screen according to an embodiment of the present disclosure;
FIG. 6 is a second schematic view of a scene of a method for adjusting a color temperature of a screen according to an embodiment of the present application;
FIG. 7 is a third schematic view of a scene of a method for adjusting a color temperature of a screen according to an embodiment of the present application;
FIG. 8 is a fourth schematic view of a scene of a method for adjusting a color temperature of a screen according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that the method for adjusting the color temperature of the screen provided by the embodiment of the present application can be applied to the terminal. Illustratively, the terminal may be a tablet Computer, a desktop Computer, a laptop Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a smart watch, or the like, or may be the mobile phone 100 shown in fig. 1, and in this embodiment, no particular limitation is imposed on the specific form of the terminal.
As shown in fig. 1, the terminal in the embodiment of the present application may be a mobile phone 100. The embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated handset 100 is only one example of a terminal and that the handset 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
As shown in fig. 1, the mobile phone 100 may specifically include: a processor 101, Radio Frequency (RF) circuitry 102, a memory 103, a touch screen 104, a bluetooth module 105, one or more sensors 106, a Wi-Fi module 107, a positioning module 108, audio circuitry 109, a peripheral interface 110, a power module 111, and the like. These components may communicate over one or more communication buses or signal lines (not shown in fig. 1). Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not intended to be limiting of the handset 100, and that the handset 100 may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following describes the components of the handset 100 in detail with reference to fig. 1:
the processor 101 is a control center of the cellular phone 100, connects various parts of the cellular phone 100 by various interfaces and lines, and performs various functions of the cellular phone 100 and processes data by running or executing an application program stored in the memory 103 and calling data and instructions stored in the memory 103. In some embodiments, processor 101 may include one or more processing units; processor 101 may also integrate an application processor and a modem processor; the application processor mainly processes an operating system, a user interface, application programs and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 101. For example, processor 101 may be the kylin 960 multicore processor manufactured by hua shi technology limited.
The rf circuit 102 may be used for receiving and transmitting wireless signals during the transmission and reception of information or calls. Specifically, the rf circuit 102 may receive downlink data of the base station and then process the received downlink data to the processor 101; in addition, data relating to uplink is transmitted to the base station. Typically, the radio frequency circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency circuitry 102 may also communicate with other devices via wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
The memory 103 is used for storing application programs and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running the application programs and data stored in the memory 103. The memory 103 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs (such as a sound playing function and an image playing function) required by at least one function; the storage data area may store data (e.g., audio data, a phonebook, etc.) created from use of the handset 100. Further, the memory 103 may include high speed random access memory, and may also include non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device. The memory 103 may store various operating systems, such as those developed by apple Inc
Figure PCTCN2018092940-APPB-000001
Operating System, developed by Google
Figure PCTCN2018092940-APPB-000002
An operating system, etc.
The touch screen 104 may include a touch sensitive surface 104-1 and a display 104-2.
Among other things, the touch-sensitive surface 104-1 (e.g., a touch panel) may capture touch events on or near the touch-sensitive surface 104-1 by a user of the cell phone 100 (e.g., user operation on or near the touch-sensitive surface 104-1 using a finger, a stylus, or any other suitable object) and transmit the captured touch information to other devices, such as the processor 101. Among other things, a touch event of a user near the touch-sensitive surface 104-1 may be referred to as a hover touch; hover touch may refer to a user not needing to directly contact the touchpad in order to select, move, or drag a target (e.g., an icon, etc.), but only needing to be located near the terminal in order to perform a desired function. In the context of a hover touch application, the terms "touch," "contact," and the like do not imply a contact that is used to directly contact the touch screen, but rather a contact that is near or in proximity thereto. The touch-sensitive surface 104-1 capable of floating touch control can be implemented by using capacitance, infrared light sensation, ultrasonic waves and the like. The touch-sensitive surface 104-1 may include two portions, a touch detection module and a touch controller. The touch detection module detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection module, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 101, and the touch controller can also receive and execute instructions sent by the processor 101. Additionally, the touch-sensitive surface 104-1 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display (also referred to as a display screen) 104-2 may be used to display information entered by or provided to the user as well as various menus of the handset 100. The display 104-2 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touch-sensitive surface 104-1 may overlay the display 104-2, and when a touch event is detected on or near the touch-sensitive surface 104-1, it may be communicated to the processor 101 to determine the type of touch event, and the processor 101 may then provide a corresponding visual output on the display 104-2 based on the type of touch event. Although in FIG. 1 the touch-sensitive surface 104-1 and the display screen 104-2 are shown as two separate components to implement the input and output functions of the cell phone 100, in some embodiments the touch-sensitive surface 104-1 and the display screen 104-2 may be integrated to implement the input and output functions of the cell phone 100. It is understood that the touch screen 104 is formed by stacking multiple layers of materials, and only the touch sensitive surface (layer) and the display screen (layer) are shown in the embodiment, and other layers are not described in the embodiment. In addition, in some other embodiments of the present application, the touch-sensitive surface 104-1 may be overlaid on the display 104-2, and the size of the touch-sensitive surface 104-1 is larger than that of the display screen 104-2, so that the display screen 104-2 is completely overlaid on the touch-sensitive surface 104-1, or the touch-sensitive surface 104-1 may be disposed on the front of the mobile phone 100 in a full-panel manner, that is, the user's touch on the front of the mobile phone 100 can be sensed by the mobile phone, so that the full-touch experience on the front of the mobile phone can be achieved. In other embodiments, the touch-sensitive surface 104-1 may be disposed on the front of the mobile phone 100 in a full-panel manner, and the display screen 104-2 may also be disposed on the front of the mobile phone 100 in a full-panel manner, so that a frameless structure can be implemented on the front of the mobile phone. In some other embodiments of the present application, the touch screen 104 may further include one or more sets of sensor arrays, so that the touch screen 104 may sense a touch event of a user thereon and also sense a pressure exerted thereon by the user, and the like.
The handset 100 may also include a bluetooth module 105 for enabling data exchange between the handset 100 and other short-range terminals (e.g., cell phones, smart watches, etc.). The bluetooth module in the embodiment of the present application may be an integrated circuit or a bluetooth chip.
The handset 100 may also include at least one sensor 106, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display of the touch screen 104 according to the brightness of ambient light, and the proximity sensor can turn off the power supply of the display when the mobile phone 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; the fingerprint recognition device, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. may be further configured for the mobile phone 100, and are not described herein.
The Wi-Fi module 107 is used for providing network access for the mobile phone 100 according to Wi-Fi related standard protocols, the mobile phone 100 can access to a Wi-Fi access point through the Wi-Fi module 107, so that a user is helped to receive and send e-mails, browse webpages, access streaming media and the like, and wireless broadband internet access is provided for the user. In other embodiments, the Wi-Fi module 107 may also serve as a Wi-Fi wireless access point, which may provide Wi-Fi network access for other terminals.
A location module 108 for providing a geographic location for the handset 100. It can be understood that the positioning module 108 may specifically be a receiver of a positioning system such as a Global Positioning System (GPS), a beidou satellite navigation system, and the like. After receiving the geographic location sent by the positioning system, the positioning module 108 sends the information to the processor 101 for processing, or sends the information to the memory 103 for storage. In some other embodiments, the positioning module 108 may be an Assisted Global Positioning System (AGPS) receiver, where the AGPS is an operation mode for performing GPS positioning under certain assistance, and it can utilize signals of base stations to cooperate with GPS satellite signals, so as to make the positioning speed of the mobile phone 100 faster; in AGPS systems, the positioning module 108 may obtain positioning assistance through communication with an assisted positioning server (e.g., a cell phone positioning server). The AGPS system assists the positioning module 108 in performing ranging and positioning services by acting as an assisting server, in which case the assisting positioning server provides positioning assistance by communicating with the positioning module 108 (i.e., GPS receiver) of the terminal, such as the handset 100, over a wireless communication network.
The audio circuitry 109, speaker 113, microphone 114 can provide an audio interface between a user and the handset 100. The audio circuit 109 may transmit the electrical signal converted from the received audio data to the speaker 113, and convert the electrical signal into a sound signal by the speaker 113 for output; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 109, and outputs the audio data to the RF circuit 102 to be transmitted to, for example, another cellular phone, or outputs the audio data to the memory 103 for further processing.
Peripheral interface 110, which is used to provide various interfaces for external input/output devices (e.g., keyboard, mouse, external display, external memory, SIM card, etc.). For example, a mouse via a usb interface, and a Subscriber Identity Module (SIM) card provided by a telecommunications carrier via metal contacts on a card slot of the SIM card. Peripheral interface 110 may be used to couple the aforementioned external input/output peripherals to processor 101 and memory 103.
The mobile phone 100 may further include a power module 111 (such as a battery and a power management chip) for supplying power to each component, and the battery may be logically connected to the processor 101 through the power management chip, so as to implement functions of managing charging, discharging, and power consumption through the power module 111.
Although not shown in fig. 1, the mobile phone 100 may further include a camera, a flash, a micro projection module, a Near Field Communication (NFC) module, and the like, which are not described herein.
As also shown in fig. 1, a neural Network Processing Unit (NPU) 112 may be integrated into the processor 101. The neural network processing unit 112 is a processing module that has a function of simulating human brain judgment and adaptability and can process multiple data in parallel. Of course, the neural network processing unit 112 may not be integrated in the processor 101, and may be connected to the processor 101 in a separate physical form.
In the embodiment of the present application, the neural network processing unit 112 may detect the text content output in the touch screen 104. For example, the neural network processing unit 112 may extract keywords in the textual content or identify semantics conveyed by the textual content through semantic recognition techniques. Further, the neural network processing unit 112 may determine an ET (emotion temperature) value of the current text content through a certain neural network algorithm. The ET value is a quantification of the emotional colors conveyed by the text content. Different ET values may reflect the emotional color of the current text content. For example, when the ET value is larger, the emotional color of the current text content is more cool and alert; the smaller the ET value, the more warm and secure the emotional color of the current text content is.
Since there is a strong correlation between the user's perception of emotional colors and colors, for example, when the user sees blue or purple, a cool, alert feeling is produced, and when the user sees yellow or orange, a warm, safe feeling is produced. Therefore, in the embodiment of the present application, the neural network processing unit 112 may automatically adjust the screen color temperature of the touch screen 104 according to the ET value of the current text content, so that the screen color temperature may correspond to the emotional color conveyed by the currently displayed text content, so that the user may get an immersive experience in the process of reading the text.
Illustratively, the memory 103 of the handset 100 may have stored therein
Figure PCTCN2018092940-APPB-000003
The operating system, which is an L inux-based mobile device operating system, implements various functions in conjunction with the above-described hardware in the handset 100
Figure PCTCN2018092940-APPB-000004
Software architecture of an operating system. It should be noted that the examples of the present application are only for illustration purposes
Figure PCTCN2018092940-APPB-000005
The operating system is an example to illustrate a software environment required by the terminal to implement the technical solution of the present embodiment, and those skilled in the art can understand that the embodiments of the present application can also be implemented by other operating systems, for example, an ios operating system.
Illustratively, FIG. 2 is a diagram of a system that may operate in the terminal described above
Figure PCTCN2018092940-APPB-000006
The software architecture can be divided into four layers, namely an application program layer, an application program framework layer, a function library layer and an L inux kernel layer.
1. Application (Applications) layer
The application layer is the top layer of the operating system and includes native applications of the operating system, such as email clients, notes, calls, calendars, contacts, etc. Of course, for a developer, the developer may write an application and install it into the layer.
Generally, an application is developed using Java language, and is completed by calling an Application Programming Interface (API) provided by an application framework layer.
2. Application Framework (Application Framework) layer
The application framework layer mainly provides developers with various APIs (application programming interfaces) used by the applications, and the developers can interact with the bottom layer (such as a function library, L inux kernel and the like) of the operating system through the application framework to develop own applications.
Activity Manager (Activity Manager): the system is used for managing the life cycle of an application program and providing a common navigation backspacing function;
content Providers (Content Providers): the system is used for managing data sharing and access among different application programs;
notification Manager (Notification Manager): the system is used for controlling the application program to display prompt information (such as warnings (Alerts), Notifications (Notifications) and the like) to a user in a status bar, a screen locking interface and the like;
a Clipboard Manager (Clipboard Manager) which mainly provides a copy or paste function inside an application or between applications;
view (View): the method has rich and extensible view sets and can be used for constructing an application program. The method specifically comprises various types such as lists (list), grids (grid), texts (text), buttons (button), pictures (image) and the like.
The location Manager (L assignment Manager) primarily allows applications to access the geographic location where the terminal is located.
3. Function library (L ibraries) layer
The function library layer is a support of an application Framework and is an important link for connecting the application Framework layer with an L inux kernel layer, the function library layer comprises a plurality of function libraries compiled by a computer program C language or a C + + language, the function libraries can be used by different components in an operating system and provide services for developers through the application Framework layer, specifically, the function libraries can comprise a libc function library which is specially customized for an embedded linux-based device, the function libraries can also comprise a multimedia library (Media Framework) which supports playback and recording of audio or video in a plurality of coding formats and supports static image files and common audio or video coding formats, and the function library also comprises a Surface management Manager (Surface Manager) which is mainly responsible for managing access to a display system, is specifically responsible for managing interaction between display and access operations when a plurality of applications are executed, and is also responsible for display synthesis of 2D drawings and 3D drawings.
The function library layer can also comprise other function libraries for realizing various functions of the mobile phone, such as SG L (Scalable Graphics L library), a 2D graphic image processing engine based on an XM L (Extensible Markup L format) file, SS L (Secure Sockets L eye), a relational database engine, a Webkit, a Web browser engine, a FreeType, a bitmap and vector font support, and the like, wherein the SS L (Secure Sockets L eye) is positioned between the TVP/IP protocol and various application layer protocols and provides support for data communication, the OpenG L/ES is used for supporting 3D effects, the SQ L ite is used for supporting a relational database engine, and the Webkit is used for a Web browser engine.
The Android Runtime is
Figure PCTCN2018092940-APPB-000007
The operating environment on the operating system is
Figure PCTCN2018092940-APPB-000008
A new virtual machine for use by an operating system. In Android Runtime, by adopting an AOT (Ahead-Of-Time) technology, when an application program is installed for the first Time, the bytecode Of the application program is compiled into machine code in advance, so that the application program becomes a real local application and then runs again, the step Of compiling is omitted, and the starting and the execution are faster.
In other embodiments of the present application, the Android Runtime may be replaced by a kernel function library (Core L ibraries) and a Dalvik Virtual Machine (Dalvik Virtual Machine), the kernel function library provides most functions in Java APIs, and provides an interface for calling an underlying library to an application framework layer mainly by way of Java Native Interfaces (JNI), and also includes some kernel APIs of the operating system, such as Android os, Android net, Android media, and so on, the Dalvik Virtual Machine uses a JIT (Just-in-Time) Runtime compilation mechanism, which requires recompiling a Virtual Machine bytecode in the background each Time a process is started, which may have a certain impact on the start-up speed, each application runs in an instance in a Dalvik Virtual Machine, each instance of the Dalvik Virtual Machine is an independent space, the Dalvik Virtual Machine is designed in a different Virtual memory management format, and the Dalvik Virtual Machine is designed to be capable of operating in a plurality of different forms of executable kernel Virtual machines, which are suitable for the Dalvik Virtual Machine.
4. L inux Kernel (L inux Kernel) layer
The layer provides core system services of an operating system, such as security, memory management, process management, a network protocol stack, a drive model and the like, and is based on an L inux kernel, wherein the L inux kernel also serves as an abstraction layer between hardware and a software stack, and has a plurality of drivers related to the mobile device, wherein the main drivers are a display driver, a frame buffer driver based on L inux, a keyboard driver serving as an input device, a Flash driver based on a memory technology device, a camera driver, a Bluetooth driver, a Wi-Fi driver, a USB driver and the like.
In the embodiment of the present application, as shown in fig. 2, the application layer further includes one or more reading applications APP, such as a browser APP, a hua shi reading APP, or a today's headline APP. The user can read the corresponding text content through the reading APP. And an ET manager is also arranged in the application program framework layer, and the ET manager can open a corresponding interface to the reading APP.
For example, when a user opens a reading novel A of a today's headline APP, the today's headline APP can call the ET manager through a corresponding API, and the ET manager determines ET items such as titles, categories, catalogues or text contents of the novel A displayed in the today's headline APP and scores of the ET items. The score for the ET item may reflect the emotional color of the current text. For example, if the title of the novel a contains words such as "ghost story", "horror", etc., the score of the ET item of the title may be determined to be 3, and if the category of the novel a contains words such as "love", "talk", etc., the score of the ET item of the category may be determined to be-1. Namely, when the score of the ET project is higher, the reflected emotional color is more inclined to be cool and quiet and tense; as the score of the ET item is lower, the reflected emotional color is more biased to be warm and relaxed.
Of course, it is also possible to obtain the ET items such as the title, category, directory, or text content of the novel a being displayed in the today's top APP by the original service or manager (e.g., view or window manager) in the application framework layer, and send these ET items to the ET manager, so that the ET manager scores these ET items.
Furthermore, the ET manager can comprehensively calculate the target ET value of the text content displayed by the current headline APP according to the scoring conditions of all the ET projects. In this way, based on the correspondence between the preset ET value and the color temperature value, the ET manager can determine the color temperature value corresponding to the target ET value, for example, blue (6570K), white (5900K), red (4800K), or the like.
Illustratively, as shown in fig. 3, the color temperature value gradually increases, and the color displayed by the light source gradually changes from black to red, turns yellow, turns white, turns green, turns blue, turns purple, and finally turns pink-purple. The emotional colors reflected by the colors are changed correspondingly. In the application, the corresponding relation is established between the ET value reflecting a certain same emotional color and the color temperature value, so that the ET manager can determine the screen color temperature consistent with the emotional color of the ET value according to the target ET value of the current text content, and the screen color temperature can correspond to the emotional color conveyed by the currently displayed text content.
Subsequently, the ET manager may transfer the determined color temperature value to a service (service) for display, such as a surfefinger or view in the application framework layer. The services may modify the screen color temperature of the touch screen according to the determined color temperature value. The screen color temperature is modified to be consistent with the emotional color of the display content in the current headline APP, so that a user can obtain better immersive experience when reading.
It should be noted that, the terminal may determine the screen color temperature when each User Interface (UI) is displayed with UI as granularity; or, the terminal may also determine the screen color temperature when displaying the text in the article or novel with the article or novel as granularity; or, the terminal may further determine the screen color temperature when displaying any interface in the application with the granularity of the application, which is not limited in this embodiment of the application.
For convenience of understanding, a method for adjusting a color temperature of a screen provided in an embodiment of the present application is specifically described below with reference to the accompanying drawings. In the following embodiments, a mobile phone is taken as an example of a terminal.
Fig. 4 is a flowchart illustrating a method for adjusting a color temperature of a screen according to an embodiment of the present application. As shown in fig. 4, the method of adjusting a color temperature of a screen may include:
s401, the mobile phone displays a first display interface containing text content.
The first display interface can be a display interface in any reading type APP or any social type APP. For example, after the user opens the book chase APP, he or she may select to continue reading the novel a from the position where reading was last ended, as shown in fig. 5, at this time, the mobile phone may display a display interface 501 of the novel a, and the display interface 501 may include a name 502 of the novel a, a chapter title 503 being read, text content 504 being read, and the like.
Of course, when the mobile phone displays the display interface 501, at least one of the name 502 of the text being read, the chapter title 503 of the text being read, the text content 504 of the text being read, and the like may be displayed. For example, the cell phone may only display the textual content 504 being read. At this time, the mobile phone can acquire information such as the name, chapter title, and category of the novel to which the text content 504 belongs from the running book tracing APP.
When the mobile phone displays the display interface 501, the display interface may display according to a default screen color temperature, or display a screen color temperature when a previous display interface is displayed as the screen color temperature of the current display interface 501, where the screen color temperature of the display interface 501 is a first value, for example, 5600K (i.e., white).
S402, the mobile phone obtains N ET items reflecting the emotional colors in the text content, wherein N is larger than or equal to 1.
The ET item may include, for example, a name (or title) of the text content 504 in the first display interface (e.g., the display interface 501), a subtitle, a category, or a key phrase in the text content 504. These ET items may all reflect, to some extent, the emotional colors conveyed by textual content 504, e.g., panic, stress, freshness, sweetness, warmth, and the like.
Still taking the display interface 501 shown in fig. 5 as an example, after the mobile phone displays the display interface 501, the ET manager in the application framework layer may interact with the book tracking APP running in the application layer to obtain the name 502 (i.e., the ET) of the text content 504 in the display interface 501Name (R)) To "listen to mom telling ghost stories," section title 503 (i.e., ET) of text content 504Chapter heading) For "horror diary", classification of textual content 504 (i.e. ETClassification) For "suspicion reasoning," the key utterance (i.e., ET) in the textual content 504Key word segment) Including "graceful female voice", "dim street corner" and "dried blood".
Or, the ET manager of the mobile phone may notify the screen capturing application of the application program layer to perform the screen capturing operation when acquiring the N ET items. Furthermore, the screen capture application in the application layer accesses the screen capture interface management service provided by the application framework layer through the relevant API, and can capture the content in the current display interface 501. After the screenshot is successful, a screenshot application at the application layer may generate the screenshot. Then, based on the screenshot of the display interface 501, the mobile phone can recognize the ET included in the display interface 501 through an Optical Character Recognition (OCR) technologyName (R)、ETSection mark Question (I)、ETKey word segmentET item.
Or, the mobile phone may also identify the ET item included in the display interface 501 by obtaining the cache data of the current display frame. Since the handset is a high speed frame drawing process when displaying, for example, the handset can draw each display frame at a frequency of 60 hz. During the framing of each display frame, a view (view) within the application framework layer may buffer the contents of the current display frame for a period of time. Then, whenAfter the mobile phone displays the display interface 501 of the book tracking APP, the ET manager may call an interface View detail ═ activity. Further, the ET manager can identify the ET included in the display interface 501 from the entire window view of the display interface 501Name (R)、ETChapter heading、ETKey word segmentET item.
And S403, respectively scoring the N ET items by the mobile phone.
In step S403, the mobile phone may score each ET item acquired in step S402, so that the emotional color reflected by each ET item is quantized. Wherein, the higher the score of the ET project is, the more the emotional color reflected by the ET project is in favor of cool and quiet and tense; when the score of the ET item is lower, the ET item reflects the emotional color which is more warm and relaxed.
For example, a neural network processing unit within the handset may continually iterate and learn how to score ET items of different content based on certain neural network algorithms. For example, the neural network processing unit may determine, through machine learning, a scoring condition corresponding to a case where different ET items include a specific keyword. Also illustrated by the display interface 501 shown in FIG. 5, when ETName (R)When the term "blood-sucking ghost" appears, the ET can be usedName (R)The score of (2) is determined; when ETClassificationWhen words such as "suspicion", "reasoning" and the like appear in the text, the ET can be usedClassificationThe score of (2) is determined as 1; when ETChapter headingWhen words such as 'magic' appear in the book, the ET can be usedChapter headingThe score of (2) is determined; when ETKey word segmentWhen words such as "harsh", "ghost", "imprisoning" or "fear" appear in the ET, the ET can be usedKey word segmentThe score of (2) was determined.
It is understood that, a person skilled in the art may set a scoring rule or algorithm for each ET project according to an actual application scenario or actual experience, and the embodiment of the present application does not limit this.
S404, the mobile phone determines a first ET value of the text content according to the scores of the N ET items.
In step S404, the mobile phone may calculate a first ET value of the currently displayed text content 504 according to the scoring of the N ET items. The first ET value may reflect the emotional color of the entire text content 504, and when the first ET value is larger, it indicates that the emotional color reflected by the entire text content 504 is more cool and tense; as the first ET value is smaller, it is described that the emotional color reflected by the entire text content 504 is more biased toward warmth and ease.
For example, the mobile phone may set different weight values for different ET items in advance according to the influence degree of the different ET items on the emotional color of the entire text content 504. For example, since the title and classification of the text content 504 lays the key of the entire text content, the ET may be substitutedName (R)And ETClassificationThe weighting value of (a) is set to be larger, and the chapter title and key word segment in the text content 504 can only reflect the emotional color of the current part of the text content, so that ET will be setChapter headingAnd ETKey word segmentIs set to be smaller.
For example, the mobile phone may preset a formula for calculating the first ET value as:
first ET value k +10 ETName (R)+5*ETClassification+2*ETChapter heading+1*ETKey word segment
Wherein 10 is ETName (R)5 is ETClassification2 is ETChapter heading1 is ETClosing device Key language segmentThe weight value of (2). The value range of each ET item can be set by a person skilled in the art according to an actual application scenario or actual experience. For example, ET may be uniformly setName (R)、ETClassification、ETChapter headingAnd ETKey word segmentThe value range of the 4 ET items is-10 to 10. As another example, it can be set to-5<ETName (R)<5,-10<ETClassification<10,-25<ETChapter heading<25,-50<ETKey word segment<50, at this time, the 4 ET items are multiplied by the respective weight valuesThe values of the latter are all between-50 and 50.
In the above formula, k is an ET constant, and k is 50, for example. In general, when the first ET value is k, it is described that the text content at this time has no apparent emotional color, and therefore, white can be displayed using a color temperature value corresponding to white. When the first ET value is larger than k, the emotional color of the text content is biased to cool and tense; when the first ET value is less than k, the emotional color of the text content at the moment is biased to be warm and relaxed.
Also illustrated by the display interface 501 shown in FIG. 5, when ETName (R)Is given a score of 2, ETClassificationIs given a score of 1, ETChapter headingIs given a score of 2, ETKey word segmentWhen k is 50, the first ET value of the text content 504 is 50+10 ETName (R)+5*ETDirectory+2*ETSub-title+1*ETKey word segmentThe sum of 50+10 × 2+5 × 1+2 × 2+1 × 2 is 81, which indicates that the emotional color of the text content is biased to calm and tense.
In addition, the value range of the first ET value can be set within a closed interval range of 0-100. If the first ET value calculated by the formula is larger than 100, the maximum value 100 of the mobile phone can be taken as the first ET value; if the first ET value calculated by the formula is less than 0, the mobile phone can take the minimum value of 0 as the first ET value.
S405, the mobile phone sets the screen color temperature of the first display interface to be a second value, and the second value corresponds to the first ET value.
After the mobile phone calculates the first ET value of the current text content, the screen color temperature corresponding to the first ET value can be determined to be the second value according to the preset corresponding relationship between the ET value and the color temperature value. Namely, the color temperature of the screen of the current display interface is adjusted to the second value by the mobile phone. For example, the mobile phone may store the correspondence between the ET value and the color temperature value as shown in fig. 3 in advance, and then, taking the display interface 501 as shown in fig. 5 as an example, since the mobile phone has determined that the first ET value of the text content 504 is 81 minutes in step S404, the mobile phone may determine the color temperature value 6570K corresponding to the first ET value of 81 minutes as the second value of the screen color temperature according to the correspondence shown in fig. 3.
Furthermore, as shown in fig. 6, the mobile phone may modify the screen color temperature of the display interface 504 from a first value to a second value, that is, 6570K. When the color temperature of the screen is 6570K, the light emitted by the mobile phone screen is blue, so that a nervous atmosphere corresponding to ghost stories in the text content 504 is created.
Accordingly, as shown in fig. 7, if the first display interface 701 displayed by the mobile phone is the text content 702 in a chapter in "prince xiao", the mobile phone can still calculate the first ET value of the text content 702 according to the above method. For example, the first ET value of the text content 702 is 13 points. Then, the mobile phone may determine the color temperature value 4820K corresponding to the time sharing of 13 minutes with the first ET value as the screen color temperature of the display interface 701 according to the correspondence relationship shown in fig. 3. Furthermore, as shown in fig. 7, the color temperature of the screen of the first display interface 702 can be adjusted to 4820K by the mobile phone. When the color temperature of the screen is 4820K, the light emitted from the screen of the mobile phone is reddish, so that a warm atmosphere corresponding to the story in the text content 702 is created.
It can be seen that, in the embodiment of the present application, the mobile phone may automatically adjust the screen color temperature of the touch screen according to the ET value of the current text content, so that the screen color temperature may correspond to the emotional color conveyed by the currently displayed text content, so that the user may obtain an immersive experience in the process of reading the text.
Or, in other embodiments of the present application, after determining, according to a preset correspondence between the ET value and the color temperature value, that the screen color temperature corresponding to the first ET value is a second value, the second value may be further displayed as a candidate color temperature option, so that a user can manually adjust the screen color temperature of the first display interface from the displayed candidate color temperature options.
Illustratively, when the first ET value is 81 minutes, the mobile phone determines 6570K as the second value of the screen color temperature according to the correspondence shown in fig. 3. At this time, the mobile phone may take one or more color temperature values close to 6570K and 6570K as candidate color temperature options. As shown in fig. 8 (a), the mobile phone may display a dialog box 801 on the display interface 501, where three candidate color temperature options are included in the dialog box 801. The three candidate color temperature options are 6100K corresponding to green, 6570K corresponding to blue and 6830K corresponding to purple respectively, and all of the three candidate color temperature options can reflect emotional colors of tense and cool text content. Subsequently, the mobile phone may adjust the screen color temperature of the display interface 504 to a corresponding value in response to the candidate color temperature option manually selected by the user.
Or, as shown in fig. 8 (b), after the mobile phone determines 6570K as the second value of the screen color temperature according to the corresponding relationship shown in fig. 3, the mobile phone may display a dialog box 802 on the display interface 501, where a progress bar for adjusting the screen color temperature is arranged in the dialog box 802. The user can adjust the value of screen colour temperature through dragging the slider on the progress bar. Since 6570K is the color temperature value determined by the mobile phone to be more consistent with the current text content, the mobile phone can set the initial position of the slider at the position corresponding to 6570K when the dialog box 802 is displayed.
The steps S401 to S405 in the above embodiments are exemplified by how to adjust the screen color temperature of a certain display interface when the display interface is displayed. In some embodiments of the present application, the mobile phone may adjust the screen color temperature of the display interface according to the above method when displaying each display interface. Or, the mobile phone may also adjust the screen color temperature when displaying the article or novel according to the above method with the article or novel as granularity.
For example, when a certain article or novel is displayed, the mobile phone can acquire information such as the title, classification or brief introduction of the article or novel. Furthermore, the mobile phone can determine the first ET value of the article or novel according to the acquired title, classification or introduction. Thus, the mobile phone can determine the screen color temperature when each display interface of the article or novel is subsequently displayed according to the corresponding relationship between the ET value and the color temperature value shown in fig. 3.
Or, when the mobile phone displays a certain article or novel, the screen color temperature of one or more display interfaces can be determined according to the method shown in the steps S401 to S405 when the previous part of the article or novel is displayed; and then obtaining the screen color temperature of the rest part of the article or novel according to the screen color temperature of the previous part. For example, the mobile phone can determine the screen color temperature of each page according to steps S401-S405 when displaying pages 1 to 10 of the novel a, that is, 10 screen color temperature values. Thus, the mobile phone can determine the screen color temperature of the mobile phone when the rest part of the novel A is displayed through the 10 screen color temperature values. For example, the mobile phone may use the average value of the 10 screen color temperature values as the screen color temperature when the novel a is subsequently displayed.
Or, the mobile phone may determine the screen color temperature of the page 1 according to steps S401 to S405 when displaying the page 1 of the novel a, and further, the mobile phone may display the pages 2 to 9 of the novel a according to the screen color temperature of the page 1. When the mobile phone displays the 10 th page of the novel A, the screen color temperature of the 10 th page determined according to the steps S401-S405 can be repeated, and the display interfaces of the 11 th page to the 19 th page are displayed by using the screen color temperature of the 10 th page. That is, in the process of displaying a certain article or novel, the mobile phone may also periodically determine the screen color temperature of different parts of the article or novel when displayed according to the method shown in the above steps S401 to S405.
In other embodiments of the present application, a light sensor may be further disposed in the mobile phone to detect the intensity of the ambient light. Then, the mobile phone can automatically adjust the screen color temperature of the touch screen by combining the ET value of the current text content and the light intensity detected by the light sensor.
For example, if the screen color temperature corresponding to the first ET value of the current text content is calculated to be greater than 6000K, the screen light source is in a cold tone, but the light intensity detected by the light sensor is weak, i.e., the ambient light is darker. At this time, in order to reduce the stimulation of the screen light source to the human eye, the mobile phone may reduce a certain value on the basis of the screen color temperature (e.g., 6500K) corresponding to the first ET value when determining the actual screen color temperature, for example, set the screen color temperature to 5800K.
For another example, if the screen color temperature corresponding to the first ET value of the current text content is calculated to be less than 5000K, that is, the screen light source is warm, but the light intensity detected by the light sensor is strong, that is, the ambient light is bright. At this time, in order to enable the user to clearly see the text content displayed on the screen under strong light, when determining the actual screen color temperature, the mobile phone may add a certain value on the basis of the screen color temperature (e.g., 4800K) corresponding to the first ET value, for example, set the screen color temperature to 5500K.
That is, when the second value of the screen color temperature determined by the mobile phone in step S405 is greater than the first preset color temperature value and the ambient light intensity detected by the light sensor is less than the first preset light intensity value, the mobile phone may correct the screen color temperature to the first corrected color temperature; wherein the first corrected color temperature is less than the second value. Correspondingly, when the second value of the screen color temperature determined by the mobile phone in step S405 is smaller than the second preset color temperature value (the second preset color temperature value is the same as or different from the first preset color temperature value), and the ambient light intensity detected by the light sensor is greater than the second preset light intensity value (the second preset light intensity value is the same as or different from the first preset light intensity value), the mobile phone may correct the screen color temperature to a second corrected color temperature; wherein the second corrected color temperature is greater than the second value.
Therefore, when determining the screen color temperature, the mobile phone can correct the screen color temperature corresponding to the ET value determined in step 405 according to the current ambient light intensity, so that the mobile phone can adjust the screen color temperature to a value more suitable for human eyes by integrating various factors such as the emotional color of the current text content, the current ambient light intensity and the like.
In addition, in some embodiments of the application, after the mobile phone determines the color temperature value (i.e., the second value) corresponding to the first ET value for the first display interface through steps S401 to S405, the screen color temperature (e.g., a third value) in a next display interface (i.e., the second display interface) of the first display interface may be further predicted, and the third value may reflect an emotional color of text content in the second display interface. Therefore, the mobile phone can directly display the second display interface according to the predicted color temperature value when displaying the second display interface.
For example, the mobile phone may calculate the color temperature value of the X +1 th (i.e. the second display interface) according to the most recently determined color temperature values of X (X is an integer greater than 0) display interfaces. For example, the mobile phone calculates the color temperature value of each of the recently displayed 10 display interfaces according to the above steps S401 to S405, that is, 10 color temperature values are obtained. Then, the mobile phone may use the weighted average of the 10 color temperature values as a third value of the screen color temperature in the second display interface.
Still alternatively, the mobile phone may continue to use the method in steps S402-S404 to obtain the second ET value of the second display interface to be displayed, where the second ET value may reflect the emotional color conveyed by the text content in the second display interface. Further, the mobile phone can determine that the screen color temperature corresponding to the second ET value is the third value according to the corresponding relationship between the ET value and the color temperature value shown in fig. 3. Subsequently, when the second display interface is displayed, the mobile phone can display the second display interface according to the screen color temperature corresponding to the third value, so that the phenomenon of jumping among different screen color temperatures cannot occur in the display process of the second display interface.
In some embodiments of the present application, a terminal is disclosed in this application embodiment, and as shown in fig. 9, the terminal is configured to implement the method described in the above method embodiments, and includes: an acquisition unit 901, a display unit 902, an adjustment unit 903, and a prediction unit 904. The acquiring unit 901 is configured to support the terminal to execute the processes S402-S404 in fig. 4; the display unit 902 is configured to support the terminal to execute the process S401 in fig. 4; the adjusting unit 903 is configured to support the terminal to execute the process S405 in fig. 4; the prediction unit 904 is configured to predict a screen color temperature of a second display interface, where the second display interface is a next display interface of the current display interface. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In other embodiments of the present application, an embodiment of the present application discloses a terminal, which may include, as shown in fig. 10: a touch screen 1001, wherein the touch screen 1001 comprises a touch sensitive surface 1006 and a display screen 1007; one or more processors 1002; a memory 1003; one or more application programs (not shown); and one or more computer programs 1004, which may be connected via one or more communication buses 1005. Wherein the one or more computer programs 1004 are stored in the memory 1003 and configured to be executed by the one or more processors 1002, the one or more computer programs 1004 include instructions that may be used to perform the steps as in fig. 4 and the corresponding embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (25)

  1. A method for adjusting a color temperature of a screen, comprising:
    the terminal displays a first display interface containing text content;
    the terminal acquires a first emotion temperature ET value of the text content, wherein the first ET value is used for reflecting emotion colors conveyed by the text content;
    the terminal acquires a first color temperature corresponding to the first ET value according to a preset corresponding relation between the ET value and the color temperature value, wherein the first color temperature is consistent with the emotional color conveyed by the first ET value;
    and the terminal adjusts the screen color temperature of the first display interface to the first color temperature.
  2. The method for adjusting the color temperature of the screen according to claim 1, wherein the terminal displays a first display interface containing text content, and comprises:
    and the terminal displays a first display interface containing the text content according to a second color temperature, wherein the second color temperature is different from the first color temperature.
  3. The method for adjusting the color temperature of the screen according to claim 1 or 2, wherein the terminal obtains the first ET value of the text content, and comprises:
    the terminal acquires N ET items related to the text content, wherein the N ET items can reflect emotional colors conveyed by the text content, and N is an integer greater than 0;
    the terminal acquires the score of each ET project in the N ET projects;
    and the terminal obtains a first ET value of the text content according to the score of each ET item in the N ET items.
  4. The method for adjusting screen color temperature according to claim 3, wherein the terminal obtains a score of each ET item in the N ET items, and comprises:
    the terminal acquires the score of each ET project according to the keywords or semantics in the ET project; the ET item reflects a more cool and tense emotional color as the score of the ET item is higher, and reflects a more warm and relaxed emotional color as the score of the ET item is lower.
  5. The method for adjusting the screen color temperature according to claim 3, wherein the terminal obtains the first ET value of the text content according to the score of each ET item in the N ET items, and comprises the following steps:
    the terminal calculates a first ET value of the text content according to a preset formula and the score of each ET item in the N ET items;
    when the first ET value is larger, the emotional color reflected by the text content is more favorable to cool and tension; when the first ET value is smaller, the emotional color reflected by the text content is more biased to be warm and relaxed.
  6. The method of adjusting a screen color temperature according to any one of claims 3 to 5, wherein the ET item includes at least one of: a name corresponding to the text content, a chapter title corresponding to the text content, a category corresponding to the text content, or a key phrase in the text content.
  7. The method for adjusting the color temperature of the screen according to any one of claims 1 to 6, wherein when the first ET value is larger, a first color temperature value corresponding to the first ET value is larger; and when the first ET value is smaller, the first color temperature value corresponding to the first ET value is smaller.
  8. The method for adjusting screen color temperature according to any one of claims 1-7, wherein after the terminal obtains a first color temperature corresponding to the first ET value according to a preset correspondence between ET value and color temperature value, further comprising:
    the terminal acquires the ambient light intensity of the current ambient light;
    when the first color temperature is greater than a first preset color temperature value and the environmental light intensity is less than a first preset light intensity value, the terminal corrects the first color temperature into a first corrected color temperature, and the first corrected color temperature is less than the first color temperature;
    when the first color temperature is smaller than a second preset color temperature value and the environmental light intensity is larger than a second preset light intensity value, the terminal corrects the first color temperature into a second corrected color temperature, and the second corrected color temperature is larger than the first color temperature.
  9. The method of adjusting a screen color temperature according to any one of claims 1 to 8, wherein after the terminal obtains a first color temperature corresponding to the first ET value according to a preset correspondence between ET values and color temperature values, further comprising:
    the terminal displays candidate color temperature options in the first display interface, wherein the candidate color temperature options comprise the first color temperature;
    wherein, the terminal adjusts the screen color temperature of the first display interface to the first color temperature, including:
    and responding to the operation that the user selects the first color temperature in the candidate color temperature options, and adjusting the screen color temperature of the first display interface to the first color temperature by the terminal.
  10. The method of adjusting a screen color temperature according to any one of claims 1 to 9, further comprising, after the terminal adjusts the screen color temperature of the first display interface to the first color temperature:
    and the terminal displays M continuous display interfaces with the first display interface according to the first color temperature, wherein M is an integer larger than 0.
  11. The method for adjusting screen color temperature according to claim 10, wherein the M display interfaces belong to the same application as the first display interface; or the text content in the M display interfaces and the text content in the first display interface belong to the same article.
  12. The method for adjusting the color temperature of the screen according to any one of claims 1 to 9, wherein after the terminal displays the first display interface containing text content, the method further comprises:
    the terminal predicts that the screen color temperature of a second display interface is a third color temperature, the second display interface is a next display interface of the first display interface, and the third color temperature is the same as or different from the first color temperature;
    and the terminal displays the second display interface according to the third color temperature.
  13. The method of adjusting screen color temperature according to claim 12, wherein the terminal predicts the screen color temperature of the second display interface as a third color temperature, comprising:
    the terminal acquires a second ET value of the second display interface, wherein the second ET value is used for reflecting the emotional color conveyed by the text content in the second display interface;
    and the terminal acquires a third color temperature corresponding to the second ET value according to the corresponding relation between the preset ET value and the color temperature value, wherein the third color temperature is consistent with the emotional color conveyed by the second ET value.
  14. A terminal, comprising:
    a touch screen, wherein the touch screen comprises a touch sensitive surface and a display;
    one or more processors;
    one or more memories;
    and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprising instructions which, when executed by the terminal, cause the terminal to perform the steps of:
    a first display interface containing text content;
    acquiring a first emotion temperature ET value of the text content, wherein the first ET value is used for reflecting the emotion color transmitted by the text content;
    acquiring a first color temperature corresponding to the first ET value according to a preset corresponding relation between the ET value and the color temperature value, wherein the first color temperature is consistent with the emotional color conveyed by the first ET value;
    and adjusting the screen color temperature of the first display interface to the first color temperature.
  15. The terminal according to claim 14, wherein the terminal displays a first display interface containing text content, and specifically includes:
    and displaying a first display interface containing the text content according to a second color temperature, wherein the second color temperature is different from the first color temperature.
  16. The terminal according to claim 14 or 15, wherein the acquiring, by the terminal, the first ET value of the text content specifically includes:
    acquiring N ET items associated with the text content, wherein the N ET items can reflect emotional colors conveyed by the text content, and N is an integer greater than 0;
    obtaining the score of each ET project in the N ET projects;
    and obtaining a first ET value of the text content according to the score of each ET item in the N ET items.
  17. The terminal according to claim 16, wherein the terminal obtains the score of each ET item of the N ET items, specifically including:
    obtaining the score of each ET project according to the keywords or semantics in the ET project; the ET item reflects a more cool and tense emotional color as the score of the ET item is higher, and reflects a more warm and relaxed emotional color as the score of the ET item is lower.
  18. The terminal according to claim 16, wherein the terminal obtains a first ET value of the text content according to the score of each ET item in the N ET items, and specifically includes:
    the terminal calculates a first ET value of the text content according to a preset formula and the score of each ET item in the N ET items; when the first ET value is larger, the emotional color reflected by the text content is more favorable to cool and tension; when the first ET value is smaller, the emotional color reflected by the text content is more biased to be warm and relaxed.
  19. The terminal according to any of claims 14-18, wherein after the terminal obtains the first color temperature corresponding to the first ET value according to the preset correspondence between the ET value and the color temperature value, the terminal is further configured to perform:
    acquiring the ambient light intensity of the current ambient light;
    when the first color temperature is greater than a first preset color temperature value and the environmental light intensity is less than a first preset light intensity value, correcting the first color temperature into a first corrected color temperature, wherein the first corrected color temperature is less than the first color temperature;
    and when the first color temperature is smaller than a second preset color temperature value and the environmental light intensity is larger than a second preset light intensity value, correcting the first color temperature into a second corrected color temperature, wherein the second corrected color temperature is larger than the first color temperature.
  20. The terminal according to any of claims 14-19, wherein after the terminal obtains the first color temperature corresponding to the first ET value according to the preset correspondence between the ET value and the color temperature value, the terminal is further configured to perform:
    displaying candidate color temperature options in the first display interface, wherein the candidate color temperature options comprise the first color temperature;
    the adjusting, by the terminal, the screen color temperature of the first display interface to the first color temperature specifically includes:
    and adjusting the screen color temperature of the first display interface to the first color temperature in response to the operation of selecting the first color temperature in the candidate color temperature option by the user.
  21. The terminal according to any of claims 14-20, wherein after the terminal adjusts the screen color temperature of the first display interface to the first color temperature, the terminal is further configured to perform:
    displaying M display interfaces continuous with the first display interface according to the first color temperature, wherein M is an integer greater than or equal to 1; the M display interfaces and the first display interface belong to the same application; or the text content in the M display interfaces and the text content in the first display interface belong to the same article.
  22. A terminal according to any of claims 14-21, wherein after the terminal displays the first display interface containing the text content, the terminal is further configured to perform:
    predicting the screen color temperature of a second display interface to be a third color temperature, wherein the second display interface is the next display interface of the first display interface, and the third color temperature is the same as or different from the first color temperature;
    and displaying the second display interface according to the third color temperature.
  23. The terminal according to claim 22, wherein the terminal predicts the screen color temperature of the second display interface as a third color temperature, and specifically comprises:
    acquiring a second ET value of the second display interface, wherein the second ET value is used for reflecting the emotional color conveyed by the text content in the second display interface;
    and acquiring a third color temperature corresponding to the second ET value according to the corresponding relation between the preset ET value and the color temperature value, wherein the third color temperature is consistent with the emotional color conveyed by the second ET value.
  24. A computer-readable storage medium having instructions stored therein, which when run on a terminal, cause the terminal to perform a method of adjusting screen color temperature as claimed in any one of claims 1-13.
  25. A computer program product comprising instructions for causing a terminal to perform a method of adjusting a color temperature of a screen according to any one of claims 1 to 13 when the computer program product is run on the terminal.
CN201880078336.6A 2018-06-26 2018-06-26 Method and terminal for adjusting color temperature of screen Active CN111433734B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/092940 WO2020000211A1 (en) 2018-06-26 2018-06-26 Method for adjusting screen colour temperature, and terminal

Publications (2)

Publication Number Publication Date
CN111433734A true CN111433734A (en) 2020-07-17
CN111433734B CN111433734B (en) 2022-04-05

Family

ID=68984527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880078336.6A Active CN111433734B (en) 2018-06-26 2018-06-26 Method and terminal for adjusting color temperature of screen

Country Status (2)

Country Link
CN (1) CN111433734B (en)
WO (1) WO2020000211A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114512094A (en) * 2020-11-16 2022-05-17 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium
CN117235247A (en) * 2023-11-13 2023-12-15 深圳市微克科技有限公司 Novel reading method, system and medium based on intelligent wearable equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160029458A1 (en) * 2014-05-13 2016-01-28 Google Inc. Anticipatory Lighting from Device Screens Based on User Profile
CN105320488A (en) * 2015-11-16 2016-02-10 联想(北京)有限公司 Control method, display method and electronic device
CN105657559A (en) * 2014-12-03 2016-06-08 天津三星电子有限公司 Display parameter automatic regulating display device and method thereof
CN106331344A (en) * 2016-08-23 2017-01-11 维沃移动通信有限公司 Adjustment method for color temperature of screen and mobile terminal
CN106502512A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of display methods of picture and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227496A (en) * 2016-09-12 2016-12-14 惠州Tcl移动通信有限公司 A kind of method and system regulating screen color temp
CN107395890A (en) * 2017-08-01 2017-11-24 奇酷互联网络科技(深圳)有限公司 A kind of method and apparatus and mobile terminal for adjusting Showing Effectiveness On Screen
CN107665074A (en) * 2017-10-18 2018-02-06 维沃移动通信有限公司 A kind of color temperature adjusting method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160029458A1 (en) * 2014-05-13 2016-01-28 Google Inc. Anticipatory Lighting from Device Screens Based on User Profile
CN105657559A (en) * 2014-12-03 2016-06-08 天津三星电子有限公司 Display parameter automatic regulating display device and method thereof
CN105320488A (en) * 2015-11-16 2016-02-10 联想(北京)有限公司 Control method, display method and electronic device
CN106331344A (en) * 2016-08-23 2017-01-11 维沃移动通信有限公司 Adjustment method for color temperature of screen and mobile terminal
CN106502512A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of display methods of picture and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114512094A (en) * 2020-11-16 2022-05-17 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium
CN114512094B (en) * 2020-11-16 2023-03-24 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium
CN117235247A (en) * 2023-11-13 2023-12-15 深圳市微克科技有限公司 Novel reading method, system and medium based on intelligent wearable equipment

Also Published As

Publication number Publication date
WO2020000211A1 (en) 2020-01-02
CN111433734B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN109814766B (en) Application display method and electronic equipment
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
WO2021063343A1 (en) Voice interaction method and device
EP2940556B1 (en) Command displaying method and command displaying device
EP3023862A2 (en) Power control method and apparatus for reducing power consumption
CN107037966B (en) Electronic device for sensing pressure of input and method for operating electronic device
WO2021000841A1 (en) Method for generating user profile photo, and electronic device
EP3107087B1 (en) Device for controlling multiple areas of display independently and method thereof
US20170134694A1 (en) Electronic device for performing motion and control method thereof
CN110673783B (en) Touch control method and electronic equipment
CN111970401B (en) Call content processing method, electronic equipment and storage medium
US20150234799A1 (en) Method of performing text related operation and electronic device supporting same
WO2022100222A1 (en) Information retrieval method, apparatus and system, and storage medium
CN112269853A (en) Search processing method, search processing device and storage medium
CN115033313A (en) Terminal application control method, terminal equipment and chip system
CN111433734B (en) Method and terminal for adjusting color temperature of screen
CN113852714A (en) Interaction method for electronic equipment and electronic equipment
KR102471739B1 (en) Apparatus and method for managing of history information in a electronic device
CN112740148A (en) Method for inputting information into input box and electronic equipment
WO2023179490A1 (en) Application recommendation method and an electronic device
CN113742460A (en) Method and device for generating virtual role
KR102529808B1 (en) fabric measuring device that determines the color information of the fabric
CN115379113A (en) Shooting processing method, device, equipment and storage medium
WO2022089276A1 (en) Collection processing method and related apparatus
WO2023221895A1 (en) Target information processing method and apparatus, and electronic device

Legal Events

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