Image display method, electronic equipment 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 the user experience is improved.

CN119516956AActive Publication Date: 2025-02-25HUAWEI TECH CO LTD

Patent Information

Application Number
CN202311170363.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2023-09-11
Publication Date
2025-02-25
Estimated Expiration
2043-09-11

AI Technical Summary

Technical Problem

In different environments, users’ subjective feelings about watching the same content are inconsistent, which affects the user experience.

Method used

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, so as to maintain the user's subjective feelings about the same content in different environments.

Benefits of technology

It achieves the consistent subjective feelings of users towards the same content in different environments, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516956A_ABST
    Figure CN119516956A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of terminals, and particularly relates to an image display method, electronic equipment and a computer readable storage medium. In the method, the electronic equipment can obtain a first image currently displayed by the electronic equipment and first environment illumination of an environment where the electronic equipment is currently located, and determine first image brightness corresponding to the first image. And then, the electronic equipment can determine the first screen brightness corresponding to the electronic equipment according to the first environment illumination and the first image brightness, and can adjust the current screen brightness of the electronic equipment according to the first screen brightness so as to display the first image according to the adjusted screen brightness. Namely, in the embodiment of the invention, the electronic equipment can adjust the screen brightness of the electronic equipment according to the first environment illumination of the current environment of the electronic equipment and the first image currently displayed by the electronic equipment, so that the subjective feelings of viewing the same content (namely the first image) by a user are consistent in different environments, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] Electronic devices are used in a wide range of environments. For example, they can be used in darkroom environments or outdoors in sunlight. Among them, the display effect of electronic devices is generally affected by the ambient illumination. In order to ensure that the electronic devices can clearly display content, currently, electronic devices can adaptively adjust the backlight brightness of the electronic devices according to the ambient illumination. For example, when using electronic devices in different environments, the electronic devices can linearly increase or decrease the backlight brightness of the electronic devices according to the ambient illumination of the current environment, so that the content displayed in the electronic devices 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. Summary of the invention

[0003] 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.

[0004] In a first aspect, an embodiment of the present application provides an image display method, which is applied to an electronic device, and the method includes:

[0005] 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;

[0006] determining a first image brightness corresponding to the first image;

[0007] 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;

[0008] The first image is displayed according to the first screen brightness.

[0009] 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) is consistent in different environments, thereby improving the user experience.

[0010] In one example, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;

[0011] The determining, according to the first ambient illumination and the first image brightness, a first screen brightness corresponding to the electronic device includes:

[0012] 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.

[0013] In the image display method provided by the implementation, the electronic device may store a first correspondence between the ambient illumination, the image brightness, and the screen brightness, so the electronic device may determine the first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness, and the first correspondence. Optionally, the first correspondence between the ambient illumination, the image brightness, and the screen brightness may be determined according to the light-sensitive characteristics of human eyes.

[0014] Exemplarily, the first corresponding relationship among the ambient illumination, the image brightness and the screen brightness may be represented by a curve.

[0015] In a possible implementation manner of the first aspect, the method further includes:

[0016] According to the first environmental illumination, the color saturation of the first image is adjusted.

[0017] 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, so that the subjective feeling of the user viewing the first image in different environments is the same, thereby improving the user experience.

[0018] In one example, adjusting the color saturation of the first image according to the first ambient illumination includes:

[0019] determining a color compensation coefficient corresponding to the first image according to the first ambient illumination and the screen reflectivity of the electronic device;

[0020] The color saturation of the first image is adjusted according to the color compensation coefficient.

[0021] In the image display method provided in this example, the electronic device can determine the color compensation coefficient corresponding to the first image according to the first environmental illumination, and can adjust the color saturation of the first image according to the color compensation coefficient. For example, the final color saturation of the first image can be determined according to the color compensation coefficient and the current color saturation of the first image, and the color saturation of the first image can be adjusted according to the final color saturation of the first image to adjust the color saturation of the first image to the final color saturation.

[0022] Exemplarily, determining the color compensation coefficient corresponding to the first image according to the first ambient illumination and the screen reflectivity of the electronic device includes:

[0023] 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;

[0024] 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.

[0025] In the image display method provided in this example, the electronic device can determine the color compensation coefficient corresponding to the first image according to 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. Among them, 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 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 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 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, to ensure that the user's subjective perception of the first image is consistent in different environments, thereby improving the user experience.

