CN115019746B - Display method and medium of electronic equipment and electronic equipment - Google Patents

Display method and medium of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN115019746B
CN115019746B CN202110839530.5A CN202110839530A CN115019746B CN 115019746 B CN115019746 B CN 115019746B CN 202110839530 A CN202110839530 A CN 202110839530A CN 115019746 B CN115019746 B CN 115019746B
Authority
CN
China
Prior art keywords
blue
parameter
screen
blue light
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110839530.5A
Other languages
Chinese (zh)
Other versions
CN115019746A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110839530.5A priority Critical patent/CN115019746B/en
Publication of CN115019746A publication Critical patent/CN115019746A/en
Application granted granted Critical
Publication of CN115019746B publication Critical patent/CN115019746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/028Circuits for converting colour display signals into monochrome display signals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application relates to the field of photoelectric technology, in particular to a display method of electronic equipment, a medium and the electronic equipment, wherein the method comprises the following steps: the method comprises the steps that the electronic equipment obtains current screen light parameters of the electronic equipment and environment light data of an environment where a screen of the electronic equipment is located, wherein the environment light data comprise environment light brightness data and environment light color temperature data; the electronic equipment generates blue light adjustment parameters according to the screen light parameters and the ambient light data; the electronic equipment acquires blue channel data of an interface image to be displayed by the electronic equipment, and adjusts the blue channel data by adopting blue light adjusting parameters; and the electronic equipment displays an interface image to be displayed based on the adjusted blue channel data. Therefore, the total amount of blue light entering eyes can be reasonably controlled, the color of the screen can be kept balanced as much as possible (but the color distortion is too yellow), the blue light entering eyes is reasonably slowed down when a user views the display content of the screen, and the visual experience of the user is improved.

Description

