Image display method, electronic device, and computer-readable storage medium
By obtaining ambient illuminance and image brightness in electronic devices and adjusting screen brightness, the problem of inconsistent user experience in different environments is solved, and visual consistency and improved user experience are achieved.
Patent Information
- Application Number
- PCT/CN2024/109636
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-08-02
- Publication Date
- 2025-03-06
AI Technical Summary
In different environments, users’ subjective feelings about watching the same content are inconsistent, which affects the user experience.
By obtaining the illuminance of the current environment and the displayed image brightness, the screen brightness of the electronic device is determined, and the screen brightness is adjusted according to this brightness to maintain visual consistency in different environments.
Ensure that users have consistent subjective feelings about the same content in different environments and improve user experience.
Smart Images

Figure CN2024109636_06032025_PF_FP_ABST
Abstract
Description
Image display method, electronic device, and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 29, 2023, with application number 202311102916.3 and application name “Image display method, electronic device and computer-readable storage medium” and claims priority to the Chinese patent application filed with the State Intellectual Property Office on September 11, 2023, with application number 202311170363.5 and application name “Image display method, electronic device and computer-readable storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application belongs to the field of terminal technology, and in particular relates to an image display method, an electronic device, and a computer-readable storage medium. Background Art
[0003] Electronic devices are used in a wide range of environments. For example, they can be used in darkroom environments or outdoors in sunny environments. Among them, the display effect of electronic devices is generally affected by the ambient illumination. In order to ensure that electronic devices can clearly display content, electronic devices can currently adaptively adjust the backlight brightness of electronic devices according to the ambient illumination. For example, when using electronic devices in different environments, electronic devices can linearly increase or decrease the backlight brightness of electronic devices according to the ambient illumination of the current environment, so that the content displayed in the electronic device can be clearly displayed. However, this method of linearly increasing the backlight brightness will lead to inconsistent subjective feelings of users watching the same content in different environments, affecting the user experience.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide an image display method, an electronic device, and a computer-readable storage medium, which can solve the problem that users have inconsistent subjective feelings when watching the same content in different environments, affecting the user experience.
[0006] In a first aspect, an embodiment of the present application provides an image display method, applied to an electronic device, the method comprising:
[0007] Acquire a first image and a first ambient illumination, where the first image is an image currently displayed by the electronic device, and the first ambient illumination is the illumination of an environment in which the electronic device is currently located;
[0008] determining a first image brightness corresponding to the first image;
[0009] determining a first screen brightness corresponding to the electronic device according to the first ambient illumination and the brightness of the first image, and adjusting the current screen brightness of the electronic device according to the first screen brightness;
[0010] The first image is displayed according to the first screen brightness.
[0011] In the image display method provided above, the electronic device can adjust the screen brightness of the electronic device according to the first ambient illumination of the environment in which the electronic device is currently located and the first image currently displayed by the electronic device, so that the user's subjective experience of viewing the same content (i.e., the first image) in different environments is consistent, thereby improving the user experience.
[0012] In one example, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;
[0013] The determining, according to the first ambient illumination and the first image brightness, a first screen brightness corresponding to the electronic device includes:
[0014] Determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first corresponding relationship.
[0015] In the image display method provided in this implementation, the electronic device may store a first correspondence between ambient illumination, image brightness, and screen brightness. Therefore, the electronic device may determine a first screen brightness corresponding to the electronic device based on the first ambient illumination, the first image brightness, and the first correspondence. Optionally, the first correspondence between ambient illumination, image brightness, and screen brightness may be determined based on the light sensitivity characteristics of the human eye.
[0016] Exemplarily, the first corresponding relationship among the ambient illumination, the image brightness, and the screen brightness may be represented by a curve.
[0017] In a possible implementation of the first aspect, the method further includes:
[0018] Adjust the color saturation of the first image according to the first environmental illumination.
[0019] In the image display method provided by this implementation, the electronic device can also adjust the color saturation of the first image according to the illumination of the first environment, so that the color saturation of the first image displayed by the electronic device is the same in different environments, thereby making the subjective feeling of the user viewing the first image the same in different environments, thereby improving the user experience.
[0020] In one example, adjusting the color saturation of the first image according to the first ambient illumination includes:
[0021] determining a color compensation coefficient corresponding to the first image according to the first ambient illumination and a screen reflectivity of the electronic device;
[0022] Adjusting the color saturation of the first image according to the color compensation coefficient.
[0023] In the image display method provided in this example, the electronic device can determine a color compensation coefficient corresponding to the first image based on the first ambient illumination, and can adjust the color saturation of the first image based on the color compensation coefficient. For example, the final color saturation of the first image can be determined based on the color compensation coefficient and the current color saturation of the first image, and the color saturation of the first image can be adjusted based on the final color saturation of the first image to adjust the color saturation of the first image to the final color saturation.
[0024] Exemplarily, determining a color compensation coefficient corresponding to the first image according to the first ambient illumination and a screen reflectivity of the electronic device includes:
[0025] determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device, where the first screen color gamut is a screen color gamut corresponding to the electronic device under the first ambient illumination;
[0026] A color compensation coefficient corresponding to the first image is determined according to the first screen color gamut and the second screen color gamut, where the second screen color gamut is a screen color gamut corresponding to the electronic device under a second ambient illumination.
[0027] In the image display method provided in this example, the electronic device can determine the color compensation coefficient corresponding to the first image based on the screen color gamut corresponding to the electronic device under the second environmental illumination and the screen color gamut corresponding to the electronic device under the first environmental illumination. The second environmental illumination and the first environmental illumination are illuminations of different environments, and the second environmental illumination can be the illumination of the environment in which the electronic device is located before the use environment of the electronic device is switched to the current environment. For example, when the use environment of the electronic device is switched from environment A (such as an indoor environment) to environment B (such as an outdoor environment), the first environmental illumination can be the illumination of environment B, and the second environmental illumination can be the illumination of environment A. That is, the electronic device can compensate for the color saturation of the first image based on the illumination of the environment in which the electronic device was located before the switching and the illumination of the environment in which the electronic device is currently located, to ensure that the user's subjective perception of the first image is consistent in different environments, thereby improving the user experience.
[0028] Exemplarily, the electronic device stores a second correspondence between ambient illumination, screen reflectivity, and screen color gamut;
[0029] The determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device includes:
[0030] A first screen color gamut corresponding to the electronic device is determined according to the first ambient illumination, the screen reflectivity, and the second corresponding relationship.
[0031] In the image display method provided in this example, the electronic device may store a second correspondence between ambient illumination, screen reflectivity, and screen color gamut. Therefore, the electronic device may determine the first screen color gamut (or second screen color gamut) corresponding to the electronic device based on the first ambient illumination (or second ambient illumination), the screen reflectivity of the electronic device, and the second correspondence, thereby determining the attenuation of the screen color gamut under different environments and, thereby, determining the color compensation coefficient corresponding to the first image.
[0032] Optionally, the second corresponding relationship may be determined in advance by measuring the effects of different ambient illuminations on the screen color gamut corresponding to the electronic device under different screen reflectivities.
[0033] In a second aspect, an embodiment of the present application provides an image display method, applied to an electronic device, the method comprising:
[0034] Acquire a first environmental illumination, where the first environmental illumination is the illumination of an environment in which the electronic device is currently located;
[0035] determining a color compensation coefficient corresponding to a currently displayed first image according to the first ambient illumination and a screen reflectivity of the electronic device;
[0036] The color saturation of the first image is adjusted according to the color compensation coefficient, and the first image after the color saturation is adjusted is displayed.
[0037] In the image display method provided above, the electronic device can also adjust the color saturation of the first image according to the illumination of the first environment and the screen reflectivity of the electronic device, so that the color saturation of the first image displayed by the electronic device is the same in different environments, thereby making the subjective feeling of the user viewing the first image the same in different environments, thereby improving the user experience.
[0038] Exemplarily, determining a color compensation coefficient corresponding to a currently displayed first image according to the first ambient illumination and a screen reflectivity of the electronic device includes:
[0039] determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device, where the first screen color gamut is a screen color gamut corresponding to the electronic device under the first ambient illumination;
[0040] A color compensation coefficient corresponding to the first image is determined according to the first screen color gamut and the second screen color gamut, where the second screen color gamut is a screen color gamut corresponding to the electronic device under a second ambient illumination.
[0041] Optionally, the electronic device stores a second correspondence between ambient illumination, screen reflectivity, and screen color gamut;
[0042] The determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device includes:
[0043] A first screen color gamut corresponding to the electronic device is determined according to the first ambient illumination, the screen reflectivity, and the second corresponding relationship.
[0044] In one example, the method may further include:
[0045] determining a first image brightness corresponding to the first image;
[0046] determining a first screen brightness corresponding to the electronic device according to the first ambient illumination and the brightness of the first image, and adjusting the current screen brightness of the electronic device according to the first screen brightness;
[0047] The displaying of the first image after color saturation adjustment includes:
[0048] The first image with the color saturation adjusted is displayed according to the first screen brightness.
[0049] Optionally, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;
[0050] The determining, according to the first ambient illumination and the first image brightness, a first screen brightness corresponding to the electronic device includes:
[0051] Determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first corresponding relationship.
[0052] In a third aspect, an embodiment of the present application provides an image display device, applied to an electronic device, the device comprising:
[0053] an ambient illumination acquisition module, configured to acquire a first image and a first ambient illumination, wherein the first image is an image currently displayed by the electronic device, and the first ambient illumination is the illumination of an environment in which the electronic device is currently located;
[0054] an image brightness determination module, configured to determine a first image brightness corresponding to the first image;
[0055] a screen brightness determination module, configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjust the current screen brightness of the electronic device according to the first screen brightness;
[0056] An image display module is configured to display the first image according to the brightness of the first screen.
[0057] In one example, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;
[0058] The screen brightness determination module is specifically configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first corresponding relationship.
[0059] In a possible implementation of the third aspect, the apparatus further includes:
[0060] A color saturation adjustment module is used to adjust the color saturation of the first image according to the first environmental illumination.
[0061] In one example, the color saturation adjustment module can be specifically used to determine the color compensation coefficient corresponding to the first image based on the first ambient illumination and the screen reflectivity of the electronic device; and adjust the color saturation of the first image based on the color compensation coefficient.
[0062] Exemplarily, the color saturation adjustment module can also be used to determine the first screen color gamut corresponding to the electronic device based on the first ambient illumination and the screen reflectivity of the electronic device, where the first screen color gamut is the screen color gamut corresponding to the electronic device under the first ambient illumination; and determine the color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut, where the second screen color gamut is the screen color gamut corresponding to the electronic device under the second ambient illumination.
[0063] Exemplarily, the electronic device stores a second correspondence between ambient illumination, screen reflectivity, and screen color gamut;
[0064] The color saturation adjustment module is further configured to determine a first screen color gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity, and the second corresponding relationship.
[0065] In a fourth aspect, an embodiment of the present application provides an image display device, applied to an electronic device, the device comprising:
[0066] An ambient illumination acquisition module, configured to acquire a first ambient illumination, where the first ambient illumination is the illumination of an environment in which the electronic device is currently located;
[0067] a compensation coefficient determination module, configured to determine a color compensation coefficient corresponding to a currently displayed first image based on the first ambient illumination and a screen reflectivity of the electronic device;
[0068] The color saturation adjustment module is configured to adjust the color saturation of the first image according to the color compensation coefficient and display the first image after the color saturation is adjusted.
[0069] Exemplarily, the compensation coefficient determination module can be specifically used to determine the first screen color gamut corresponding to the electronic device based on the first ambient illumination and the screen reflectivity of the electronic device, where the first screen color gamut is the screen color gamut corresponding to the electronic device under the first ambient illumination; and determine the color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut, where the second screen color gamut is the screen color gamut corresponding to the electronic device under the second ambient illumination.
[0070] Optionally, the electronic device stores a second correspondence between ambient illumination, screen reflectivity, and screen color gamut;
[0071] The compensation coefficient determination module is further used to determine a first screen color gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity and the second corresponding relationship.
[0072] In one example, the apparatus may further include:
[0073] an image brightness determination module, configured to determine a first image brightness corresponding to the first image;
[0074] a screen brightness determination module, configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjust the current screen brightness of the electronic device according to the first screen brightness;
[0075] The color saturation adjustment module is further configured to display the first image after color saturation adjustment according to the first screen brightness.
[0076] Optionally, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;
[0077] The screen brightness determination module is specifically configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first corresponding relationship.
[0078] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a photosensitive device, a processor, and a display screen:
[0079] The photosensitive device is used to obtain a first environmental illumination, where the first environmental illumination is the illumination of the environment in which the electronic device is currently located;
[0080] The processor is configured to acquire a first image, where the first image is an image currently displayed by the electronic device, and determine a first image brightness corresponding to the first image;
[0081] The processor is further configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjust the current screen brightness of the electronic device according to the first screen brightness;
[0082] The processor is further configured to determine a color compensation coefficient corresponding to the first image based on the first ambient illumination and a screen reflectivity of the electronic device, and adjust the color saturation of the first image based on the color compensation coefficient;
[0083] The display screen is used to display the first image with adjusted color saturation at the first screen brightness.
[0084] In one example, the electronic device stores a first correspondence between image brightness and screen brightness under different ambient illuminations;
[0085] The processor is further configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first corresponding relationship.
[0086] In another example, the processor is further used to determine a first screen color gamut corresponding to the electronic device based on the first ambient illumination and the screen reflectivity of the electronic device, where the first screen color gamut is the screen color gamut corresponding to the electronic device under the first ambient illumination; and determine a color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut, where the second screen color gamut is the screen color gamut corresponding to the electronic device under the second ambient illumination.
[0087] Optionally, the electronic device stores a second correspondence between ambient illumination, screen reflectivity, and screen color gamut;
[0088] The processor is further configured to determine a first screen color gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity, and the second corresponding relationship.
[0089] In a sixth aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the image display method described in any one of the first and second aspects above.
[0090] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer, the computer implements the image display method described in the first aspect or any one of the second aspects.
[0091] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the image display method described in any one of the first aspect or the second aspect.
[0092] It can be understood that the beneficial effects of the third to eighth aspects mentioned above can be found in the relevant descriptions in the first or second aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] FIG1 is a schematic structural diagram of an electronic device provided in one embodiment of the present application;
[0094] FIG2 is a block diagram of the software structure of an electronic device according to an embodiment of the present application;
[0095] FIG3 is a schematic flow chart of an image display method provided in an embodiment of the present application;
[0096] FIG4 is an example diagram of a first correspondence relationship provided by an embodiment of the present application;
[0097] FIG5a is a test example diagram of a screen color gamut provided by an embodiment of the present application;
[0098] FIG5 b is an example diagram of a screen color gamut provided by an embodiment of the present application;
[0099] FIG6 is a schematic flow chart of an image display method provided in another embodiment of the present application;
[0100] FIG7 is a schematic structural diagram of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0101] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0102] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0103] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0104] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0105] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0106] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.
[0107] The steps involved in the image display method provided in the embodiments of the present application are merely examples. Not all steps are mandatory, nor are all information or messages required. These steps can be added or removed as needed during use. The same step or steps or messages with the same function in different embodiments of the present application can be referenced and learned from each other.
[0108] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0109] Electronic devices are used in a wide range of environments. For example, they can be used in darkroom environments or outdoors in sunny environments. Among them, the display effect of electronic devices is generally affected by the ambient illumination. In order to ensure that electronic devices can clearly display content, electronic devices can currently adaptively adjust the backlight brightness of electronic devices according to the ambient illumination. For example, when using electronic devices in different environments, electronic devices can linearly increase or decrease the backlight brightness of electronic devices according to the ambient illumination of the current environment, so that the content displayed in the electronic device can be clearly displayed. However, this method of linearly increasing the backlight brightness will lead to inconsistent subjective feelings of users watching the same content in different environments, affecting the user experience.
[0110] To solve the above problems, an embodiment of the present application provides an image display method, an electronic device, and a computer-readable storage medium. In this method, the electronic device can obtain the first image currently displayed by the electronic device and the first ambient illumination of the environment in which the electronic device is currently located, and determine the first image brightness corresponding to the first image. Subsequently, the electronic device can determine the first screen brightness corresponding to the electronic device based on the first ambient illumination and the first image brightness, and can adjust the current screen brightness of the electronic device based on the first screen brightness to display the first image according to the adjusted screen brightness. That is, in an embodiment of the present application, the electronic device can adjust the screen brightness of the electronic device based on the first ambient illumination of the environment in which the electronic device is currently located and the first image currently displayed by the electronic device, so that the user's subjective experience of viewing the same content (i.e., the first image) in different environments is consistent, thereby improving the user experience and having strong ease of use and practicality.
[0111] In the embodiments of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, a smart TV, a smart screen, a vehicle-mounted device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a desktop computer, or other electronic device with a display screen. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.
[0112] The following first introduces the electronic device involved in the embodiment of the present application. Please refer to Figure 1, which shows a schematic structural diagram of an electronic device 100.
[0113] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 140, a wireless communication module 150, a sensor module 160, a button 170, a camera 180, a display 190, and a backlight driver integrated circuit board (integrated circuit, IC) 191. The sensor module 160 may include a pressure sensor 160A, a gyroscope sensor 160B, an acceleration sensor 160C, a touch sensor 160D, an ambient light sensor 160E, and the like.
[0114] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0115] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0116] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0117] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0118] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0119] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 160D, the flash, the camera 180, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 160D via the I2C interface, enabling communication between the processor 110 and the touch sensor 160D via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0120] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 190 and the camera 180. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 180 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 190 communicate via the DSI interface to implement the display function of the electronic device 100.
[0121] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 180, the display 190, the wireless communication module 150, the sensor module 160, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0122] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0123] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0124] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 140, the wireless communication module 150, the modem processor and the baseband processor.
[0125] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0126] The mobile communication module 140 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 140 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 140 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 140 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 140 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 140 can be set in the same device as at least some of the modules of the processor 110.
[0127] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. 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 passed to the application processor. The application processor displays images or videos through the display screen 190. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 140 or other functional modules.
[0128] The wireless communication module 150 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 150 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0129] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 140, and the antenna 2 is coupled to the wireless communication module 150, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0130] Electronic device 100 implements display functionality through a GPU, display screen 190, and an application processor. A GPU is a microprocessor for image processing that connects display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0131] Display screen 190 is used to display images, videos, and the like. Display screen 190 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 190, where N is a positive integer greater than one.
[0132] Backlight driver IC 191 is used to control the backlight brightness of display screen 190. Backlight driver IC 191 is connected to display screen 190. When processor 110 adjusts the backlight brightness of display screen 190, processor 110 can convert the adjusted backlight brightness into data in a specific format and send it to backlight driver IC 191. After backlight driver IC 191 recognizes the backlight brightness, it can control the backlight brightness of display screen 190 to adjust the backlight brightness of display screen 190 to the specified brightness. The specific format of the data can be a pulse width modulation (PWM) (Pulse Width Modulation) (PWM).
[0133] The electronic device 100 can implement a shooting function through an ISP, a camera 180, a video codec, a GPU, a display screen 190, and an application processor.
[0134] The ISP processes data fed back by camera 180. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 180.
[0135] The camera 180 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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 an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 180, where N is a positive integer greater than 1.
[0136] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0137] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0138] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0139] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0140] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0141] Pressure sensor 160A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 160A can be located on display screen 190. There are many types of pressure sensors 160A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 160A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 190, electronic device 100 detects the touch intensity based on pressure sensor 160A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 160A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0142] The gyroscope sensor 160B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 160B. The gyroscope sensor 160B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 160B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 160B can also be used for navigation and somatosensory game scenes.
[0143] Accelerometer 160C can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0144] The ambient light sensor 160E is used to sense the brightness of ambient light (also known as ambient illumination). The electronic device 100 can adaptively adjust the brightness of the display screen 190 according to the perceived brightness of the ambient light. The ambient light sensor 160E can also be used to automatically adjust the white balance when taking pictures. The touch sensor 160D is also called a "touch device". The touch sensor 160D can be set on the display screen 190, and the touch sensor 160D and the display screen 190 form a touch screen, also known as a "touch screen". The touch sensor 160D is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 190. In other embodiments, the touch sensor 160D can also be set on the surface of the electronic device 100, which is different from the position of the display screen 190.
[0145] The buttons 170 include a power button, a volume button, and the like. The buttons 170 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0146] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. For example, the software system of the electronic device 100 may adopt an Android operating system (OS), a Harmony OS, or an IOS with a layered architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100.
[0147] FIG2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
[0148] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0149] The application layer can include a series of application packages.
[0150] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0151] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0152] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0153] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0154] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0155] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0156] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0157] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0158] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.
[0159] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0160] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0161] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0162] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0163] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0164] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0165] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0166] A 2D graphics engine is a drawing engine for 2D drawings.
[0167] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0168] The image display method provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings and specific application scenarios.
[0169] Please refer to Figure 3, which shows a schematic flow chart of an image display method provided in one embodiment of the present application. This method can be applied to electronic devices. The electronic devices can be electronic devices with display screens, such as mobile phones, tablet computers, smart TVs, or laptop computers.
[0170] As shown in FIG3 , the method may include:
[0171] S301: Acquire a first image and a first ambient illumination, where the first image is an image currently displayed by the electronic device, and the first ambient illumination is the illumination of an environment in which the electronic device is currently located.
[0172] It should be understood that the first image may include an image currently displayed on the electronic device, and may also include an image to be displayed on the electronic device later.
[0173] For example, the electronic device may be provided with a light-sensing device, such as an ambient light sensor, which may be used to detect the ambient illumination around the electronic device. The electronic device may obtain the ambient illumination detected by the ambient light sensor and obtain the first ambient illumination based on the ambient illumination detected by the ambient light sensor.
[0174] In a possible implementation, the electronic device may obtain the ambient illuminance detected by the ambient light sensor at a certain moment, and may determine the ambient illuminance at the moment as the first ambient illuminance.
[0175] In another possible implementation, the ambient light sensor may obtain the ambient illuminance of the electronic device's current environment at a fixed sampling frequency to obtain multiple ambient illuminances. The electronic device may then perform a weighted average of these multiple ambient illuminances to obtain a first ambient illuminance. It should be understood that the sampling frequency may be determined based on actual scenarios and is not limited in this embodiment of the present application.
[0176] Optionally, the condition for triggering the electronic device to execute S301 may be: the display screen of the electronic device is displaying content, or the electronic device receives a touch instruction from the user, or the electronic device determines that its environment has changed, etc. The touch instruction may be an instruction generated by the electronic device after detecting a user touch operation on the display screen.
[0177] S302: Determine first image brightness corresponding to the first image.
[0178] It can be understood that the first image brightness corresponding to the first image may refer to the brightness perceived by the user when viewing the first image displayed by the electronic device.
[0179] Optionally, the first image brightness corresponding to the first image may be related to the illuminance of the environment in which the electronic device is currently located (i.e., the first ambient illuminance), the peak brightness of the electronic device's display screen, the grayscale corresponding to the first image, and the angle at which the user is viewing the first image. That is, the electronic device may determine the first image brightness corresponding to the first image based on the first ambient illuminance, the peak brightness of the electronic device's display screen, the grayscale corresponding to the first image, and the angle at which the user is viewing the first image.
[0180] The grayscale corresponding to the first image can be determined based on the average pixel level (APL) corresponding to the first image. For example, the APL corresponding to the first image can be determined as the grayscale corresponding to the first image. The peak brightness of the electronic device display can be determined based on attribute information of the electronic device.
[0181] It should be noted that the present embodiment does not impose any restrictions on the method for determining the APL corresponding to the first image, and the method can be specifically determined according to the actual application scenario. For example, the electronic device can obtain a grayscale histogram corresponding to the first image and determine the APL corresponding to the first image based on the grayscale histogram.
[0182] In addition, in an embodiment of the present application, the specific method for the electronic device to determine the brightness of the first image corresponding to the first image based on the first ambient illumination, the peak brightness of the electronic device display screen, the grayscale corresponding to the first image, and the angle at which the user views the first image can be any existing determination method, and the embodiment of the present application does not impose any restrictions on this.
[0183] S303: Determine a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjust the current screen brightness of the electronic device according to the first screen brightness.
[0184] In an embodiment of the present application, the unit of ambient illumination may be lux, the unit of screen brightness may be nits, and the image brightness may be the brightness value perceived by the user and may not have a unit.
[0185] It should be understood that in order to ensure that users have the same subjective experience with the content displayed on the display screen of the electronic device in different environments, the electronic device can determine the first screen brightness corresponding to the electronic device based on the first ambient illumination and the first image brightness corresponding to the first image, and can adjust the current screen brightness of the electronic device based on the first screen brightness, so that users have the same subjective experience with the same content (i.e., the first image) displayed on the electronic device in different environments, thereby improving the user experience.
[0186] Optionally, the electronic device may be provided with a correspondence between image brightness and screen brightness under different ambient illuminations (hereinafter referred to as a first correspondence). Therefore, the electronic device may determine the first screen brightness corresponding to the electronic device based on the first ambient illumination, the first image brightness, and the first correspondence, and adjust the current screen brightness of the electronic device based on the first screen brightness, so that the same image has the same display effect in different environments, thereby improving the user experience. The first correspondence between ambient illumination, image brightness, and screen brightness can be determined based on the photosensitivity characteristics of the human eye.
[0187] In one example, the first corresponding relationship among the ambient illumination, the image brightness, and the screen brightness can be represented by a curve.
[0188] For example, refer to Figure 4, which shows an example diagram of the first correspondence provided by an embodiment of the present application. In this example diagram, the first correspondence is illustrated by a curve representing an ambient illuminance of 0 Lux, 300 Lux, 800 Lux, 10,000 Lux, and 40,000 Lux.
[0189] It should be understood that the embodiment of the present application does not impose any restrictions on the representation of the first correspondence, or the number and value of the ambient illuminances in the first correspondence, and can be determined specifically based on actual application scenarios. For example, the ambient illuminances can be determined to include 0 Lux, 300 Lux, 500 Lux, 800 Lux, 2000 Lux, 5000 Lux, 10000 Lux, 20000 Lux, and 40000 Lux, etc., based on actual scenarios.
[0190] As shown in Figure 4, when the ambient illumination is 0 Lux, the first correspondence between the image brightness and the screen brightness can be curve a; when the ambient illumination is 300 Lux, the first correspondence between the image brightness and the screen brightness can be curve b; when the ambient illumination is 800 Lux, the first correspondence between the image brightness and the screen brightness can be curve c; when the ambient illumination is 10,000 Lux, the first correspondence between the image brightness and the screen brightness can be curve d; when the ambient illumination is 40,000 Lux, the first correspondence between the image brightness and the screen brightness can be curve e.
[0191] 4 , the horizontal axis represents screen brightness, and the vertical axis represents image brightness.
[0192] As can be seen from curve a, when the first ambient illuminance is 0 Lux, if the brightness of the first image is 80, it can be determined that the first screen brightness corresponding to the electronic device is 70 nits. That is, in an environment of 0 Lux, adjusting the screen brightness of the electronic device to 70 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the brightness of the first image is 70, it can be determined that the first screen brightness corresponding to the electronic device is 50 nits. That is, in an environment of 0 Lux, adjusting the screen brightness of the electronic device to 50 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 70; if the brightness of the first image is 60, it can be determined that the first screen brightness corresponding to the electronic device is 30 nits. That is, in an environment of 0 Lux, adjusting the screen brightness of the electronic device to 30 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the brightness of the first image is 50, it can be determined that the first screen brightness corresponding to the electronic device is 10 nits. That is, in an environment of 0 Lux, adjusting the screen brightness of the electronic device to 10 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0193] It can be seen from curve b that when the first ambient illuminance is 300 Lux, if the brightness of the first image is 80, it can be determined that the first screen brightness corresponding to the electronic device is 120 nits, that is, in an environment of 300 Lux, adjusting the screen brightness of the electronic device to 120 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the brightness of the first image is 70, it can be determined that the first screen brightness corresponding to the electronic device is 100 nits, that is, in an environment of 300 Lux, adjusting the screen brightness of the electronic device to 100 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80. The brightness of the first image corresponding to the electronic device is 70; if the brightness of the first image is 60, it can be determined that the brightness of the first screen corresponding to the electronic device is 85nits, that is, in an environment of 300Lux, the screen brightness of the electronic device is adjusted to 85nits, so that the brightness of the first image corresponding to the first image displayed by the electronic device is 60; if the brightness of the first image is 50, it can be determined that the brightness of the first screen corresponding to the electronic device is 75nits, that is, in an environment of 300Lux, the screen brightness of the electronic device is adjusted to 75nits, so that the brightness of the first image corresponding to the first image displayed by the electronic device is 50, and so on.
[0194] It can be seen from curve c that when the first ambient illuminance is 800Lux, if the brightness of the first image is 80, it can be determined that the first screen brightness corresponding to the electronic device is 150nits, that is, in an environment of 800Lux, adjusting the screen brightness of the electronic device to 150nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the brightness of the first image is 70, it can be determined that the first screen brightness corresponding to the electronic device is 120nits, that is, in an environment of 800Lux, adjusting the screen brightness of the electronic device to 120nits can make the first image corresponding to the first image displayed by the electronic device be 80. The brightness of the first image is 70; if the brightness of the first image is 60, it can be determined that the brightness of the first screen corresponding to the electronic device is 102nits, that is, in an environment of 800Lux, adjusting the screen brightness of the electronic device to 102nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the brightness of the first image is 50, it can be determined that the brightness of the first screen corresponding to the electronic device is 90nits, that is, in an environment of 800Lux, adjusting the screen brightness of the electronic device to 90nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0195] It can be seen from curve d that when the first ambient illuminance is 10000 Lux, if the brightness of the first image is 80, it can be determined that the first screen brightness corresponding to the electronic device is 800 nits, that is, in an environment of 10000 Lux, adjusting the screen brightness of the electronic device to 800 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the brightness of the first image is 70, it can be determined that the first screen brightness corresponding to the electronic device is 700 nits, that is, in an environment of 10000 Lux, adjusting the screen brightness of the electronic device to 700 nits can make the first image corresponding to the first image displayed by the electronic device be 80. The brightness of the first image is 70; if the brightness of the first image is 60, it can be determined that the brightness of the first screen corresponding to the electronic device is 600nits, that is, in an environment of 10000Lux, the screen brightness of the electronic device is adjusted to 600nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 60; if the brightness of the first image is 50, it can be determined that the brightness of the first screen corresponding to the electronic device is 500nits, that is, in an environment of 10000Lux, the screen brightness of the electronic device is adjusted to 500nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.
[0196] It can be seen from curve e that when the first ambient illuminance is 40000Lux, if the brightness of the first image is 80, it can be determined that the first screen brightness corresponding to the electronic device is 1500nits, that is, in an environment of 40000Lux, adjusting the screen brightness of the electronic device to 1500nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the brightness of the first image is 70, it can be determined that the first screen brightness corresponding to the electronic device is 1200nits, that is, in an environment of 40000Lux, adjusting the screen brightness of the electronic device to 1200nits can make the first image displayed by the electronic device be 80. The corresponding first image brightness is 70; if the first image brightness is 60, it can be determined that the first screen brightness corresponding to the electronic device is 1000nits, that is, in an environment of 40000Lux, the screen brightness of the electronic device is adjusted to 1000nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 60; if the first image brightness is 50, it can be determined that the first screen brightness corresponding to the electronic device is 900nit, that is, in an environment of 40000Lux, the screen brightness of the electronic device is adjusted to 900nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.
[0197] That is to say, when it is necessary to ensure that the brightness of the first image corresponding to the first image is 80, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 70 nits; if the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits; if the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 150 nits; if the first ambient illuminance is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 800 nits; if the first ambient illuminance is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 1500 nits.
[0198] When it is necessary to ensure that the brightness of the first image corresponding to the first image is 70, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 50 nits; if the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 100 nits; if the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits; if the first ambient illuminance is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 700 nits; if the first ambient illuminance is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 1200 nits.
[0199] When ensuring that the first image brightness corresponding to the first image is 60, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 30 nits. If the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 85 nits. If the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 102 nits. If the first ambient illuminance is 10,000 Lux, the screen brightness of the electronic device needs to be adjusted to 600 nits. If the first ambient illuminance is 40,000 Lux, the screen brightness of the electronic device needs to be adjusted to 1,000 nits.
[0200] When it is necessary to ensure that the first image brightness corresponding to the first image is 50, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 10 nits; if the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 75 nits; if the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 90 nits; if the first ambient illuminance is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 500 nits; if the first ambient illuminance is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 900 nits.
[0201] In one possible implementation, after determining the first ambient illuminance, if it is determined that there is no ambient illuminance that is the same as the first ambient illuminance among the ambient illuminances included in the first correspondence, the electronic device can determine the ambient illuminance (hereinafter referred to as ambient illuminance A) that is closest to the first ambient illuminance among the ambient illuminances included in the first correspondence, and can determine the first screen brightness corresponding to the electronic device based on the ambient illuminance A, the first image brightness, and the first correspondence.
[0202] It can be understood that the closest ambient illuminance A may refer to an ambient illuminance having the smallest absolute value of difference from the first ambient illuminance among all ambient illuminances included in the first corresponding relationship.
[0203] For example, in the application scenario shown in Figure 4, when the first ambient illuminance is 789Lux, the electronic device can determine that there is no ambient illuminance that is the same as the first ambient illuminance (i.e., 789Lux) among the ambient illuminances included in the first correspondence. At this time, the electronic device can determine the ambient illuminance A that is closest to the first ambient illuminance among the ambient illuminances included in the first correspondence, that is, determine that the ambient illuminance A is 800Lux. Assuming that the first image brightness corresponding to the first image is 80nits, the electronic device can determine that the first screen brightness corresponding to the electronic device is 150nits based on the ambient illuminance A (i.e., 800Lux), the first image brightness (i.e., 80nits), and the first correspondence (i.e., curve c). That is, when the first ambient illuminance is 789Lux, if the screen brightness of the electronic device is adjusted to 150nits, the first image brightness corresponding to the first image currently displayed by the electronic device can be made close to 80nits.
[0204] For example, in the application scenario shown in Figure 4, when it is detected that the first ambient illuminance is 9000 Lux, the electronic device can determine that there is no ambient illuminance that is the same as the first ambient illuminance (i.e., 9000 Lux) among the ambient illuminances included in the first correspondence. At this time, the electronic device can determine the ambient illuminance A that is closest to the first ambient illuminance among the ambient illuminances included in the first correspondence, that is, determine that the ambient illuminance A is 10000 Lux. Assuming that the first image brightness corresponding to the first image is 70 nits, the electronic device can determine that the first screen brightness corresponding to the electronic device is 700 nits based on the ambient illuminance A (i.e., 10000 Lux), the first image brightness (i.e., 70 nits), and the first correspondence (i.e., curve d). That is, when the first ambient illuminance is 9000 Lux, if the screen brightness of the electronic device is adjusted to 700 nits, the first image brightness corresponding to the first image currently displayed by the electronic device can be made close to 70 nits.
[0205] It should be noted that the storage of the first corresponding relationship in the above-mentioned electronic device is only for illustrative purposes and should not be understood as a limitation on the embodiments of the present application. In the embodiments of the present application, the first corresponding relationship can also be stored in other devices that are communicatively connected to the electronic device, such as in the cloud that is communicatively connected to the electronic device, or in other electronic devices that are communicatively connected to the electronic device.
[0206] In an embodiment of the present application, after determining the first screen brightness according to the above-mentioned first correspondence, the electronic device can adjust the current screen brightness of the electronic device according to the first screen brightness to ensure that the user's subjective perception of the first image is the same in different environments, thereby improving the user experience.
[0207] It is understandable that the screen brightness may include the backlight brightness of the electronic device and the grayscale brightness of the first image, that is, the current screen brightness of the electronic device may be a combination of the current backlight brightness of the electronic device and the current grayscale brightness of the first image. Among them, adjusting the system gamma value gamma of the electronic device may adjust the grayscale brightness of the first image. Therefore, after determining the first screen brightness corresponding to the electronic device, the electronic device may adjust at least one of the current backlight brightness of the electronic device and the system gamma according to the first screen brightness to adjust the current screen brightness of the electronic device.
[0208] For example, the electronic device may adjust the current backlight brightness of the electronic device based on the first screen brightness. For example, the electronic device may adjust the system gamma of the electronic device based on the first screen brightness. For example, the electronic device may adjust the current backlight brightness and system gamma of the electronic device based on the first screen brightness. The specific content of the adjustment of the electronic device based on the first screen brightness can be determined based on the actual scenario, and the embodiments of the present application do not impose any restrictions on this.
[0209] For example, when the brightness of the first screen is greater than the maximum value of the backlight brightness of the electronic device, the electronic device can adjust the current backlight brightness of the electronic device to the maximum value of the backlight brightness to display the first image according to the maximum value of the backlight brightness. Similarly, when the brightness of the first screen is less than the minimum value of the backlight brightness of the electronic device, the electronic device can adjust the current backlight brightness of the electronic device to the minimum value of the backlight brightness to display the first image according to the minimum value of the backlight brightness. That is, limited by the hardware constraints of the display screen, the electronic device can be set with a maximum and minimum value of the backlight brightness, so that the backlight brightness of the electronic device will not be greater than the maximum value, or the backlight brightness of the electronic device will not be less than the minimum value.
[0210] After adjusting the backlight brightness of the electronic device to the maximum backlight brightness, if the current screen brightness of the electronic device is still less than the first screen brightness, the electronic device may adjust the system gamma based on the first screen brightness and the current screen brightness of the electronic device to adjust the screen brightness of the electronic device. Similarly, after adjusting the backlight brightness of the electronic device to the minimum backlight brightness, if the current screen brightness of the electronic device is still greater than the first screen brightness, the electronic device may adjust the system gamma based on the first screen brightness and the current screen brightness of the electronic device to adjust the screen brightness of the electronic device.
[0211] For example, when there is an area in the first image that requires partial brightness adjustment (such as a face area, etc.), the electronic device can adjust the system gamma of the electronic device according to the first screen brightness, or adjust the current backlight brightness of the electronic device and the system gamma of the electronic device according to the first screen brightness.
[0212] It should be understood that the embodiments of the present application do not impose any restrictions on the manner in which the electronic device adjusts the system gamma based on the first screen brightness, or based on the first screen brightness and the current screen brightness of the electronic device, and can be determined based on actual scenarios.
[0213] Optionally, the electronic device can gradually adjust the current backlight brightness of the electronic device to the first screen brightness, or gradually adjust the current backlight brightness of the electronic device to the maximum backlight brightness, or gradually adjust the current backlight brightness of the electronic device to the minimum backlight brightness, based on the adjustment step size, so as to adjust the screen brightness of the electronic device without the user noticing. The adjustment step size can be determined based on the actual scenario, and the embodiments of the present application do not impose any restrictions on this.
[0214] S304: Display the first image according to the first screen brightness.
[0215] It should be understood that after adjusting the current screen brightness of the electronic device according to the first screen brightness, the electronic device can display the first image according to the adjusted screen brightness, so that the user's subjective feeling of the first image is the same in different environments, thereby improving the user experience.
[0216] In one possible implementation, the electronic device can also adjust the color saturation of the first image according to the illumination of the first environment, so that the color saturation of the first image displayed by the electronic device is the same in different environments, thereby making the subjective experience of the user viewing the first image the same in different environments, thereby improving the user experience.
[0217] Exemplarily, the electronic device may determine a color compensation coefficient corresponding to the first image based on the first ambient illumination, and may adjust the color saturation of the first image based on the color compensation coefficient. For example, the electronic device may determine a final color saturation of the first image based on the color compensation coefficient and the current color saturation of the first image, and adjust the color saturation of the first image based on the final color saturation of the first image to adjust the color saturation of the first image to the final color saturation.
[0218] It should be understood that the above-mentioned method of adjusting the color saturation of the first image according to the color compensation coefficient is only for illustrative purposes and should not be understood as a limitation on the embodiments of the present application. The embodiments of the present application can determine the method of adjusting the color saturation according to the specific application scenario.
[0219] Optionally, the electronic device may store a correspondence between ambient illumination, screen reflectivity, and screen color gamut (hereinafter referred to as a second correspondence). The screen reflectivity can be used to characterize the degree to which the display screen of the electronic device reflects light. Different electronic devices may have different screen reflectivities or the same screen reflectivity. The second correspondence can be determined in advance by measuring the effects of different ambient illuminations on the screen color gamut corresponding to the electronic device under different screen reflectivities.
[0220] For example, please refer to FIG5a, which shows an example diagram of a test of the screen color gamut provided in an embodiment of the present application.
[0221] As shown in Figure 5a, for electronic devices 501 with different screen reflectivities, a spectrometer 502 can be used to obtain the corresponding screen color gamut of the electronic device under the illumination of LED lights 503 of different illuminances, thereby determining a second correspondence between ambient illumination, screen reflectivity, and screen color gamut. The illuminance of LED lights 503 can be measured using a light meter 504 or the like.
[0222] Therefore, the electronic device can obtain the screen reflectivity of the electronic device and can determine the first screen color gamut corresponding to the electronic device based on the first ambient illumination, the screen reflectivity, and the second corresponding relationship. Subsequently, the electronic device can determine the color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut to compensate for the color saturation of the first image based on the color compensation coefficient. The second screen color gamut can be the screen color gamut corresponding to the electronic device under the second ambient illumination. That is, the second screen color gamut can be determined based on the second ambient illumination, the screen reflectivity, and the second corresponding relationship.
[0223] Optionally, the second environment illumination is different from the first environment illumination. That is, the second environment illumination and the first environment illumination may be illuminations of different environments. Among them, the second environment illumination may be the illumination of the environment where the electronic device is located before the use environment of the electronic device is switched to the current environment. For example, when the use environment of the electronic device is switched from environment A (such as an indoor environment) to environment B (such as an outdoor environment), the first environment illumination may be the illumination of environment B, and the second environment illumination may be the illumination of environment A, so as to compensate for the color saturation of the first image according to the illumination of the environment where the electronic device is located before the switching and the illumination of the environment where the electronic device is currently located, thereby ensuring that the user's subjective perception of the first image is consistent in different environments and improving the user experience.
[0224] It should be understood that color gamut can be used to represent the range of colors that an electronic device's display can display. A larger color gamut indicates a greater range of colors the device can display; a smaller color gamut indicates a smaller range of colors. There are three common color gamut standards: sRGB, NTSC, and AdobeRGB.
[0225] Optionally, the electronic device may determine a color compensation coefficient corresponding to the first image according to color compensation coefficient=second screen color gamut / first screen color gamut.
[0226] For example, taking sRGB as an example, when the first screen color gamut is 80% sRGB and the second screen color gamut is 90% sRGB, the electronic device may determine that the color compensation coefficient corresponding to the first image is 1.125.
[0227] For example, when the first screen color gamut is 80% sRGB and the second screen color gamut is 100% sRGB, the electronic device may determine that the color compensation coefficient corresponding to the first image is 1.25.
[0228] In the embodiments of the present application, the screen color gamut corresponding to the electronic device refers to the observable color gamut corresponding to the electronic device. The observable color gamut refers to the region range of colors that can be observed on the display screen of the electronic device under a certain ambient illumination. In other words, the first screen color gamut corresponding to the electronic device refers to the region range of colors that can be observed on the display screen of the electronic device under a first ambient illumination. The second screen color gamut corresponding to the electronic device refers to the region range of colors that can be observed on the display screen of the electronic device under a second ambient illumination.
[0229] Please refer to Figure 5b, which shows an example diagram of the screen color gamut provided by an embodiment of the present application. In this example diagram, the dotted area can represent the color range corresponding to a certain color gamut standard, such as the color range corresponding to sRGB, NTSC, or AdobeRGB. Different triangular areas can represent the observable color gamut corresponding to a certain electronic device under different ambient illumination levels.
[0230] As shown in Figure 5b, for the same electronic device, the observable color gamut corresponding to the electronic device is different under different ambient illuminations. Specifically, for the same electronic device, the greater the ambient illumination, the smaller the observable color gamut corresponding to the electronic device.
[0231] It should be understood that for electronic devices with different screen reflectivity, under the same ambient illumination, the observable color gamut corresponding to each electronic device is also different. Specifically, under the same ambient illumination, the lower the screen reflectivity, the larger the observable color gamut corresponding to the electronic device.
[0232] It should be noted that the storage of the second corresponding relationship in the above-mentioned electronic device is only for illustrative purposes and should not be understood as a limitation on the embodiments of the present application. In the embodiments of the present application, the second corresponding relationship can also be stored in other devices that are communicatively connected to the electronic device, for example, it can be stored in the cloud or other electronic devices that are communicatively connected to the electronic device.
[0233] In one example, after determining a color compensation coefficient corresponding to a first image based on a first screen color gamut and a second screen color gamut, the electronic device may determine whether using the color compensation coefficient to compensate for color saturation of the first image will cause the first image to appear oversaturated. When the first image appears oversaturated, for example, after using the color compensation coefficient to compensate for color saturation of the first image, if a pixel value of a certain pixel in the compensated first image is greater than 255, the electronic device may determine that the first image appears oversaturated. In this case, the electronic device may determine the maximum pixel value in the first image and may determine the color compensation coefficient ultimately corresponding to the first image based on the maximum pixel value in the first image and 255, so as to compensate for color saturation of the first image based on the color compensation coefficient ultimately corresponding to the first image, thereby avoiding color oversaturation in the first image.
[0234] Exemplarily, the color compensation coefficient finally corresponding to the first image may be 255 / the maximum pixel value in the first image.
[0235] For example, when the maximum pixel value in the first image is 200, the electronic device may determine that the color compensation coefficient corresponding to the first image is 255 / 200, that is, the electronic device may use 255 / 200 to compensate for the color saturation of the first image. For example, when the maximum pixel value in the first image is 225, the electronic device may determine that the color compensation coefficient corresponding to the first image is 255 / 225, that is, the electronic device may use 255 / 225 to compensate for the color saturation of the first image, and so on.
[0236] Please refer to Figure 6, which shows a schematic flow chart of an image display method provided by another embodiment of the present application. The method can be applied to electronic devices. The electronic devices can be electronic devices with display screens, such as mobile phones, tablet computers, smart TVs, or laptop computers. As shown in Figure 6, the method may include:
[0237] S601: Acquire a first environmental illumination, where the first environmental illumination is the illumination of an environment where the electronic device is currently located.
[0238] The specific content of S601 is similar to the related content of obtaining the first ambient illumination in S301, and will not be repeated here.
[0239] S602: Determine a color compensation coefficient corresponding to a currently displayed first image according to the first ambient illumination and the screen reflectivity of the electronic device.
[0240] It should be understood that the first image may be an image currently displayed by the electronic device, or may include an image to be displayed on the electronic device. The specific details of how the electronic device determines the color compensation coefficient corresponding to the first image based on the first ambient illumination and the screen reflectivity of the electronic device can be found in the aforementioned description of determining the color compensation coefficient, and are not further elaborated here.
[0241] For example, a second correspondence between ambient illumination, screen reflectivity, and screen color gamut may be provided in the electronic device. The electronic device may determine a first screen color gamut corresponding to the electronic device based on the first ambient illumination, the screen reflectivity of the electronic device, and the second correspondence, and determine a color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut. The second screen color gamut is the screen color gamut corresponding to the electronic device under the second ambient illumination.
[0242] S603: Adjust the color saturation of the first image according to the color compensation coefficient, and display the first image after the color saturation is adjusted.
[0243] It should be understood that the specific content of how the electronic device adjusts the color saturation of the first image according to the color compensation coefficient can refer to the relevant content of the aforementioned color saturation adjustment, which will not be repeated here.
[0244] In one example, the electronic device may also determine a first image brightness corresponding to the first image. Subsequently, the electronic device may determine a first screen brightness corresponding to the electronic device based on the first ambient illumination and the first image brightness, and may adjust the current screen brightness of the electronic device based on the first screen brightness to display the first image with adjusted color saturation based on the adjusted screen brightness.
[0245] Among them, the specific contents of determining the first image brightness corresponding to the first image and determining the first screen brightness, etc. can refer to the aforementioned related contents of determining the first image brightness corresponding to the first image and determining the first screen brightness, which will not be repeated here.
[0246] For example, the electronic device may be provided with a first correspondence between image brightness and screen brightness under different ambient illuminations. The electronic device may determine a first screen brightness corresponding to the electronic device based on the first ambient illumination, the first image brightness, and the first correspondence.
[0247] Please refer to FIG. 7 , which shows a schematic structural diagram of an electronic device provided in another embodiment of the present application.
[0248] As shown in Figure 7, the electronic device 100 may include a photosensitive device 701, a screen brightness calculation unit 702, a brightness control unit 703, a histogram analysis unit 704, a display unit 706, and a storage unit 707. The storage unit 707 may store a first correspondence between screen brightness and image brightness under different ambient illuminations.
[0249] The photosensitive device 701 can be used to sense the illumination of the environment in which the electronic device 100 is currently located, that is, the first ambient illumination. It should be understood that the photosensitive device 701 can be an ambient light sensor, etc.
[0250] The screen brightness calculation unit 702 may be configured to determine the first image brightness corresponding to the first image, and determine the first screen brightness corresponding to the electronic device 100 according to the first ambient illumination and the first image brightness.
[0251] For example, the screen brightness calculation unit 702 can be used to determine the first screen brightness corresponding to the electronic device 100 according to the first ambient illumination, the first image brightness and the first corresponding relationship stored in the storage unit 707.
[0252] The brightness control unit 703 can be used to control the current screen brightness of the electronic device 100 according to the first screen brightness.
[0253] The display unit 706 may be configured to display the first image. For example, the display unit 706 may be configured to display the first image at a first screen brightness.
[0254] In one example, the histogram analysis unit 704 may be configured to determine a grayscale histogram corresponding to the first image.
[0255] The screen brightness calculation unit 702 can also be used to determine the grayscale corresponding to the first image based on the grayscale histogram corresponding to the first image, determine the first image brightness corresponding to the first image based on the first ambient illumination, the peak brightness of the display screen of the electronic device 100, the grayscale corresponding to the first image and the angle at which the user views the first image, and determine the first screen brightness corresponding to the electronic device 100 based on the first ambient illumination and the first image brightness.
[0256] In another example, the electronic device 100 may further include a color calculation unit (not shown in FIG. 7 ). The storage unit 707 may further store a second correspondence between the ambient illumination, the screen reflectivity, and the screen color gamut.
[0257] The color calculation unit can be used to determine the first screen color gamut corresponding to the electronic device 100 based on the first ambient illumination, the screen reflectivity of the electronic device 100 and the second corresponding relationship stored in the storage unit 707, that is, to determine the screen color gamut of the electronic device 100 in the current environment.
[0258] The color calculation unit may also be configured to determine a second screen color gamut corresponding to the electronic device 100 based on the second ambient illumination, the screen reflectivity of the electronic device 100, and the second correspondence, i.e., to determine the screen color gamut of the electronic device 100 under the second ambient illumination. The second ambient illumination may be the illumination of the environment in which the electronic device 100 was located before the electronic device 100 switched to the current environment.
[0259] In an example, the electronic device 100 may further include a signal compensation calculation unit 705 and an output signal conversion unit 708 .
[0260] The signal compensation calculation unit 705 can be used to determine the color compensation coefficient corresponding to the first image based on the first screen color gamut and the second screen color gamut, and determine the signal value (e.g., pixel value) after conversion of each signal (e.g., pixel) in the first image based on the color compensation coefficient.
[0261] The output signal conversion unit 708 may be configured to convert each signal in the first image according to the signal value determined by the signal compensation calculation unit 705 , and output each converted signal value of the first image to the display unit 706 .
[0262] The display unit 706 may also be configured to display the first image according to the signal value output by the output signal conversion unit 708 .
[0263] In an embodiment of the present application, the electronic device can obtain the first image currently displayed by the electronic device and the first ambient illumination of the environment in which the electronic device is currently located, and can determine the first image brightness corresponding to the first image. Subsequently, the electronic device can determine the first screen brightness corresponding to the electronic device based on the first ambient illumination and the first image brightness, and can adjust the current screen brightness of the electronic device based on the first screen brightness to display the first image based on the adjusted screen brightness. That is, the embodiment of the present application can adjust the screen brightness of the electronic device based on the first ambient illumination of the environment in which the electronic device is currently located and the first image brightness corresponding to the first image currently displayed by the electronic device, so that the subjective experience of the user viewing the same content (i.e., the first image) in different environments is consistent, thereby improving the user experience.
[0264] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0265] Corresponding to the image display method described in the above embodiment, an embodiment of the present application further provides an image display device, and each module of the device can correspond to each step of the image display method.
[0266] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0267] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0268] The present application also provides an electronic device comprising at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, the electronic device implements the steps of any of the above-described method embodiments. For example, the structure of the electronic device may be as shown in FIG1 .
[0269] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is enabled to implement the steps of any of the above method embodiments.
[0270] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device implements the steps of any of the above method embodiments.
[0271] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable storage medium cannot be an electric carrier signal or a telecommunication signal.
[0272] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0273] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0274] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0275] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0276] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. An image display method, characterized in that: Applied to electronic equipment, the method comprises: Acquire a first image and a first environmental illumination, wherein the first image is an image currently displayed by the electronic device, and the first environmental illumination is the illumination of an environment in which the electronic device is currently located; determining a first image brightness corresponding to the first image; Determining a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjusting a current screen brightness of the electronic device according to the first screen brightness; The first image is displayed according to the first screen brightness.
2. The method according to claim 1, characterized in that The electronic device stores a first correspondence between image brightness and screen brightness under different ambient illuminations; The determining, according to the first ambient illumination and the first image brightness, a first screen brightness corresponding to the electronic device includes: A first screen brightness corresponding to the electronic device is determined according to the first ambient illumination, the first image brightness and the first corresponding relationship.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: According to the first environmental illumination, the color saturation of the first image is adjusted.
4. The method according to claim 3, characterized in that: The adjusting the color saturation of the first image according to the first environmental illumination includes: determining a color compensation coefficient corresponding to the first image according to the first ambient illumination and the screen reflectivity of the electronic device; The color saturation of the first image is adjusted according to the color compensation coefficient.
5. The method according to claim 4, characterized in that The determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a color compensation coefficient corresponding to the first image includes: Determine, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device, where the first screen color gamut is a screen color gamut corresponding to the electronic device under the first ambient illumination; A color compensation coefficient corresponding to the first image is determined according to the first screen color gamut and the second screen color gamut, wherein the second screen color gamut is a screen color gamut corresponding to the electronic device under a second ambient illumination.
6. The method according to claim 5, characterized in that The electronic device stores a second correspondence between the ambient illumination, the screen reflectivity and the screen color gamut; The determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device includes: A first screen color gamut corresponding to the electronic device is determined according to the first ambient illumination, the screen reflectivity and the second corresponding relationship.
7. An image display method, characterized in that: Applied to electronic equipment, the method comprises: Acquire a first environmental illumination, where the first environmental illumination is the illumination of an environment where the electronic device is currently located; Determining a color compensation coefficient corresponding to a first image currently displayed according to the first ambient illumination and a screen reflectivity of the electronic device; The color saturation of the first image is adjusted according to the color compensation coefficient, and the first image after the color saturation is adjusted is displayed.
8. The method according to claim 7, characterized in that The step of determining a color compensation coefficient corresponding to a currently displayed first image according to the first ambient illumination and a screen reflectivity of the electronic device includes: Determine, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device, where the first screen color gamut is a screen color gamut corresponding to the electronic device under the first ambient illumination; A color compensation coefficient corresponding to the first image is determined according to the first screen color gamut and the second screen color gamut, wherein the second screen color gamut is a screen color gamut corresponding to the electronic device under a second ambient illumination.
9. The method according to claim 8, characterized in that The electronic device stores a second correspondence between the ambient illumination, the screen reflectivity and the screen color gamut; The determining, according to the first ambient illumination and the screen reflectivity of the electronic device, a first screen color gamut corresponding to the electronic device includes: Determine the first screen color corresponding to the electronic device according to the first ambient illumination, the screen reflectivity and the second corresponding relationship. domain.
10. An electronic device, characterized in that: The electronic device includes a photosensitive device, a processor and a display screen: The photosensitive device is used to obtain a first environmental illumination, where the first environmental illumination is the illumination of the environment where the electronic device is currently located; The processor is configured to acquire a first image, where the first image is an image currently displayed by the electronic device, and determine a first image brightness corresponding to the first image; The processor is further configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and adjust a current screen brightness of the electronic device according to the first screen brightness; The processor is further configured to determine a color compensation coefficient corresponding to the first image according to the first environmental illumination and the screen reflectivity of the electronic device, and adjust the color saturation of the first image according to the color compensation coefficient; The display screen is used to display the first image with adjusted color saturation at the first screen brightness.
11. The electronic device according to claim 10, characterized in that: The electronic device stores a first correspondence between image brightness and screen brightness under different ambient illuminations; The processor is further used to determine a first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness and the first corresponding relationship.
12. The electronic device according to claim 10 or 11, characterized in that: The processor is further configured to determine a first screen color gamut corresponding to the electronic device according to the first ambient illumination and the screen reflectivity of the electronic device, where the first screen color gamut is a screen color gamut corresponding to the electronic device under the first ambient illumination; A color compensation coefficient corresponding to the first image is determined according to the first screen color gamut and the second screen color gamut, wherein the second screen color gamut is a screen color gamut corresponding to the electronic device under a second ambient illumination.
13. The electronic device according to claim 12, characterized in that: The electronic device stores a second correspondence between the ambient illumination, the screen reflectivity and the screen color gamut; The processor is further used to determine a first screen color gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity and the second corresponding relationship.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the electronic device implements the image display method according to any one of claims 1 to 6 or claims 7 to 9.
15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a computer, the computer implements the image display method according to any one of claims 1 to 6 or claims 7 to 9.
Citation Information
Patent Citations
Image display method, electronic equipment and computer readable storage medium
CN119516956A
Method for improving energy efficiency index of LED (light-emitting diode) display screen and LED display screen
CN102402942A
Image signal processing method and device
CN109493831A
Backlight brightness adjusting method and device thereof
CN111462701A
Brightness adjustment method and device, electronic equipment and storage medium
CN115602136A