[0026] Exemplarily, the electronic device stores a second correspondence between the ambient illumination, the screen reflectivity, and the screen color gamut;

[0027] 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:

[0028] 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.

[0029] In the image display method provided in this example, the electronic device may store a second correspondence between the ambient illumination, the screen reflectivity, and the screen color gamut. Therefore, the electronic device may determine the first screen color gamut (or the second screen color gamut) corresponding to the electronic device based on the first ambient illumination (or the 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.

[0030] Optionally, the second corresponding relationship may be determined in advance by measuring the influence of different ambient illuminations on the screen color gamut corresponding to the electronic device under different screen reflectivities.

[0031] In a second aspect, an embodiment of the present application provides an image display method, which is applied to an electronic device, and the method includes:

[0032] Acquire a first environmental illumination, where the first environmental illumination is the illumination of an environment where the electronic device is currently located;

[0033] 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;

[0034] 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.

[0035] 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.

[0036] 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:

[0037] 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;

[0038] 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.

[0039] Optionally, the electronic device stores a second corresponding relationship between the ambient illumination, the screen reflectivity and the screen color gamut;

[0040] 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:

[0041] 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.

[0042] In one example, the method may further include:

[0043] determining a first image brightness corresponding to the first image;

[0044] 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;

[0045] The displaying of the first image after the color saturation is adjusted includes:

[0046] The first image after color saturation adjustment is displayed according to the first screen brightness.

[0047] Optionally, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;

[0048] The determining, according to the first ambient illumination and the first image brightness, a first screen brightness corresponding to the electronic device includes:

[0049] 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.

[0050] In a third aspect, an embodiment of the present application provides an image display device, which is applied to an electronic device, and the device includes:

[0051] An environmental illumination acquisition module, used to 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;

[0052] An image brightness determination module, used to determine a first image brightness corresponding to the first image;

[0053] 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;

[0054] An image display module is used to display the first image according to the first screen brightness.

[0055] In one example, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;

[0056] The screen brightness determination module is specifically used to determine the first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness and the first corresponding relationship.

[0057] In a possible implementation manner of the third aspect, the device further includes:

[0058] A color saturation adjustment module is used to adjust the color saturation of the first image according to the first environmental illumination.

[0059] In one example, the color saturation adjustment module can be specifically used to determine a color compensation coefficient corresponding to the first image according to the first ambient illumination and the screen reflectivity of the electronic device; and adjust the color saturation of the first image according to the color compensation coefficient.

[0060] Exemplarily, the color saturation adjustment module can also be 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, the first screen color gamut being 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, the second screen color gamut being the screen color gamut corresponding to the electronic device under the second ambient illumination.

[0061] Exemplarily, the electronic device stores a second correspondence between the ambient illumination, the screen reflectivity, and the screen color gamut;

[0062] The color saturation adjustment 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.

[0063] In a fourth aspect, an embodiment of the present application provides an image display device, which is applied to an electronic device, and the device includes:

[0064] An environmental illumination acquisition module, used to acquire a first environmental illumination, where the first environmental illumination is the illumination of the environment where the electronic device is currently located;

[0065] a compensation coefficient determination module, configured to determine 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;

[0066] The color saturation adjustment module is used 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.

[0067] Exemplarily, the compensation coefficient determination module can be specifically 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, the first screen color gamut being 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 a second screen color gamut, the second screen color gamut being the screen color gamut corresponding to the electronic device under the second ambient illumination.

[0068] Optionally, the electronic device stores a second corresponding relationship between the ambient illumination, the screen reflectivity and the screen color gamut;

[0069] 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.

[0070] In one example, the apparatus may further include:

[0071] An image brightness determination module, used to determine a first image brightness corresponding to the first image;

[0072] 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;

[0073] The color saturation adjustment module is further used to display the first image after color saturation is adjusted according to the first screen brightness.

[0074] Optionally, the electronic device may store a first correspondence between image brightness and screen brightness under different ambient illuminations;

[0075] The screen brightness determination module is specifically used to determine the first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness and the first corresponding relationship.

[0076] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a photosensitive device, a processor and a display screen:

[0077] 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;

[0078] 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;

[0079] 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;

[0080] 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;

[0081] The display screen is used to display the first image with adjusted color saturation at the first screen brightness.

[0082] In one example, the electronic device stores a first correspondence between image brightness and screen brightness under different ambient illuminations;

[0083] 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.

[0084] 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, the first screen color gamut being 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, the second screen color gamut being the screen color gamut corresponding to the electronic device under the second ambient illumination.

[0085] Optionally, the electronic device stores a second corresponding relationship between the ambient illumination, the screen reflectivity and the screen color gamut;

[0086] 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.

[0087] 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, wherein when the processor executes the computer program, the electronic device implements the image display method described in the first aspect or any one of the second aspects.

[0088] In the seventh aspect, an embodiment of the present application 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 implements the image display method described in any one of the first aspect or the second aspect.

[0089] 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.

[0090] 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

[0091] Figure 1 This is a structural diagram of an electronic device provided by an embodiment of the present application;

[0092] Figure 2 is a software structure block diagram of an electronic device according to an embodiment of the present application;

[0093] Figure 3 It is a flowchart of an image display method provided by an embodiment of the present application;

[0094] Figure 4 is an example diagram of a first correspondence relationship provided in an embodiment of the present application;

[0095] Figure 5a This is an example diagram of a screen color gamut test provided by an embodiment of the present application;

[0096] Figure 5b This is an example diagram of the screen color gamut provided by an embodiment of the present application;

[0097] Figure 6 is a flowchart of an image display method provided by another embodiment of the present application;

[0098] Figure 7 It is a structural schematic diagram of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0099] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0100] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0101] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" 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 "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0102] 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.

