This application claims priority to Chinese Patent Application No. 202211235255.7, filed with the China National Intellectual Property Administration on Oct. 10, 2022 and entitled “METHOD, APPARATUS, AND DEVICE FOR SCREEN DISPLAY, AND STORAGE MEDIUM”, which is incorporated herein by reference in its entirety.
This application relates to the field of electronic technologies, and in particular, to a method, an apparatus, and a device for screen display, and a storage medium.
Melatonin (Melatonin) is an amine hormone produced by the pineal body and plays an important role in regulating circadian rhythm and improving sleep quality. In an era of rapid technological development, an electronic device brings convenience and colorful life to humans, but makes humans rely more on the electronic device. Studies have shown that because blue light emitted by the electronic device inhibits production of melatonin by the pineal body, long-time use of the electronic device causes a series of impacts on human physiological activities. In particular, the production of melatonin is inhibited after long-term use of the electronic device at night, easily resulting in reduced sleep quality and an irregular sleep cycle for a user of the electronic device.
To reduce an impact of the electronic device on a user's physiological activities, some electronic products lower color temperature by compressing a color gamut of blue and green areas in a screen. By lowering the color temperature, the screen is adjusted to reduce the negative impact of the blue light on the user's physiological activities.
However, according to the method of compressing the color gamut of the blue and green areas of the screen, a large quantity of color gamuts are lost, resulting in unrealistic colors and missing of picture details displayed on the screen. Especially in some special application scenarios, such as image processing, photography, and other application scenarios that have high requirements on picture colors and details, conventional technologies often cannot meet requirements of the user.
This application provides a method, an apparatus, and a device for screen display, and a storage medium to resolve problems of unrealistic color and missing of picture details caused by current blue light reduction technology.
To achieve the foregoing objective, the following technical solutions are used in this application.
According a first aspect, a method for screen display is provided. There is light of a plurality of sub-colors in an original color light color gamut of a screen display picture. A melanopic lux per photopic lux ratio of the light of the sub-colors is calculated based on spectral information of the light of the sub-colors. Sub-color light having a melanopic lux per photopic lux ratio that exceeds a preset melanopic lux per photopic lux ratio standard is eliminated from the original color light, so that the screen displays updated color light, where the preset melanopic lux per photopic lux ratio standard is a standard set based on a goal of reducing melatonin inhibition.
In the method provided in embodiments of this application, the preset melanopic lux per photopic lux ratio standard is a standard set based on a goal of reducing melatonin inhibition. A higher melanopic lux per photopic lux ratio of the sub-color light indicates a stronger inhibitory effect of the sub-color light on melatonin. The sub-color light having a melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard is eliminated from the original color light, to reduce an inhibitory effect of light emitted by the screen on melatonin and reduce a negative impact of blue light on a user's physiological activities. In addition, according to this method of eliminating sub-color light with a high melanopic lux per photopic lux ratio in a targeted manner to enable the screen to display the updated color light, a large quantity of color gamut ranges is retained, thereby providing a user with better visual experience.
In a possible implementation, the preset melanopic lux per photopic lux ratio standard is a melanopic lux per photopic lux ratio threshold. After the melanopic lux per photopic lux ratio of the sub-color light is calculated, the sub-color light having a melanopic lux per photopic lux ratio that exceeds the melanopic lux per photopic lux ratio threshold is eliminated from the original color light, so that the screen displays the updated color light. This can reduce the negative impact of the blue light on the user's physiological activities while color reality and picture details displayed on the screen are maintained to a large extent.
In a possible implementation, target vertex color light is determined from sub-color light having a melanopic lux per photopic lux ratio that is equal to the preset melanopic lux per photopic lux ratio standard. A to-be-eliminated color gamut range is determined based on a color gamut coordinate value of the target vertex color light and color gamut coordinate values of three vertices of the original color light color gamut. The sub-color light within the to-be-eliminated color gamut range is eliminated from the original color light, so that the screen displays the updated color light. The eliminated color gamut range is determined based on the melanopic lux per photopic lux ratio and the preset melanopic lux per photopic lux ratio standard, so that the sub-color light can be eliminated in a targeted manner and reality of color and picture details displayed on the screen can be retained.
In a possible implementation, a linear space transformation matrix is calculated based on a color gamut coordinate value of sub-color light with a highest melanopic lux per photopic lux ratio within the to-be-eliminated color gamut range, and the color gamut coordinate value of the target vertex color light. Transformed color light corresponding to the sub-color light within the to-be-eliminated color gamut range is obtained based on a color gamut coordinate value of the sub-color light within the to-be-eliminated color gamut range and the linear space transformation matrix. The sub-color light within the to-be-eliminated color gamut range is replaced with the transformed color light, so that the screen displays the updated color light. Therefore, after the linear space transformation matrix is calculated, the sub-color light can be eliminated in a targeted manner, and the updated color light can be displayed on the screen by using a simple algorithm.
In a possible implementation, the preset melanopic lux per photopic lux ratio standard is determined based on a time period and a geographical location. Secretion of melatonin in a human body is influenced by biological rhythm, levels of secretion of melatonin in different time periods are different, and the geographical location has certain influence on illuminance. Therefore, based on a combination of time period and geographical location, the preset melanopic lux per photopic lux ratio standard is determined, so that the sub-color light can be eliminated more accurately and properly.
In a possible implementation, the preset melanopic lux per photopic lux ratio standard is determined based on a usage mode that represents a user's usage scenario. Different usage modes may correspond to different preset melanopic lux per photopic lux ratio standards, and the sub-color light is eliminated in a targeted manner based on the user's usage scenario to meet different requirements of the user.
In a possible implementation, the preset melanopic lux per photopic lux ratio standard is determined based on a time period, a geographical location, and a usage mode. This can eliminate the sub-color light more accurately and properly, and reduce the negative impact of the blue light on the user's physiological activities while the different requirements of the user are met.
In a possible implementation, a preset melanopic lux per photopic lux ratio standard is adjusted when an average melanopic lux per photopic lux ratio corresponding to the updated color light is higher than the preset average melanopic lux per photopic lux ratio standard, to obtain an adjusted preset melanopic lux per photopic lux ratio standard; and sub-color light having a melanopic lux per photopic lux ratio that exceeds the adjusted preset melanopic lux per photopic lux ratio standard is eliminated from the updated color light, so that the screen displays adjusted color light, where an average melanopic lux per photopic lux ratio corresponding to the adjusted color light is lower than or equal to the preset average melanopic lux per photopic lux ratio standard. Therefore, based on whether the average melanopic lux per photopic lux ratio corresponding to the updated color light is higher than the preset average melanopic lux per photopic lux ratio standard, it can be determined whether a setting of the current preset melanopic lux per photopic lux ratio standard is appropriate.
In a possible implementation, based on the spectral information of the light of the sub-colors, melanopic equivalent daylight illuminance and brightness corresponding to the light of the sub-colors are calculated; and the melanopic lux per photopic lux ratio corresponding to the light of the sub-colors is obtained based on a ratio of the melanopic equivalent daylight illuminance to the brightness.
According a second aspect, an apparatus for screen display is provided, including an obtaining module, a calculating module, and an eliminating module.
The obtaining module is configured to obtain spectral information of light of a plurality of sub-colors in an original color light color gamut of a screen display picture separately.
The calculating module is configured to calculate a melanopic lux per photopic lux ratio of the light of the sub-colors based on the spectral information of the light of the sub-colors.
The eliminating module is configured to eliminate, from the original color light, sub-color light having a melanopic lux per photopic lux ratio that exceeds a preset melanopic lux per photopic lux ratio standard, so that the screen displays updated color light, where the preset melanopic lux per photopic lux ratio standard is a standard set based on a goal of reducing melatonin inhibition.
According a third aspect, embodiments of this application provide a computer device, where the computer device includes a processor and a memory. The memory is configured to store program code and transmit the program code to the processor. The processor is configured to perform, based on instructions in the program code, steps of the foregoing method for screen display.
According to a fourth aspect, embodiments of this application provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, steps of the foregoing method for screen display are implemented.
It should be understood that descriptions of technical features, technical solutions, beneficial effects or similar languages in this application do not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it may be understood that descriptions of features or beneficial effects indicate that at least one embodiment includes specific technical features, technical solutions, or beneficial effects. Therefore, descriptions of the technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to a same embodiment. Further, the technical features, technical solutions, and beneficial effects described in this embodiment may be combined in any suitable manner. A person skilled in the art understands that embodiments can be implemented without one or more particular technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be further identified in a particular embodiment that does not embody all embodiments.
In embodiments of this application, the terms such as “example” or “for example” are used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as an “example” or “for example” in embodiments of this application should not be explained as being more preferred or having more advantages than another embodiment or design scheme. Exactly, use of the terms such as “example” or “for example” is intended to present a relative concept in a specific manner.
To describe the following embodiments clearly and concisely, brief descriptions for related technologies are as follows:
A rhythmic effect of light means an impact of the light on a biological rhythm. To adapt to the environment of earth during a long-term evolution process, living things form an invisible “clock” in the body, referred to as the biological rhythm (or a biological clock). All living things, including humans, are controlled and influenced by biological rhythms. For example, a circadian rhythm has a cycle close to 24 hours and is one of the biological rhythms, participates in many important physiological processes of regulating the human body, and controls daily cycles of various physiological activities such as sleep, wakefulness, hormone secretion, and metabolism. A research shows that the biological rhythm is influenced by an external environment. Light is an important factor influencing the biological rhythm. Unsuitable light stimulation causes a biological rhythm regulation mechanism to be fragile, thereby affecting physical and mental health of humans.
There is a red, green, and blue (RGB) color mode. Various colors are obtained by changing three color channels of red (R), green (G), and blue (B) and superimposing the three colors on each other. Most screens use the RGB color mode. All colors of light on the screen are mixed in different proportions of red, green, and blue. Any color on the screen may be recorded and expressed by a set of RGB values.
A color gamut may be used to measure a range of colors that a device can display.
Although conventional technologies can be combined to reduce the impact of the electronic device on the user to a certain extent, a large quantity of color gamuts are also lost, resulting in problems such as reduced picture color richness, unrealistic color, and missing of picture details. Embodiments of this application provide a method, an apparatus, and a device for screen display, and a storage medium. A melanopic lux per photopic lux ratio (M/P ratio) of light of sub-colors can be determined, by obtaining spectral information of the light of a plurality of sub-colors on the screen, based on the spectral information of the light of the sub-colors. Sub-color light having a melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard may be eliminated from the original color light based on a melanopic lux per photopic lux ratio corresponding to light of each color and a preset melanopic lux per photopic lux ratio standard, thereby adjusting a screen display effect. According to embodiments of this application, screen display is implemented based on the melanopic lux per photopic lux ratio corresponding to light of each sub-color. A higher melanopic lux per photopic lux ratio indicates a stronger inhibitory effect of sub-color light corresponding to the melanopic lux per photopic lux ratio on melatonin. After the preset melanopic lux per photopic lux ratio standard is determined, a melanopic lux per photopic lux ratio corresponding to finally displayed color light is within the preset melanopic lux per photopic lux ratio standard. Therefore, according to the method for screen display, the inhibitory effect of light emitted by the electronic device on melatonin is reduced and a rhythm improvement effect is enhanced. In addition, a large color gamut range is retained, thereby providing the user with better visual experience.
The method provided in embodiments of this application can be applied to a server and various electronic devices. In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a handheld computer, a netbook, a personal digital assistant (Personal Digital Assistant, PDA), a wearable electronic device, a smartwatch, or other devices. A specific form of the electronic device is not specially limited in this application.
In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a handheld computer, a netbook, a personal digital assistant (Personal Digital Assistant, PDA), a wearable electronic device, a smartwatch, or other devices. A specific form of the electronic device is not specially limited in this application. In this embodiment, a structure of the electronic device may be shown in
As shown in
It may be understood that the schematic structure in this embodiment constitutes no specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than those shown in the figure, some components may be combined, some components may be split, or a different component deployment may be used. The illustrated components may be implemented by hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a neural-network processing unit (neural-network processing unit, NPU), and/or the like. Different processing units may be separate devices, or may be integrated into one or more processors.
The controller may be a nerve center and a command center of the electronic device. The controller may generate an operation control signal according to instruction operation code and a timing signal, and implement control on instruction fetching and instruction execution.
A memory configured to store instructions and data may be further disposed in the processor 110. In some embodiments, the memory in the processor 110 is a cache. The memory may store an instruction or data that is recently used or cyclically used by the processor 110. If the processor 110 needs to use the instructions or the data again, the processor may directly invoke the instructions or the data from the memory. This avoids repeated accessing and reduces waiting time of the processor 110, thereby improving system efficiency.
In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.
The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a derail clock line (derail clock line, SCL). In some embodiments, the processor 110 may include a plurality of sets of I2C buses. The processor 110 may be separately coupled to the touch sensor 180K, a charger, a flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, so that the processor 110 communicates with the touch sensor 180K via the I2C bus interface to implement a touch function of the electronic device.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may include a plurality of sets of I2S buses. The processor 110 may be coupled to the audio module 170 via the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 via the I2S interface to implement a function of answering a call via a Bluetooth headset.
The PCM interface may be further used for audio communication to sample, quantize, and encode an analog signal. In some embodiments, the audio module 170 may be coupled to the wireless communication module 160 via a PCM bus interface. In some embodiments, the audio module 170 may alternatively transmit an audio signal to the wireless communication module 160 via the PCM interface to implement the function of answering a call via a Bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. The bus converts to-be-transmitted data between serial communication and parallel communication. In some embodiments, the UART interface is generally configured to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 via the UART interface, to implement a Bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 via the UART interface, to implement a function of music playback via the Bluetooth headset.
The MIPI interface may be configured to connect the processor 110 and a peripheral device such as the display screen 194 or the camera 193. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 via the CSI interface to implement a photographing function of the electronic device. The processor 110 communicates with the display screen 194 via the DSI interface to implement a display function of the electronic device.
The GPIO interface may be configured by using software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be configured to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may alternatively be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, or the like.
The USB interface 130 is an interface that complies with a USB standard specification, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be configured to be connected to a charger to charge the electronic device, or may be configured to transmit data between the electronic device and the peripheral device. The USB interface 130 may alternatively be configured to be connected to a headset to play audio using the headset. This interface may alternatively be configured to be connected to another electronic device, such as an AR device.
It may be understood that an interface connection relationship between the modules illustrated in this embodiment is merely an example for descriptions, and does not constitute a limitation on the structure of the electronic device. In some other embodiments of this application, the electronic device may alternatively use an interface connection manner different from that in the foregoing embodiment, or use a combination of a plurality of interface connection manners.
The charging management module 140 is configured to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input via a wireless charging coil of the electronic device. The charging management module 140 may supply power to the electronic device by the power management module 141 while charging the battery 142.
The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may be further configured to monitor battery capacity, a quantity of battery cycles, a battery health state (electric leakage and impedance), and other parameters. In some other embodiments, the power management module 141 may alternatively be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may alternatively be disposed in a same device.
A wireless communication function of the electronic device may be implemented by using the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antenna 1 and the antenna 2 are configured to transmit and receive an electromagnetic wave signal. Each antenna in the electronic device may be configured to cover one or more communication frequency bands. Different antennas may also be reused to improve antenna utilization. For example, the antenna 1 may be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna may be used with a tuning switch.
The mobile communication module 150 may provide a solution applied to the electronic device for wireless communication such as 2G/3G/4G/5G. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave via the antenna 1, perform processing such as filtering and amplification on the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may further amplify a signal modulated by the modem processor. The amplified signal is converted into an electromagnetic wave via the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be disposed in a same device.
The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then, the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal by an audio device (not limited to the speaker 170A, the receiver 170B, and the like), or displays an image or a video by using the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be disposed in a same device as the mobile communication module 150 or other functional modules.
The wireless communication module 160 may provide a solution applied to the electronic device for wireless communication including a wireless local area network (wireless local area networks, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), an infrared (infrared, IR) technology, and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 may further receive a to-be-sent signal from the processor 110, and perform frequency modulation and amplification on the signal. The signal is converted into an electromagnetic wave via the antenna 2 for radiation.
In some embodiments, in the electronic device, the antenna 1 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device may communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM) technology, a general packet radio service (general packet radio service, GPRS) technology, a code division multiple access (code division multiple access, CDMA) technology, a wideband code division multiple access (wideband code division multiple access, WCDMA) technology, a time-division code division multiple access (time-division code division multiple access, TD-SCDMA), a long term evolution (long term evolution, LTE) technology, a BT technology, a GNSS technology, a WLAN technology, an NFC technology, an FM technology, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), a satellite based augmentation system (satellite based augmentation systems, SBAS), and/or the like.
The electronic device implements a display function by using the GPU, the display screen 194, the application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is configured to display an image, video, and the like. The display screen 194 includes a display panel. The display panel may use a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active-matrix organic light emitting diode or active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), a flex light-emitting diode (flex light-emitting diode, FLED), a Miniled, a MicroLed, a Micro-oled, a quantum dot light emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194. N is a positive integer greater than 1.
A series of graphical user interfaces (graphical user interfaces, GUI) can be displayed on the display screen 194 of the electronic device, and the GUIs are home screens of the electronic device. In general, a size of the display screen 194 of the electronic device is fixed, and only limited controls can be displayed on the display screen 194 of the electronic device. The control is a GUI element, is a software component included in an application, and controls all data processed by the application and interactive operations related to the data. The user can interact with the control using direct manipulation (direct manipulation) to read or edit relevant information about the application. In general, the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, and a widget.
The electronic device may implement a photographing function by using the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is configured to process data fed back by the camera 193. For example, during photographing, a shutter is opened, light is transmitted to a photosensitive element of the camera through a lens, and an optical signal is converted into an electrical signal. The photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts the electrical signal into an image visible to naked eyes. The ISP may further perform algorithm optimization on image noise, illuminance, and skin color. The ISP may further optimize exposure, color temperature, and other parameters of a shooting scene. In some embodiments, the ISP may be disposed in the camera 193.
The camera 193 is configured to capture a still image or a video. An optical image of an object generated through a lens is projected to a photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts an optical signal into an electrical signal, and then transmits the electrical signal to the ISP. The ISP converts the electrical signal into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, or another format image signal. In some embodiments, the electronic device may include 1 or N cameras 193. N is a positive integer greater than 1.
The digital signal processor is configured to process a digital signal and may further process another digital signal in addition to processing the digital image signal. For example, when the electronic device performs a frequency selection, the digital signal processor is configured to perform Fourier transform or the like on frequency energy.
The video codec is configured to compress or decompress a digital video. The electronic device may support one or more video codecs. In this way, the electronic device can play or record videos in a plurality of encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG 2, MPEG 3, and MPEG 4.
The NPU is a neural-network (neural-network, NN) computing processor. By using a structure of a biological neural network, such as a transmission mode between neurons in the human brain, the NPU can quickly process input information and can continuously learn by itself. By using the NPU, intelligent cognition and another application of the electronic device, such as image recognition, facial recognition, voice recognition, and text understanding, can be implemented.
The external memory interface 120 may be configured to be connected to an external storage card such as a Micro SD card, to expand a storage capability of the electronic device. The external storage card communicates with the processor 110 via the external memory interface 120, to implement a data storage function, such as saving music, video, and another file in the external storage card.
The internal memory 121 may be configured to store computer-executable program code. The executable program code includes instructions. The processor 110 runs the instructions stored in the internal memory 121, to implement various functional applications and data processing of the electronic device. For example, in this embodiment, the processor 110 may recalculate a first display time stamp of a video stream and recalculate a second display time stamp of an audio stream by executing the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required by at least one function (such as a voice playback function and an image playback function), and the like. The data storage area may store data (for example, audio data and an address book) and the like created when the electronic device is used. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or a universal flash storage (universal flash storage, UFS). The processor 110 runs the instructions stored in the internal memory 121 and/or the instructions stored in the memory disposed in the processor, to implement various functional applications and data processing of the electronic device.
The electronic device may implement an audio function such as music playback or recording by using the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headset jack 170D, the application processor, and the like.
The audio module 170 is configured to convert digital audio information into analog audio signal output, and is also configured to convert analog audio input into a digital audio signal. The audio module 170 may be further configured to encode and decode an audio signal. In some embodiments, the audio module 170 may be disposed in the processor 110, or some function modules in the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a “loudspeaker”, is configured to convert an audio electrical signal into a sound signal. The electronic device can allow listening to music or answering a hands-free call through the speaker 170A.
The receiver 170B, also referred to as an “earpiece”, is configured to convert an audio electrical signal into a sound signal. When a call is answered or a voice message is listened to by using the electronic device, the receiver 170B may be put close to a human ear to listen to a voice.
The microphone 170C, also referred to as “microphone” or “microphone”, is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, a user can speak close to the microphone 170C with the human mouth to input the sound signal to the microphone 170C. At least one microphone 170C may be disposed in the electronic device. In other embodiments, the electronic device may be provided with two microphones 170C, to implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may alternatively be provided with three, four, or more microphones 170C to collect the sound signals, reduce noise, identify sound sources to implement a directional recording function, and the like.
The headset jack 170D is configured to be connected to a wired headset. The headset jack 170D may be a USB interface 130, or may be an open mobile terminal platform (open mobile terminal platform, OMTP) standard interface with 3.5 mm, or may be a cellular telecommunications industry association of the USA (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is configured to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as a resistive pressure sensor, an inductive pressure sensor, and a capacitive pressure sensor. The capacitive pressure sensor may include at least two parallel plates having conductive materials. When a force is applied to the pressure sensor 180A, capacitance between electrodes changes. The electronic device determines strength of the pressure based on the change of the capacitance. When a touch operation is performed on the display screen 194, the electronic device measures strength of the touch operation based on the pressure sensor 180A. The electronic device may further calculate a touch position based on a detection signal of the pressure sensor 180A. In some embodiments, touch operations performed on a same touch position but with different touch operation strength may correspond to different operation instructions. For example, when a touch operation having touch operation strength that is less than a first pressure threshold is performed on a short message application icon, an instruction of checking a short message is executed. When a touch operation having touch operation strength that is greater than or equal to the first pressure threshold is performed on the short message application icon, an instruction of creating a short message is executed.
The gyroscope sensor 180B may be configured to determine a motion posture of the electronic device. In some embodiments, an angular velocity of the electronic device around three axes (that is, an x axis, a y axis, and a z axis) may be determined using the gyroscope sensor 180B. The gyroscope sensor 180B may be configured for image anti-jitter during photographing. For example, when the shutter is pressed, the gyroscope sensor 180B measures an angle at which the electronic device jitters, calculates, based on the angle, a distance for which a lens module needs to compensate, and allows the lens to cancel the jitter of the electronic device by performing reverse movement, to implement image anti-jitter. The gyroscope sensor 180B may be further used in scenarios such as navigation and a motion sensing game.
The barometric pressure sensor 180C is configured to measure barometric pressure. In some embodiments, the electronic device calculates an altitude by using the barometric pressure measured by the barometric pressure sensor 180C, to assist in positioning and navigation.
The magnetic sensor 180D includes a Hall sensor. The electronic device may use the magnetic sensor 180D to detect opening or closing of a flip leather case. In some embodiments, when the electronic device is a clamshell phone, the electronic device may detect opening or closing of a flip cover based on the magnetic sensor 180D. Further, based on the detected opening or closing state of the leather case or the detected opening or closing state of the flip cover, a feature such as automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect an acceleration value of the electronic device in each direction (generally on three axes). When the electronic device is static, magnitude and a direction of gravity may be detected. The acceleration sensor 180E may be further configured to recognize a posture of the electronic device, and is applied to applications such as switchover between horizontal and vertical screens and a pedometer.
The distance sensor 180F is configured to measure a distance. The electronic device may measure a distance through infrared or laser. In some embodiments, in a photographing scene, the electronic device may measure a distance by using the distance sensor 180F, to implement quick focusing.
The optical proximity sensor 180G may include, for example, a light emitting diode (LED), a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outward through the light-emitting diode. The electronic device detects infrared reflected light from a nearby object by using the photodiode. When sufficient reflected light is detected, the electronic device may determine that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device may determine that there is no object near the electronic device. The electronic device may use the optical proximity sensor 180G to detect that the user holds the electronic device close to the ear and talks, so that a screen can be automatically turned off to save power. The optical proximity sensor 180G can also be used in a holster mode and a pocket mode for automatically unlocking and locking the screen.
The ambient light sensor 180L is configured to sense ambient light illuminance. The electronic device can correspondingly adjust illuminance of the display screen 194 based on the sensed ambient illuminance. The ambient light sensor 180L may be further configured to automatically adjust white balance during photographing. The ambient light sensor 180L may further cooperate with the optical proximity sensor 180G to detect whether the electronic device is in a pocket, to prevent an accidental touch.
The fingerprint sensor 180H is configured to collect a fingerprint. The electronic device may implement fingerprint unlock, application lock accessing, fingerprint photographing, fingerprint-based call answering, and the like by using a feature of the collected fingerprint.
The temperature sensor 180J is configured to detect a temperature. In some embodiments, the electronic device executes a temperature processing strategy based on the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces a performance of a processor located near the temperature sensor 180J, to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142, to avoid abnormal shutdown of the electronic device caused by a low temperature. In some other embodiments, when the temperature is lower than still another threshold, the electronic device increases an output voltage of the battery 142, to avoid abnormal shutdown caused by a low temperature.
The touch sensor 180K is also referred to as a “touch device”. The touch sensor 180K may be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touchscreen, also referred to as a “touchscreen”. The touch sensor 180K is configured to detect a touch operation performed on or near the touch sensor 180K. The touch sensor may transfer the detected touch operation to the application processor to determine a type of a touch event. Visual output related to the touch operation may be provided by using the display screen 194. In other embodiments, the touch sensor 180K may be alternatively disposed on a surface of the electronic device at a position different from that of the display screen 194.
The bone conduction sensor 180M may obtain a vibration signal. In some embodiments, the bone conduction sensor 180M may obtain a vibration signal of a vibrating bone block of a human body's vocal part. The bone conduction sensor 180M may be further in contact with a human body's pulse and receive a blood pressure pulsating signal. In some embodiments, the bone conduction sensor 180M may alternatively be disposed in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze a voice signal based on the vibration signal of the vocal vibrating bone block obtained by the bone conduction sensor 180M to implement a voice function. The application processor can analyze heart rate information based on the blood pressure pulsating signal obtained by the bone conduction sensor 180M to implement a heart rate detection function.
The key 190 includes a power key, a volume key, and the like. The key 190 may be a mechanical key, or a touch key. The electronic device may receive key input, and generate key signal input related to user settings and function control of the electronic device.
The motor 191 may generate a vibration prompt. The motor 191 may be configured to provide an incoming call vibration prompt or touch vibration feedback. For example, the motor 191 may correspond to different vibration feedback effects for touch operations on different applications (such as photographing and audio playback). The motor 191 may further correspond to different vibration feedback effects for touch operations on different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, an alarm clock, and a game) can also correspond to different vibration feedback effects. A touch vibration feedback effect can also be customized.
The indicator 192 may be an indicator light, and may be configured to indicate a charging state or a battery change, or may be further configured to indicate a message, a missed call, a notification, and the like.
The SIM card interface 195 is configured to be connected to a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195, to be in contact with and be separated from the electronic device. The electronic device may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, and the like. A plurality of cards may be simultaneously inserted into the same SIM card interface 195. Types of the plurality of cards may be the same or different. The SIM card interface 195 may be further compatible with different types of SIM cards. The SIM card interface 195 may be further compatible with the external storage card. The electronic device interacts with the network via the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device uses an eSIM, that is, an embedded SIM card. The eSIM card may be embedded in the electronic device and cannot be separated from the electronic device.
In addition, an operating system runs on the foregoing components, for example, an iOS operating system developed by Apple, an Android open source operating system developed by Google, and a Windows operating system developed by Microsoft. An application can be installed and run on this operating system.
The operating system of the electronic device may use a layered architecture, an event-driven architecture, a microkernel architecture, a micro service architecture, or a cloud architecture. In this embodiment of this application, a software structure of the electronic device is described by using an Android system with a layered architecture as an example.
In a layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other through software interfaces. In some embodiments, an Android system is divided into four layers from top to bottom: an application layer; an application framework layer; an Android runtime (Android runtime) and a system library; and a kernel layer.
The application layer may include a series of application packages. As shown in
The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As shown in
The window manager is configured to manage a window application. The window manager may obtain a size of a display screen, determine whether there is a status bar, perform screen locking, perform screen capturing, and the like.
The content provider is configured to store and obtain data, and enable the data to be accessible by an application. The data may include a video, an image, audio, phone calls made and answered, a browsing history, favorites, an address book, and the like.
The view system includes a visual control, for example, a control for displaying text or a control for displaying a picture. The view system may be configured to create an application. A display interface may include one or more views. For example, a display interface including a message notification icon may include a view for displaying text and a view for displaying a picture.
The phone manager is configured to provide a communication function of the electronic device, for example, call status management (including call connection, hang-up, and the like).
The resource manager provides a variety of resources, such as localized character strings, icons, pictures, layout files, and video files, for the applications.
The notification manager enables the application to display notification information in a status bar. The notification messages may be used for conveying an informative message that may disappear automatically after a short period of time without user interaction. For example, the notification manager is used for informing completion of downloading, providing a message reminder, and the like. The notification manager may alternatively provide, on a status bar at the top of the system, a notification in the form of a chart or scroll bar text, for example, a notification of an application running in the background, or provide, on a screen, a notification in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is produced, the electronic device vibrates, and an indicator light blinks.
The Android Runtime includes a kernel library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
The core library includes two parts: One part is a functional function that the java language needs to invoke, and the other part is an Android kernel library.
The application layer and the application framework layer are run in the virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is configured to execute functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of function modules, for example, a surface manager (surface manager), a media library (Media Library), a three-dimensional graphics processing library (for example, OpenGL ES), a 2D graphics engine (for example, SGL).
The surface manager is configured to manage a display subsystem and provide fusion of 2D and 3D layers for a plurality of applications.
The media library supports playback and recording of a plurality of commonly used audio and video formats, static image files, and the like. The media library may support a plurality of audio and video encoding formats, for example, MPEG 4, H.264, MP3, AAC, AMR, JPG, and PNG.
The three-dimensional graphics processing library is configured to implement three-dimensional graphics drawing, image rendering, compositing, layer processing, and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
It should be noted that although embodiments of this application are explained using the Android system as an example, a basic principle is also applicable to electronic devices based on operating systems such as iOS and Windows.
Embodiments of this application provide a screen display application scenario. The following is described with reference to schematic diagrams of a user interface shown in
For example,
In this embodiment of this application, a principle that a higher M/P ratio indicates a stronger inhibitory effect on secretion of melatonin in the human body is used, and an M/P ratio is used as a basis for adjusting a screen display effect. A melanopic lux per photopic lux ratio corresponding to the light of sub-colors is calculated by obtaining spectral information of light of a plurality of sub-colors in an original color light color gamut of a screen display picture, and using the spectral information of the light of the sub-colors. Sub-color light having a melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard is eliminated from the original color light based on a preset melanopic lux per photopic lux ratio standard and a plurality of M/P ratios, so that the screen displays updated color light. An essence of the user obtaining different screen display results using the manual adjustment button or the automatic adjustment button is: adjusting the preset melanopic lux per photopic lux ratio standard to obtain different screen display results.
When the preset melanopic lux per photopic lux ratio standard is automatically adjusted by using the automatic adjustment button, as shown in
When the user adjusts the preset melanopic lux per photopic lux ratio standard using the manual adjustment button, as shown in
For example,
Further, a same mode in different time periods may correspond to different preset melanopic lux per photopic lux ratio standards. For example, for day and night, corresponding preset melanopic lux per photopic lux ratio standards are different when the user is in a reading mode. A preset melanopic lux per photopic lux ratio standard corresponding to a reading mode in the day may be set to be higher than a preset melanopic lux per photopic lux ratio standard corresponding to a reading mode at the night.
In conclusion, the user may determine different preset melanopic lux per photopic lux ratio standards in the manual or automatic adjustment manner, or determine different usage modes based on different uses to determine the preset melanopic lux per photopic lux ratio standard. After the preset melanopic lux per photopic lux ratio standard is determined, the sub-color light having a melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard is eliminated from the original color light, so that the screen displays the updated color light.
Embodiments of this application discloses a method for screen display. A melanopic lux per photopic lux ratio of light of sub-colors is calculated by obtaining spectral information of the light of a plurality of sub-colors in an original color light color gamut of a screen display picture, and according to the spectral information of the light of the sub-colors. Sub-color light having a melanopic lux per photopic lux ratio that exceeds a preset melanopic lux per photopic lux ratio standard is eliminated, so that the screen displays updated color light. According to the method for screen display provided in embodiments of this application, the sub-color light is eliminated based on the melanopic lux per photopic lux ratio, and the sub-color light can be eliminated in a targeted manner. This effectively reduces an impact of blue light on a user while color reality and picture details are retained to a certain extent, thereby providing the user with better visual experience.
Specifically, a screen is usually composed of three kinds of light-emitting diodes in red, green, and blue. The three colors of red, green, and blue are mixed in different proportions to produce various colors of light. To be specific, different colors of light displayed on the screen are composed of a mixture of light of different intensities and wavelengths. For example, orange light on the screen is not monochromatic light with a wavelength of 600 nm, but can be composed of a mixture of red and green light. It can be considered that light of each color corresponds to a piece of spectral information, and the spectral information includes spectral irradiance and a spectral range corresponding to the light of each color. A melanopic lux per photopic lux ratio corresponding to the color light may be calculated based on the spectral information of the color light.
To more scientifically and effectively reduce damage caused by blue light to the user and reduce an impact of an electronic device on a user's biological rhythm, in embodiments of this application, the melanopic lux per photopic lux ratio corresponding to the sub-color light is used as a basis from a perspective of biological science, to eliminate, based on the preset melanopic lux per photopic lux ratio standard and the melanopic lux per photopic lux ratio of the sub-color light, the sub-color light having the melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard, to obtain a screen display result after elimination, thereby effectively reducing the impact of blue light on the user. Specifically, light stimulates intrinsically photosensitive retinal ganglion cells (ipRGC) through the retina of human eyes and a light signal is transmitted to the suprachiasmatic nucleus (SCN), that is, the rhythm center. The SCN then outputs a rhythm signal in the form of autonomic nerve regulation and hormone secretion, to implement control of the biological rhythm. The ipRGC plays a leading role in non-visual photosensitivity. Photoreceptor protein melanopsin on cell membrane of the ipRGC can respond to intensity of light, especially blue light with a short wavelength, inhibiting secretion of melatonin and affecting the biological rhythm.
The Melanopic EDI may be represented by formula (1) as follows:
In formula (1), λ represents a wavelength of a visible light spectrum, and a wavelength range is 380 nm to 780 nm. Ee,λ(λ) is spectral irradiance, and a unit is W/m2/nm. S( ) is an action spectrum of melanopsin, as shown in the dotted line of
There are differences in a user's perception for brightness of light of different sub-colors. For light of one sub-color, illuminance of the light of the sub-color can be expressed by formula (2) as follows:
In formula (2), L represents brightness, and V(λ) represents a spectral luminous efficiency function for photopic vision, as shown in the dash line of
Melanopic EDI and brightness corresponding to light of each sub-color may be calculated based on the spectral information of the light of each sub-color, and then a melanopic lux per photopic lux ratio corresponding to the light of each sub-color may be calculated, as shown in formula (3):
In formula (3), M/P ratio represents the melanopic lux per photopic lux ratio, and may be obtained by calculating a ratio of the Melanopic EDI to illuminance. A higher M/P ratio of the sub-color light indicates a stronger inhibitory effect of the sub-color light on secretion of melatonin. Sub-color light with a high M/P ratio may be eliminated to reduce the inhibitory effect on the secretion of melatonin.
A plurality of points are evenly selected within a color gamut that can be displayed on the electronic device based on the foregoing method. Each point corresponds to light of each sub-color. An M/P ratio corresponding to the light of each sub-color may be calculated based on the spectral information of the light of each sub-color. The sub-color light having the melanopic lux per photopic lux ratio that exceeds the preset melanopic lux per photopic lux ratio standard may be eliminated from the original color light based on the M/P ratio and the preset melanopic lux per photopic lux ratio standard.
Specifically, the preset melanopic lux per photopic lux ratio standard may be determined in the following manners:
Manner 1: Different preset melanopic lux per photopic lux ratio standards are determined based on a time period, or different preset melanopic lux per photopic lux ratio standards are determined based on a combination of time period and geographical location. Because the secretion of melatonin in the human body is affected by a biological rhythm, secretion levels of melatonin are different in different time periods. Especially at night, when light stimulation weakens, enzyme activity of the pineal body to synthesize melatonin increases, and the secretion level of melatonin also increases accordingly and usually reaches a peak at 2 am to 3 am. The level of melatonin at night directly affects a user's sleep quality. To reduce an impact of an electronic device on the user's sleep quality at night, different preset melanopic lux per photopic lux ratio standards may be determined based on different time periods. For example, a preset melanopic lux per photopic lux ratio standard determined from evening to late night is getting lower to prevent the M/P ratio from being excessively high, causing the secretion of melatonin to be inhibited, and affecting the user's sleep quality. In contrast, during the day, a higher preset melanopic lux per photopic lux ratio standard may be determined to obtain a better visual effect.
Manner 2: Different preset melanopic lux per photopic lux ratio standards are determined based on different usage modes. The usage modes include a video mode, a game mode, a reading mode, and the like. Specific usage modes are not limited in embodiments of this application. Different usage modes may correspond to different preset melanopic lux per photopic lux ratio standards. The usage mode may represent a user's usage scenario. For example, when the user uses the electronic device to play a game, a corresponding usage mode is a game mode. In this case, the user generally has a high requirement for a visual effect and the brain of the user is in an excited state, then a high level of preset melanopic lux per photopic lux ratio standard may be determined. This can reduce the user's sleepiness to a certain extent and provide the user with a better visual effect simultaneously.
Manner 3: The preset melanopic lux per photopic lux ratio standard may be determined based on a time period, a geographical location, and a usage mode. To be specific, in a case of the same geographical location and usage mode, different time periods correspond to different preset melanopic lux per photopic lux ratio standards. Alternatively, in the same time period and the same geographical location, different usage modes correspond to different preset melanopic lux per photopic lux ratio standards. For example, for day and night, corresponding preset melanopic lux per photopic lux ratio standards are different when the user is in a reading mode. A preset melanopic lux per photopic lux ratio standard corresponding to a reading mode in the day may be set to be higher than a preset melanopic lux per photopic lux ratio standard corresponding to a reading mode at the night.
Further, the determined preset melanopic lux per photopic lux ratio standard may be adjusted based on an average melanopic lux per photopic lux ratio (average M/P ratio) corresponding to updated color light, to obtain an adjusted screen display result. A higher average M/P ratio indicates that it is less conducive to the secretion of melatonin. Further, a preset average melanopic lux per photopic lux ratio standard is used as an upper limit of the average M/P ratio. When the average M/P ratio exceeds the preset average melanopic lux per photopic lux ratio standard, it means that the preset melanopic lux per photopic lux ratio standard determined in this case is inappropriate. Light of more sub-colors corresponding to high M/P ratios is eliminated by lowering the preset melanopic lux per photopic lux ratio standard, thereby reducing an average M/P ratio corresponding to adjusted color light. In this way, the average M/P ratio corresponding to the adjusted color light does not exceed the preset average melanopic lux per photopic lux ratio standard.
Specifically, the average M/P ratio corresponding to the updated color light is obtained. When the average M/P ratio exceeds the preset average melanopic lux per photopic lux ratio standard, the preset melanopic lux per photopic lux ratio standard is adjusted. The average M/P ratio may be expressed by formula (4) as follows:
In formula (4), n represents a quantity of selected points, that is, an amount of sub-color light in the updated color light. For example, a plurality of points may be selected evenly within a color gamut range corresponding to the updated color light. The Melanopic EDI and L corresponding to the sub-color light are calculated based on the spectral information of the light of the plurality of sub-colors in the updated color light. A ratio of a sum of Melanopic EDI of light of a plurality of sub-colors to a sum of a plurality of Ls is used as the average M/P ratio corresponding to the updated color light. Similarly, the preset average melanopic lux per photopic lux ratio standard can also be determined through the above three manners. Details are not described herein again. When the average M/P ratio exceeds the preset average melanopic lux per photopic lux ratio standard, the preset melanopic lux per photopic lux ratio standard is adjusted to obtain an adjusted preset melanopic lux per photopic lux ratio standard. Sub-color light having a melanopic lux per photopic lux ratio that exceeds the adjusted preset melanopic lux per photopic lux ratio standard in the updated color light is eliminated, so that adjusted color light is displayed on the screen. For example, the preset melanopic lux per photopic lux ratio standard is lowered, light of more sub-colors corresponding to high M/P ratios is eliminated based on the lowered preset melanopic lux per photopic lux ratio standard. Therefore, the average M/P ratio corresponding to the adjusted color light does not exceed the preset average melanopic lux per photopic lux ratio standard, optimizing the preset melanopic lux per photopic lux ratio standard.
Specifically, in an embodiment of this application, the preset melanopic lux per photopic lux ratio standard is a melanopic lux per photopic lux ratio threshold (M/P ratio threshold), and sub-color light having an M/P ratio that is higher than the M/P ratio threshold may be eliminated, as shown in
In conclusion, in embodiments of this application, sub-color light with a high M/P ratio may be eliminated in a more targeted manner based on a principle that a higher melanopic lux per photopic lux ratio indicates a stronger inhibitory effect on melatonin of the human body, and using the melanopic lux per photopic lux ratio as a basis to eliminate sub-color light. A screen display result, that is, updated color light, retains a large quantity of color ranges and picture details, and a negative impact of blue light on a user can be more effectively reduced simultaneously.
In an embodiment of this application,
Specifically, a change in sub-color light is caused by a change in the relative intensities of red, green, and blue pixels of the electronic device. A linear space transformation matrix may be calculated based on a color gamut coordinate value of sub-color light with a highest melanopic lux per photopic lux ratio within the to-be-eliminated color gamut range and the color gamut coordinate value of the target vertex color light. Transformed color light corresponding to the sub-color light within the to-be-eliminated color gamut range is obtained based on a color gamut coordinate value of the sub-color light within the to-be-eliminated color gamut range and the linear space transformation matrix. Further, the sub-color light within the to-be-eliminated color gamut range is replaced with the transformed color light, so that the screen may display the updated color light. For example, as shown in
In this way, an M/P ratio of the updated color light does not exceed the preset melanopic lux per photopic lux ratio standard. Although some color light having M/P ratios that are lower than the M/P ratio threshold is eliminated, this color light is less, and most of the color gamut is ultimately retained, maintaining a good visual effect while a simpler algorithm is implemented.
In conclusion, according to the method for screen display provided in this application, the target vertex color light is determined based on the preset melanopic lux per photopic lux ratio standard, and the linear space transformation matrix M is calculated based on the target vertex color light and the sub-color light with the highest melanopic lux per photopic lux ratio within the to-be-eliminated color gamut range. Further, the transformed color light corresponding to the sub-color light within the to-be-eliminated color gamut range may be calculated based on the linear space transformation matrix M. The sub-color light is eliminated in a targeted manner, and the updated color light can be displayed on the screen through a relatively simple algorithm.
Compared with the method of compressing a color gamut of blue and green areas to reduce an impact of an electronic device on a user's physiological activities in conventional technologies, according to the method provided in embodiments of this application, the sub-color light can be eliminated in a more targeted manner based on the M/P ratio. A larger color gamut range can be retained, as shown in
In embodiments of this application, the electronic device may be divided into function modules according to the foregoing method example. For example, each function module may be divided based on each corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware, or may be implemented in the form of a software functional module. It should be noted that in embodiments of this application, the module division is an example, and is merely logical function division, and there may be other division manners during actual implementation.
It should be noted that all related content of the steps in the foregoing method embodiments may be cited in function description of corresponding functional modules. Details are not described herein again.
This embodiment further provides a computer-readable storage medium. The computer-readable storage medium includes instructions. When the instructions are run on an electronic device, the electronic device is enabled to perform the foregoing steps of relevant methods to implement the method in the foregoing embodiments.
This embodiment further provides a computer program product including instructions. When the computer program product is run on an electronic device, the electronic device is enabled to perform the foregoing steps of relevant methods to implement the method in the foregoing embodiments.
According to the foregoing descriptions of the implementations, a person skilled in the art may clearly understand that for the purpose of convenient and brief description, division of the foregoing function modules is used as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or some of the functions descriptions of described above. For a detailed working process of the foregoing system, apparatus, and units, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In some embodiments provided in this embodiment, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely examples. For example, division into the modules or units is merely a logical function division and there may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or another form.
The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of embodiments.
In addition, functional units in embodiments of this embodiment may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software functional unit.
When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this embodiment essentially, or the part contributing to the conventional technologies, or all or some of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor to perform all or some of the steps of the methods described in embodiments. The foregoing storage medium includes: any medium that can store program code, such as a flash memory, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or a compact disc.
The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202211235255.7 | Oct 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/115414 | 8/29/2023 | WO |