Image display method, electronic device, and computer-readable storage medium
By adjusting the screen brightness and color saturation of electronic devices and establishing a correspondence between ambient light and image brightness, the problem of inconsistent user experience in different environments is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202311170363.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-29
- Filing Date
- 2023-09-11
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-09-11
AI Technical Summary
In different environments, the display effect of electronic devices is affected by the ambient light level, resulting in inconsistent subjective feelings for users when viewing the same content, which affects the user experience.
By acquiring the current ambient illuminance and image brightness, the screen brightness and color saturation of electronic devices are adjusted to establish a correspondence between ambient illuminance, image brightness, and screen brightness, ensuring that the user's subjective experience remains consistent in different environments.
Users have a consistent subjective experience when viewing the same content in different environments, which improves the user experience.
Smart Images

Figure CN119516956B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of terminals, and particularly relates to an image display method, an electronic device, and a computer readable storage medium. BACKGROUND
[0002] The use environment of an electronic device is relatively wide, for example, the electronic device can be used in a dark room environment or under sunlight outdoors. The display effect of the electronic device is generally affected by the ambient illuminance. In order to ensure that the electronic device can clearly display content, the electronic device can currently adaptively adjust the backlight brightness of the electronic device according to the ambient illuminance. For example, when the electronic device is used in different environments, the electronic device can linearly increase or decrease the backlight brightness of the electronic device according to the ambient illuminance of the current environment, so that the content displayed in the electronic device can be clearly displayed. However, this linear increase in the backlight brightness can cause the subjective feelings of a user to be inconsistent when the user watches the same content in different environments, thereby affecting the user experience. SUMMARY
[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 the subjective feelings of a user are inconsistent when the user watches the same content in different environments, thereby affecting the user experience.
[0004] In a first aspect, the embodiments of the present application provide an image display method applied to an electronic device, and the method comprises the following steps.
[0005] obtaining a first image and a first ambient illuminance, the first image being an image currently displayed by the electronic device, and the first ambient illuminance being the illuminance 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 illuminance and the first image brightness, and adjusting the current screen brightness of the electronic device according to the first screen brightness;
[0008] displaying the first image 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 illuminance of the environment in which the electronic device is currently located and the first image currently displayed by the electronic device, so that the subjective feelings of a user are consistent when the user watches the same content (i.e., the first image) in different environments, thereby improving the user experience.
[0010] In one example, the electronic device can store a first correspondence relationship between image brightness and screen brightness under different ambient illuminances.
[0011] determining the first screen brightness corresponding to the electronic device according to the first ambient brightness, the first image brightness and the first corresponding relationship.
[0012] determining the first screen brightness corresponding to the electronic device according to the first ambient brightness, the first image brightness and the first corresponding relationship.
[0013] In the image display method provided in the implementation, the electronic device can store a first corresponding relationship among the ambient brightness, the image brightness and the screen brightness, and thus the electronic device can determine the first screen brightness corresponding to the electronic device according to the first ambient brightness, the first image brightness and the first corresponding relationship. Optionally, the first corresponding relationship among the ambient brightness, the image brightness and the screen brightness can be determined according to the photosensitive characteristics of human eyes.
[0014] For example, the first corresponding relationship among the ambient brightness, the image brightness and the screen brightness can be represented by a curve.
[0015] In a possible implementation of the first aspect, the method further includes:
[0016] adjusting the color saturation of the first image according to the first ambient brightness.
[0017] In the image display method provided in the implementation, the electronic device can further adjust the color saturation of the first image according to the first ambient brightness, so that the color saturation of the first image displayed by the electronic device is the same in different environments, thereby making the subjective experience of the user viewing the first image the same in different environments and improving the user experience.
[0018] In one example, the adjusting the color saturation of the first image according to the first ambient brightness includes:
[0019] determining a color compensation coefficient corresponding to the first image according to the first ambient brightness and the screen reflectivity of the electronic device;
[0020] adjusting the color saturation of the first image according to the color compensation coefficient.
[0021] In the image display method provided in the example, the electronic device can determine the color compensation coefficient corresponding to the first image according to the first ambient brightness, and can adjust the color saturation of the first image according to the color compensation coefficient. For example, the electronic device can determine the final color saturation of the first image according to the color compensation coefficient and the current color saturation of the first image, and adjust the color saturation of the first image 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] According to the first ambient illuminance and the screen reflectivity of the electronic device, the color compensation coefficient corresponding to the first image is determined.
[0023] According to the first ambient illuminance and the screen reflectivity of the electronic device, the first screen gamut corresponding to the electronic device is determined, the first screen gamut being the screen gamut corresponding to the electronic device under the first ambient illuminance.
[0024] According to the first screen gamut and the second screen gamut, the color compensation coefficient corresponding to the first image is determined, the second screen gamut being the screen gamut corresponding to the electronic device under the second ambient illuminance.
[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 gamut corresponding to the electronic device under the second ambient illuminance and the screen gamut corresponding to the electronic device under the first ambient illuminance. The second ambient illuminance and the first ambient illuminance are illuminances of different environments, and the second ambient illuminance can be the illuminance of the environment in which the electronic device is located before the use environment of the electronic device is switched to the current environment. For example, when the use environment of the electronic device is switched from environment A (such as an indoor environment) to environment B (such as an outdoor environment), the first ambient illuminance can be the illuminance of environment B, and the second ambient illuminance can be the illuminance of environment A. That is, the electronic device can compensate the color saturation of the first image according to the illuminance of the environment in which the electronic device is located before the switch and the illuminance of the current environment in which the electronic device is located, so as to ensure that the subjective experience of the user to the first image is consistent in different environments and improve the user experience.
[0026] In an example, the electronic device stores a second correspondence relationship between ambient illuminance, screen reflectivity, and screen gamut.
[0027] The first screen gamut corresponding to the electronic device is determined according to the first ambient illuminance and the screen reflectivity of the electronic device.
[0028] The first screen gamut corresponding to the electronic device is determined according to the first ambient illuminance, the screen reflectivity, and the second correspondence relationship.
[0029] In the image display method provided in this example, the electronic device can store a second correspondence relationship between ambient illuminance, screen reflectivity, and screen gamut. Therefore, the electronic device can determine the first screen gamut (or the second screen gamut) corresponding to the electronic device according to the first ambient illuminance (or the second ambient illuminance), the screen reflectivity of the electronic device, and the second correspondence relationship, so as to determine the attenuation of the screen gamut in different environments, and determine the color compensation coefficient corresponding to the first image.
[0030] Optionally, the second correspondence relationship can be determined in advance by measuring the influence of different ambient illuminations under different screen reflectivities on the screen gamut corresponding to the electronic device.
[0031] In a second aspect, an embodiment of the present application provides an image display method applied to an electronic device, and the method comprises:
[0032] obtaining a first ambient illumination, the first ambient illumination being the illumination of an environment in which 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] adjusting the color saturation of the first image according to the color compensation coefficient, and displaying the first image with the adjusted color saturation.
[0035] In the image display method provided above, the electronic device can further adjust the color saturation of the first image according to the first ambient illumination 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 experience of a user viewing the first image the same in different environments and improving the user experience.
[0036] For example, the determination of the color compensation coefficient corresponding to the first image currently displayed according to the first ambient illumination and the screen reflectivity of the electronic device comprises:
[0037] determining a first screen gamut corresponding to the electronic device according to the first ambient illumination and the screen reflectivity of the electronic device, the first screen gamut being the screen gamut corresponding to the electronic device under the first ambient illumination;
[0038] determining the color compensation coefficient corresponding to the first image according to the first screen gamut and a second screen gamut, the second screen gamut being the screen gamut corresponding to the electronic device under a second ambient illumination.
[0039] Optionally, the electronic device stores a second correspondence relationship between ambient illuminations, screen reflectivities and screen gamuts;
[0040] The determination of the first screen gamut corresponding to the electronic device according to the first ambient illumination and the screen reflectivity of the electronic device comprises:
[0041] determination of the first screen gamut corresponding to the electronic device according to the first ambient illumination, the screen reflectivity and the second correspondence relationship.
[0042] In one example, the method can further comprise:
[0043] determine a first image brightness corresponding to the first image;
[0044] determine a first screen brightness corresponding to the electronic device according to the first ambient brightness and the first image brightness, and adjust a current screen brightness of the electronic device according to the first screen brightness;
[0045] display the first image with adjusted color saturation.
[0046] display the first image with adjusted color saturation according to the first screen brightness.
[0047] Optionally, the electronic device can store a first corresponding relationship between image brightness and screen brightness under different ambient brightnesses.
[0048] determine a first screen brightness corresponding to the electronic device according to the first ambient brightness and the first image brightness, and adjust a current screen brightness of the electronic device according to the first screen brightness.
[0049] determine a first screen brightness corresponding to the electronic device according to the first ambient brightness, 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 applied to an electronic device, and the device comprises:
[0051] an ambient brightness acquisition module, configured to acquire a first image and a first ambient brightness, the first image being an image currently displayed by the electronic device, and the first ambient brightness being an ambient brightness of an environment where the electronic device is currently located;
[0052] an image brightness determination module, configured 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 brightness and the first image brightness, and adjust a current screen brightness of the electronic device according to the first screen brightness;
[0054] an image display module, configured to display the first image according to the first screen brightness.
[0055] In one example, the electronic device can store a first corresponding relationship between image brightness and screen brightness under different ambient brightnesses.
[0056] The screen brightness determination module is specifically configured to determine a first screen brightness corresponding to the electronic device according to the first ambient brightness, the first image brightness and the first corresponding relationship.
[0057] In a possible implementation manner of the third aspect, the apparatus further includes:
[0058] a color saturation adjustment module, configured to adjust color saturation of the first image according to the first ambient illuminance.
[0059] In an example, the color saturation adjustment module can be specifically configured to determine a color compensation coefficient corresponding to the first image according to the first ambient illuminance and a screen reflectivity of the electronic device; and adjust color saturation of the first image according to the color compensation coefficient.
[0060] For example, the color saturation adjustment module can be further configured to determine a first screen gamut corresponding to the electronic device according to the first ambient illuminance and the screen reflectivity of the electronic device, the first screen gamut being a screen gamut corresponding to the electronic device under the first ambient illuminance; and determine the color compensation coefficient corresponding to the first image according to the first screen gamut and a second screen gamut, the second screen gamut being a screen gamut corresponding to the electronic device under a second ambient illuminance.
[0061] For example, the electronic device stores a second correspondence relationship between ambient illuminance, screen reflectivity and screen gamut.
[0062] The color saturation adjustment module is further configured to determine the first screen gamut corresponding to the electronic device according to the first ambient illuminance, the screen reflectivity and the second correspondence relationship.
[0063] In a fourth aspect, an embodiment of the present application provides an image display apparatus applied to an electronic device, the apparatus including:
[0064] an ambient illuminance acquisition module, configured to acquire a first ambient illuminance, the first ambient illuminance being an illuminance of an environment in which 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 illuminance and a screen reflectivity of the electronic device;
[0066] a color saturation adjustment module, configured to adjust color saturation of the first image according to the color compensation coefficient, and display the first image with the adjusted color saturation.
[0067] For example, the compensation coefficient determination module can be specifically configured to determine a first screen color gamut corresponding to the electronic device according to the first ambient illuminance and a screen reflectivity of the electronic device, the first screen color gamut being a screen color gamut corresponding to the electronic device under the first ambient illuminance; and determine a color compensation coefficient corresponding to the first image according to the first screen color gamut and a second screen color gamut, the second screen color gamut being a screen color gamut corresponding to the electronic device under a second ambient illuminance.
[0068] Optionally, the electronic device stores a second correspondence relationship between an ambient illuminance, a screen reflectivity and a screen color gamut.
[0069] The compensation coefficient determination module is further configured to determine a first screen color gamut corresponding to the electronic device according to the first ambient illuminance, the screen reflectivity and the second correspondence relationship.
[0070] In one example, the apparatus can further include:
[0071] An image brightness determination module configured 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 illuminance and the first image brightness, and adjust a current screen brightness of the electronic device according to the first screen brightness.
[0073] The color saturation adjustment module is further configured to display the first image with adjusted color saturation according to the first screen brightness.
[0074] Optionally, the electronic device can store a first correspondence relationship between an image brightness and a screen brightness under different ambient illuminances.
[0075] The screen brightness determination module is specifically configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness and the first correspondence relationship.
[0076] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a photosensitive device, a processor and a display screen:
[0077] The photosensitive device is configured to acquire a first ambient illuminance, the first ambient illuminance being an illuminance of an environment where the electronic device is currently located.
[0078] The processor is configured to acquire a first image, the first image being 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 illuminance 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 ambient illuminance and a screen reflectivity of the electronic device, and adjust a color saturation of the first image according to the color compensation coefficient.
[0081] The display screen is configured to display the first image with the adjusted color saturation at the first screen brightness.
[0082] In one example, the electronic device stores a first correspondence relationship between image brightness and screen brightness under different ambient illuminances.
[0083] The processor is further configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness and the first correspondence relationship.
[0084] In another example, the processor is further configured to determine a first screen gamut corresponding to the electronic device according to the first ambient illuminance and a screen reflectivity of the electronic device, the first screen gamut being a screen gamut corresponding to the electronic device under the first ambient illuminance; determine a color compensation coefficient corresponding to the first image according to the first screen gamut and a second screen gamut, the second screen gamut being a screen gamut corresponding to the electronic device under a second ambient illuminance.
[0085] Optionally, the electronic device stores a second correspondence relationship between ambient illuminance, screen reflectivity and screen gamut.
[0086] The processor is further configured to determine a first screen gamut corresponding to the electronic device according to the first ambient illuminance, the screen reflectivity and the second correspondence relationship.
[0087] In a sixth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the electronic device implements the image display method in the first aspect or any one of the second aspect.
[0088] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, 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 in the first aspect or any one of the second aspect.
[0089] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, causes the electronic device to perform the image display method in the first aspect or any one of the second aspect.
[0090] It can be understood that the beneficial effects of the third aspect to the eighth aspect can be referred to the related description in the first aspect or the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0091] Figure 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0092] Figure 2 is a software structural block diagram of an electronic device of an embodiment of the present application;
[0093] Figure 3 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 corresponding relationship provided by an embodiment of the present application;
[0095] Figure 5a is a test example diagram of a screen color gamut provided by an embodiment of the present application;
[0096] Figure 5b is an example diagram of a 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 is a structural schematic diagram of an electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION
[0099] It should be understood that when used in the specification and the appended claims of the present application, the term “comprising” indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0100] It should also be understood that the term “and / or” used in the specification and the appended claims of the present application means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0101] As used in the specification and in the claims, the term “if’ can be interpreted as meaning “when” or “upon” or “in response to a determination” or “in response to a detection” depending on the context. Similarly, the phrase “if it is determined” or “if [the described condition or event] is detected” can be interpreted as meaning “upon a determination” or “in response to a determination” or “upon a detection of [the described condition or event]” or “in response to a detection of [the described condition or event]” depending on the context.
[0102] In addition, in the description of the present application and the appended claims, the terms “first”, “second”, “third”, etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0103] In the present application, the reference “one embodiment” or “some embodiments” and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements “in one embodiment”, “in some embodiments”, “in other some embodiments”, “in further some embodiments” and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean “one or more but not all embodiments”, unless otherwise specifically emphasized. The terms “include”, “contain”, “have” and their variants mean “include but not limited to”, unless otherwise specifically emphasized.
[0104] In addition, “a plurality of” 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, and not all steps are necessarily performed, or the content in each information or message is not necessarily selected. In use, it can be increased or reduced as needed. The same step or step or message with the same function in the embodiments of the present application can be mutually referenced and learned between different embodiments.
[0106] The service scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of network architecture and the appearance of new service scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0107] The use environment of an electronic device is relatively wide, for example, the electronic device can be used in a dark room environment, and can also be used in a sunlight environment outdoors. Among them, the display effect of the electronic device is generally affected by the ambient illuminance. In order to ensure that the electronic device can clearly display the content, at present, the electronic device can adaptively adjust the backlight brightness of the electronic device according to the ambient illuminance. For example, when the electronic device is used in different environments, the electronic device can linearly increase or decrease the backlight brightness of the electronic device according to the ambient illuminance of the current environment, so that the content displayed in the electronic device can be clearly displayed. However, this linear increase of the backlight brightness will cause the subjective feeling of a user to view the same content to be inconsistent in different environments, affecting the user experience.
[0108] To solve the above problems, an image display method, an electronic device and a computer readable storage medium are provided in the embodiments of the present application. In the method, the electronic device can obtain a first image currently displayed by the electronic device and a first ambient illuminance of an environment where the electronic device is currently located, and determine a first image brightness corresponding to the first image. Subsequently, the electronic device can determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance 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 the embodiments of the present application, the electronic device can adjust the screen brightness of the electronic device according to the first ambient illuminance of the environment where the electronic device is currently located and the first image currently displayed by the electronic device, so that the subjective feeling of a user to view the same content (i.e. the first image) is consistent in different environments, improving the user experience, and having strong ease of use and practicality.
[0109] In the embodiments of the present application, the electronic device can be a mobile phone, a tablet computer, a wearable device, a smart television, a smart screen, a vehicle-mounted device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a desktop computer and the like, which are electronic devices with a display screen. The specific type of the electronic device is not limited in the embodiments of the present application.
[0110] First, the electronic device related to the embodiments of the present application is introduced. Please refer to Figure 1 , Figure 1 A structural schematic diagram of the electronic device 100 is shown.
[0111] The electronic device 100 can 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 driving integrated circuit (IC) 191, and the like. The sensor module 160 can include a pressure sensor 160A, a gyro sensor 160B, an acceleration sensor 160C, a touch sensor 160D, an ambient light sensor 160E, and the like.
[0112] It can be understood that the structure illustrated in the embodiments 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 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0113] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Different processing units can be independent devices, or can be integrated in one or more processors.
[0114] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0115] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.
[0116] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can 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 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 160D, the flash, the camera 180, etc. through different I2C bus interfaces, respectively. For example, the processor 110 can be coupled to the touch sensor 160D through an I2C interface, so that the processor 110 and the touch sensor 160D communicate through the I2C bus interface, and the touch function of the electronic device 100 is realized.
[0118] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display 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 through the CSI interface, and the shooting function of the electronic device 100 is realized. The processor 110 and the display 190 communicate through the DSI interface, and the display function of the electronic device 100 is realized.
[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 to the camera 180, the display 190, the wireless communication module 150, the sensor module 160, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
[0120] The USB interface 130 is an interface that complies with the USB standard specification, and 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 transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0121] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0122] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 140, the wireless communication module 150, the modem processor, and the baseband processor, etc.
[0123] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed 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 a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 140 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 140 can receive an electromagnetic wave by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic wave, and transfer the processed signal to the modem processor for demodulation. The mobile communication module 140 can also amplify a signal modulated by the modem processor, and radiate the amplified signal as an electromagnetic wave through the antenna 1. In some embodiments, at least part of the function modules of the mobile communication module 140 can be disposed in the processor 110. In some embodiments, at least part of the function modules of the mobile communication module 140 can be disposed in the same device as at least part of the modules of the processor 110.
[0125] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a 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. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor displays an image or a video through the display screen 190. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 140 or other function modules.
[0126] The wireless communication module 150 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 150 can be one or more devices integrated with at least one communication processing module. The wireless communication module 150 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 150 can also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and radiate the signal as an electromagnetic wave through the antenna 2.
[0127] In some embodiments, the antenna 1 and the mobile communication module 140 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 150 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can 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, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0128] The electronic device 100 implements a display function through a GPU, a display screen 190, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0129] The display screen 190 is configured to display images, videos, and the like. 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 (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 190, where N is a positive integer greater than 1.
[0130] The backlight driving IC 191 is configured to control the brightness of the backlight of the display screen 190. The backlight driving IC 191 is connected to the display screen 190. When the processor 110 adjusts the brightness of the backlight of the display screen 190, the processor 110 can convert the adjusted brightness of the backlight into data in a specific format and send the data to the backlight driving IC 191. After the backlight driving IC 191 recognizes the brightness of the backlight, the backlight driving IC 191 can control the brightness of the backlight of the display screen 190 to change, so that the brightness of the backlight of the display screen 190 is adjusted to the brightness of the backlight. The data in the specific format can be pulse width modulation (PWM).
[0131] The electronic device 100 can implement the photographing function through the ISP, the camera 180, the video codec, the GPU, the display screen 190, and the application processor.
[0132] The ISP is configured to process the data fed back by the camera 180. For example, when taking a photo, the shutter is opened, 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 to convert it into an image visible to the naked eye. The ISP can also optimize the algorithm of 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 arranged in the camera 180.
[0133] The camera 180 is used to capture still images or videos. An object projects an optical image through a lens to a 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, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into a standard image signal in a format such as RGB, YUV, etc. In some embodiments, the electronic device 100 can include one or N cameras 180, where N is a positive integer greater than one.
[0134] The digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0135] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0136] The NPU is a neural-network (NN) computing processor that learns from the structure of biological neural networks, such as the transmission mode between human brain neurons, to quickly process input information and continuously self-learn. Through the NPU, the electronic device 100 can implement intelligent cognitive applications, such as image recognition, face recognition, speech 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 data storage functions. For example, music, video, etc. files are saved in the external memory card.
[0138] The internal memory 121 can be used to store computer executable program codes including instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like. The data storage area can store data created during use of the electronic device 100 (such as audio data, a phone book, etc.), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various function 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 disposed in the processor.
[0139] The pressure sensor 160A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 160A can be disposed on the display screen 190. There are many types of pressure sensors 160A, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. A capacitive pressure sensor can include at least two parallel plates with conductive material. When a force is applied to 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 is applied to the display screen 190, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 160A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 160A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view a short message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
[0140] The gyroscope sensor 160B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 160B. The gyroscope sensor 160B can be used for anti-shake photography. For example, when the shutter is pressed, the gyroscope sensor 160B detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 160B can also be used for navigation and motion sensing game scenarios.
[0141] The acceleration sensor 160C can detect the magnitude of the acceleration of the electronic device 100 in various directions (typically, three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the electronic device posture, applied to the landscape / portrait screen switching, pedometer, and the like.
[0142] The ambient light sensor 160E is used to sense the ambient light brightness (which can also be referred to as ambient illumination). The electronic device 100 can adaptively adjust the display screen 190 brightness according to the sensed ambient light brightness. The ambient light sensor 160E can also be used to automatically adjust the white balance when taking photos. The touch sensor 160D, also referred to as a "touch device". The touch sensor 160D can be disposed on the display screen 190, and the touch sensor 160D and the display screen 190 form a touch screen, also referred to as a "touch screen". The touch sensor 160D is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. 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 disposed on the surface of the electronic device 100, which is different from the position where the display screen 190 is located.
[0143] The key 170 includes a power-on key, a volume key, and the like. The key 170 can be a mechanical key. It can also be a touch key. The electronic device 100 can 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 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. For example, the software system of the electronic device 100 can adopt an Android operating system (OS) with a layered architecture, a Harmony OS, or an IOS, and the like. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.
[0145] Figure 2 is a software structure block diagram of the electronic device 100 of the embodiments of the present application.
[0146] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. 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] AsFigure 2 As shown, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. applications.
[0149] The application framework layer provides application programming interface (API) and programming framework for the applications of the application layer. The application framework layer includes some pre-defined functions.
[0150] As shown, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc. Figure 2
[0151] The window manager is used to manage window programs. The window manager can acquire the size of the display screen, determine whether there is a status bar, lock the screen, and intercept the screen, etc.
[0152] The content provider is used to store and acquire data, and make the data accessible by the applications. The data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phonebook, etc.
[0153] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, 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 short message notification icon can include a view for displaying text and a view for displaying pictures.
[0154] The phone manager is used to provide the communication function of the electronic device 100. For example, management of call status (including call connection, call hang-up, etc.).
[0155] The resource manager provides various resources for the applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0156] The notification manager makes the applications able to display notification information in the status bar, which can be used to convey messages of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform the completion of download, message reminder, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as a notification of an application running in the background, or a notification in the form of a dialogue window appearing on the screen. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, flickering the indicator light, etc.
[0157] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0158] The core library includes two parts: one part is the function function called by the java language, and the other part is the core library of Android.
[0159] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform the functions of object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0160] The system library can include multiple functional modules. For example: surface manager, media library, three-dimensional 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 provides 2D and 3D layer fusion for multiple applications.
[0162] The media library supports multiple commonly used audio, video format playback and recording, and static image files. The media library can support multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0163] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.
[0164] The 2D graphics engine is a drawing engine for 2D drawing.
[0165] The kernel layer is the layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver.
[0166] The image display method provided by the embodiments of the present application will be described in detail below in combination with the drawings and specific application scenarios.
[0167] Please refer to Figure 3 , Figure 3 A flowchart of an image display method provided by an embodiment of the present application is shown. The method can be applied to an electronic device. The electronic device can be a mobile phone, a tablet computer, a smart television or a notebook computer, etc. electronic device with display screen. As Figure 3 shown, the method can include:
[0168] S301, acquire the first image and the first ambient illuminance, the first image is the image currently displayed by the electronic device, and the first ambient illuminance is the illuminance of the environment where the electronic device is currently located.
[0169] It should be understood that the first image can include an image currently displayed by the electronic device, or an image to be displayed by the electronic device later.
[0170] For example, the electronic device can be provided with a light sensing device, such as an ambient light sensor, which can be used to detect ambient illumination around the electronic device. The electronic device can 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, the electronic device can obtain the ambient illumination detected by the ambient light sensor at a certain time, and can determine the ambient illumination at the time as the first ambient illumination.
[0172] In another possible implementation, the ambient light sensor can obtain ambient illumination of an environment in which the electronic device is currently located at a fixed sampling frequency, to obtain a plurality of ambient illuminations. The electronic device can obtain the first ambient illumination by weightedly averaging the plurality of ambient illuminations. It should be understood that the sampling frequency can be determined according to an actual scenario, and the embodiments of the present application do not make any limitation in this regard.
[0173] Optionally, the condition for triggering the electronic device to perform S301 can be that the display screen of the electronic device is displaying content, or that the electronic device receives a touch instruction of a user, or that the electronic device determines that the environment in which the electronic device is located changes, and the like. The touch instruction can be an instruction generated by the electronic device after detecting a touch operation of a user on the display screen.
[0174] S302, determining a first image brightness corresponding to the first image.
[0175] It can be understood that the first image brightness corresponding to the first image can refer to brightness perceived by a user when the user watches the first image displayed by the electronic device.
[0176] Optionally, the first image brightness corresponding to the first image can be related to ambient illumination of an environment in which the electronic device is currently located (i.e., the first ambient illumination), a peak brightness of the display screen of the electronic device, a gray scale corresponding to the first image, and an angle at which a user watches the first image, and the like. That is, the electronic device can determine the first image brightness corresponding to the first image according to the first ambient illumination, the peak brightness of the display screen of the electronic device, the gray scale corresponding to the first image, and the angle at which the user watches the first image, and the like.
[0177] The gray scale corresponding to the first image can be determined according to an average pixel level (APL) corresponding to the first image, for example, the APL corresponding to the first image can be determined as the gray scale corresponding to the first image. The peak brightness of the display screen of the electronic device can be determined according to attribute information of the electronic device, and the like.
[0178] It should be noted that the embodiments of the present application do not make any limitation on the manner of determining the APL corresponding to the first image, which can be determined according to actual application scenarios. For example, the electronic device can obtain a gray histogram corresponding to the first image, and can determine the APL corresponding to the first image according to the gray histogram.
[0179] In addition, in the embodiments of the present application, the specific manner of determining the first image brightness corresponding to the first image by the electronic device according to the first ambient illuminance, the peak brightness of the display screen of the electronic device, the gray scale corresponding to the first image, and the angle at which the user views the first image can be any existing determination manner, and the embodiments of the present application do not make any limitation thereon.
[0180] S303, determining the first screen brightness corresponding to the electronic device according to the first ambient illuminance and the first image brightness, and adjusting the current screen brightness of the electronic device according to the first screen brightness.
[0181] In the embodiments of the present application, the unit of ambient illuminance can be lux (Lux), the unit of screen brightness can be nit (nits), and the image brightness can be the brightness value perceived by the user, which can not have a unit.
[0182] It should be understood that, in order to ensure that the user has the same subjective perception of the content displayed on the display screen of the electronic device under different environments, the electronic device can determine the first screen brightness corresponding to the electronic device according to the first ambient illuminance and the first image brightness corresponding to the first image, and can adjust the current screen brightness of the electronic device according to the first screen brightness, so that the user has the same subjective perception of the same content (i.e. the first image) displayed by the electronic device under different environments, thereby improving the user experience.
[0183] Optionally, the electronic device can be provided with a corresponding relationship (which can be referred to as a first corresponding relationship below) between the image brightness and the screen brightness under different ambient illuminances. Therefore, the electronic device can determine the first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness, and the first corresponding relationship, 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 under different environments, thereby improving the user experience. The first corresponding relationship between the ambient illuminance, the image brightness, and the screen brightness can be determined according to the photosensitive characteristics of the human eye.
[0184] In one example, the first corresponding relationship between the ambient illuminance, the image brightness, and the screen brightness can be represented by a curve.
[0185] For example, please refer to Figure 4 , Figure 4An example diagram of the first correspondence relationship provided by an embodiment of the present application is shown. In the example diagram, the environment illuminance includes 0Lux, 300Lux, 800Lux, 10000Lux and 40000Lux, and the first correspondence relationship is exemplarily illustrated by a curve.
[0186] It should be understood that the representation of the first correspondence relationship, and the number and values of the environment illuminance in the first correspondence relationship, etc. provided by the embodiments of the present application are not subject to any limitation, and can be specifically determined according to actual application scenarios. For example, the environment illuminance can include 0Lux, 300Lux, 500Lux, 800Lux, 2000Lux, 5000Lux, 10000Lux, 20000Lux and 40000Lux, etc. according to actual scenarios.
[0187] As shown in FIG. 1, Figure 4 When the environment illuminance is 0Lux, the first correspondence relationship between the image brightness and the screen brightness can be curve a; when the environment illuminance is 300Lux, the first correspondence relationship between the image brightness and the screen brightness can be curve b; when the environment illuminance is 800Lux, the first correspondence relationship between the image brightness and the screen brightness can be curve c; when the environment illuminance is 10000Lux, the first correspondence relationship between the image brightness and the screen brightness can be curve d; and when the environment illuminance is 40000Lux, the first correspondence relationship between the image brightness and the screen brightness can be curve e.
[0188] In the curves a, b, c, d and e, the horizontal axis is the screen brightness, and the vertical axis is the image brightness. Figure 4
[0189] As can be known from the curve a, when the first ambient illuminance is 0 Lux, if the first image brightness is 80, it can be determined that the first screen brightness corresponding to the electronic device is 70 nits, that is, in the environment of 0 Lux, adjusting the screen brightness of the electronic device to 70 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the 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 the environment of 0 Lux, adjusting the screen brightness of the electronic device to 50 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 70; if the 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 the environment of 0 Lux, adjusting the screen brightness of the electronic device to 30 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the 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 the environment of 0 Lux, adjusting the screen brightness of the electronic device to 10 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0190] As can be known from the curve b, when the first ambient illuminance is 300 Lux, if the first image brightness is 80, it can be determined that the first screen brightness corresponding to the electronic device is 120 nits, that is, in the environment of 300 Lux, adjusting the screen brightness of the electronic device to 120 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the first image brightness is 70, it can be determined that the first screen brightness corresponding to the electronic device is 100 nits, that is, in the environment of 300 Lux, adjusting the screen brightness of the electronic device to 100 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 70; if the first image brightness is 60, it can be determined that the first screen brightness corresponding to the electronic device is 85 nits, that is, in the environment of 300 Lux, adjusting the screen brightness of the electronic device to 85 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the first image brightness is 50, it can be determined that the first screen brightness corresponding to the electronic device is 75 nits, that is, in the environment of 300 Lux, adjusting the screen brightness of the electronic device to 75 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0191] As can be known from the curve c, when the first ambient illuminance is 800 Lux, if the first image brightness is 80, it can be determined that the first screen brightness corresponding to the electronic device is 150 nits, that is, in the 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 be 80; if the first image brightness is 70, it can be determined that the first screen brightness corresponding to the electronic device is 120 nits, that is, in the 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 be 70; if the first image brightness is 60, it can be determined that the first screen brightness corresponding to the electronic device is 102 nits, that is, in the environment of 800 Lux, adjusting the screen brightness of the electronic device to 102 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the first image brightness is 50, it can be determined that the first screen brightness corresponding to the electronic device is 90 nits, that is, in the environment of 800 Lux, adjusting the screen brightness of the electronic device to 90 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0192] As can be known from the curve d, when the first ambient illuminance is 10000 Lux, if the first image brightness is 80, it can be determined that the first screen brightness corresponding to the electronic device is 800 nits, that is, in the environment of 10000 Lux, adjusting the screen brightness of the electronic device to 800 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 80; if the first image brightness is 70, it can be determined that the first screen brightness corresponding to the electronic device is 700 nits, that is, in the 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 be 70; if the first image brightness is 60, it can be determined that the first screen brightness corresponding to the electronic device is 600 nits, that is, in the environment of 10000 Lux, adjusting the screen brightness of the electronic device to 600 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 60; if the first image brightness is 50, it can be determined that the first screen brightness corresponding to the electronic device is 500 nits, that is, in the environment of 10000 Lux, adjusting the screen brightness of the electronic device to 500 nits can make the first image brightness corresponding to the first image displayed by the electronic device be 50, and so on.
[0193] It can be determined that the first screen brightness corresponding to the electronic device is 1500 nits when the first image brightness is 80, i.e., in the environment of 40000 Lux, the screen brightness of the electronic device is adjusted to 1500 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 80; it can be determined that the first screen brightness corresponding to the electronic device is 1200 nits when the first image brightness is 70, i.e., in the environment of 40000 Lux, the screen brightness of the electronic device is adjusted to 1200 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 70; it can be determined that the first screen brightness corresponding to the electronic device is 1000 nits when the first image brightness is 60, i.e., in the environment of 40000 Lux, the screen brightness of the electronic device is adjusted to 1000 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 60; it can be determined that the first screen brightness corresponding to the electronic device is 900 nits when the first image brightness is 50, i.e., in the environment of 40000 Lux, the screen brightness of the electronic device is adjusted to 900 nits, so that the first image brightness corresponding to the first image displayed by the electronic device is 50, and so on.
[0194] That is, when it is necessary to ensure that the first image brightness corresponding to the first image is 80, the screen brightness of the electronic device needs to be adjusted to 70 nits when the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits when the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 150 nits when the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 800 nits when the first ambient illuminance is 10000 Lux, and the screen brightness of the electronic device needs to be adjusted to 1500 nits when the first ambient illuminance is 40000 Lux.
[0195] When it is necessary to ensure that the first image brightness corresponding to the first image is 70, the screen brightness of the electronic device needs to be adjusted to 50 nits when the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 100 nits when the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 120 nits when the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 700 nits when the first ambient illuminance is 10000 Lux, and the screen brightness of the electronic device needs to be adjusted to 1200 nits when the first ambient illuminance is 40000 Lux.
[0196] When it is required to ensure that the first image corresponds to a first image brightness of 60, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 30 nits. If the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 85 nits; if the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 102 nits; if the first ambient illuminance is 10,000 Lux, the screen brightness of the electronic device needs to be adjusted to 600 nits; and if the first ambient illuminance is 40,000 Lux, the screen brightness of the electronic device needs to be adjusted to 1,000 nits.
[0197] When it is required to ensure that the first image corresponds to a first image brightness of 50, if the first ambient illuminance is 0 Lux, the screen brightness of the electronic device needs to be adjusted to 10 nits; if the first ambient illuminance is 300 Lux, the screen brightness of the electronic device needs to be adjusted to 75 nits; if the first ambient illuminance is 800 Lux, the screen brightness of the electronic device needs to be adjusted to 90 nits; if the first ambient illuminance is 10,000 Lux, the screen brightness of the electronic device needs to be adjusted to 500 nits; and if the first ambient illuminance is 40,000 Lux, the screen brightness of the electronic device needs to be adjusted to 900 nits.
[0198] In a possible implementation, after determining the first ambient illuminance, if it is determined that there is no ambient illuminance in the first corresponding relationship that is the same as the first ambient illuminance, the electronic device can determine that the ambient illuminance in the first corresponding relationship that is closest to the first ambient illuminance (hereinafter referred to as ambient illuminance A), and can determine the first screen brightness corresponding to the electronic device according to the ambient illuminance A, the first image brightness, and the first corresponding relationship.
[0199] It can be understood that the closest ambient illuminance A can refer to the ambient illuminance in the first corresponding relationship that has the smallest absolute value of the difference from the first ambient illuminance.
[0200] For example, in the first corresponding relationship shown in FIG. 2, if the first ambient illuminance is 300 Lux, the closest ambient illuminance A is 200 Lux. Figure 4In the application scenario shown, when the first ambient illuminance is 789 Lux, the electronic device can determine that there is no ambient illuminance in the first correspondence that is exactly the same as the first ambient illuminance (i.e., 789 Lux). At this time, the electronic device can determine the ambient illuminance A closest to the first ambient illuminance in the first correspondence, i.e., determine that ambient illuminance A is 800 Lux. Assuming that the brightness of the first image corresponding to the first image is 80 nits, the electronic device can determine that the brightness of the first screen corresponding to the electronic device is 150 nits based on the ambient illuminance A (i.e., 800 Lux), the brightness of the first image (i.e., 80 nits), and the first correspondence (i.e., curve c). In other words, when the first ambient illuminance is 789 Lux, adjusting the screen brightness of the electronic device to 150 nits will make the brightness of the first image currently displayed by the electronic device close to 80 nits.
[0201] For example, in Figure 4 In the application scenario shown, when the detected first ambient illuminance is 9000 Lux, the electronic device can determine that there is no ambient illuminance in the first correspondence that is exactly the same as the first ambient illuminance (i.e., 9000 Lux). At this time, the electronic device can determine the ambient illuminance A closest to the first ambient illuminance in the first correspondence, i.e., determine that ambient illuminance A is 10000 Lux. Assuming that the brightness of the first image corresponding to the first image is 70 nits, the electronic device, based on ambient illuminance A (i.e., 10000 Lux), the brightness of the first image (i.e., 70 nits), and the first correspondence (i.e., curve d), can determine that the brightness of the first screen corresponding to the electronic device is 700 nits. That is, when the first ambient illuminance is 9000 Lux, adjusting the screen brightness of the electronic device to 700 nits will make the brightness of the first image currently displayed by the electronic device close to 70 nits.
[0202] It should be noted that the above-described storage of the first correspondence in the electronic device is only an exemplary interpretation and should not be construed as a limitation on the embodiments of this application. In the embodiments of this application, the first correspondence 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 this embodiment of the application, after determining the first screen brightness according to the first correspondence relationship described above, the electronic device can adjust the current screen brightness of the electronic device according to the first screen brightness, so as to ensure that the user's subjective feeling of the first image is the same in different environments and improve the user experience.
[0204] It can be understood that the screen brightness can include the backlight brightness of the electronic device and the gray scale brightness of the first image, that is, the current screen brightness of the electronic device can be the combination of the current backlight brightness of the electronic device and the current gray scale brightness of the first image. Wherein, adjusting the system gamma of the electronic device can adjust the gray scale brightness of the first image. Therefore, after determining the first screen brightness corresponding to the electronic device, the electronic device can 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 can adjust the current backlight brightness of the electronic device according to the first screen brightness. For example, the electronic device can adjust the system gamma of the electronic device according to the first screen brightness. For example, the electronic device can adjust the current backlight brightness and the system gamma of the electronic device according to the first screen brightness. Wherein, the specific content of the electronic device adjusting according to the first screen brightness can be determined according to the actual scene, and the embodiments of the present application do not make any limitation thereto.
[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 can adjust the current backlight brightness of the electronic device to the maximum value of the backlight brightness, to display the first image according to the maximum value of the backlight brightness. Similarly, when the first screen brightness is less than the minimum value of the backlight brightness of the electronic device, the electronic device can adjust the current backlight brightness of the electronic device to the minimum value of the backlight brightness, to display the first image according to the minimum value of the backlight brightness. That is, limited by the hardware constraints of the display screen, the maximum value and the minimum value of the backlight brightness can be set in the electronic device, 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 value of the backlight brightness, if the current screen brightness of the electronic device is still less than the first screen brightness, the electronic device can 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 value of the backlight brightness, if the current screen brightness of the electronic device is still greater than the first screen brightness, the electronic device can 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 a region (such as a face region, etc.) in the first image that needs to be adjusted in brightness, the electronic device can adjust the system gamma of the electronic device according to the first screen brightness, or can 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 make any limitation 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 the adjustment manner can be determined according to actual scenarios.
[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, so as to adjust the screen brightness of the electronic device without the user's perception. The adjustment step can be determined according to actual scenarios, and the embodiments of the present application do not make any limitation thereon.
[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, and the user experience is improved.
[0213] In a possible implementation, the electronic device can also adjust the color saturation of the first image according to the first ambient illuminance, so that the color saturation of the first image displayed by the electronic device is the same in different environments, thereby making the user's subjective feeling of viewing the first image the same in different environments, and improving the user experience.
[0214] For example, the electronic device can determine the color compensation coefficient corresponding to the first image according to the first ambient illuminance, 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 is adjusted according to the final color saturation of the first image, so as to adjust the color saturation of the first image to the final color saturation.
[0215] It should be understood that the above-mentioned manner of adjusting the color saturation of the first image according to the color compensation coefficient is only an exemplary explanation, and should not be understood as a limitation on the embodiments of the present application. The adjustment manner of the color saturation can be determined according to specific application scenarios.
[0216] Optionally, the electronic device can store a correspondence between the ambient illuminance, the screen reflectance and the screen gamut (hereinafter referred to as the second correspondence). The screen reflectance can be used to represent the degree of light reflection of the display screen of the electronic device. Different electronic devices can have different screen reflectances, or the same screen reflectance. The second correspondence can be determined in advance by measuring the influence of different ambient illuminances on the screen gamut corresponding to the electronic device under different screen reflectances.
[0217] For example, refer to Figure 5a , Figure 5a FIG. 1 shows a test example diagram of the screen gamut according to an embodiment of the present application.
[0218] As Figure 5a shown, for electronic devices 501 with different screen reflectances, the screen gamut corresponding to the electronic devices can be obtained by a spectrometer 502 under the irradiation of LED lamps 503 with different illuminances, so as to determine the second correspondence between the ambient illuminance, the screen reflectance and the screen gamut. The illuminance of the LED lamps 503 can be measured by an illuminance meter 504 or the like.
[0219] Therefore, the electronic device can obtain the screen reflectance of the electronic device, and can determine the first screen gamut corresponding to the electronic device according to the first ambient illuminance, the screen reflectance and the second correspondence. Subsequently, the electronic device can determine the color compensation coefficient corresponding to the first image according to the first screen gamut and the second screen gamut, so as to compensate the color saturation of the first image according to the color compensation coefficient. The second screen gamut can be the screen gamut corresponding to the electronic device under the second ambient illuminance. That is, the second screen gamut can be determined according to the second ambient illuminance, the screen reflectance and the second correspondence.
[0220] Optionally, the second ambient illuminance is different from the first ambient illuminance. That is, the second ambient illuminance and the first ambient illuminance can be the illuminances of different environments. The second ambient illuminance can be the illuminance of the environment in which the electronic device is located before the use environment of the electronic device is switched to the current environment. For example, when the use environment of the electronic device is switched from environment A (such as an indoor environment) to environment B (such as an outdoor environment), the first ambient illuminance can be the illuminance of environment B, and the second ambient illuminance can be the illuminance of environment A, so as to compensate the color saturation of the first image according to the illuminance of the environment in which the electronic device is located before the switch and the illuminance of the current environment in which the electronic device is located, ensure the consistency of the subjective feeling of the user to the first image in different environments, and improve the user experience.
[0221] It should be understood that the color gamut can be used to represent the range of colors that the display screen of the electronic device can display. Among them, 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, which are sRGB, NTSC and AdobeRGB.
[0222] Optionally, the electronic device can determine the color compensation coefficient corresponding to the first image according to the 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 can 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 can determine that the color compensation coefficient corresponding to the first image is 1.25.
[0225] In the embodiments of the present application, the screen color gamut corresponding to the electronic device refers to the observable color gamut corresponding to the electronic device. The observable color gamut refers to the range of colors that can be observed in the display screen of the electronic device under a certain environmental illuminance. That is, the first screen color gamut corresponding to the electronic device refers to the range of colors that can be observed in the display screen of the electronic device under the first environmental illuminance. The second screen color gamut corresponding to the electronic device refers to the range of colors that can be observed in the display screen of the electronic device under the second environmental illuminance.
[0226] Please refer to 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 dashed area can be the range of colors corresponding to a certain color gamut standard, for example, it can be the range of colors corresponding to sRGB, NTSC or AdobeRGB, etc. Different triangular areas can be the observable color gamut corresponding to a certain electronic device under different environmental illuminances.
[0227] As Figure 5b shown, for the same electronic device, the observable color gamut corresponding to the electronic device is not the same under different environmental illuminances. Among them, for the same electronic device, the larger the environmental illuminance, the smaller the observable color gamut corresponding to the electronic device.
[0228] It should be understood that for each electronic device with different screen reflectivity, the observable color gamut corresponding to each electronic device is also not the same under the same environmental illuminance. Among them, under the same environmental illuminance, the lower the screen reflectivity, the larger the observable color gamut corresponding to the electronic device.
[0229] It should be noted that the above-mentioned saving of the second correspondence relationship in the electronic device is only an exemplary explanation and should not be understood as a limitation on the embodiments of the present application. In the embodiments of the present application, the second correspondence relationship can also be saved in other devices in communication connection with the electronic device, for example, can be saved in a cloud or other electronic devices in communication connection with 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 color compensation coefficient will cause the first image to appear color oversaturation when the color compensation coefficient is used to compensate the color saturation of the first image. When the first image will appear color oversaturation, for example, when there is a pixel value greater than 255 in the compensated first image after the color compensation coefficient is used to compensate the color saturation of the first image, the electronic device can determine that the first image will appear color oversaturation, at this time, the electronic device can determine the maximum pixel value in the first image, and can determine the final color compensation coefficient corresponding to the first image according to the maximum pixel value in the first image and 255, so as to compensate the color saturation of the first image according to the final color compensation coefficient corresponding to the first image, to avoid the first image appearing color oversaturation.
[0231] For example, when the maximum pixel value in the first image is 200, the electronic device can determine that the final color compensation coefficient corresponding to the first image is 255 / 200, that is, the electronic device can use 255 / 200 to compensate 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 final color compensation coefficient corresponding to the first image is 255 / 225, that is, the electronic device can use 255 / 225 to compensate the color saturation of the first image, and so on.
[0232] For example, when the maximum pixel value in the first image is 200, the electronic device can determine that the final color compensation coefficient corresponding to the first image is 255 / 200, that is, the electronic device can use 255 / 200 to compensate 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 final color compensation coefficient corresponding to the first image is 255 / 225, that is, the electronic device can use 255 / 225 to compensate the color saturation of the first image, and so on.
[0233] Please refer to Figure 6 , Figure 6 A flowchart of an image display method provided by another embodiment of the present application is shown. The method can be applied to an electronic device. The electronic device can be a mobile phone, a tablet computer, a smart television or a notebook computer, etc. electronic device with a display screen. As Figure 6 shown, the method can include:
[0234] S601, obtaining a first ambient illuminance, the first ambient illuminance being the illuminance of the 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 illuminance in S301, and will not be repeated here.
[0236] S602, determine a color compensation coefficient corresponding to the first image according to the first ambient illuminance and the screen reflectivity of the electronic device.
[0237] It should be understood that the first image can be an image currently displayed by the electronic device, or can include an image to be displayed by the electronic device. Details of how the electronic device determines the color compensation coefficient corresponding to the first image according to the first ambient illuminance and the screen reflectivity of the electronic device can be referred to the foregoing related content of determining the color compensation coefficient, and will not be described here.
[0238] For example, the electronic device can be provided with a second correspondence relationship between the ambient illuminance, the screen reflectivity and the screen gamut. The electronic device can determine a first screen gamut corresponding to the electronic device according to the first ambient illuminance, the screen reflectivity of the electronic device and the second correspondence relationship, and determine the color compensation coefficient corresponding to the first image according to the first screen gamut and a second screen gamut, the second screen gamut being a screen gamut corresponding to the electronic device under a second ambient illuminance.
[0239] S603, adjust the color saturation of the first image according to the color compensation coefficient, and display the first image with the adjusted color saturation.
[0240] It should be understood that details of how the electronic device adjusts the color saturation of the first image according to the color compensation coefficient can be referred to the foregoing related content of adjusting the color saturation, and will not be described here.
[0241] In one example, the electronic device can further determine a first image brightness corresponding to the first image. Subsequently, the electronic device can determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance and the first image brightness, and can adjust the current screen brightness of the electronic device according to the first screen brightness, so as to display the first image with the adjusted color saturation according to the adjusted screen brightness.
[0242] Details of how the electronic device determines the first image brightness corresponding to the first image and determines the first screen brightness can be referred to the foregoing related content of determining the first image brightness corresponding to the first image and determining the first screen brightness, and will not be described here.
[0243] For example, the electronic device can be provided with a first correspondence relationship between the image brightness and the screen brightness under different ambient illuminances. The electronic device can determine the first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness and the first correspondence relationship.
[0244] Please refer to Figure 7 , Figure 7 A structural schematic diagram of an electronic device provided by another embodiment of the present application is shown.
[0245] As shown in Figure 7 , the electronic device 100 can include a light sensing 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. Among them, the storage unit 707 can store a first corresponding relationship between the screen brightness and the image brightness under different ambient illuminance.
[0246] The light sensing device 701 can be used to sense the illuminance of the environment where the electronic device 100 is currently located, that is, the first ambient illuminance. It should be understood that the light sensing device 701 can be an ambient light sensor or the like.
[0247] The screen brightness calculation unit 702 can be used to determine the first image brightness corresponding to the first image, and determine the first screen brightness corresponding to the electronic device 100 according to the first ambient illuminance and the first image brightness.
[0248] For example, the screen brightness calculation unit 702 can be used to determine the first screen brightness corresponding to the electronic device 100 according to the first ambient illuminance, the first image brightness, and the first corresponding relationship stored in the storage unit 707.
[0249] The brightness control unit 703 can be used to control the current screen brightness of the electronic device 100 according to the first screen brightness.
[0250] The display unit 706 can be used to display the first image. For example, the display unit 706 can be used to display the first image under the first screen brightness.
[0251] In one example, the histogram analysis unit 704 can be used to determine the gray scale histogram corresponding to the first image.
[0252] The screen brightness calculation unit 702 can also be used to determine the gray scale corresponding to the first image according to the gray scale histogram corresponding to the first image, determine the first image brightness corresponding to the first image according to the first ambient illuminance, the peak brightness of the display screen of the electronic device 100, the gray scale 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 according to the first ambient illuminance and the first image brightness.
[0253] In another example, the electronic device 100 can also include a color calculation unit (not shown in Figure 7 ). Among them, the storage unit 707 can also store a second corresponding relationship between the ambient illuminance, the screen reflectivity, and the screen gamut.
[0254] The color calculating unit can be configured to determine a first screen gamut corresponding to the electronic device 100 according to the first ambient illuminance, the screen reflectivity of the electronic device 100, and a second correspondence relationship stored in the storage unit 707, i.e., determine the screen gamut of the electronic device 100 in the current environment.
[0255] The color calculating unit can also be configured to determine a second screen gamut corresponding to the electronic device 100 according to the second ambient illuminance, the screen reflectivity of the electronic device 100, and the second correspondence relationship, i.e., determine the screen gamut of the electronic device 100 in the second ambient illuminance. The second ambient illuminance can be the illuminance of the environment in which the electronic device 100 is located before switching to the current environment.
[0256] In one example, the electronic device 100 can further include a signal compensation calculating unit 705 and an output signal converting unit 708.
[0257] The signal compensation calculating unit 705 can be configured to determine a color compensation coefficient corresponding to the first image according to the first screen gamut and the second screen gamut, and determine the signal value (e.g., pixel value) of each signal (e.g., pixel) in the first image according to the color compensation coefficient.
[0258] The output signal converting unit 708 can be configured to convert each signal in the first image according to the signal value determined by the signal compensation calculating unit 705, and output the converted signal value of the first image to the display unit 706.
[0259] The display unit 706 can also be configured to display the first image according to the signal value output by the output signal converting unit 708.
[0260] In the embodiments of the present application, the electronic device can obtain a first image currently displayed by the electronic device and a first ambient illuminance of the environment in which the electronic device is currently located, and can determine a first image brightness corresponding to the first image. Subsequently, the electronic device can determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance 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, the embodiments of the present application can adjust the screen brightness of the electronic device according to the first ambient illuminance of the environment in which the electronic device is currently located and the first image brightness corresponding to the first image currently displayed by the electronic device, so that the subjective experience of a user viewing the same content (i.e., the first image) in different environments is consistent, and the user experience is improved.
[0261] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent 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 embodiments, the embodiments of the present application further provide an image display device, each module of the device can correspond to implement each step of the image display method.
[0263] It should be noted that the information interaction, execution process and the like between the above devices / units are based on the same concept as the method embodiments of the present application, and the specific functions and the technical effects brought by the same can be referred to the method embodiments part, which will not be described here.
[0264] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or software. In addition, the specific name of each functional unit and module is only for easy distinction, and does not limit the protection scope of the present application. The specific working process of the unit and module in the system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0265] The embodiments of the present application further provide an electronic device, which includes 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, and the processor executes the computer program to enable the electronic device to implement the steps in any of the above method embodiments. For example, the structure of the electronic device can be as shown in Figure 1 .
[0266] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a computer to enable the computer to implement the steps in any of the above method embodiments.
[0267] The embodiments of the present application provide a computer program product, which enables an electronic device to implement the steps in any of the above method embodiments when the computer program product is run on the electronic device.
[0268] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above-mentioned embodiment methods through a computer program to instruct relevant hardware to complete, and the computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable storage medium at least includes any entity or device capable of carrying the computer program code to the device / equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable storage medium can not be an electrical carrier signal and a telecommunication signal.
[0269] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0270] Those of ordinary skill in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0271] In the embodiments provided by the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, indirect coupling or communication connection between devices or units, which can be electrical, mechanical or other forms.
[0272] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected to achieve the purpose of the embodiment scheme according to actual needs.
[0273] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. An image display method characterized by, The method is applied to an electronic device, and the method comprises: obtaining a first image and a first ambient illuminance, the first image being an image currently displayed by the electronic device, and the first ambient illuminance being an illuminance 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 illuminance and the first image brightness, and adjusting a current screen brightness of the electronic device according to the first screen brightness; determining a first screen color gamut corresponding to the electronic device according to the first ambient illuminance, a screen reflectivity of the electronic device, and a second correspondence relationship, the first screen color gamut being a screen color gamut corresponding to the electronic device under the first ambient illuminance, and the second correspondence relationship being a correspondence relationship between an ambient illuminance, a screen reflectivity, and a screen color gamut; determining a color compensation coefficient corresponding to the first image according to the first screen color gamut and a second screen color gamut, the second screen color gamut being a screen color gamut corresponding to the electronic device under a second ambient illuminance, the second screen color gamut being determined according to the second ambient illuminance, the screen reflectivity, and the second correspondence relationship; adjusting a color saturation of the first image according to the color compensation coefficient; displaying the first image according to the first screen brightness and the adjusted color saturation.
2. The method of claim 1, wherein, The electronic device stores a first correspondence relationship between image brightness and screen brightness under different ambient illuminances. The determination of the first screen brightness corresponding to the electronic device according to the first ambient illuminance and the first image brightness comprises: determining the first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness, and the first correspondence relationship.
3. The method of claim 1, wherein, The second ambient illuminance is an ambient illuminance before switching to the first ambient illuminance.
4. The method according to any one of claims 1 to 3, characterized in that, The electronic device stores the second correspondence relationship between an ambient illuminance, a screen reflectivity, and a screen color gamut.
5. An image display method characterized by The method is applied to an electronic device, and the method comprises: obtaining a first ambient illuminance, the first ambient illuminance being an illuminance of an environment in which the electronic device is currently located; determining a first screen color gamut corresponding to the electronic device according to the first ambient illuminance, a screen reflectivity of the electronic device, and a second correspondence relationship, the first screen color gamut being a screen color gamut corresponding to the electronic device under the first ambient illuminance, and the second correspondence relationship being a correspondence relationship between an ambient illuminance, a screen reflectivity, and a screen color gamut; determining a color compensation coefficient corresponding to a first image currently displayed according to the first screen color gamut and a second screen color gamut, the second screen color gamut being a screen color gamut corresponding to the electronic device under a second ambient illuminance, the second screen color gamut being determined according to the second ambient illuminance, the screen reflectivity, and the second correspondence relationship; adjusting a color saturation of the first image according to the color compensation coefficient, and displaying the first image with the adjusted color saturation.
6. The method of claim 5, wherein, The second ambient illuminance is an ambient illuminance before switching to the first ambient illuminance.
7. The method according to claim 5 or 6, characterized in that, The electronic device stores the second correspondence relationship between the ambient illuminance, the screen reflectivity and the screen gamut.
8. An electronic device, comprising: The electronic device comprises a light sensing device, a processor and a display screen: The light sensing device is configured to acquire a first ambient illuminance, the first ambient illuminance being the illuminance of an environment where the electronic device is currently located. The processor is configured to acquire a first image, the first image being 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 illuminance 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 first screen gamut corresponding to the electronic device according to the first ambient illuminance, a screen reflectivity of the electronic device and a second correspondence relationship. A color compensation coefficient corresponding to the first image is determined according to the first screen gamut and a second screen gamut, and a color saturation of the first image is adjusted according to the color compensation coefficient. The first screen gamut is a screen gamut corresponding to the electronic device under the first ambient illuminance, and the second screen gamut is a screen gamut corresponding to the electronic device under a second ambient illuminance, the second screen gamut being determined according to the second ambient illuminance, the screen reflectivity and the second correspondence relationship, the second correspondence relationship being a correspondence relationship between the ambient illuminance, the screen reflectivity and the screen gamut. The display screen is configured to display the first image with the adjusted color saturation under the first screen brightness.
9. The electronic device of claim 8, wherein, The electronic device stores a first correspondence relationship between image brightness and screen brightness under different ambient illuminances. The processor is further configured to determine a first screen brightness corresponding to the electronic device according to the first ambient illuminance, the first image brightness and the first correspondence relationship.
10. The electronic device of claim 8, wherein, The second ambient illuminance is an ambient illuminance before switching to the first ambient illuminance.
11. The electronic device of any of claims 8-10, wherein, The electronic device stores the second correspondence relationship between the ambient illuminance, the screen reflectivity and the screen gamut.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor, when executing the computer program, causes the electronic device to implement the image display method according to any one of claims 1 to 4 or claims 5 to 7.
13. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, The computer program, when executed by a computer, causes the computer to implement the image display method according to any one of claims 1 to 4 or claims 5 to 7.
Citation Information
Patent Citations
Backlight brightness adjusting method and device thereof
CN111462701A
Ambient light color compensation systems and methods for electronic device displays
US20190318696A1