[0103] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0104] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0105] The steps involved in the image display method provided in the embodiments of the present application are only examples. Not all steps are mandatory steps, or not all information or messages are mandatory. They can be increased or decreased as needed during use. The same step or steps or messages with the same function in the embodiments of the present application can be referenced and learned from each other in different embodiments.

[0106] 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. A person of ordinary skill in the art will appreciate 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.

[0107] Electronic devices are used in a wide range of environments. For example, they can be used in darkroom environments or outdoors in sunlight. Among them, the display effect of electronic devices is generally affected by the ambient illumination. In order to ensure that the electronic devices can clearly display content, currently, electronic devices can adaptively adjust the backlight brightness of the electronic devices according to the ambient illumination. For example, when using electronic devices in different environments, the electronic devices can linearly increase or decrease the backlight brightness of the electronic devices according to the ambient illumination of the current environment, so that the content displayed in the electronic devices 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.

[0108] 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 the method, the electronic device can obtain a first image currently displayed by the electronic device and a first environmental 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 environmental illumination and the first image brightness, and can adjust the current screen brightness of the electronic device according to 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 according to the first environmental 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) is consistent in different environments, thereby improving the user experience and having strong ease of use and practicality.

[0109] 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.

[0110] The following first introduces the electronic device involved in the embodiment of the present application. Figure 1 , Figure 1 A schematic structural diagram of an electronic device 100 is shown.

[0111] 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 screen 190, and a backlight driver integrated circuit board (integrated circuit, IC) 191, etc. Among them, 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, etc.

[0112] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0113] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0114] 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.

[0115] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0116] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.

[0117] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 160D, the flash, the camera 180, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 160D through the I2C interface, so that the processor 110 communicates with the touch sensor 160D through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0118] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 190 and the camera 180. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 180 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 190 communicate via the DSI interface to implement the display function of the electronic device 100.

[0119] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with 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.

[0120] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0121] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.

[0122] 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.

[0123] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0124] The mobile communication module 140 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.

[0125] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor displays an image or video 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 set in the same device as the mobile communication module 140 or other functional modules.

[0126] 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 integrating at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 150 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0127] 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 the network and other devices through wireless communication technology. The wireless communication technology 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).

[0128] The electronic device 100 implements the display function through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0129] The display screen 190 is used to display images, videos, etc. The 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 or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 190, where N is a positive integer greater than 1.

[0130] The backlight driver IC 191 is used to control the backlight brightness of the display screen 190. The backlight driver IC 191 is connected to the display screen 190. When the processor 110 adjusts the backlight brightness of the display screen 190, the processor 110 can convert the adjusted backlight brightness into data in a specific format and send it to the backlight driver IC 191. After the backlight driver IC 191 recognizes the backlight brightness, it can control the backlight brightness of the display screen 190 to adjust the backlight brightness of the display screen 190 to the backlight brightness. The data in the specific format can be a pulse width modulation (PWM).

[0131] 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.

[0132] The ISP is used to process the data fed back by the camera 180. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 180.

[0133] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.

[0134] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0135] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0136] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0137] 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 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0138] 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.