Display method and medium of electronic equipment and electronic equipment
Technical Field
The present disclosure relates to the field of optoelectronic technologies, and in particular, to a display method and medium for an electronic device, and an electronic device.
Background
With the rapid development of network technology, intelligent electronic devices such as mobile phones, tablet computers, televisions and the like are becoming more popular, and great convenience is brought to life, study and work of people.
However, since the light emitted by the screen of the intelligent electronic device contains more blue light, the user looks against the screen of the intelligent electronic device for a long time, and the eyes of the user are greatly injured. For example, blue light has a relatively high energy, and can penetrate the cornea and lens of the eye to the retina, causing atrophy of retinal pigment epithelial cells. For another example, the blue light wavelength is short, and the focusing point of the light does not fall at the center of the retina of the eye, but at a position further forward from the retina, so that the eyeball is in tension for a long time to be clearly seen, and visual fatigue is caused. For another example, blue light can also inhibit secretion of melanin, and the melanin is an important hormone affecting sleep, and the melanin can promote sleep and adjust time difference, so that a mobile phone or a tablet personal computer is played before sleeping, and sleep quality is low and even sleep is difficult to fall.
Currently, in the eye protection scheme in the prior art, an intelligent electronic device starts a global eye protection mode, and blue light emitted by a screen is adjusted by using set eye protection parameters. For example, fig. 1 (a) to 1 (c) show a schematic diagram of a user interface change of the mobile phone 100 during the opening process of the eye-protection mode. After the user clicks the setting control 1 on the main page of the mobile phone 100, the setting interface is displayed, as shown in fig. 1 (b), the user finds the display control 2 on the display interface, clicks the display control 2, then enters the interface containing the eye protection parameters, as shown in fig. 1 (c), the user finds the eye protection parameter control 3 on the interface containing the eye protection parameters, clicks the eye protection parameter control 3, then enters the eye protection mode interface, as shown in fig. 1 (d), the user clicks the eye protection mode opening button 4 on the interface containing the eye protection parameters, and opens the eye protection mode, so that the mobile phone 100 cuts down the blue light component in the light emitted by the screen based on the set eye protection parameters, so as to achieve the effect of reducing the blue light component of the screen.
It will be appreciated that the light emitted from the screen, together with the ambient light, enters the eye, is the color of the image of the interface to be displayed that is actually seen by the user. However, since the above-mentioned eye protection scheme is to adjust the blue light emitted by the screen by using the set eye protection parameters, when the ambient light around the user changes from dark to bright or from bright to dark, the color temperature of the ambient light around the user changes from yellow to blue, and the blue light emitted by the screen changes from less to more to the blue, etc., the blue light component of the screen is reduced based on the eye protection parameters that are unchanged, and after the light emitted by the screen enters the eyes together with the ambient light, the user sees that the color of the image of the interface to be displayed is unnatural (for example, too yellow and too blue), which results in a lower user's look and feel.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a display method of an electronic device, where the method includes:
the electronic equipment acquires current screen light parameters of the electronic equipment and environment light data of an environment where a screen of the electronic equipment is located, wherein the environment light data comprise environment light brightness data and environment light color temperature data;
the electronic equipment generates blue light adjustment parameters according to the screen light parameters and the ambient light data;
The electronic equipment acquires blue channel data of an interface image to be displayed by the electronic equipment, and adjusts the blue channel data by adopting blue light adjustment parameters;
and the electronic equipment displays an interface image to be displayed based on the adjusted blue channel data.
It is understood that the electronic device adapted to the embodiments of the present application may also be a mobile phone, a computer, a tablet, an eye enhancement device, etc., but is not limited thereto.
In some embodiments, the blue channel data may be data in RGB histogram data, the blue channel data including pixel values and numbers of pixel values for blue channel pixels. The method comprises the steps that electronic equipment obtains RGB histogram data of an interface image to be displayed; the method comprises the steps that an electronic device obtains screen brightness parameters, ambient light brightness data and ambient light color temperature data of the electronic device; the electronic equipment determines a blue light adjustment parameter according to the screen brightness parameter, the ambient light brightness data and the ambient light color temperature data, wherein the blue light adjustment parameter comprises a blue light reduction ratio of blue channel data in RGB histogram data (such as a blue light reduction ratio of blue pixel values (0-255) in each pixel point in an interface image to be displayed); the electronic equipment adjusts RGB histogram data according to the blue light adjustment parameters; the electronic equipment displays the image of the interface to be displayed according to the adjusted RGB histogram data, so that the content displayed on the screen of the electronic equipment is attached to the environment, the total amount of blue light entering eyes of a user can be reasonably controlled, the duty ratio of blue light entering eyes perceived by the eyes can be still controlled at a reasonable level, the color of the screen can be kept to be balanced as much as possible (but not too yellow color distortion sense), and the blue light entering eyes of the user can be at a reasonable fatigue slowing level when the user views the content displayed on the screen, so that the user's visual experience is improved.
In a possible implementation manner of the first aspect, before the electronic device obtains a current screen light parameter of the electronic device and ambient light data of an environment where a screen of the electronic device is located, the method further includes:
the electronic device determines whether to perform blue light parameter adjustment.
It can be understood that, when the electronic device determines that the blue light parameter adjustment mode is on, the blue light parameter adjustment is determined to be executed;
or the electronic equipment determines that the blue light parameter adjustment mode is started, and the application started by the electronic equipment is a non-first type application, and determines to execute blue light parameter adjustment, if not, does not execute blue light parameter adjustment.
In a possible implementation of the first aspect, the determining, by the electronic device, whether to perform blue light parameter adjustment includes:
the electronic equipment determines that a blue light parameter adjustment mode is started, and then determines to execute blue light parameter adjustment;
or the electronic equipment determines that the blue light parameter adjustment mode is started, and the application started by the electronic equipment is a non-first type application, and then determines to execute blue light parameter adjustment.
It will be appreciated that the electronic device may refer to the setting 208 in response to a user selecting a dynamic adjustment blue light parameter adjustment mode in an on setting or a dynamic adjustment blue light parameter adjustment mode in an off setting according to a user operation, for example, clicking a button corresponding to the dynamic adjustment blue light parameter adjustment mode, for example, turning off a button corresponding to the dynamic adjustment blue light parameter adjustment mode.
It can be appreciated that in other embodiments, the setting 208 may start the dynamic adjustment blue light parameter adjustment mode in the setting according to the user operation, and execute the display method of the electronic device provided in the embodiments of the present application if the electronic device 100 is in the bright screen state after being unlocked
It can be understood that the first type of application is a game application, when the application started by the electronic device is a non-game application, the blue light parameter adjustment is executed, and when the application started by the electronic device is a non-game application, the blue light parameter adjustment is not executed, that is, the change of the eye-protection parameter (such as a few games) is locked, so that the display content perception difference of the electronic contest scene caused by the parameter difference in the game scene is avoided.
In a possible implementation of the first aspect, the blue light adjustment parameter includes a subtraction ratio parameter of a blue channel pixel value of the interface image to be displayed.
For example, if the blue light reduction ratio of the pixel value (0-255) of the blue channel in each pixel point in the image to be displayed is 20%, the blue light reduction ratio of the pixel value (0-255) of the blue channel in each pixel point in the image to be displayed is 20% multiplied by the pixel value (0-255) of the blue channel, taking 200 as an example, and 200 as an example, the corresponding cancellation amount of 200 as 200×20% =40. The pixel value (blue color value) 200 of the blue channel is adjusted to 200×160 (1-20%) =160 during the screen display.
In a possible implementation of the first aspect, the generating the blue light adjustment parameter includes:
the electronic equipment obtains a first blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light color temperature data;
the electronic equipment obtains a second blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light brightness data;
the electronic equipment obtains a third blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen brightness parameter;
and the electronic equipment performs weighting treatment on the first blue light reduction ratio parameter, the second blue light reduction ratio parameter and the third blue light reduction ratio parameter to obtain a blue light adjustment parameter.
In a possible implementation manner of the first aspect, the formula for generating the blue light adjustment parameter is as follows:
Figure BDA0003178447360000031
K offset representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is 2;
W i representing the weight of each dimension,0 or more;
Y i representing the blue light reduction ratio of each dimension (ambient light color temperature, ambient light brightness, screen brightness parameters); y is Y 0 A first blue light reduction ratio, Y, representing the color temperature dimension of ambient light 1 A second blue light reduction ratio, Y, representing an ambient light brightness dimension 2 A third blue light reduction ratio representing a screen brightness parameter dimension.
In a possible implementation manner of the first aspect, the adjusting the blue channel data using a blue adjustment parameter includes:
the electronic equipment further acquires the bright screen duration data of the electronic equipment screen;
and the electronic equipment determines a blue light adjusting parameter according to the bright screen duration data, the screen brightness parameter, the ambient light brightness data and the ambient light color temperature data.
In a possible implementation of the first aspect, the generating the blue light adjustment parameter includes:
the electronic equipment obtains a first blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light color temperature data;
the electronic equipment obtains a second blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light brightness data;
the electronic equipment obtains a third blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen brightness parameter;
the electronic equipment obtains a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen-lighting duration data;
And the electronic equipment performs weighting processing on the first blue light reduction ratio parameter, the second blue light reduction ratio parameter, the third blue light reduction ratio parameter and the fourth blue light reduction ratio parameter to obtain a blue light adjustment parameter.
In a possible implementation manner of the first aspect, the formula for generating the blue light adjustment parameter is as follows:
the blue light adjustment parameter calculation formula is as follows:
Figure BDA0003178447360000041
K offset representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is 2;
W i representing the weight of each dimension to be more than or equal to 0;
Y i representing the blue light reduction ratio of each dimension (ambient light color temperature, ambient light brightness, screen brightness parameters);
Y 0 a first blue light reduction ratio, Y, representing the color temperature dimension of ambient light 1 A second blue light reduction ratio, Y, representing an ambient light brightness dimension 2 A third blue light reduction ratio representing a screen brightness parameter dimension; c (C) t A fourth blue light reduction ratio obtained from the bright screen use time period is shown.
In a possible implementation manner of the first aspect, the obtaining, by the electronic device, a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the bright screen duration data includes:
The electronic equipment further acquires bright screen duration data and screen blue attenuation aging curve data of a screen of the electronic equipment;
and the electronic equipment obtains a fourth blue light reduction ratio parameter of the blue channel pixel value in the blue channel data based on the bright screen duration data and the screen blue attenuation aging curve data.
In a possible implementation of the first aspect, the method further includes:
the electronic equipment acquires the screen brightness using time of the screen of the electronic equipment;
and the electronic equipment obtains the actual screen brightness parameter according to the bright screen use duration and the screen brightness aging curve of the screen.
In a possible implementation manner of the first aspect, the adjusting the blue channel data using a blue adjustment parameter includes:
and the electronic equipment multiplies the data obtained by subtracting the blue light adjusting parameter from the preset value by each pixel value in the blue channel data to obtain adjusted blue channel data.
It is understood that the preset value may be 1.
In a possible implementation of the first aspect, the method is applied to an electronic device, where the electronic device includes a sensor driving module, an image effect processing module, a brightness control module, and a display driving module;
The electronic equipment determines that the blue light parameter adjustment mode is started, specifically:
the image effect processing module determines that the blue light parameter adjustment mode is in an on state;
the electronic equipment acquires current screen light parameters of the electronic equipment and environment light data of an environment where a screen of the electronic equipment is located, and specifically comprises:
the image effect processing module obtains the current screen light parameters of the electronic equipment from the brightness control module under the condition that the blue light parameter adjustment mode is determined to be in an on state;
the image effect processing module sends an ambient light data request to the sensor driving module;
the sensor driving module sends ambient light brightness data and ambient light color temperature data to the image effect processing module under the condition that the ambient light data sending request is received;
the electronic equipment generates a blue light adjustment parameter based on the screen light parameter and the ambient light data, and specifically comprises the following steps:
the image effect processing module generates blue light adjustment parameters based on the screen light parameters and the ambient light data;
the blue channel data is adjusted by adopting blue light adjustment parameters; displaying an interface image to be displayed based on the adjusted blue channel data, specifically:
The image effect processing module acquires blue channel data of an interface image to be displayed by the electronic equipment, and adjusts the blue channel data by adopting a blue light adjusting parameter;
the image effect processing module sends an instruction for displaying an interface image to be displayed to the display driver under the condition that the blue channel data adjustment is completed;
and the display driver drives a display screen to display the image of the interface to be displayed under the condition that the instruction for displaying the image of the interface to be displayed is received.
In a possible implementation of the first aspect, the electronic device further includes a first application, a second application, a window management module, and a layer composition module; the method further comprises the steps of:
the first application receives a first operation of opening or closing a blue parameter adjustment mode control by a user;
in response to the first operation, the first application sends blue parameter adjustment mode state information to the image effect processing module, wherein the blue parameter adjustment mode state information is used for indicating to turn on or off a blue parameter adjustment mode;
in response to receiving the blue parameter adjustment mode state information, the image effect processing module stores the blue parameter adjustment mode state information;
The second application receives a second operation of a user, wherein the second operation is used for starting the second application;
the second application sends application identification information and window information of an application interface to be displayed to the window management module;
the window management module sends application identification information to the image effect processing module;
the window management module sends application identification information and window information of an application interface to be displayed to the layer composition module;
the layer synthesizing module synthesizes the image data of the interface to be displayed according to the window information of the application interface to be displayed;
the image layer synthesizing module sends synthesized interface image data to be displayed to the image effect processing module;
responding to the received synthesized image data of the interface to be displayed, and judging whether a blue light parameter adjustment mode needs to be started or not by the image effect processing module according to the blue light parameter adjustment mode state information and the application identification information; and under the condition that the image effect processing module judges that the state information of the blue parameter adjustment mode and the application identification information meet the preset conditions, starting a blue parameter adjustment mode.
It is to be appreciated that the first application can be a setup application and the second application can be a third party application, such as a shopping class application, a gaming class application, a music class application, an entertainment class application, and the like.
In a possible implementation of the first aspect, the preset condition includes that the blue parameter adjustment mode state information is that the blue parameter adjustment mode is an on state and that the application is a non-first type application.
It can be understood that the first type of application game application can lock the change of the eye-protection parameters (such as a few games), so as to avoid the content perception difference of the electronic contest scene caused by the parameter difference in the game scene.
In a possible implementation manner of the first aspect, the electronic device further includes a memory, and the brightness control module obtains current screen light parameters of the electronic device, including:
responding to a screen brightness parameter request sent by the image effect processing module, and acquiring bright screen duration data from the display driver by the brightness control module;
the brightness control module acquires screen brightness aging curve data from the memory, and the brightness control module obtains actual screen brightness parameters based on the bright screen duration data and the screen brightness aging curve data;
the brightness control module sends actual screen brightness parameters to the image effect processing module.
In a possible implementation manner of the first aspect, the electronic device further includes a memory, and the electronic device obtains a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the bright screen duration data, specifically including:
and the image effect processing module further acquires bright screen duration data of the electronic equipment screen from a display driver, acquires screen blue attenuation aging curve data from the memory, and acquires a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data based on the bright screen duration data and the screen blue attenuation aging curve data.
In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor, where the processor is configured to couple to a memory, read an instruction in the memory, and cause the electronic device to execute a display method of the electronic device according to the instruction.
In a third aspect, an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to execute the display method of the electronic device.
Drawings
Fig. 1 (a) to 1 (c) show a user interface change schematic diagram of the mobile phone 100 during the opening process of the eye-protection mode;
fig. 2 is a schematic diagram of an application scenario of blue light adjustment parameter adjustment according to an embodiment of the present application;
FIG. 3 illustrates different color (light) characteristics corresponding to different color temperature ranges;
fig. 4 is a schematic diagram illustrating a method for performing blue light adjustment parameters by the mobile phone 100 in fig. 2 according to some embodiments of the present application;
fig. 5 is a schematic diagram showing a hardware structure of a mobile phone 100 according to an embodiment of the present application;
fig. 6A is a schematic structural diagram illustrating a combination of software and hardware in a mobile phone 100 to implement the technical solution of the present application according to an embodiment of the present application;
fig. 6B is a flowchart illustrating a display method of an electronic device according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a display method of an electronic device according to an embodiment of the present application;
fig. 8A is an ambient light color temperature-blue light reduction ratio curve, fig. 8B is an ambient light illuminance-blue light reduction ratio curve, and fig. 8C is a screen brightness parameter-blue light reduction ratio curve.
FIG. 9 is a graph of screen brightness aging, with the abscissa being the cumulative usage time t (units: hours) and the ordinate being the screen maximum brightness retention;
Fig. 10A is a diagram showing an Organic Light-Emitting Diode (OLED), also called an Organic RGB aging curve, of a screen of the mobile phone 100;
FIG. 10B is a schematic diagram showing an RGB aging curve of a screen of the mobile phone 100 with LEDs;
fig. 11A to 11G exemplarily show blue channel histogram (blue color histogram) arrangement before and after the smoothing process;
fig. 12 exemplarily shows a blue channel histogram (blue color histogram) arrangement after the smoothing process;
fig. 13 is a flowchart illustrating a display method of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is further described below with reference to specific embodiments and figures. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. Furthermore, for ease of description, only some, but not all, of the structures or processes associated with the present application are shown in the drawings. It should be noted that in the present specification, like reference numerals and letters denote like items in the following drawings.
Illustrative embodiments of the present application include, but are not limited to, a display method for an electronic device, a medium, and an electronic device. As mentioned in the background section above, since the color characteristics (e.g., yellowish or bluish) of the screen display content seen by the human eye are determined by both the screen emission light and the reflected light of the ambient light on the screen, for example, if the ambient light is yellowish, the screen emission light is also yellowish at this time, and the combination of the two enters the user's eye, the screen display content seen by the user is more yellowish.
Therefore, the embodiment of the application mainly needs to make the display content of the screen seen by the user tend to be normal by balancing the ambient light and the light emitted by the screen, protects eyes of the user and improves user experience.
One important parameter for adjusting the blue light adjustment parameter includes: the color temperature of the ambient light is an important parameter for physically measuring the color characteristics of the ambient light, when the value of the color temperature of the ambient light is larger, the ambient light is more inclined to blue, the extinction value of the blue light emitted by the screen is reduced, when the value of the color temperature of the ambient light is smaller, the ambient light is more inclined to yellow, the extinction value of the blue light emitted by the screen is increased, and when the two values are combined and enter eyes of a user, the display content of the screen seen by the user tends to be normal (not inclined to yellow and not inclined to blue too).
Because the quantity of blue light components reflected by the screen into human eyes is considered, the blue light components reflected by the screen can be more when the color temperature of the ambient light is large, and if the blue light emitted by the screen can be further restrained, the total quantity of the blue light entering the human eyes can be reasonably limited, and the damage of the blue light to eyes is further reduced; if the blue light reflected by the screen is small when the color temperature of the ambient light is small, if the screen is further allowed to emit more blue light, namely the extinction value of the blue light component in the display content of the screen is reduced, the total amount of blue light entering the eyes of a person can be reasonably limited, and further the damage to the eyes for the blue light is reduced, because the blue light emitted by the screen is reduced and inhibited (the screen is allowed to emit more blue light), the total amount of blue light entering the eyes of the person can be reasonably controlled, the proportion of blue light entering the eyes perceived by the eyes can be still controlled at a reasonable level, and the color balance (which is not more than the yellowish color distortion) of the screen can be kept as much as possible.
Another important parameter for adjusting the blue light adjustment parameter includes: the brightness of the environment and the brightness of the screen are increased when the brightness of the environment or the brightness of the screen is smaller, the pupil of the user in the environment is enlarged, the more light enters the pupil of the user, the more sensitive the user is to blue, so that the extinction value of the blue light component in the screen display content needs to be increased under the condition that the brightness of the environment or the brightness of the screen is smaller, the extinction value of the blue light component in the screen display content is reduced under the condition that the brightness of the environment or the brightness of the screen is larger, eyes of the user are protected, and the user experience is improved.
For the convenience of description of the technical solutions of the present application, the terms involved in the present application are introduced below.
(1) RGB histogram data
It will be appreciated that the RGB histogram data includes the pixel values of the red, green and blue channel pixels of the interface image to be displayed by the electronic device, as well as the number of individual pixel values of the red, green and blue channels. The blue channel data includes pixel values of blue channel pixels and the number of the pixel values. The green channel data includes pixel values of green channel pixels and the number of pixel values. The red channel data includes pixel values of red channel pixels and the number of pixel values.
(2) Blue light adjustment parameters
The blue light adjustment parameter, which may also be called a blue light eye protection parameter, refers to a reduction ratio of pixel values of a blue channel of an interface image to be displayed on a screen of the electronic device.
For example, if the blue light reduction ratio of the pixel value (0-255) of the blue channel in each pixel point in the image to be displayed is 20%, the blue light reduction ratio of the pixel value (0-255) of the blue channel in each pixel point in the image to be displayed is 20% multiplied by the pixel value (0-255) of the blue channel, taking 200 as an example, and 200 as an example, the corresponding cancellation amount of 200 as 200×20% =40. The pixel value (blue color value) 200 of the blue channel is adjusted to 200×160 (1-20%) =160 during the screen display.
(3) Color temperature
In this embodiment of the present application, the color temperature of ambient light is used as an important index for adjusting the eye-protection parameter, and the concept of the color temperature is described below. Color temperature is a measure of the color component of a light, i.e. the color of the light, e.g. the color tendency of the light to appear in different time periods from early to late due to reflection from the atmosphere, midday, light white, evening, light yellow.
The unit of color temperature and the calculation of the color temperature value are described below.
Theoretically, blackbody temperature refers to the color that an absolute blackbody assumes after heating from absolute zero (-273 ℃). After being heated, the black body gradually turns from black to red, turns yellow and emits white, and finally emits blue light (black light, red light, yellow light, white light and blue light). When heated to a certain temperature, the spectral components contained in the light emitted by the black body are called the color temperature at this temperature, and the measurement unit is "K" (kelvin). If a light source emits light having the same spectral composition as the light emitted by a black body at a certain temperature, it is called a certain K color temperature. If the color of the light emitted by the 100W bulb is the same as that of the absolute blackbody at 2527 ℃, the color temperature of the light emitted by the bulb is: (2527+273) k=2800k.
The following describes different color characteristics corresponding to different color temperature values. Fig. 3 illustrates different color (light) characteristics corresponding to different color temperature ranges, for example.
When the object is in absolute zero, it is in pure black, and it is heated to emit light, i.e. it turns dark red, and further heating turns yellow, then white, and finally blue. Since the use of color drawings is not allowed in the patent, the change in color is represented by the change in gray level in fig. 3. The darker the gray level, the bluish the color and the lighter the gray level, the yellowish the color.
As shown in fig. 3, the color temperature value is in the range of less than 3000K, the color is yellowish, the color (light) characteristic is warm, the color temperature value is in the range of more than 5000K, the color is bluish, the color (light) characteristic is cool, the color temperature value is in the range of more than 3000K and less than 5000K, and the color (light) characteristic is based on the cool and warm.
It is understood that the larger the color temperature value, the more the color (light) characteristic tends to be blue (cool), the smaller the color temperature value, the more the color (light) characteristic tends to be yellow (warm), and the larger the color temperature value, the more the color (light) characteristic tends to be blue (cool).
For example, table 2 shows corresponding different color temperature ranges for different scenes. Table 2:
Figure BDA0003178447360000081
Figure BDA0003178447360000091
in summary, it will be appreciated that, since the color temperature of the screen display seen by the human eye is mainly determined by the color temperature of the light emitted by the screen and the color temperature of the reflected light of the ambient light on the screen, if the color temperature value of the ambient light is smaller, the ambient light is more yellow (because the ambient light is reflected from the screen into the warm light of the human eye and is more yellow), and if the color temperature value of the light emitted by the screen is smaller (the blue light is subtracted more), the screen display is more yellow, and if the two are combined into the eyes of the user, the screen display seen by the user is more yellow. Therefore, when the color temperature value of the ambient light is larger, the ambient light is more blue, at the moment, the blue light component of the emitted light of the screen needs to be subtracted more, and the emitted blue light of the screen is reduced, whereas when the color temperature value of the ambient light is smaller, the ambient light is more yellow, at the moment, the blue light component of the emitted light of the screen needs to be subtracted or not subtracted, and when the two components are combined into eyes of a user, the blue light component entering eyes of the user can be controlled at a reasonable and comfortable level, and eye fatigue and brain are relieved.
(4) Ambient light and screen light
In this embodiment of the present application, the ambient light level and the screen light level are used as important indicators for adjusting the eye-protection parameter, and the concept of the ambient light level is described below, and the concept of the screen light level is described below.
Ambient light brightness, i.e., ambient illuminance, may be abbreviated as ambient illuminance, and its unit of measurement is named "lux", abbreviated as "lux", and the unit symbol is "lx or lux", indicating the luminous flux received on the unit area of the surface of the subject. Table 3 shows the corresponding different illumination ranges for different scenes.
Table 3:
scene(s) Illuminance (lux)
Outdoor sunny day ≥30000
Indoor sunny day 100~1000
Outdoor in cloudy days 3000~10000
Indoor in cloudy day 50~500
Dusk room 10
Sunrise and sunset 300
Night dim light 1
In the embodiment of the application, the screen brightness refers to the intensity of the light displayed on the screen (e.g. plasma screen, liquid crystal screen) of the electronic device, and the unit is nit (nit), 1 nit=1 candela/square meter.
It is not easy to understand that the smaller the ambient light brightness or the screen brightness of the user is, the more light enters the pupil of the user, the more sensitive the user is to blue, so that the lower the ambient light brightness or the screen brightness is, the blue light reduction ratio in the screen display content is required to be reduced, the higher the ambient light brightness or the screen brightness is, the blue light reduction ratio in the screen display content is required to be increased, the eyes of the user are protected, and the user experience is improved.
In summary, in order to solve the technical problem mentioned in the background art, an electronic device acquires RGB histogram data of an interface image to be displayed; the method comprises the steps that an electronic device obtains screen brightness parameters, ambient light brightness data and ambient light color temperature data of the electronic device; the electronic equipment determines a blue light adjustment parameter according to the screen brightness parameter, the ambient light brightness data and the ambient light color temperature data, wherein the blue light adjustment parameter comprises a blue light reduction ratio of blue channel data in RGB histogram data (such as a blue light reduction ratio of blue pixel values (0-255) in each pixel point in an interface image to be displayed); the electronic equipment adjusts RGB histogram data according to the blue light adjustment parameters; the electronic equipment displays the image of the interface to be displayed according to the adjusted RGB histogram data, so that the content displayed on the screen of the electronic equipment is attached to the environment, the total amount of blue light entering eyes of a user can be reasonably controlled, the duty ratio of blue light entering eyes perceived by the eyes can be still controlled at a reasonable level, the color of the screen can be kept to be balanced as much as possible (but not too yellow color distortion sense), and the blue light entering eyes of the user can be at a reasonable fatigue slowing level when the user views the content displayed on the screen, so that the user's visual experience is improved.
For example, fig. 2 is a schematic diagram of an application scenario of blue light adjustment parameter adjustment, as shown in fig. 2, where the scenario includes a mobile phone 100 and a user a, and if the user a holds the mobile phone 100 in a place such as a home or an office, and plays the mobile phone 100, the light emitted from a window into a house by the sun in nature, the light emitted from a lamp in the room, etc. form the ambient light perceived by the user a, and the user a also intuitively perceives the light emitted from the screen of the mobile phone 100. If the eye protection parameter adjusting method corresponding to fig. 1 is adopted, when the sunlight in nature is yellow and the light emitted by the lamp is yellow, and the light emitted by the screen is yellow after the blue light component of the screen is reduced based on the fixed eye protection parameter, the image to be displayed, which is seen by the user at the moment, is the superposition of the yellow degree of the ambient light and the yellow degree of the light emitted by the screen, the image to be displayed, which is perceived by the user, is yellow, and the user's viewing experience is lower.
In order to solve the problem, in the embodiment of the present application, please continue to refer to fig. 2, the mobile phone 100 (an example of an electronic device) obtains RGB histogram data of an image of an interface to be displayed, obtains a blue adjustment parameter based on an ambient light brightness and an ambient light color temperature formed by sun, a desk lamp, and the like, and a screen brightness of the mobile phone 100, adjusts blue channel data in the RGB histogram data based on the blue adjustment parameter, wherein the blue channel data includes blue pixel values of blue pixel points and numbers of pixels corresponding to the blue pixel values, and displays the image of the interface to be displayed according to the adjusted RGB histogram data. Specifically, fig. 4 is a schematic diagram illustrating a method for performing the blue light adjustment parameter adjustment method provided by the present application by the mobile phone 100 in fig. 2 according to some embodiments of the present application, and as shown in fig. 4, fig. 4 includes an unadjusted interface image a to be displayed and a corresponding unadjusted RGB histogram thereof, and the unadjusted interface image a to be displayed and a corresponding adjusted RGB histogram thereof are adjusted based on the blue light adjustment parameter. The mobile phone 100 displays an interface image to be displayed based on the RGB data in the adjusted RGB histogram. Taking pixel a included in the blue channel curve of the unregulated RGB histogram as an example, the blue pixel value of the pixel a is 200, the number of pixels having the blue pixel value is 25, if the blue light regulation parameter is 20%, the number of pixels is unchanged, still 25, and only the pixel value 200 is reduced by 20% and then changed to 160. The mobile phone 100 then displays an interface image to be displayed based on the adjusted RGB data. The adjustment method of the other blue channel data is the same as the adjustment method, and the number of pixels is unchanged, and each pixel value in the blue channel data is multiplied by the blue light reduction ratio. As can be seen from fig. 5, the unadjusted interface image a to be displayed corresponds to the bluish characteristic in fig. 3. The adjusted to-be-displayed interface image B corresponds to the yellow-bias characteristic in FIG. 3, so that the RGB histogram data reaches a proper blue light reduction degree to a certain extent, the eye protection effect and the color difference effect of screen display (reducing the color bias degree) are better achieved, and the sensory experience of a user is improved.
In addition, it will be appreciated that, as the performance of the mobile phone 100 gradually decreases during use of the mobile phone 100, for example, the screen of the mobile phone 100 is displayed at a set brightness, the screen actually displays a brightness lower than the set brightness, the screen of the mobile phone 100 is displayed at a set blue pixel value, and the screen actually displays a blue pixel value lower than the set pixel value. Therefore, in other embodiments, the mobile phone 100 obtains the actual screen brightness parameter according to the screen brightness aging degree, obtains the blue light reduction ratio according to the blue channel aging degree in the RGB channel of the screen, obtains the blue light adjustment parameter in the RGB histogram data according to the actual screen brightness parameter, the ambient light color temperature and the ambient light brightness, and subtracts the blue light reduction ratio according to the blue channel aging degree in the RGB channel of the screen. In this way, the embodiment of the application further and more accurately obtains the blue light reduction degree achieved by the RGB histogram data, better achieves the eye protection effect and the color difference effect of screen display (reduces the color cast degree), and improves the sensory experience of the user.
In addition, it can be understood that, in addition to RGB histogram data, the data applicable to the embodiments of the present application may be data of other color spaces, for example, YUV data, that is, after the YUV data is converted into RGB histogram data, the converted RGB histogram data is adjusted based on blue color parameters, and then the adjusted RGB histogram data is restored into YUV data, and the mobile phone 100 displays an image to be displayed based on the restored YUV data, but is not limited thereto.
In addition, it is understood that the electronic device adapted to the embodiment of the present application may be a computer, a tablet, an eye enhancement device, or the like, in addition to the mobile phone 100, but is not limited thereto.
Fig. 5 is a schematic diagram showing a hardware structure of a mobile phone 100 according to an embodiment of the present application.
The mobile phone 100 can execute the method for adjusting the eye protection parameters provided in the embodiment of the present application. As shown in fig. 5, the mobile phone 100 may include a processor 110, a wireless communication module 120, a mobile communication module 130, a touch display 140, a brightness sensor 151, a color temperature sensor 152, a power module 160, an interface module 170, a memory 180, and the like.
It should be understood that the structure illustrated in the embodiments of the present invention is not limited to the specific embodiment of the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components may be provided. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example, processing modules or processing circuits that may include a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), an image signal processor (image signal processor, ISP), a digital signal processor (Digital Signal Processor, DSP), a microprocessor (Micro-programmed Control Unit, MCU), an artificial intelligence (Artificial Intelligence, AI) processor, a programmable logic device (FieldProgrammable Gate Array, FPGA), or the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, in some examples of the present application, the processor 110 may determine the blue light adjustment parameter according to parameters such as the color temperature of ambient light, the ambient light brightness, the screen display content, and the like around the mobile phone screen, and adjust the RGB histogram data according to the blue light adjustment parameter, so that the content displayed on the screen of the mobile phone 100 is more fit to the environment, i.e., the content displayed on the screen of the user tends to be normal (e.g., not particularly yellow or blue), so as to protect eyes of the user and improve user experience.
The sensor module 150 includes a luminance sensor 151 for sensing the ambient light level and the screen light level, and a color temperature sensor 152 for sensing the ambient color temperature. In the embodiment of the application, the mobile phone 100 senses key factors affecting the blue light effect of the screen by using a plurality of sensors (sensors) arranged on the mobile phone 100, dynamically adjusts the blue light adjustment parameters according to each factor value, and senses different external environment color temperatures through the color temperature Sensor 152; different external ambient brightness is sensed by the brightness sensor 151; then, according to parameters such as ambient light color temperature, ambient light brightness, screen brightness and the like around the screen of the mobile phone 100, the blue light adjusting parameters are adjusted, so that the content displayed on the screen of the mobile phone 100 is more attached to the environment, and the user experience is improved.
The Memory 180 may be used to store data, software programs, and modules, and may be a Volatile Memory (RAM), such as a Random-Access Memory (RAM); or a nonvolatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (HDD) or a Solid State Drive (SSD); or a combination of the above types of memories, or may be a removable storage medium, such as a Secure Digital (SD) memory card. For example, in some embodiments of the application, the memory 180 is configured to store data such as a screen blue decay aging curve and a screen brightness aging curve.
The power module 160 may include a power source, a power management component, and the like. The power source may be a battery. The power management component is used for managing the charging of the power supply and the power supply supplying of the power supply to other modules. The charging management module is used for receiving charging input from the charger; the power management module is used for connecting a power supply, and the charging management module is connected with the processor 110. The power module 160 is configured to supply power to the processor 110, the wireless communication module 120, the mobile communication module 130, the touch display 140, the brightness sensor 151, the color temperature sensor 152, the memory 180, and the like.
The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, a low noise amplifier (Low Noise Amplify, LNA), and the like. The mobile communication module 130 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 130 may receive electromagnetic waves from an antenna, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to a modem processor for demodulation. The mobile communication module 130 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 120 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 may provide solutions for wireless communication including wireless local area network (Wireless Local Area Networks, WLAN) (e.g., wireless fidelity (Wireless Fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology (IR), etc., applied to the handset 100. The handset 100 may communicate with a network and other devices via wireless communication technology. In this embodiment, if the color temperature sensor 152 is not provided, the mobile communication module 130 and the wireless communication module 120 are only connected to each other, the weather state of the area where the mobile phone 100 is located is obtained through the relevant server, the ambient light is read, and the color temperature of the current ambient light is fitted by combining the time in the time zone.
In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the handset 100 may also be located in the same module.
The interface module 170 includes an external memory interface, a universal serial bus (Universal Serial Bus, USB) interface, a subscriber identity module (Subscriber Identification Module, SIM) card interface, and the like. Wherein the external memory interface may be used to connect an external memory card, such as a Micro SD card, to extend the memory capabilities of the handset 100. The external memory card communicates with the processor 110 through an external memory interface to implement data storage functions. The universal serial bus interface is used for communication between the handset 100 and other handsets. The subscriber identity module card interface is used to communicate with a SIM card mounted to the handset 100, for example to read a telephone number stored in the SIM card or to write a telephone number to the SIM card.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Fig. 6A is a schematic structural diagram illustrating a combination of software and hardware in a mobile phone 100 to implement the technical solution of the present application according to an embodiment of the present application.
As shown in fig. 6A, the hardware layer includes the luminance sensor 151, the color temperature sensor 152, and the touch display screen 140 in fig. 5.
The software system of the mobile phone 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking an Android system with a layered architecture as an example, the embodiment of the invention first illustrates a software structure of the mobile phone 100.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is respectively a kernel layer, an application framework layer and an application layer from bottom to top.
The kernel layer is a layer between hardware and software. The kernel layer at least includes a sensor driver 201 and a display driver 202, and in this embodiment, the sensor driver 201 is configured to obtain ambient light brightness and color temperature from the brightness sensor 151 and the color temperature sensor 152.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. The application framework layer may include a window management module 206, a layer composition module 205, an image effect processing module 203, a brightness control module 204.
Wherein the window management module 206 is configured to manage a window program. The window management module 206 may obtain the display screen size, determine if there is a status bar, lock the screen, intercept the screen, etc. In this embodiment of the present application, the window management module 206 is configured to send application identification information to the image effect processing module, and send the application identification information and window information of an application interface to be displayed to the layer combining module 205.
The image layer synthesizing module 205 is configured to synthesize an image of an interface image to be displayed. For example, in the embodiment of the present application, the layer synthesis module 205 synthesizes an image of an interface to be displayed according to window information of the application interface to be displayed. For example, the image of the interface to be displayed can be synthesized according to the window position of the interface to be displayed, the stacking sequence of the interface and other layers, and the window information of other applications and status bars. And sends the synthesized interface image to be displayed to the image effect processing module 203.
The image effect processing module 203 is configured to obtain RGB histogram data of an image of an interface to be displayed, and determine a blue adjustment parameter according to the ambient light brightness and the ambient light color temperature obtained from the sensor driver 201, and the screen light brightness parameter obtained from the brightness control module 204, where the blue adjustment parameter includes a blue subtraction ratio of blue channel data in the RGB histogram data (for example, a blue subtraction ratio of blue pixel values (0-255) in each pixel point in the image of the interface to be displayed); the image effect processing module 203 adjusts the RGB histogram data according to the blue light adjustment parameter; and determining an interface image to be displayed after the blue light is regulated according to the regulated RGB histogram data, sending the interface image to the display driver 202, and driving the touch display screen 140 by the display driver 202 to display the interface image to be displayed after the blue light is regulated, so that the content displayed on the screen of the mobile phone 100 is more attached to the environment, namely, the display content of the screen seen by a user tends to be normal (such as not particularly yellow or particularly blue), eyes of the user are protected, and user experience is improved. The image effect processing module 203 may also be called an eye-protection mode parameter control engine, which is not limited herein.
In addition, it will be appreciated that, as the performance of the mobile phone 100 gradually decreases during use of the mobile phone 100, for example, the screen of the mobile phone 100 is displayed at a set brightness, the screen actually displays a brightness lower than the set brightness, the screen of the mobile phone 100 is displayed at a set blue pixel value, and the screen actually displays a blue pixel value lower than the set pixel value. Thus, in other embodiments, the display driver 202 stores the screen brightness statistics of the touch screen display 140, and in one aspect, the image effect processing module 203 instructs the brightness control module 204 to obtain the screen brightness aging curve from the memory 180 from the screen brightness statistics, obtain the actual screen brightness from the screen brightness aging curve according to the screen brightness statistics, and send the actual screen brightness to the image effect processing module 203.
On the other hand, the image effect processing module 203 further obtains the statistics of the bright screen time of the touch display screen 140 from the display driver 202, finds the aging degree of the blue channel from the screen brightness aging curve according to the statistics of the bright screen time, obtains the blue light reduction ratio according to the aging degree of the blue channel in the RGB channel of the screen, obtains the variation of the blue channel data in the RGB histogram data according to the actual screen brightness, the ambient light color temperature and the ambient light brightness, and subtracts the blue light reduction ratio obtained by the aging degree of the blue channel in the RGB channel of the screen. In this way, the embodiment of the application further and more accurately obtains the blue light reduction degree achieved by the RGB histogram data, better achieves the eye protection effect and the color difference effect of screen display (reduces the color cast degree), and improves the sensory experience of the user.
The application layer may include a series of application packages. The application package may include an application 207 and settings 208, and the application 207 may be a shopping application, a gaming application, an instant messaging application, a media application, or the like. In this embodiment, the setting 208 may control the brightness control module 204 to adjust the touch display screen 140 to the set brightness according to the user operation.
Fig. 6B is a schematic flow chart of a display method of an electronic device according to an embodiment of the present application, corresponding to fig. 6A. As shown in fig. 6B:
step 601: setting 208, according to user operation, sending blue parameter adjustment mode state information;
it is understood that the blue parameter adjustment mode state information includes blue parameter adjustment mode on information and blue parameter adjustment mode not on information, i.e., blue parameter adjustment mode unused information.
The setting 208 may refer to the setting 208 responding to the user selecting to turn on the dynamic adjustment blue light parameter adjustment mode in the setting or turn off the dynamic adjustment blue light parameter adjustment mode in the setting according to the user operation, for example, clicking a button corresponding to the dynamic adjustment blue light parameter adjustment mode, for example, turning off the button corresponding to the dynamic adjustment blue light parameter adjustment mode.
It can be appreciated that in other embodiments, the setting 208 may start the dynamic adjustment blue light parameter adjustment mode in the setting according to the user operation, so long as the electronic device 100 is in the bright screen state after being unlocked, the display method of the electronic device provided in the embodiments of the present application (for example, step 611 to step 616).
Step 602: the image effect processing module 203 stores blue parameter adjustment mode status information, and is used for the image effect processing module 203 to determine whether the blue parameter adjustment mode needs to be started according to the blue parameter adjustment mode status information.
Step 603: the application 207 opens the application in response to a user operation.
It is understood that the user operation may be an operation in which the user clicks an application icon control. The application 207 may be a shopping class application, a gaming class application, a music class application, an entertainment class application, and the like.
Step 604: the application 207 transmits application identification information and window information of an application interface to be displayed to the window management module 206.
It is understood that the application identification information may include a package name of the application, and the window information of the application interface to be displayed includes identification information of the application window, status information of the window (e.g., start, switch, window position, whether displayable), a stacking order with other layers, and the like.
And when the window interface of the application 207 changes, actively sending application identification information and window information of the application interface to be displayed to the window management module 206.
Step 605: the window management module 206 sends application identification information and blue parameter adjustment mode status information to the image effect processing module 203, which are used by the image effect processing module 203 to determine whether the blue parameter adjustment mode needs to be turned on.
Step 606: the window management module 206 sends the application identification information and window information of the application interface to be displayed to the layer synthesis module 205.
Step 607: the layer combining module 205 combines the images of the interface to be displayed according to the window information of the application interface to be displayed.
It will be appreciated that the layer synthesis module 205 may synthesize the image of the interface to be displayed according to the window position of the interface to be displayed, the stacking sequence of the layers with other layers, and the window information of other applications and status bars.
Step 608: the layer composition module 205 sends the composite interface image to be displayed to the image effect processing module 203.
Step 609: the image effect processing module 203 judges whether the blue light parameter adjustment mode needs to be started according to the blue light parameter adjustment mode state information and the application identification information; if not, then step 610 is performed: the blue light parameter adjustment step (e.g., 611 to 616) is not performed; if yes, go to step 611;
the image effect processing module 203 may determine whether the application executes the adjustment method of the blue light adjustment parameter provided in the embodiment of the present application according to a table lookup method, for example, if the image effect processing module 203 determines that the application 207 is a game application, the change of the eye-protection parameter (such as a few games) will be locked, so as to avoid the perceived difference of the display content of the electronic contest scene caused by the parameter difference in the game scene.
Step 611: the image effect processing module 203 determines RGB histogram data of the interface image to be displayed.
Step 612: the image effect processing module 203 acquires screen brightness parameters from the brightness control module 204.
Step 613: the image effect processing module 203 sends an ambient light data request to the sensor driver 201, the ambient light data request capturing ambient light brightness and ambient light color temperature from the sensor driver 201 with the image effect processing module 203.
The image effect processing module 203 adjusts the blue channel data in the RGB histogram data based on the blue adjustment parameters.
Step 614: the image effect processing module 203 obtains the ambient light brightness and the ambient light color temperature fed back by the sensor driver 201.
Step 615: the image effect processing module 203 determines the blue light adjustment parameters in the RGB histogram data of the image to be displayed according to the screen brightness parameter, the ambient light brightness and the ambient light color temperature.
It will be appreciated that, in other embodiments, the image effect processing module 203 may further send an actual screen brightness acquisition request to the brightness control module 204, where the actual screen brightness acquisition request is used to instruct the brightness control module 204 to acquire the bright screen statistics time length of the touch screen display 140 from the display driver 202, the image effect processing module 203 acquires the bright screen statistics time length from the display driver 202, acquires the screen blue light attenuation aging curve from the memory 180, obtains the actual screen brightness parameter from the screen blue light attenuation aging curve according to the bright screen statistics time length, the image effect processing module 203 further obtains the bright screen time length statistics of the touch screen 140 from the display driver 202, finds the blue channel aging degree from the screen brightness aging curve according to the bright screen time length statistics, obtains the blue light reduction ratio according to the blue channel aging degree in the screen RGB channel, obtains the blue light reduction parameter in the RGB histogram data according to the actual screen brightness parameter, the ambient light color temperature and the ambient light brightness, and subtracts the blue light reduction ratio obtained by the blue channel aging degree in the screen RGB channel. In this way, the embodiment of the application further and more accurately obtains the blue light reduction degree achieved by the RGB histogram data, better achieves the eye protection effect and the color difference effect of screen display (reduces the color cast degree), and improves the sensory experience of the user.
Step 616: the image effect processing module 203 adjusts blue channel data in RGB histogram data of an image to be displayed based on the blue adjustment parameter.
Step 617: the image effect processing module 203 sends an instruction to display an interface image to be displayed to the display driver 202.
The image effect processing module 203 sends an instruction to display an image of an interface to be displayed to the display driver 202, where the display interface is used to instruct the display driver 202 to drive the touch display screen 140 to display the image to be displayed based on the adjusted RGB histogram data.
Example 1
Fig. 7 is a flowchart of a display method of an electronic device according to an embodiment of the present application, corresponding to fig. 2. As shown in fig. 7:
step 701: the mobile phone 100 acquires RGB histogram data of an interface image to be displayed.
It will be appreciated that the interface image to be displayed, i.e. the interface image to be displayed, will be understood that the RGB histogram data includes the pixel values of the red, green and blue channel pixels of the interface image to be displayed by the electronic device, and the number of pixel values of the red, green and blue channels. The blue channel data includes pixel values of blue channel pixels and the number of the pixel values. The green channel data includes pixel values of green channel pixels and the number of pixel values. The red channel data includes pixel values of red channel pixels and the number of pixel values.
It will be appreciated that the handset 100 also determines whether to perform blue light parameter adjustment before performing blue light parameter adjustment. The mobile phone 100 determines that the blue light parameter adjustment mode is on, and then determines to execute blue light parameter adjustment; or, the mobile phone 100 determines that the blue light parameter adjustment mode is turned on, and the application turned on by the mobile phone 100 is a non-first type application, and determines to execute the blue light parameter adjustment, if not, does not execute the blue light parameter adjustment.
It can be understood that, when the first type of application is a game application and the application started by the mobile phone 100 is a non-game application, the blue light parameter adjustment is executed, and when the application started by the mobile phone 100 is a non-game application, the blue light parameter adjustment is not executed, that is, the change of the eye-protection parameter (such as a few games) is locked, so as to avoid the content perception difference of the electronic contest scene caused by the parameter difference in the game scene.
It can be appreciated that in some embodiments, after the mobile phone 100 is unlocked, the display method (blue light parameter adjustment) of the electronic device in the embodiments of the present application is started in the bright screen state. In other embodiments, the mobile phone 100 starts the display method (blue-ray parameter adjustment) of the electronic device according to the embodiments of the present application after the application is started in response to the user operation. In other embodiments, the mobile phone 100 responds to the user selecting the blue light adjustment mode in the application such as setting, that is, starts the display method (blue light parameter adjustment) of the electronic device according to the embodiments of the present application.
Step 702: the cell phone 100 acquires a screen brightness parameter, an ambient light brightness, and an ambient light color temperature.
It is understood that the environment herein may be the range sensed by the brightness sensor 151 and the color temperature sensor 152 in the mobile phone 100, for example, the preset range may be any position between the mobile phone 100 and the user, or any position in the space where the mobile phone 100 is located is any position in the house as shown in fig. 2.
Step 703: the cell phone 100 determines the blue light adjustment parameters based on the screen brightness parameter, the ambient light brightness, and the ambient light color temperature.
It will be appreciated that the blue light adjustment parameter, which may also be referred to as a blue light eye protection parameter, refers to a reduction ratio of blue channel pixel values of an interface image to be displayed on a screen of the electronic device.
As shown in fig. 5, the mobile phone 100 can acquire the ambient light intensity through the brightness sensor 151 and the ambient light color temperature from the color temperature sensor 152. As shown in fig. 6, screen brightness parameters are obtained from the brightness control module 204.
In addition, it will be understood that if there is no ambient light color temperature sensor, the mobile phone 100 can obtain the weather status of the area where the mobile phone 100 is located through the related server by networking, and fit the color temperature of the current ambient light by reading the ambient light brightness and combining the time in the time zone.
In some embodiments, the mobile phone 100 obtains the blue light adjustment parameter by obtaining the first blue light reduction ratio of the blue channel data corresponding to the screen brightness parameter, the second blue light reduction ratio of the blue channel data corresponding to the ambient light brightness, and the third blue light reduction ratio of the blue channel data corresponding to the ambient light color temperature through query, and adding the first blue light reduction ratio, the second blue light reduction ratio, and the third blue light reduction ratio.
Table 1 is a table for obtaining a first variation amount, a second variation amount, and a third variation amount after inquiring the first blue light reduction ratio, the second blue light reduction ratio, and the third blue light reduction ratio according to the ambient light color temperature, the ambient light luminance, and the screen light luminance parameters. Fig. 8A is an ambient light color temperature-blue light reduction ratio curve, fig. 8B is an ambient light illuminance-blue light reduction ratio curve, fig. 8C is a screen brightness parameter-blue light reduction ratio curve, and the mobile phone 100 can query the first blue light reduction ratio of the blue channel data corresponding to the screen brightness parameter, the second blue light reduction ratio of the blue channel data corresponding to the ambient light brightness, and the third blue light reduction ratio of the blue channel data corresponding to the ambient light color temperature through the data corresponding to table 1 or fig. 8A, 8B, and 8C. As can be seen from the data corresponding to table 1 or fig. 8A, 8B and 8C, blue is reduced more at warm temperatures than at cool temperatures; the blue color is reduced when the screen brightness parameter and the ambient light brightness are large, and the blue color is reduced when the screen brightness and the ambient light brightness are small.
TABLE 1
Figure BDA0003178447360000171
The blue light adjustment parameter calculation formula is as follows:
Figure BDA0003178447360000172
K offset representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension;
Y i blue light reduction ratio for each dimension (ambient light color temperature, ambient light illuminance, screen brightness parameter) component;
if n is 2,K offset =Y 0 +Y 1 +Y 2 Wherein Y is 0 Blue light reduction ratio, Y, representing the color temperature dimension of ambient light 1 Blue light reduction ratio, Y, representing the ambient light illumination dimension 2 A blue light reduction ratio representing the screen brightness parameter dimension.
In other embodiments, the mobile phone 100 obtains the blue light adjustment parameter by querying a first blue light reduction ratio of the blue channel data corresponding to the screen brightness parameter, a second blue light reduction ratio of the blue channel data corresponding to the ambient light brightness, and a third blue light reduction ratio of the blue channel data corresponding to the ambient light color temperature, and performing weighted summation on the first blue light reduction ratio and the second blue light reduction ratio and the third blue light reduction ratio.
The blue light adjustment parameter calculation formula is as follows:
Figure BDA0003178447360000181
K offset representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is a natural number greater than 1.
W i Representing the weight of each dimension to be more than or equal to 0;
Y i Blue light reduction ratio for each dimension (ambient light color temperature, ambient light illuminance, screen brightness parameter) component;
if n is 2,K offset =Y 0 +Y 1 +Y 2 ,Y 0 Blue light reduction ratio, Y, representing the color temperature dimension of ambient light 1 Blue light reduction ratio, Y, representing the ambient light illumination dimension 2 Blue light reduction ratio representing screen brightness parameter dimension
Table 2:
Figure BDA0003178447360000182
from table 2 described above, the blue light reduction ratio data in table 1 can be calculated.
In addition, it will be appreciated that, as the performance of the mobile phone 100 gradually decreases during use of the mobile phone 100, for example, the screen of the mobile phone 100 is displayed at a set brightness, the screen actually displays a brightness lower than the set brightness, the screen of the mobile phone 100 is displayed at a set blue pixel value, and the screen actually displays a blue pixel value lower than the set pixel value. Therefore, in other embodiments, the mobile phone 100 obtains the actual screen brightness parameter according to the screen brightness aging degree, obtains the blue light reduction ratio according to the blue channel aging degree in the screen RGB channel, obtains the blue light adjustment parameter based on the actual screen brightness parameter, the ambient light color temperature and the ambient light brightness, and subtracts the blue light reduction ratio obtained from the blue channel aging degree in the screen RGB channel. In this way, the embodiment of the application further and more accurately obtains the blue light reduction degree achieved by the RGB histogram data, better achieves the eye protection effect and the color difference effect of screen display (reduces the color cast degree), and improves the sensory experience of the user.
For example, as shown in fig. 6, the display driver 202 counts the duration of the bright screen, and the brightness control module 204 obtains the duration of the bright screen from the display driver 202, and obtains the actual screen brightness parameter according to the screen brightness aging curve. FIG. 9 is a graph of screen brightness aging, with the abscissa being the cumulative usage time t (units: hours) and the ordinate being the screen maximum brightness retention; it can be seen from fig. 9 that the higher the usage environment temperature is, the faster the luminance decay is. The luminance control module 204 may obtain the actual screen luminance parameter according to the data corresponding to fig. 9, specifically, the screen actual luminance parameter=screen luminance/screen actual maximum luminance=screen luminance/(screen maximum luminance×screen maximum luminance retention ratio).
In addition, in other embodiments, the image effect processing module 203 counts the duration of the bright screen, obtains the duration of the bright screen from the display driver 202, and then obtains the corresponding blue light reduction ratio in the RGB aging curve according to the duration of the bright screen. The blue light adjustment parameters are obtained on the basis of the actual screen brightness parameters, the ambient light color temperature and the ambient light brightness, on the basis of which the blue light reduction ratio due to the aging degree of the blue channel in the RGB channel of the screen is subtracted.
Fig. 10A is a diagram showing an Organic Light-Emitting Diode (OLED), also called an Organic RGB aging curve, of a screen of the mobile phone 100.
Fig. 10B is an RGB aging curve of a screen of the mobile phone 100 with a light-emitting diode (LED).
The blue light adjustment parameter calculation formula is as follows:
Figure BDA0003178447360000191
K offset representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is a natural number greater than 1.
W i Indicating that the weight of each dimension is greater than or equal to 0;
Y i representing the blue light reduction ratio of each dimension (ambient light color temperature, ambient light illuminance, screen brightness parameter, bright screen use duration); for example, if n is 1, Y 0 Blue light reduction ratio, Y, representing the color temperature dimension of ambient light 1 Blue light reduction ratio, Y, representing the ambient light illumination dimension 2 A blue light reduction ratio representing the screen brightness parameter dimension.
C t The blue light reduction ratio corresponding to fig. 10A or 10B in the RGB channel aging curve obtained according to the bright screen use time length is shown.
If it is
Figure BDA0003178447360000192
Then->
Figure BDA0003178447360000193
Otherwise K offset =0%.
Step 704: the cell phone 100 adjusts the blue channel data according to the determined blue light adjustment parameter.
It will be appreciated that in some embodiments, the mobile phone 100 may subtract the blue adjustment parameter from the preset value (e.g. 100%, 1) and multiply the subtracted value with the blue channel data to obtain the adjusted blue channel data.
For example, as shown in fig. 4, fig. 4 includes an unadjusted interface image a to be displayed and an unadjusted RGB histogram corresponding thereto, and the unadjusted interface image a to be displayed and the unadjusted RGB histogram corresponding thereto are adjusted based on the blue light adjustment parameters. The mobile phone 100 displays an interface image to be displayed based on the RGB data in the adjusted RGB histogram, that is, all blue channel values are directly adjusted according to the blue adjustment parameter, that is, "blue pixel value (blue color value) × (100% -m%)", where m% is the blue adjustment parameter (blue reduction discount rate). Taking pixel a included in the blue channel curve of the unregulated RGB histogram as an example, the blue pixel value of the pixel a is 200, the number of pixels with the blue pixel value is 25, if the eye protection parameter is reduced by 20%, the number of pixels is unchanged, still 25, and only the pixel value 200 is reduced by 20% and then changed to 160. The mobile phone 100 then displays an interface image to be displayed based on the adjusted RGB data. As can be seen from fig. 5, the unadjusted interface image a to be displayed corresponds to the bluish characteristic in fig. 3. The adjusted to-be-displayed interface image B corresponds to the yellowing characteristic in the figure 3, so that the RGB histogram data reaches a proper blue light reduction degree to a certain extent, the eye protection effect and the color difference effect of screen display (reducing the color deviation degree) are better achieved, and the sensory experience of a user is improved.
After the blue light reduction ratio is obtained, in addition to the reduction of the pixel value of each blue pixel point, in other embodiments, the blue channel histogram may be smoothed, for example, the pixel value in the interface image to be displayed may be averaged according to a preset step size to the number of blue pixel values (frequency values), and each blue pixel value may be reduced according to the blue reduction ratio, for example, if the step size is 1, the blue pixel value 100 and the blue pixel value 101 are taken as examples, if the number of blue pixel values 100 corresponds to 180, the number of blue pixel values 100 corresponds to 190, the number of blue pixel values 100 and the blue pixel values 101 after the change is the average of 180 and 190, and the pixel values after the blue pixel values 100 and the blue pixel values 101 change are 100×100% -m%) and 101×185 (100% -m%).
Specifically, the histogram smoothing algorithm calculates the formula:
Figure BDA0003178447360000201
x is the blue pixel value and f (x+i) is the number of blue pixel values corresponding to x+i. temp is the number of blue pixel values corresponding to x after the histogram smoothing, and Step/2 is a non-integer, the integer is rounded off.
When step is 1, the blue channel performs histogram statistics on the display picture, and the number of color values of the 0-255 blue channel is used for statistics to obtain a histogram, and the blue light adjustment method can be as follows:
Mode one:
as shown in fig. 11A, step=1 represents that the blue channel histogram (blue color histogram) is arranged after the smoothing process into the blue channel histogram (blue color histogram) on the right side of fig. 11A; then, the ratio of the blue pixel value (blue color value) corresponding to the histogram of the right image to the histogram of the left image in fig. 11A is used to find the ratio of the frequency value of each blue pixel value (blue color value) in the original image, and all the same blue pixel values (blue color values) are used to reduce the blue pixel value, such as the blue pixel value (blue color value), according to the ratio. (range 0-255). As with the value of the vertical bar label 170 in fig. 11A, the position of the count value of the number of occurrences of the blue pixel value image seed (e.g., left image 2000) is found in the histogram before the smoothing process (left image in fig. 11A), and the count value of the number of occurrences in the color value image is found after the histogram smoothing process (e.g., right image 1800). The retention after the blue light base subtraction can then be calculated at 170 values: 170 (1800/2000) × (100% -m%).
As shown in FIGS. 11A through 11G, of course step may take a larger range, such as 1-30, in addition to 1. For example, if the step size is 5, and the blue pixel values are 100, 101, 102, 103, and 104, and if the numbers corresponding to the blue pixel values 100, 101, 102, 103, and 104 are 100, 250, 300, 400, and 500, respectively, the number (frequency value) of blue pixel values obtained after the histogram smoothing process corresponding to the blue pixel value 102 is: (100+250+300+400+500)/5=310, the blue pixel value 102 becomes 300 (310/300) (100% -m%). Similarly, the number of blue pixel values (frequency values) obtained by the histogram smoothing of the blue pixel values 100, 101, 103, 104 is obtained as an average value of the number of left and right pixel values.
Mode two:
as shown in fig. 12, the adjustment of the blue pixel value is performed for the number of histogram color value pixel channels exceeding 50 times, and the subtraction is performed according to the blue light subtraction value as long as the blue channel value in the pixel is within this green coordinate range. "blue pixel value (blue color value) × (100% -m%)", where m% is the blue abatement ratio obtained in step 703. In addition, other preset times than 50 times may be available to those skilled in the art.
Step 705: the mobile phone 100 displays an interface image to be displayed according to the adjusted RGB histogram data.
Example two
The second embodiment is different from the first embodiment in that, in order to keep the blue light acceptance of the eye of the interface image to be displayed within the set safety threshold, the eye fatigue of the user is alleviated, and at the same time, the color temperature deviation of the displayed color is prevented from being too yellow (i.e. the blue color is kept in the maximum range under the safety range) to the greatest extent. The second embodiment further includes the mobile phone 100 determining a blue light duty ratio of the blue channel data in the adjusted RGB histogram data and the adjusted RGB histogram data; specifically, each pixel has three channel value colors of RGB, wherein the pixel value of R (red) channel is 0-255, the pixel value of G (green) channel is 0-255, and the pixel value of B (blue) channel is 0-255. Blue duty ratio = value accumulation of all B channels of all pixel points/RGB channel value accumulation of all pixel points = accumulation of products of pixel values of all B channels of all pixel points and numbers corresponding to the pixel values/accumulation of multipliers of all R channels, G channels, and pixel values of B channels of all pixel points and numbers corresponding to the pixel values. If the mobile phone 100 determines that the blue light duty ratio is greater than the preset blue light duty ratio, the mobile phone 100 determines the blue light adjustment parameter again according to the screen brightness parameter, the ambient light brightness data and the ambient light color temperature data. The blue light in the interface image to be displayed is reduced, and the eye fatigue of the user is relieved.
In order to reduce the fluctuation of the color temperature shift caused by the large blue reduction parameter of the adjacent frame, the second embodiment further includes that the mobile phone 100 judges and obtains the blue light adjustment parameter of the display content of the previous frame of the interface image to be displayed; the mobile phone 100 determines that the difference between the blue light adjustment parameter of the interface image to be displayed and the blue light adjustment parameter of the display content of the previous frame is greater than the set threshold, and increases or decreases the blue light adjustment parameter of the interface image to be displayed by the set value. So that the gradient difference value of the blue light duty ratio between the adjacent frames and the gradient difference value of the history frames are kept in a set range, and thus, the blue light adjustment parameter (blue reduction degree) of the image content of the frame to be displayed at present is smoothly and dynamically adjusted, and the fluctuation of the color temperature deviation caused by the blue reduction parameter of the adjacent frames is reduced, and the user's look and feel is improved. With specific reference to steps 1306 through 1310 below.
Fig. 13 is a schematic flow chart of a display method of an electronic device according to an embodiment of the present application, corresponding to fig. 3. As shown in fig. 10:
step 1301: the mobile phone 100 acquires RGB histogram data of an interface image to be displayed.
It can be appreciated that the technical scheme of step 1301 is the same as that of step 701, and will not be described in detail herein.
Step 1302: the mobile phone 100 acquires a screen brightness parameter, an ambient light brightness of the screen currently within a preset range, and an ambient light color temperature.
It is to be understood that the technical solution of step 1302 is the same as that of step 702, and will not be described herein.
Step 1303: the cell phone 100 determines the blue light adjustment parameters based on the screen brightness parameter, the ambient light brightness, and the ambient light color temperature.
It can be appreciated that the technical solution of step 1303 is the same as that of step 703, and will not be described in detail herein.
Step 1304: the cell phone 100 determines the blue light duty ratio in the RGB histogram data adjusted by the blue light adjustment parameter.
It is understood that the blue light duty ratio refers to the sum of the blue pixel values multiplied by the number of blue pixel points corresponding to each blue pixel value and added in the RGB histogram data.
Step 1305: the cell phone 100 adjusts the blue channel data according to the determined blue light adjustment parameter.
Step 1306: the mobile phone 100 determines whether the blue light duty ratio in the adjusted RGB histogram data exceeds the preset blue light duty ratio, and if so, goes to step 1305, i.e. adjusts the blue channel data again based on the blue light adjustment parameter obtained in step 1303. If not, go to step 1307.
For example, as shown in fig. 6, the image effect processing module 203 analyzes the histogram distribution of the blue channel of the element of the current frame content picture after drawing and synthesizing the interface image to be displayed for each frame, and counts the blue light duty ratio.
It can be understood that, the calculated blue channel histogram of the content of the current display frame calculates a blue light duty ratio (which may also be called a blue color component duty ratio and a blue duty ratio), the blue light duty ratio is small, the blue light reduction degree can be reduced, the blue light duty ratio is large, the blue light reduction degree is increased, and the adjustment based on the blue light reduction ratio of the interface to be displayed of the current frame is performed again on the reference adjustment parameter. By means of the adjustment, eye fatigue can be relieved within the safety threshold value which is set by keeping the eye blue light acceptance degree not to exceed, and meanwhile, the displayed color temperature deviation can be kept to be not too yellow to the greatest extent (namely, the blue color is kept in the maximum range under the safety range).
Step 1307: the cell phone 100 acquires the historical blue light adjustment parameters of the previous frame of the interface image to be displayed.
Step 1308: the mobile phone 100 determines whether the difference between the blue light adjustment parameter and the historical blue light adjustment parameter of the interface image to be displayed is greater than the set threshold, if so, it goes to step 1309, if not, it executes step 1310 if the difference is less than the set threshold: the blue channel data in the RGB histogram data minus the preset value, if the difference is equal to the threshold value, go to step 1311.
It can be understood that the blue light of the display content of the previous frame is calculated to be attenuated by m%, the blue light of the interface image to be displayed of the current frame is calculated to be attenuated by n%, and the difference value=abs (n-m); (absolute value of n-m).
Step 1309: the mobile phone 100 adds a preset value to the blue channel data in the RGB histogram data.
It can be understood that if the difference between the blue light reduction parameters of the current frame and the previous frame is particularly large and exceeds the preset value (blue light color interpolation threshold value), the blue light reduction degree fluctuation of the two adjacent frames is reduced by adopting the gradual processing of the set value (the preset increasing and decreasing value) for adjusting the blue light color parameters. The set point may be a historical blue light adjustment parameter.
Furthermore, in other embodiments, the historical blue adjustment parameter may be a blue adjustment parameter of display content of the first n frames of the interface image to be displayed. After obtaining the blue light adjustment parameters of the display content of the previous n frames, the mobile phone 100 performs an average process to obtain the average historical blue light adjustment parameters of the previous n frames. The mobile phone 100 judges whether the difference value between the blue light adjustment parameter of the interface image to be displayed and the average historical blue light adjustment parameter of the first n frames of the interface image to be displayed is greater than or equal to a set threshold, if so, the set threshold is taken, and if not, the average historical blue light adjustment parameter of the first n frames is taken.
For example, the 1 st frame blue duty (blue color duty), a 1 Percent blue light reduction ratio c 1 %;
Frame 2 blue duty (blue color duty), a 2 Percent blue light reduction ratio c 2 %;
Frame 3 blue duty cycle (blue color duty cycle), a 3 Percent blue light reduction ratio c 3 %;
Frame 4 blue duty (blue color duty), a 4 Percent blue light reduction ratio c 4 %;
Frame 5 blue duty (blue color duty), a 5 Percent blue light reduction ratio c 5 %;
Frame 6 blue duty (blue color duty), a 6 Percent blue light reduction ratio c 6 %;
……
N-1 frame blue duty (blue)Color ratio) a n-1 Percent blue light reduction ratio c n-1 %;
Blue duty ratio (blue color duty ratio) a of nth frame n Percent blue light reduction ratio c n %;
Calculating the average color ratio of the first n frames:
Figure BDA0003178447360000221
mean blue light extinction->
Figure BDA0003178447360000222
If the current frame is: blue duty ratio (blue color duty ratio) a c The set threshold value of the upper limit of the proportion of the blue light reduction ratio is%
Figure BDA0003178447360000223
The blue light adjustment parameter of the interface image to be displayed is larger than or equal to a set threshold value, and the set threshold value is taken;
and taking the average historical blue light adjustment parameters of the previous n frames when the blue light adjustment parameters of the interface image to be displayed are smaller than the upper limit value.
Step 1311: the mobile phone 100 displays an interface image to be displayed according to the adjusted RGB histogram data.
It is understood that the technical solution of step 1311 is the same as that of step 405, and will not be described herein.
Embodiments disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system that may include at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), microcontroller, application Specific Integrated Circuit (ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented in the form of instructions or a program loaded onto or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors, etc. When the instructions or programs are executed by a machine, the machine may perform the various methods described above. For example, the instructions may be distributed over a network or other computer readable medium. Thus, a machine-readable medium may include, but is not limited to, any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), such as a floppy disk, an optical disk, a compact disk read-only memory (CD-ROMs), a magneto-optical disk, a read-only memory (ROM), a Random Access Memory (RAM), an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM), a magnetic or optical card, or a flash memory or a tangible machine-readable memory for transmitting network information via electrical, optical, acoustical or other form of signal (e.g., carrier waves, infrared signals, digital signals, etc.). Thus, a machine-readable medium includes any form of machine-readable medium suitable for storing or transmitting electronic instructions or information readable by a machine (e.g., a computer).
Thus, embodiments of the present application also include non-transitory, tangible machine-readable media containing instructions or containing design data, such as Hardware Description Language (HDL), that define the structures, circuits, devices, processors, and/or system features described herein. These embodiments are also referred to as program products.
It will be understood that, although the terms "first," "second," etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used merely for distinguishing and are not to be construed as indicating or implying relative importance. For example, a first feature may be referred to as a second feature, and similarly a second feature may be referred to as a first feature, without departing from the scope of the example embodiments.
Furthermore, various operations will be described as multiple discrete operations, in a manner that is most helpful in understanding the illustrative embodiments; however, the order of description should not be construed as to imply that these operations are necessarily order dependent, and that many of the operations be performed in parallel, concurrently or with other operations. Furthermore, the order of the operations may also be rearranged. When the described operations are completed, the process may be terminated, but may also have additional operations not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
References in the specification to "one embodiment," "an illustrative embodiment," etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may or may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Furthermore, when a particular feature is described in connection with a particular embodiment, it is within the knowledge of one skilled in the art to affect such feature in connection with other embodiments, whether or not such embodiment is explicitly described.
The terms "comprising," "having," and "including" are synonymous, unless the context dictates otherwise. The phrase "A/B" means "A or B". The phrase "a and/or B" means "(a), (B) or (a and B)".
As used herein, the term "module" may refer to, be part of, or include: a memory (shared, dedicated, or group) for running one or more software or firmware programs, an Application Specific Integrated Circuit (ASIC), an electronic circuit and/or processor (shared, dedicated, or group), a combinational logic circuit, and/or other suitable components that provide the described functionality.
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering is not required. Rather, in some embodiments, these features may be described in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of a structural or methodological feature in a particular drawing does not imply that all embodiments need to include such feature, and in some embodiments may not be included or may be combined with other features.
The embodiments of the present application have been described in detail above with reference to the accompanying drawings, but the application of the technical solution of the present application is not limited to the applications mentioned in the embodiments of the present application, and various structures and modifications can be easily implemented with reference to the technical solution of the present application, so as to achieve the various beneficial effects mentioned herein. Various changes, which may be made by those of ordinary skill in the art without departing from the spirit of the present application, are intended to be covered by the claims herein.