[0139] The pressure sensor 160A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 160A can be set on the display screen 190. There are many types of pressure sensors 160A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 160A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 190, the electronic device 100 detects the touch operation intensity according to the pressure sensor 160A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 160A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0140] The gyro 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 gyro sensor 160B. The gyro sensor 160B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro 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 gyro sensor 160B can also be used for navigation and somatosensory game scenes.

[0141] The acceleration sensor 160C can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0142] The ambient light sensor 160E is used to sense the brightness of ambient light (also referred to as ambient illumination). The electronic device 100 can adaptively adjust the brightness of the display screen 190 according to the perceived brightness of 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 arranged on the display screen 190, and the touch sensor 160D and the display screen 190 form a touch screen, also called 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 arranged on the surface of the electronic device 100, which is different from the position of the display screen 190.

[0143] The key 170 includes a power key, a volume key, etc. The key 170 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0144] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service 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 exemplify the software structure of the electronic device 100.

[0145] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0146] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0147] The application layer can include a series of application packages.

[0148] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0149] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0150] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0151] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0152] 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.

[0153] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0154] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0155] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0156] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0157] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0158] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0159] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0160] The system library may 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.

[0161] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0162] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0163] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0164] A 2D graphics engine is a drawing engine for 2D drawings.

[0165] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0166] 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.

[0167] See also Figure 3 , Figure 3 The flowchart of an image display method provided by an embodiment of the present application is shown. The method can be applied to electronic devices. The electronic device can be an electronic device with a display screen such as a mobile phone, a tablet computer, a smart TV or a laptop computer. Figure 3 As shown, the method may include:

[0168] S301: Acquire a first image and a first environmental illumination, where the first image is an image currently displayed by the electronic device, and the first environmental illumination is the illumination of an environment where the electronic device is currently located.

[0169] 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.

[0170] Exemplarily, the electronic device may be provided with a photosensitive 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 according to the ambient illumination detected by the ambient light sensor.

[0171] In a possible implementation manner, the electronic device may obtain the ambient illumination detected by the ambient light sensor at a certain moment, and may determine the ambient illumination at the moment as the first ambient illumination.

[0172] In another possible implementation, the ambient light sensor may obtain the ambient illumination of the environment in which the electronic device is currently located at a fixed sampling frequency to obtain multiple ambient illuminations. The electronic device may perform weighted averaging on the multiple ambient illuminations to obtain a first ambient illumination. It should be understood that the sampling frequency may be specifically determined according to the actual scenario, and the embodiments of the present application do not impose any limitation on this.

[0173] 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 command from the user, or the electronic device determines that its environment has changed, etc. The touch command may be a command generated by the electronic device after detecting a touch operation of the user on the display screen.

[0174] S302: Determine a first image brightness corresponding to the first image.

[0175] 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.

[0176] Optionally, the first image brightness corresponding to the first image may be related to the illumination of the environment in which the electronic device is currently located (i.e., the first environment 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. That is, the electronic device may determine the first image brightness corresponding to the first image based on the first environment 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.

[0177] The grayscale corresponding to the first image can be determined according to 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 according to the attribute information of the electronic device.

[0178] It should be noted that the embodiment of the present application does not impose any restrictions on the method of determining the APL corresponding to the first image, which can be determined specifically according to the actual application scenario. For example, the electronic device can obtain the grayscale histogram corresponding to the first image, and can determine the APL corresponding to the first image according to the grayscale histogram.

[0179] 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 may be any existing determination method, and the embodiment of the present application does not impose any restrictions on this.

[0180] 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.

[0181] 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 a brightness value perceived by a user and may not have a unit.

[0182] It should be understood that in order to ensure that users have the same subjective experience of 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 of the same content (i.e., the first image) displayed on the electronic device in different environments, thereby improving the user experience.

[0183] 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 according to the first ambient illumination, the first image brightness and the first correspondence, and adjust the current screen brightness of the electronic device according to the first screen brightness, so that the same image has the same display effect in different environments, thereby improving the user experience. Among them, the first correspondence between ambient illumination, image brightness and screen brightness can be determined according to the photosensitivity characteristics of human eyes.

[0184] In one example, the first corresponding relationship among the ambient illumination, the image brightness, and the screen brightness may be represented by a curve.

[0185] For example, see Figure 4 , Figure 4An example diagram of the first corresponding relationship provided in an embodiment of the present application is shown. In the example diagram, an example is given in which the ambient illumination includes 0 Lux, 300 Lux, 800 Lux, 10000 Lux and 40000 Lux, and the first corresponding relationship is represented by a curve.

[0186] It should be understood that the embodiment of the present application does not impose any restrictions on the representation of the first corresponding relationship, and the number and value of the ambient illumination in the first corresponding relationship, which can be specifically determined according to the actual application scenario. For example, the ambient illumination can be determined according to the actual scenario to include 0 Lux, 300 Lux, 500 Lux, 800 Lux, 2000 Lux, 5000 Lux, 10000 Lux, 20000 Lux and 40000 Lux, etc.

[0187] like Figure 4 As shown, when the ambient illumination is 0 Lux, the first corresponding relationship between the image brightness and the screen brightness can be curve a; when the ambient illumination is 300 Lux, the first corresponding relationship between the image brightness and the screen brightness can be curve b; when the ambient illumination is 800 Lux, the first corresponding relationship between the image brightness and the screen brightness can be curve c; when the ambient illumination is 10000 Lux, the first corresponding relationship between the image brightness and the screen brightness can be curve d; when the ambient illumination is 40000 Lux, the first corresponding relationship between the image brightness and the screen brightness can be curve e.

[0188] in, Figure 4 The horizontal axis is screen brightness and the vertical axis is image brightness.

[0189] It can be seen from curve a that when the first ambient illumination 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, the screen brightness of the electronic device is adjusted to 70 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 80; if the first image brightness 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, the screen brightness of the electronic device is adjusted to 50 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 70; if the first image brightness 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, the screen brightness of the electronic device is adjusted to 30 nits, 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 10 nits, that is, in an environment of 0 Lux, the screen brightness of the electronic device is adjusted to 10 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.

[0190] It can be seen from curve b that when the first environmental illumination 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 to 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 to be 80. The corresponding first image brightness is 70; if the first image brightness is 60, it can be determined that the corresponding first screen brightness of 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 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 corresponding first screen brightness of 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 first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.

[0191] It can be seen from curve c that when the first environmental illumination is 800 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 150 nits, that is, in an environment of 800 Lux, adjusting the screen brightness of the electronic device to 150 nits can make the first image brightness corresponding to the first image displayed by the electronic device to 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 120 nits, that is, in an environment of 800 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 to 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 first screen brightness corresponding to the electronic device is 102nits, that is, in an environment of 800Lux, the screen brightness of the electronic device is adjusted to 102nits, 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 first screen brightness corresponding to the electronic device is 90nits, that is, in an environment of 800Lux, the screen brightness of the electronic device is adjusted to 90nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.

[0192] It can be seen from curve d that when the first environmental illumination 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 to 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 brightness corresponding to the first image displayed by the electronic device to 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 first screen brightness 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 first screen brightness 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.

[0193] It can be seen from curve e that when the first ambient illumination is 40000 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 1500 nits, that is, in an environment of 40000 Lux, adjusting the screen brightness of the electronic device to 1500 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 1200 nits, that is, in an environment of 40000 Lux, adjusting the screen brightness of the electronic device to 1200 nits can make the first image brightness corresponding to 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.

[0194] 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 illumination is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 70 nits; if the first ambient illumination is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits; if the first ambient illumination is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 150 nits; if the first ambient illumination is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 800 nits; if the first ambient illumination is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 1500 nits.

[0195] When it is necessary to ensure that the brightness of the first image corresponding to the first image is 70, if the first ambient illumination is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 50 nits; if the first ambient illumination is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 100 nits; if the first ambient illumination is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits; if the first ambient illumination is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 700 nits; if the first ambient illumination is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 1200 nits.

[0196] When it is necessary to ensure that the brightness of the first image 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 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 600 nits; if the first ambient illuminance is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 1000 nits.

[0197] When it is necessary to ensure that the brightness of the first image corresponding to the first image is 50, if the first ambient illumination is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 10 nits; if the first ambient illumination is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 75 nits; if the first ambient illumination is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 90 nits; if the first ambient illumination is 10000 Lux, the screen brightness of the electronic device needs to be adjusted to 500 nits; if the first ambient illumination is 40000 Lux, the screen brightness of the electronic device needs to be adjusted to 900 nits.

[0198] In one possible implementation, after determining the first ambient illumination, if it is determined that the ambient illumination included in the first correspondence relationship does not have an ambient illumination that is the same as the first ambient illumination, the electronic device can determine the ambient illumination included in the first correspondence relationship that is closest to the first ambient illumination (hereinafter referred to as ambient illumination A), and can determine the first screen brightness corresponding to the electronic device based on the ambient illumination A, the first image brightness, and the first correspondence relationship.

[0199] It can be understood that the closest ambient illuminance A may refer to an ambient illuminance whose absolute value of difference with the first ambient illuminance is the smallest among all ambient illuminances included in the first corresponding relationship.

[0200] For example, in Figure 4In the application scenario shown, 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). In other words, when the first ambient illuminance is 789Lux, if the screen brightness of the electronic device is adjusted to 150nits, the brightness of the first image corresponding to the first image currently displayed by the electronic device can be made close to 80nits.