Claims (17)

1. The display method of the electronic equipment is characterized in that the method is applied to the electronic equipment, and the electronic equipment comprises a sensor driving module, an image effect processing module, a brightness control module and a display driving module;
the electronic equipment determines that a blue light parameter adjustment mode is started, and specifically comprises the following steps:
the image effect processing module determines that the blue light parameter adjustment mode is in an on state;
the electronic equipment acquires current screen brightness parameters of the electronic equipment and ambient light data of an environment where a screen of the electronic equipment is located, and specifically comprises:
the image effect processing module obtains the current screen brightness parameter of the electronic equipment from the brightness control module under the condition that the blue light parameter adjustment mode is determined to be in an on state;
The image effect processing module sends an ambient light data request to the sensor driving module;
the sensor driving module sends ambient light brightness data and ambient light color temperature data to the image effect processing module under the condition that the ambient light data sending request is received;
the electronic equipment generates a blue light adjustment parameter based on the screen brightness parameter and the ambient light data, and specifically comprises the following steps:
the image effect processing module generates blue light adjustment parameters based on the screen brightness parameters and the ambient light data;
blue light adjusting parameters are adopted to adjust blue channel data; displaying an interface image to be displayed based on the adjusted blue channel data, specifically:
the image effect processing module acquires blue channel data of an interface image to be displayed by the electronic equipment, and adjusts the blue channel data by adopting a blue light adjusting parameter;
the image effect processing module sends an instruction for displaying an interface image to be displayed to the display driver under the condition that the blue channel data adjustment is completed;
and the display driver drives a display screen to display the image of the interface to be displayed under the condition that the instruction for displaying the image of the interface to be displayed is received.
2. The method of claim 1, wherein before the electronic device obtains the current screen brightness parameter of the electronic device and the ambient light data of the environment in which the screen of the electronic device is located, the method further comprises:
the electronic device determines that an application that turns on a blue-light parameter adjustment mode is a non-first type application.
3. The method of claim 1, wherein the blue light adjustment parameter comprises a subtraction ratio parameter of blue channel pixel values of an interface image to be displayed.
4. A display method of an electronic device according to claim 3, wherein generating the blue light adjustment parameter comprises:
the electronic equipment obtains a first blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light color temperature data;
the electronic equipment obtains a second blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light brightness data;
the electronic equipment obtains a third blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen brightness parameter;
and the electronic equipment performs weighting treatment on the first blue light reduction ratio parameter, the second blue light reduction ratio parameter and the third blue light reduction ratio parameter to obtain a blue light adjustment parameter.
5. The method of claim 4, wherein the formula for generating the blue light adjustment parameter is as follows:
Figure QLYQS_1
Figure QLYQS_2
representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is 2;
Figure QLYQS_3
representing the weight of each dimension to be more than or equal to 0;
Figure QLYQS_4
representing an environmentLight color temperature, ambient light brightness, blue light reduction ratio of each dimension of screen brightness parameters; />
Figure QLYQS_5
A first blue light reduction ratio representing the color temperature dimension of ambient light, ">
Figure QLYQS_6
A second blue light reduction ratio indicative of an ambient light brightness dimension, ">
Figure QLYQS_7
A third blue light reduction ratio representing a screen brightness parameter dimension.
6. A display method of an electronic device according to claim 3, wherein said adjusting the blue channel data using a blue adjustment parameter comprises:
the electronic equipment further acquires the bright screen duration data of the electronic equipment screen;
and the electronic equipment determines a blue light adjusting parameter according to the bright screen duration data, the screen brightness parameter, the ambient light brightness data and the ambient light color temperature data.
7. The method of claim 6, wherein generating the blue light adjustment parameter comprises:
The electronic equipment obtains a first blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light color temperature data;
the electronic equipment obtains a second blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the ambient light brightness data;
the electronic equipment obtains a third blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen brightness parameter;
the electronic equipment obtains a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the screen-lighting duration data;
and the electronic equipment performs weighting processing on the first blue light reduction ratio parameter, the second blue light reduction ratio parameter, the third blue light reduction ratio parameter and the fourth blue light reduction ratio parameter to obtain a blue light adjustment parameter.
8. The method of claim 7, wherein the formula for generating the blue light adjustment parameter is as follows:
the blue light adjustment parameter calculation formula is as follows:
Figure QLYQS_8
Figure QLYQS_9
representing the variation of blue channel data, namely fusing the blue light adjustment parameters obtained after the weight of each dimension; n is 2;
Figure QLYQS_10
representing the weight of each dimension to be more than or equal to 0;
Figure QLYQS_11
Blue light reduction ratios of all dimensions of the ambient light color temperature, the ambient light brightness and the screen brightness parameters are represented;
a first blue light reduction ratio representing the color temperature dimension of the ambient light,
Figure QLYQS_12
a second blue light reduction ratio indicative of an ambient light brightness dimension, ">
Figure QLYQS_13
A third blue light reduction ratio representing a screen brightness parameter dimension; />
Figure QLYQS_14
And represents a fourth blue light reduction ratio obtained according to the bright screen duration data.
9. The method for displaying an electronic device according to claim 8, wherein the electronic device obtains a fourth blue light reduction ratio parameter of a blue channel pixel value in blue channel data according to the bright screen duration data, and the method comprises:
the electronic equipment further acquires bright screen duration data and screen blue attenuation aging curve data of a screen of the electronic equipment;
and the electronic equipment obtains a fourth blue light reduction ratio parameter of the blue channel pixel value in the blue channel data based on the bright screen duration data and the screen blue attenuation aging curve data.
10. The display method of an electronic device according to claim 9, characterized in that the method further comprises:
the electronic equipment acquires the bright screen duration data of the screen of the electronic equipment;
And the electronic equipment obtains actual screen brightness parameters according to the screen brightness time length data and the screen brightness aging curve of the screen.
11. The method for displaying an electronic device according to claim 10, wherein adjusting the blue channel data using a blue adjustment parameter comprises:
and the electronic equipment multiplies the data obtained by subtracting the blue light adjusting parameter from the preset value by each pixel value in the blue channel data to obtain adjusted blue channel data.
12. The method of claim 11, wherein the electronic device further comprises a first application, a second application, a window management module, and a layer composition module; the method further comprises the steps of:
the first application receives a first operation of opening or closing a blue parameter adjustment mode control by a user;
in response to the first operation, the first application sends blue parameter adjustment mode state information to the image effect processing module, wherein the blue parameter adjustment mode state information is used for indicating to turn on or off a blue parameter adjustment mode;
in response to receiving the blue parameter adjustment mode state information, the image effect processing module stores the blue parameter adjustment mode state information;
The second application receives a second operation of a user, wherein the second operation is used for starting the second application;
the second application sends application identification information and window information of an application interface to be displayed to the window management module;
the window management module sends application identification information to the image effect processing module;
the window management module sends application identification information and window information of an application interface to be displayed to the layer composition module;
the layer synthesizing module synthesizes the image data of the interface to be displayed according to the window information of the application interface to be displayed;
the image layer synthesizing module sends synthesized interface image data to be displayed to the image effect processing module;
responding to the received synthesized image data of the interface to be displayed, and judging whether a blue light parameter adjustment mode needs to be started or not by the image effect processing module according to the blue light parameter adjustment mode state information and the application identification information; and under the condition that the image effect processing module judges that the state information of the blue parameter adjustment mode and the application identification information meet the preset conditions, starting a blue parameter adjustment mode.
13. The method of claim 12, wherein the predetermined condition includes the blue parameter adjustment mode status information being that the blue parameter adjustment mode is on and the application is a non-first type application.
14. The method of claim 11, wherein the electronic device further comprises a memory, and wherein the brightness control module obtains current screen brightness parameters of the electronic device, comprising:
responding to a screen brightness parameter request sent by the image effect processing module, and acquiring bright screen duration data from the display driver by the brightness control module;
the brightness control module acquires a screen brightness aging curve from the memory, and the brightness control module obtains actual screen brightness parameters based on the screen brightness time length data of the screen and the screen brightness aging curve;
the brightness control module sends actual screen brightness parameters to the image effect processing module.
15. The method of claim 11, wherein the electronic device further comprises a memory, and the electronic device obtains a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data according to the bright screen duration data, specifically including:
and the image effect processing module further acquires bright screen duration data of the electronic equipment screen from a display driver, acquires screen blue attenuation aging curve data from the memory, and acquires a fourth blue light reduction ratio parameter of a blue channel pixel value in the blue channel data based on the bright screen duration data and the screen blue attenuation aging curve data.
16. An electronic device comprising a processor for coupling with a memory and for reading instructions in the memory and for causing the electronic device to perform the method of displaying an electronic device according to any one of claims 1-14 in accordance with the instructions.
17. A computer readable storage medium storing computer instructions which, when run on an electronic device, cause the electronic device to perform the method of displaying an electronic device according to any one of claims 1-14.
CN202110839530.5A 2021-07-23 2021-07-23 Display method and medium of electronic equipment and electronic equipment Active CN115019746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839530.5A CN115019746B (en) 2021-07-23 2021-07-23 Display method and medium of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839530.5A CN115019746B (en) 2021-07-23 2021-07-23 Display method and medium of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN115019746A CN115019746A (en) 2022-09-06
CN115019746B true CN115019746B (en) 2023-04-28

Family

ID=83064339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839530.5A Active CN115019746B (en) 2021-07-23 2021-07-23 Display method and medium of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN115019746B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115567864B (en) * 2022-12-02 2024-03-01 浙江华创视讯科技有限公司 Microphone gain adjusting method and device, storage medium and electronic equipment
CN116798346B (en) * 2023-07-10 2024-04-05 深圳市易快来科技股份有限公司 Eye-protection display screen capable of automatically adjusting color temperature
CN117857762B (en) * 2024-03-08 2024-05-14 深圳市东陆科技有限公司 Image processing method and device of display module, chip and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016037313A1 (en) * 2014-09-09 2016-03-17 华为技术有限公司 Blue light adjustment method and device, and terminal
CN105590578A (en) * 2014-10-20 2016-05-18 深圳富泰宏精密工业有限公司 Eye protection system and method capable of automatically turning on blue light filter
CN104299560B (en) * 2014-10-24 2017-05-03 苏州佳世达电通有限公司 Display device allowing blue light ratio to be dynamically adjusted and method thereof
CN106094233A (en) * 2015-12-02 2016-11-09 派尼尔科技(天津)有限公司 A kind of display eye screen
CN106453885A (en) * 2016-09-30 2017-02-22 努比亚技术有限公司 Eye protecting terminal and eye protecting method
CN206573822U (en) * 2017-03-16 2017-10-20 杭州仙果科技有限公司 A kind of environment self-adaption formula LED backlight liquid crystal display
CN107993604A (en) * 2017-11-28 2018-05-04 珠海格力电器股份有限公司 The adjusting method and equipment of a kind of display screen
CN109445731A (en) * 2018-09-29 2019-03-08 努比亚技术有限公司 A kind of display pattern control method, terminal and computer readable storage medium
CN109326146A (en) * 2018-10-15 2019-02-12 厦门厦华科技有限公司 A kind of interactive electric whiteboard by automatic anti-blue light
CN109147681A (en) * 2018-10-15 2019-01-04 四川长虹电器股份有限公司 The eyeshield mode regulating method and display device of display device
CN109448663B (en) * 2018-12-10 2021-03-26 Oppo广东移动通信有限公司 Screen color temperature adjusting method and device
CN109600518A (en) * 2019-01-30 2019-04-09 努比亚技术有限公司 Application method, mobile terminal, the readable storage medium storing program for executing of eyeshield display pattern
CN110428794A (en) * 2019-08-06 2019-11-08 广东小天才科技有限公司 A kind of method, apparatus and system adjusting screen blue light