[0201] For example, in Figure 4 In the application scenario shown, when the first ambient illuminance is detected to be 9000Lux, the electronic device can determine that there is no ambient illuminance that is the same as the first ambient illuminance (i.e., 9000Lux) 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 10000Lux. Assuming that the brightness of the first image corresponding to the first image is 70nits, the electronic device can determine that the first screen brightness corresponding to the electronic device is 700nits based on the ambient illuminance A (i.e., 10000Lux), the brightness of the first image (i.e., 70nits), and the first correspondence (i.e., curve d). In other words, when the first ambient illuminance is 9000Lux, if the screen brightness of the electronic device is adjusted to 700nits, the brightness of the first image corresponding to the first image currently displayed by the electronic device can be made close to 70nits.

[0202] It should be noted that the first corresponding relationship stored 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 may 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.

[0203] In an embodiment of the present application, after determining the first screen brightness according to the above-mentioned first corresponding relationship, 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.

[0204] 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.

[0205] For example, the electronic device may adjust the current backlight brightness of the electronic device according to the first screen brightness. For example, the electronic device may adjust the system gamma of the electronic device according to the first screen brightness. For example, the electronic device may adjust the current backlight brightness and system gamma of the electronic device according to the first screen brightness. The specific content of the electronic device adjusting the brightness of the first screen may be determined according to the actual scenario, and the embodiments of the present application do not impose any restrictions on this.

[0206] For example, when the first screen brightness is greater than the maximum value of the backlight brightness of the electronic device, the electronic device may 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 first screen brightness is less than the minimum value of the backlight brightness of the electronic device, the electronic device may 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, subject to the hardware constraints of the display screen, the electronic device may be provided with a maximum value and a 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.

[0207] 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 according to 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 according to the first screen brightness and the current screen brightness of the electronic device to adjust the screen brightness of the electronic device.