Also Published As

Publication number Publication date
CN115019746A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN115019746B (en) Display method and medium of electronic equipment and electronic equipment
EP3699903B1 (en) Screen color conversion method and apparatus, and storage medium
JP6513648B2 (en) Display device configured as an illumination source
CN104428829B (en) Color control method and communication apparatus
CN110113536B (en) Screen light supplementing method and device, storage medium and intelligent terminal
US8269866B2 (en) Image processing apparatus, method, program and image pickup apparatus
WO2019165934A1 (en) Method for adjusting display brightness level, and electronic device
US9681058B2 (en) Camera flash for improved color balance
CN109387972A (en) Low blue light display
CN105580066A (en) Ambient light context-aware display
CN110808003B (en) Compensation method and electronic equipment
JP5123773B2 (en) Display device and display method
CA2731595C (en) Ambient light-compensated reflective display devices and methods related thereto
JP2005309360A (en) Image display controller
WO2024078163A1 (en) Screen display method and apparatus, device, and storage medium
EP4181510A1 (en) Chromaticity information determination method and related electronic device
CN111726542A (en) Camera light supplementing method, terminal and storage medium
CN115731836A (en) Display effect control method and device of display screen, terminal equipment and medium
CN115550575B (en) Image processing method and related device
JP7300691B2 (en) LIGHTING DEVICE, LIGHTING SYSTEM AND LIGHTING CONTROL METHOD
CN116229884B (en) Screen display method and related electronic equipment
JP5153182B2 (en) Display device
CN111510699A (en) Method for adjusting image of display, display and storage medium
WO2024103746A1 (en) Image processing method, electronic device, computer program product, and storage medium
CN118314827A (en) Screen display method and related electronic equipment

Legal Events

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