[0208] For example, when there is an area in the first image whose brightness needs to be partially adjusted (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.

[0209] 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 according to the first screen brightness, or according to the first screen brightness and the current screen brightness of the electronic device, and can be determined according to the actual scenario.

[0210] 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 value of the backlight brightness, or gradually adjust the current backlight brightness of the electronic device to the minimum value of the backlight brightness according to the adjustment step length, so as to adjust the screen brightness of the electronic device without the user's perception. The adjustment step length can be specifically determined according to the actual scenario, and the embodiments of the present application do not impose any restrictions on this.

[0211] S304: Display the first image according to the first screen brightness.

[0212] 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.

[0213] 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 feeling of the user viewing the first image the same in different environments, thereby improving the user experience.

[0214] Exemplarily, the electronic device may determine the color compensation coefficient corresponding to the first image according to the first ambient illumination, and may adjust the color saturation of the first image according to the color compensation coefficient. For example, the final color saturation of the first image may be determined according to the color compensation coefficient and the current color saturation of the first image, and the color saturation of the first image may be adjusted according to the final color saturation of the first image to adjust the color saturation of the first image to the final color saturation.

[0215] 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 explanation 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.

[0216] 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 may be used to characterize the degree to which the display screen of the electronic device reflects light, and different electronic devices may have different screen reflectivities or the same screen reflectivity. The second correspondence 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.

[0217] For example, see Figure 5a , Figure 5a An example diagram of a test of the screen color gamut provided in an embodiment of the present application is shown.

[0218] like Figure 5a As shown, for an electronic device 501 with different screen reflectivity, the screen color gamut corresponding to the electronic device under the illumination of an LED lamp 503 with different illuminations can be obtained through a spectrometer 502, so as to determine a second corresponding relationship between the ambient illumination, the screen reflectivity and the screen color gamut. The illumination of the LED lamp 503 can be measured by an illuminometer 504 or the like.

[0219] 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 according to 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 according to the first screen color gamut and the second screen color gamut, so as to compensate the color saturation of the first image according to the color compensation coefficient. Among them, 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 according to the second ambient illumination, the screen reflectivity, and the second corresponding relationship.

[0220] 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.

[0221] It should be understood that the color gamut can be used to indicate the range of colors that can be displayed by the display screen of an electronic device. The larger the color gamut, the more colors the electronic device can display; the smaller the color gamut, the fewer colors the electronic device can display. There are three common color gamut standards, namely sRGB, NTSC and AdobeRGB.

[0222] 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.

[0223] 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.

[0224] 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.

[0225] In the embodiment 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 area 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 area range of colors that can be observed on the display screen of the electronic device under the first ambient illumination. The second screen color gamut corresponding to the electronic device refers to the area range of colors that can be observed on the display screen of the electronic device under the second ambient illumination.

[0226] See also Figure 5b , Figure 5b An example diagram of the screen color gamut provided by an embodiment of the present application is shown. In the example diagram, the dotted area may be the area range of colors corresponding to a certain color gamut standard, for example, the area range of colors corresponding to sRGB, NTSC or AdobeRGB. Different triangular areas may be the observable color gamut corresponding to a certain electronic device under different ambient illuminations.

[0227] like Figure 5b As shown, for the same electronic device, the observable color gamut corresponding to the electronic device is different under different ambient illuminations. Among them, for the same electronic device, when the ambient illumination is greater, the observable color gamut corresponding to the electronic device will be smaller.

[0228] It should be understood that for electronic devices with different screen reflectivity, under the same ambient illumination, the observable color gamuts corresponding to the electronic devices are also different. Among them, under the same ambient illumination, the lower the screen reflectivity, the larger the observable color gamut corresponding to the electronic device.

[0229] It should be noted that the second corresponding relationship stored 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 may also be stored in other devices that are communicatively connected to the electronic device, for example, it may be stored in the cloud or other electronic devices that are communicatively connected to the electronic device.

[0230] In one example, after determining the color compensation coefficient corresponding to the first image according to the first screen color gamut and the second screen color gamut, the electronic device can determine whether the first image will be oversaturated in color when the color saturation of the first image is compensated by the color compensation coefficient. When the first image is oversaturated in color, for example, after the color saturation of the first image is compensated by the color compensation coefficient, if the pixel value of a certain pixel in the compensated first image is greater than 255, the electronic device can determine that the first image is oversaturated in color. At this time, the electronic device can determine the maximum pixel value in the first image, and can determine the color compensation coefficient corresponding to the first image based on the maximum pixel value in the first image and 255, so as to compensate the color saturation of the first image according to the color compensation coefficient corresponding to the first image, so as to avoid the first image from being oversaturated in color.

[0231] Exemplarily, the color compensation coefficient finally corresponding to the first image may be 255 / the maximum pixel value in the first image.

[0232] For example, when the maximum pixel value in the first image is 200, the electronic device can determine that the color compensation coefficient corresponding to the first image is 255 / 200, that is, the electronic device can 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 can determine that the color compensation coefficient corresponding to the first image is 255 / 225, that is, the electronic device can use 255 / 225 to compensate for the color saturation of the first image, and so on.

[0233] See also Figure 6 , Figure 6 FIG. 1 is a 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 device can be an electronic device with a display screen such as a mobile phone, a tablet computer, a smart TV or a laptop computer. Figure 6 As shown, the method may include:

[0234] S601: Acquire a first environment illumination, where the first environment illumination is the illumination of an environment where the electronic device is currently located.

[0235] 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.

[0236] S602: Determine a color compensation coefficient corresponding to a first image currently displayed according to the first ambient illumination and the screen reflectivity of the electronic device.

[0237] 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 content of the electronic device determining the color compensation coefficient corresponding to the first image according to the first ambient illumination and the screen reflectivity of the electronic device can refer to the related content of determining the color compensation coefficient mentioned above, which will not be repeated here.

[0238] For example, a second correspondence between ambient illumination, screen reflectivity, and screen color gamut may be set in the electronic device. The electronic device may determine the first screen color gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity of the electronic device, and the second correspondence, and determine the color compensation coefficient corresponding to the first image according to 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.

[0239] 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.

[0240] It should be understood that the specific content of the electronic device adjusting 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.

[0241] In one example, the electronic device may also determine the first image brightness corresponding to the first image. Subsequently, the electronic device may determine the first screen brightness corresponding to the electronic device according to the first ambient illumination and the first image brightness, and may adjust the current screen brightness of the electronic device according to the first screen brightness, so as to display the first image with the color saturation adjusted according to the adjusted screen brightness.

[0242] 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.

[0243] 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 the first screen brightness corresponding to the electronic device according to the first ambient illumination, the first image brightness and the first correspondence.

[0244] See also Figure 7 , Figure 7 A schematic structural diagram of an electronic device provided in another embodiment of the present application is shown.

[0245] like Figure 7 As shown, 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.

[0246] The photosensitive device 701 can be used to sense the illumination of the current environment of the electronic device 100, that is, the first environment illumination. It should be understood that the photosensitive device 701 can be an ambient light sensor or the like.

[0247] The screen brightness calculation unit 702 may be configured to determine a first image brightness corresponding to the first image, and determine a first screen brightness corresponding to the electronic device 100 according to the first ambient illumination and the first image brightness.

[0248] For example, the screen brightness calculation unit 702 may be configured to determine a 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 .

[0249] The brightness control unit 703 may be used to control the current screen brightness of the electronic device 100 according to the first screen brightness.

[0250] The display unit 706 may be used to display the first image. For example, the display unit 706 may be used to display the first image at a first screen brightness.

[0251] In an example, the histogram analysis unit 704 may be used to determine a grayscale histogram corresponding to the first image.

[0252] 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 environment 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 environment illumination and the first image brightness.

[0253] In another example, the electronic device 100 may further include a color calculation unit ( Figure 7 The storage unit 707 may also store a second corresponding relationship between the ambient illumination, the screen reflectivity and the screen color gamut.

[0254] The color calculation unit can be used to determine the first screen color gamut corresponding to the electronic device 100 according to 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.

[0255] The color calculation unit can also be used to determine the second screen color gamut corresponding to the electronic device 100 according to the second environment illumination, the screen reflectivity of the electronic device 100 and the second corresponding relationship, that is, to determine the screen color gamut of the electronic device 100 under the second environment illumination. The second environment illumination can be the illumination of the environment before the electronic device 100 switches to the current environment.

[0256] In an example, the electronic device 100 may further include a signal compensation calculation unit 705 and an output signal conversion unit 708 .

[0257] 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 converted signal value (e.g., pixel value) of each signal (e.g., pixel) in the first image based on the color compensation coefficient.

[0258] 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 signal value after the conversion of the first image to the display unit 706 .

[0259] The display unit 706 may also be configured to display a first image according to the signal value output by the output signal conversion unit 708 .

[0260] In an embodiment of the present application, the electronic device can obtain the first image currently displayed by the electronic device and the first environmental 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 environmental 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 environmental 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 user's subjective experience of viewing the same content (i.e., the first image) is consistent in different environments, thereby improving the user experience.

[0261] 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 the present application.

[0262] Corresponding to the image display method described in the above embodiment, the embodiment of the present application further provides an image display device, and each module of the device can correspond to each step of implementing the image display method.

[0263] 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 the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0264] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be 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 in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in 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, which will not be repeated here.

[0265] The present application also provides an electronic device, the 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, wherein when the processor executes the computer program, the electronic device implements the steps in any of the above-mentioned method embodiments. Exemplarily, the structure of the electronic device can be as follows: Figure 1 shown.

[0266] 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 implements the steps in any of the above method embodiments.

[0267] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device implements the steps in any of the above method embodiments.

[0268] 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, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, 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 and a telecommunication signal.

[0269] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0270] Those of ordinary skill 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 to be beyond the scope of this application.

[0271] 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 only a logical function division. There may be other division methods in actual implementation, 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.

[0272] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0273] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope 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: 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.

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

  • Method and system for adjusting picture quality of displayed picture and liquid crystal display equipment

    CN101882425A

  • TV and display image effect control method thereof, computer readable storage medium

    CN107864349A

  • Frame image parameter adjustment method and device based on screen backlight value

    CN109064999A

  • Backlight brightness adjusting method and device thereof

    CN111462701A

  • Screen brightness adjusting method and device and terminal equipment

    CN114863494A

Cited By

  • Image display method, electronic device, and computer-readable storage medium

    WO2025044681A1