Display method and electronic equipment
By generating compensation images and N-frame compensation sequences, the screen pixels are used in a balanced manner, which solves the screen burn-in problem caused by all-weather display, achieves balanced screen brightness, and prevents pixel aging.
Patent Information
- Application Number
- CN202310475872.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-04-25
AI Technical Summary
The all-weather display function causes the screen pixels of electronic devices to age and cause screen burn-in, especially when a certain area is displayed at high brightness for a long time, resulting in insufficient screen brightness and burn-in marks.
By generating a compensation image and N-frame compensation sequence diagram, the screen pixels are used in a balanced manner to prevent individual pixels from aging. The pixel unit is used as the processing unit to replace the brightness value of the original image with the brightness value of the compensation image. A multi-frame compensation sequence diagram is generated and processed according to the preset Set dynamic display parameters for display to reduce pixel aging.
It effectively prevents the aging of screen pixels caused by long-term display of a single image, maintains a balanced screen brightness, avoids screen burn-in, and ensures user experience.
Smart Images

Figure CN118840955A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image display technology, and in particular to a display method and an electronic device. Background Art
[0002] Always on display (AOD) is a function that allows electronic devices to display various types of information around the clock. This function supports electronic devices to display pictures, clock controls, etc. when the screen is off.
[0003] The AOD function requires electronic devices to display content for a long time. Depending on the displayed content, the usage of different pixels on the screen is different. If the pixels in an area are displayed at high brightness for a long time, the degree of pixel aging in this area will be higher than that in other areas of the screen. The pixels in this area will not display bright enough, causing the aging area of the pixels on the screen to have burn-in marks when the electronic device displays other content. This phenomenon is called "screen burn-in". Summary of the invention
[0004] The present application provides a display method and an electronic device for preventing the screen burn-in problem caused by the all-weather display function.
[0005] In a first aspect, the present application provides a display method, which can be performed by an electronic device. The method includes:
[0006] The electronic device acquires an original image. The electronic device generates a compensated image based on the original image, wherein the brightness value of each pixel in the compensated image is related to the brightness value of the corresponding pixel in the original image. The electronic device generates an N-frame compensation sequence diagram based on the original image and the compensated image, and displays the original image and the N-frame compensation sequence diagram according to preset dynamic display parameters.
[0007] In this method, the electronic device can generate a compensated image based on the original image, and then generate an N-frame compensation sequence diagram based on the original image and the compensated image. By displaying the original image and the N-frame compensation sequence diagram, the electronic device can evenly use each pixel in the screen for display, thereby preventing the burn-in problem caused by the high degree of aging of individual pixels when the same image is displayed for a long time.
[0008] In one possible design, generating a compensated image based on the original image includes: calculating the brightness value of each pixel in the compensated image based on the brightness value of each pixel in the original image and a preset brightness value; or calculating the brightness value of each pixel in the compensated image based on the brightness value of each pixel in the original image and an average brightness value of the original image; or calculating the brightness value of each pixel in the compensated image based on the brightness value of each pixel in the original image and the highest brightness value of the original image.
[0009] Through this design, the present application provides multiple methods for generating compensated images. After the compensated images generated based on the above methods are superimposed on the original image, a white or gray image can be obtained, so that the compensated images can be used to compensate for the attenuation of screen pixel brightness when the electronic device displays the original image.
[0010] In a possible design, the N-frame compensation sequence diagram includes a first compensation sequence diagram, a second compensation sequence diagram, a third compensation sequence diagram and a fourth compensation sequence diagram; the N-frame compensation sequence diagram is generated according to the original image and the compensated image, including: replacing the brightness value of the pixel unit at the first position in the original image with the brightness value of the pixel unit at the first position of the compensated image to obtain the first compensation sequence diagram, the first position is a pixel unit position whose row number and column number are both odd numbers; a pixel unit includes adjacent Y pixels, Y is a positive integer; replacing the brightness value of the pixel unit at the second position in the original image with the brightness value of the pixel unit at the second position of the compensated image The second compensation sequence diagram is obtained by replacing the brightness value of the pixel unit at the third position in the original image with the brightness value of the pixel unit at the third position of the compensated image, where the second position is the pixel unit position with an even row number and an odd column number; the third compensation sequence diagram is obtained by replacing the brightness value of the pixel unit at the third position in the original image with the brightness value of the pixel unit at the third position of the compensated image, where the third position is the pixel unit position with an even row number and a column number; the fourth compensation sequence diagram is obtained by replacing the brightness value of the pixel unit at the fourth position in the original image with the brightness value of the pixel unit at the fourth position of the compensated image, where the fourth position is the pixel unit position with an odd row number and an even column number.
[0011] Through this design, the electronic device can use the pixel unit as the processing unit, and replace the brightness values of the pixel units at the odd and even numbered positions in the original image with the brightness values of the pixel units at the corresponding positions in the compensated image, respectively, to obtain four compensation sequence diagrams. The display effect of the compensation sequence diagram will not be significantly different from that of the original image, and displaying the compensation sequence diagram can achieve the effect of balancing the usage of each pixel on the screen.
[0012] In a possible design, generating N frames of compensation sequence diagrams based on the original image and the compensated image includes: replacing the brightness value of the i-th row of pixel units in the original image with the brightness value of the i-th row of pixel units in the compensated image to obtain the i-th frame of compensation sequence diagram; i is a positive integer less than N, and N is the total number of rows of pixel units in the original image; a pixel unit includes Y adjacent pixels, and Y is a positive integer.
[0013] Through this design, the electronic device can use the pixel unit as the processing unit, and replace the brightness value of each row of pixel units in the original image with the brightness value of the pixel unit at the corresponding position in the compensated image, and obtain N compensation sequence images. In each compensation sequence image, there is a row of pixel units whose brightness value is different from the original image. Therefore, the display effect of each frame of the compensation sequence image will not be significantly different from the original image, ensuring the user experience. At the same time, the electronic device displays the N frames of compensation sequence images obtained in the above manner to prevent each pixel in the screen from displaying a single image for a long time, causing screen burn-in.
[0014] In a possible design, generating N frames of compensation sequence diagrams based on the original image and the compensated image includes: replacing the brightness value of the i-th column of pixel units in the original image with the brightness value of the i-th column of pixel units in the compensated image to obtain the i-th frame of compensation sequence diagram; i is a positive integer less than N, and N is the total number of pixel columns in the original image; a pixel unit includes Y adjacent pixels, and Y is a positive integer.
[0015] Through this design, the electronic device can use the pixel unit as the processing unit, and replace the brightness value of each column of pixel units in the original image with the brightness value of the pixel unit at the corresponding position in the compensated image, and obtain N compensation sequence images. In each compensation sequence image, there is a column of pixel units whose brightness value is different from the original image, so the display effect of each frame of the compensation sequence image will not be significantly different from the original image, ensuring the user experience. At the same time, the electronic device displays the N frames of compensation sequence images obtained in the above manner to prevent each pixel in the screen from displaying a single image for a long time, causing screen burn-in.
[0016] In a possible design, generating the compensated image according to the original image includes: preprocessing the original image, and generating the compensated image according to the preprocessed original image;
[0017] Among them, the preprocessing includes at least one of the following: determining a target area in the original image whose brightness is greater than a set threshold, and reducing the brightness of the target area; reducing the brightness of the original image; dividing the original image into multiple areas, and adjusting the brightness of each area separately; setting the size of the original image according to the size of the display area, and the size of the original image after setting is larger than the size of the display area.
[0018] Through this design, the electronic device can first preprocess the original image. The burn-in risk of the preprocessed original image is already lower than that of the original image. Generating a compensated image based on the preprocessed original image can further ensure the anti-burn-in effect of the display method provided in the embodiment of the present application.
[0019] In a possible design, the original image and the N-frame compensation sequence diagram are displayed according to preset dynamic display parameters, including: calculating the total number of frames of the original image and the compensation sequence diagram displayed within a preset time length according to the preset dynamic display parameters, and calculating the number of frames P of the original image displayed within the preset time length and the number of frames Q of the compensation sequence diagram displayed within the preset time length according to a preset display ratio and the total number of frames; P and Q are positive integers; the original image and the N-frame compensation sequence diagram are displayed with the preset time length as the dynamic effect period, and P frames of original images and Q frames of compensation sequence diagram are displayed in each dynamic effect period; the Q frame compensation sequence diagram belongs to the N frame compensation sequence diagram.
[0020] Through this design, the electronic device can determine the dynamic effect cycle of the electronic device displaying the original image and N frames of compensation sequence diagram according to the preset dynamic display parameters, as well as the number of frames P of the original image displayed in each dynamic effect cycle and the number of frames Q of the compensation sequence diagram displayed. The electronic device can display P frames of original images and Q frames of compensation sequence diagrams in one dynamic effect cycle. For example, the P frames of original images and Q frames of compensation sequence diagrams displayed in one dynamic effect cycle can be cross-arranged to ensure the display effect.
[0021] In one possible design, the Q is less than or equal to the N.
[0022] Through this design, the electronic device displays a set of display sequences in each animation cycle. A set of display sequences may include P frame original images and Q frame compensation sequence diagrams. By displaying one set of display sequences (when Q is equal to N) or multiple sets of display sequences (when Q is less than N), a round of N frame compensation sequence diagram display can be completed to ensure the effect of balanced screen usage.
[0023] Optionally, Q may also be an integer greater than N, and the electronic device may cyclically display N frames of compensation sequence diagrams in a preset time length. This method may also achieve the purpose of balancing the screen pixel display brightness.
[0024] In a possible design, after calculating the number of frames P of the original image displayed within a preset time length and the number of frames Q of the compensation sequence diagram displayed within a preset time length according to the preset display ratio and the total number of frames, before displaying the original image and the N-frame compensation sequence diagram with the preset time length as the animation period, the method also includes: obtaining the screen temperature, determining the temperature coefficient according to the screen temperature; adjusting the preset display ratio according to the temperature coefficient, or adjusting Q according to the temperature coefficient.
[0025] With this design, the electronic device can determine the temperature coefficient according to the screen temperature, and adjust the preset display ratio according to the temperature coefficient. For example, when the temperature coefficient is high, the ratio of the compensation sequence diagram can be increased. Or the electronic device can adjust the number of frames of the compensation sequence diagram displayed within a preset time length according to the temperature coefficient. For example, when the temperature coefficient is high, the number of frames of the compensation sequence diagram displayed within a preset time length can be increased. In this way, the impact of excessive screen temperature on screen pixel aging can be reduced.
[0026] In a possible design, displaying the original image and the N-frame compensation sequence diagram according to preset dynamic display parameters includes: displaying the preprocessed original image and the N-frame compensation sequence diagram according to preset dynamic display parameters.
[0027] Through this design, electronic devices can display pre-processed original images and N-frame compensated images, further reducing the risk of screen burn-in.
[0028] In a second aspect, the present application provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the electronic device in the first aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementation.
[0029] In a third aspect, the present application provides an electronic device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the electronic device in the above-mentioned first aspect and each embodiment thereof.
[0030] In a fourth aspect, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method executed by the electronic device in any of the above aspects and each embodiment thereof.
[0031] In a fifth aspect, the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method executed by the electronic device in any of the above aspects and its various embodiments.
[0032] In a sixth aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute the method executed by the electronic device in any of the above aspects and its various embodiments.
[0033] In a seventh aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method executed by an electronic device in any of the above aspects and its various embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of an all-weather display of an electronic device provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a screen burn-in phenomenon provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0037] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0038] Figure 5 A flow chart of a display method provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of an original image and a compensated image provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of pixel shifting provided in an embodiment of the present application;
[0041] Figure 8 A schematic diagram of a first method of generating a compensation sequence diagram provided in an embodiment of the present application;
[0042] Fig. 9 A schematic diagram of a second method of generating a compensation sequence diagram provided in an embodiment of the present application;
[0043] Fig.10 A schematic diagram of a third method of generating a compensation sequence diagram provided in an embodiment of the present application;
[0044] Fig.11 A schematic diagram of a display sequence provided in an embodiment of the present application;
[0045] Fig.12 A schematic diagram of a display method provided in an embodiment of the present application;
[0046] Fig.13 A schematic diagram of a mask display provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0048] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0049] Always on display (AOD) is a function that allows electronic devices to display various information around the clock. This function supports electronic devices to display pictures, clock controls, etc. when the screen is off. For example, Figure 1 A schematic diagram of an electronic device with an all-weather display provided by an embodiment of the present application. Figure 1 When the screen of an electronic device that supports the AOD function is off, it can still display wallpapers, clock controls and other content.
[0050] The display area of the screen of an electronic device is an array composed of pixels. Usually, a pixel is composed of three sub-pixels: red, green and blue. The screen resolution can reflect the clarity of the image displayed on the screen. The screen resolution refers to the number of pixels that the screen can display. For example, a screen resolution of 160*128 means that the screen can display 160 horizontal pixels and 128 vertical pixels. Under the same screen size, the higher the resolution, the finer the display effect.
[0051] The AOD function requires electronic devices to display content for a long time. Depending on the displayed content, the usage of different pixels on the screen is different. If the pixels in an area are displayed at high brightness for a long time, the degree of pixel aging in this area will be higher than that in other areas of the screen. The pixels in this area will not display bright enough, causing the aging area of the pixels on the screen to show burn-in marks when the electronic device displays other content. The above phenomenon is called "screen burn-in". For example, Figure 2 A schematic diagram of a screen burn-in phenomenon provided in an embodiment of the present application. Figure 1 In the lock screen image shown, the cuffs of the person are white. When the electronic device displays the image on the screen for a long time, the pixel positions corresponding to the white areas in the image may be burned in. Figure 2 There is a burn-in mark on the cuffs of the character in the screen, which causes the screen to still show the burn-in mark when displaying other content, affecting the display effect.
[0052] Based on the above problems, the present application provides a display method to prevent the burn-in problem caused by the all-weather display function. The method can be performed by an electronic device. In the display method provided in the embodiment of the present application, after the electronic device obtains the original image, it generates a compensated image based on the original image. The electronic device generates an N-frame compensation sequence diagram based on the original image and the compensated image, and displays the original image and the N-frame compensation sequence diagram according to the preset dynamic display parameters. Through the scheme, the electronic device can use each pixel in the screen evenly for display, thereby preventing the burn-in problem caused by the high degree of aging of individual pixels when the same image is displayed for a long time.
[0053] The following describes electronic devices and embodiments for using such electronic devices. The electronic devices in the embodiments of the present application may be tablet computers, mobile phones, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), wearable devices, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0054] Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 3As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0055] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0056] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0057] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and 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 reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0058] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0059] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0060] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0061] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0062] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0063] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0064] 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. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.
[0065] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0066] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0067] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0068] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0069] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
[0070] Understandably, Figure 3The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 3 The combination / connection relationship between the components can also be adjusted and modified.
[0071] Figure 4 The software structure block diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.
[0072] The application layer can include a series of application packages. Figure 4 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiment of the present application, the application layer may include a target installation package of a target application that the electronic device requests to download from a server, and the function files and layout files in the target installation package are adapted to the electronic device.
[0073] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
[0074] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0075] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0076] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0077] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0078] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0079] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0080] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. 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 as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0081] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), image processing library, etc.
[0082] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0083] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0084] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0085] A 2D graphics engine is a drawing engine for 2D drawings.
[0086] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0087] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.
[0088] It should be noted that Figure 3 and Figure 4 The structure shown is only an example of the electronic device provided by the embodiment of the present application, and cannot be used to limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device may have more Figure 3 or Figure 4 More or fewer devices or modules may be included in the structures shown.
[0089] The display method provided in the embodiment of the present application is introduced below.
[0090] Figure 5 A flow chart of a display method provided in an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can have Figure 3 and / or Figure 4 The structure shown. Figure 5 , the method comprises the following steps:
[0091] S501: The electronic device obtains an original image.
[0092] In an embodiment of the present application, the electronic device supports the AOD function. When the user chooses to turn on the AOD function, the electronic device can display the lock screen wallpaper all day long. That is to say, the lock screen wallpaper can be displayed when the electronic device is in the screen-on and screen-off states. The user can set a custom image as the lock screen wallpaper, or select a system preset image as the lock screen wallpaper. The electronic device can obtain the original image that the user chooses to set as the lock screen wallpaper.
[0093] S502: The electronic device generates a compensated image according to the original image.
[0094] Optionally, the compensation image in the embodiment of the present application is an image used to compensate for the brightness attenuation of screen pixels when the electronic device displays the original image, and the brightness value of each pixel in the compensation image is related to the brightness value of the corresponding pixel in the original image. After the original image and the compensation image are superimposed, a white or gray image can be obtained. For example, Figure 6A schematic diagram of an original image and a compensated image provided in an embodiment of the present application. Figure 6 , for areas with higher brightness in the original image (such as Figure 6 The white area in the original image shown in the figure), the brightness of the image at the same position in the compensation image is lower (such as Figure 6 If the original image and the compensated image are superimposed, a white image can be obtained.
[0095] In the embodiment of the present application, the sum of the brightness value of the pixel in the compensated image and the brightness value of the pixel at the same position in the original image can be a preset value. The following is an introduction to several methods of generating compensated images provided in the embodiment of the present application:
[0096] Method 1: Calculate the brightness value of each pixel in the compensated image according to the brightness value of each pixel in the original image and the preset brightness value.
[0097] In an optional implementation, the electronic device may obtain the brightness value of the pixel in the original image, calculate the difference between the preset brightness value and the brightness value, and use the calculated result as the brightness value of the pixel at the same position in the compensated image. For example, taking the original image and the compensated image both in RGB format, the preset brightness value may be the maximum brightness value of a pixel (255, 255, 255), then the brightness value of the original image and the brightness value of the compensated image may satisfy the following formula:
[0098] RGB ’ i =RGB(255,255,255)-RGB i (r,g,b)
[0099] Among them, RGB ’ i To compensate the brightness value of the i-th pixel in the image, RGB i (r, g, b) is the brightness value of the i-th pixel in the original image.
[0100] Method 2: Calculate the brightness value of each pixel in the compensated image according to the brightness value of each pixel in the original image and the average brightness value of the original image.
[0101] In an optional implementation, the electronic device may calculate the average brightness value of the original image, then calculate the difference between the average brightness value and the brightness value of the original image, and use the calculated result as the brightness value of the pixel at the same position of the compensated image. For example, taking the original image and the compensated image both in RGB format, the brightness value of the original image and the brightness value of the compensated image may satisfy the following formula:
[0102] RGB ’ i=RGB(avgR,avgG,avgB)-RGB i (r,g,b)
[0103] Among them, RGB ’ i To compensate the brightness value of the i-th pixel in the image, RGB (avgR, avgG, avgB) is the average brightness value of the original image, RGB i (r, g, b) is the brightness value of the i-th pixel in the original image.
[0104] Method 3: Calculate the brightness value of each pixel in the compensated image according to the brightness value of each pixel in the original image and the highest brightness value of the original image.
[0105] In an optional implementation, the electronic device may determine the highest brightness value of the original image, calculate the difference between the highest brightness value and the brightness value of the original image, and use the calculated result as the brightness value of the pixel at the same position of the compensated image. For example, taking the original image and the compensated image both in RGB format, the brightness value of the original image and the brightness value of the compensated image may satisfy the following formula:
[0106] RGB ’ i =RGB(maxR,maxG,maxB)-RGB i (r,g,b)
[0107] Among them, RGB ’ i To compensate the brightness value of the i-th pixel in the image, RGB (maxR, maxG, maxB) is the maximum brightness value of the original image, RGB i (r, g, b) is the brightness value of the i-th pixel in the original image.
[0108] It can be understood that the above three methods are three examples of methods for generating compensation images. Compensation images can also be generated by other methods, which are not limited in this application.
[0109] In some embodiments of the present application, before generating a compensated image based on the original image, the electronic device may preprocess the original image, and then generate the compensated image based on the preprocessed original image. The present application embodiment provides the following preprocessing, and the electronic device may perform at least one of the following preprocessing:
[0110] 1. Reduce the brightness of some areas in the original image.
[0111] Optionally, the electronic device may determine a target area in the original image whose brightness is greater than a preset brightness threshold, and reduce the brightness of the target area.
[0112] 2. Reduce the brightness of the original image.
[0113] Optionally, the electronic device may lower the overall brightness of the original image.
[0114] 3. Divide the original image into multiple areas and adjust the brightness of each area separately.
[0115] Optionally, the electronic device may divide the original image into a plurality of regions, for example, each divided region may include a preset number of pixels. The electronic device may adjust the brightness of each divided region, for example, reducing the brightness of a portion of an image in a region, or reducing the overall brightness of the region.
[0116] 4. Pixel displacement.
[0117] Optionally, the electronic device can set the size of the original image to be larger than the size of the display area, so that when the electronic device displays the original image, it can shift the original image within the range of the display area to prevent the screen from displaying the same content for a long time and causing screen burn-in.
[0118] For example, Figure 7 A schematic diagram of a pixel shift provided in an embodiment of the present application. Figure 7 In (a), the size of the original image is larger than the image size of the display area, such as the length of the display area is 32 pixels smaller than the length of the original image, and the width of the display area is 32 pixels smaller than the width of the original image, that is, the size of the original image can be obtained by adding 16 pixels to each side of the display area. The electronic device can display different positions of the original image in the display area at different times. For example, refer to Figure 7 In (b), the electronic device can display the original image in different states at different times, thereby utilizing each pixel of the screen for display through pixel shift equalization.
[0119] Through the above design, the electronic device first preprocesses the original image. The burn-in risk of the preprocessed original image is lower than that of the original image. Generating a compensated image based on the preprocessed original image can further ensure the anti-burn-in effect of the display method provided in the embodiment of the present application.
[0120] S503: The electronic device generates N frames of compensation sequence diagram according to the original image and the compensated image.
[0121] In an embodiment of the present application, to ensure the display effect, the electronic device can generate N frames of compensation sequence diagrams based on the original image and the compensated image. Each frame of the compensation sequence diagram is generated on the basis of the original image by replacing the brightness values of a part of the pixels with the brightness values of the pixels at the same position in the compensated image. Therefore, the display effect of each frame of the compensation sequence diagram will not be significantly different from that of the original image, and by displaying multiple frames of compensation sequence diagrams, the screen display brightness can be balanced to prevent different areas from aging quickly due to high brightness.
[0122] The following further introduces the various methods for generating N-frame compensation sequence diagrams provided in the embodiments of the present application.
[0123] First, the pixel units involved in the following method of generating an N-frame compensation sequence diagram are introduced. In the embodiment of the present application, the pixel unit is a pixel unit composed of multiple adjacent pixels. For example, a pixel unit may include Y pixels, where Y is a positive integer. In the embodiment of the present application, the pixel unit may be in a variety of shapes such as a rectangle, a triangle, and a diamond. The electronic device may use the pixel unit as a processing unit to perform image processing, for example, replacing the brightness value of a row of pixel units in the original image with the brightness value of a row of pixel units at the same position in the compensated image, etc.
[0124] Method 1: Odd-even position replacement method
[0125] In an optional implementation, the electronic device may replace the brightness value of the pixel unit at the first position in the original image with the brightness value of the pixel unit at the first position in the compensated image to obtain a first compensation sequence diagram, wherein the pixel unit is used as the processing unit, and the first position is a pixel unit position whose row number and column number are both odd numbers.
[0126] The electronic device can replace the brightness value of the pixel unit at the second position in the original image with the brightness value of the pixel unit at the second position in the compensated image to obtain a second compensation sequence diagram, wherein the second position is the pixel unit position with an even row number and an odd column number.
[0127] The electronic device can replace the brightness value of the pixel unit at the third position in the original image with the brightness value of the pixel unit at the third position in the compensated image to obtain a third compensated sequence diagram, wherein the third position is a pixel unit position with an even number of row and column numbers.
[0128] The electronic device can replace the brightness value of the pixel unit at the fourth position in the original image with the brightness value of the pixel unit at the fourth position in the compensated image to obtain a fourth compensation sequence diagram, wherein the fourth position is a pixel unit position with an odd row number and an even column number.
[0129] That is, in this manner, the value of N is 4, and the electronic device can generate four compensation sequence diagrams, namely, a first compensation sequence diagram, a second compensation sequence diagram, a third compensation sequence diagram, and a fourth compensation sequence diagram.
[0130] For example, Figure 8 This is a schematic diagram of the first method of generating a compensation sequence diagram provided in an embodiment of the present application. Figure 8 For ease of explanation, it is assumed that the original image is a completely white image, and the compensated image is a completely black image. The electronic device may replace the brightness value of the pixel unit at the first position in the original image with the brightness value of the pixel unit at the first position in the compensated image, to obtain a first compensation sequence diagram; the electronic device may replace the brightness value of the pixel unit at the second position in the original image with the brightness value of the pixel unit at the second position in the compensated image, to obtain a second compensation sequence diagram; the electronic device may replace the brightness value of the pixel unit at the third position in the original image with the brightness value of the pixel unit at the third position in the compensated image, to obtain a third compensation sequence diagram; the electronic device may replace the brightness value of the pixel unit at the fourth position in the original image with the brightness value of the pixel unit at the fourth position in the compensated image, to obtain a fourth compensation sequence diagram.
[0131] Method 2: Scan by line
[0132] In an optional implementation, the electronic device may replace the brightness value of the pixel unit in the i-th row in the original image with the brightness value of the pixel unit in the i-th row in the compensated image to obtain the i-th frame compensation sequence diagram; i is a positive integer less than N. In this method, N is the total number of rows of pixel units in the original image.
[0133] The electronic device performs the above steps N times to obtain N frames of compensation sequence diagrams, in which the brightness value of a row of pixel units in each frame of the compensation sequence diagram is the brightness value of the pixel units at the same position in the compensated image, and the brightness values of the remaining pixel units are the brightness values of the pixel units at the same position in the original image.
[0134] Fig. 9 This is a schematic diagram of a second method for generating a compensation sequence diagram provided in an embodiment of the present application. Fig. 9 For the sake of explanation, it is assumed that the original image is a completely white image, and the compensated image is a completely black image. The electronic device can replace the brightness values of N rows of pixel units of the original image in sequence to generate N frames of compensated images.
[0135] Method 3: Scan by column
[0136] In an optional implementation, the electronic device may replace the brightness value of the pixel unit in the i-th column of the original image with the brightness value of the pixel unit in the i-th column of the compensated image to obtain the i-th frame compensation sequence diagram; i is a positive integer less than N. In this method, N is the total number of columns of pixel units in the original image.
[0137] The electronic device performs the above steps N times to obtain N frames of compensation sequence diagrams, in which the brightness value of a column of pixel units in each frame of compensation sequence diagram is the brightness value of the pixel unit at the same position in the compensated image, and the brightness values of the remaining pixel units are the brightness values of the pixel units at the same position in the original image.
[0138] Fig.10 This is a schematic diagram of a third method for generating a compensation sequence diagram provided in an embodiment of the present application. Fig.10 For the sake of explanation, it is assumed that the original image is a completely white image, and the compensated image is a completely black image. The electronic device can replace the brightness values of N columns of pixel units of the original image in sequence to generate N frames of compensated images.
[0139] Optionally, in the above three methods, the electronic device replaces the brightness value of the pixel unit in the original image with the brightness value of the corresponding pixel unit in the compensated image, and the electronic device may replace the brightness value of each pixel included in the pixel unit in the original image with the brightness value of the corresponding pixel in the compensated image. For example, when a pixel unit includes four pixels, the electronic device may replace the brightness values of the four pixels in the original image with the brightness values of the corresponding pixels in the compensated image.
[0140] It can be understood that the above three methods are three examples of methods for generating N-frame compensation sequence diagrams. The compensation sequence diagram may also be generated in other methods, which is not limited in the present application.
[0141] S504: The electronic device displays the original image and the N-frame compensation sequence image according to preset dynamic display parameters.
[0142] In an optional implementation of the present application, the electronic device can calculate the total number of frames of the image displayed within a preset duration based on preset dynamic display parameters, and determine the number of frames of the original image displayed within the preset duration and the number of frames of the compensation sequence diagram displayed within the preset duration based on a preset ratio between the display duration of the original image and the display duration of the compensation sequence diagram. Optionally, the dynamic display parameters may include a motion curve, a preset duration, etc. Among them, the motion curve can be used to indicate the speed of switching image frames when the electronic device dynamically displays the original image and multiple frames of compensation sequence diagrams. The preset duration can be used as a motion cycle, and the electronic device can display the original image and multiple frames of compensation sequence diagrams within one motion cycle.
[0143] For example, in the embodiment of the present application, the electronic device determines the number of frames P of the original image displayed within the preset time length T according to the dynamic display parameters, and the number of frames Q of the compensation sequence diagram displayed within the preset time length T, where P and Q are both positive integers.
[0144] In an optional implementation, the electronic device may combine the P-frame original image and the Q-frame compensation sequence diagram to obtain a set of display sequences, in which the P-frame original image and the Q-frame original image may be arranged crosswise. The electronic device may use a preset duration as the motion effect cycle, and display multiple frames of images in the display sequence in sequence within one motion effect cycle. Optionally, the electronic device may generate multiple groups of display sequences, and the Q-frame compensation sequence diagram in each group of display sequences is part or all of the compensation sequence diagrams in the N-frame compensation sequence diagram generated by the electronic device, that is, Q is a positive integer less than or equal to N. The electronic device displays a set of display sequences within each motion effect cycle, and a round of N-frame compensation sequence diagram display can be completed by displaying a set of display sequences (when Q is equal to N) or multiple sets of display sequences (when Q is less than N) to ensure the effect of balanced screen usage.
[0145] For example, Fig.11 A schematic diagram of a display sequence provided in an embodiment of the present application. Fig.11 For the sake of explanation, it is assumed that the original image is a full white image, and the compensated image is a full black image. Assuming that the electronic device generates 10 frames of compensation sequence diagrams, and the electronic device determines to display 10 frames of original images and 5 frames of compensation sequence diagrams within a preset time length, the electronic device can generate two sets of display sequences. Fig.11 As shown, each display sequence generated by the electronic device includes 10 frames of original images and 5 frames of compensation sequence diagrams, and the 10 frames of original images and the 5 frames of compensation sequence diagrams are arranged crosswise, so that the display effect can be guaranteed when the electronic device displays the display sequence. After two preset time lengths, the electronic device can complete a round of display of 10 frames of compensation sequence diagrams, so that the brightness of each pixel on the screen is balanced.
[0146] In some other optional embodiments of the present application, Q can also be an integer greater than N, and the electronic device can cyclically display N frames of compensation sequence diagrams in a preset time length. This method can also achieve the purpose of balancing the screen pixel display brightness, which will not be repeated here.
[0147] It should be noted that when the electronic device performs pixel shift preprocessing on the original image, the electronic device can adjust the position of the image in the display area when displaying the original image and the N-frame compensation sequence diagram. For example, Figure 7 The method of displaying an image in the display area shown is to utilize each pixel of the screen for display through pixel shift equalization.
[0148] Optionally, the electronic device may also display the preprocessed original image and N-frame compensation sequence diagram according to the dynamic display parameters. For specific implementation, reference may be made to the above-mentioned method for displaying the original image and N-frame compensation sequence diagram by the electronic device, and repeated parts will not be repeated.
[0149] In some embodiments of the present application, considering that the screen temperature of the electronic device may also increase the risk of screen burn-in, the electronic device may obtain the screen temperature when calculating the number of frames of the compensation sequence diagram displayed within a preset time, and determine the temperature coefficient according to the screen temperature. For example, the temperature coefficient may satisfy the following formula:
[0150] Temperature coefficient = (current screen temperature - temperature threshold) / 10
[0151] The electronic device can adjust the preset display ratio or the number of frames of the compensation sequence image displayed within the preset duration according to the temperature coefficient. For example, when the temperature coefficient is 1, the electronic device can adjust the preset display ratio so that the duration of displaying the compensation image is twice the original value, or the electronic device can adjust the number of frames of the compensation sequence image displayed within the preset duration to twice the original value. In this way, the impact of excessive screen temperature on screen pixel aging can be reduced.
[0152] Optionally, when the electronic device adjusts the preset display ratio according to the temperature coefficient, it can also adjust the preset duration. For example, when the temperature coefficient is 1, the electronic device can adjust the preset display ratio so that the duration of displaying the compensated image is twice the original value, and the electronic device can increase the value of the preset duration. In other words, as the duration of an adjusted motion effect cycle increases, the duration of displaying the original image and the duration of displaying the compensated image in a corresponding motion effect cycle will both increase, and the increase in the duration of displaying the compensated image in a motion effect cycle is greater than the increase in the duration of displaying the original image in a motion effect cycle. In this way, the dynamic display effect can be guaranteed, while increasing the duration of displaying the compensated image to reduce the impact of excessive temperature on screen pixel aging.
[0153] The embodiment of the present application also provides a display method. In this method, multiple images can be pre-set in the electronic device, and the user can select an image from the multiple images as a wallpaper. When the AOD function of the electronic device is turned on, the electronic device can normally display different areas in the image at different times according to the pre-configured display parameters. When displaying part of the area normally, the electronic device displays other areas in the image in grayscale.
[0154] For example, Fig.12 A schematic diagram of a display method provided in an embodiment of the present application. Fig.12 In the figure, the pattern filled with diagonal lines indicates grayscale display, and the pattern filled with white indicates normal display. The electronic device normally displays different areas at different times, so that when the electronic device displays images based on this method, the user can see the effect of each area lighting up in sequence. This method can evenly use the pixels of the screen for display to prevent screen burn-in.
[0155] In other embodiments of the present application, the electronic device may also display a "mask" on the wallpaper image set by the user when the AOD function is turned on. The mask may be a layer located on the wallpaper layer. Fig.13 A schematic diagram of a mask display provided in an embodiment of the present application. Fig.13 , the electronic device can display a mask on the wallpaper. The mask includes a transparent area and a non-transparent area. The wallpaper can be displayed through the transparent area of the mask, and the non-transparent area will block the wallpaper. The electronic device can adjust the position of the transparent area to display different areas of the wallpaper at different times, achieve balanced use of each pixel of the screen for display, and prevent screen burn-in.
[0156] Based on the above embodiments, the present application further provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the electronic device in each method described in the embodiments of the present application. Figure 5 The steps performed by the electronic device in the illustrated embodiment. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0157] Based on the above embodiments, the present application further provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the functions executed by the site in each method described in the embodiments of the present application. Figure 5 The steps performed by the electronic device in the illustrated embodiment.
[0158] Based on the above embodiments, the present application further provides a computer program product comprising instructions, and when the computer program product is run on a computer, the computer is enabled to execute the methods described in the embodiments of the present application.
[0159] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.
[0160] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0161] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0166] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A display method, characterized in that: Applied to electronic equipment, the method comprises: Get the original image; Generating a compensated image according to the original image, wherein the brightness value of each pixel in the compensated image is related to the brightness value of the corresponding pixel in the original image; Generate N frames of compensation sequence graph according to the original image and the compensated image; The original image and the N-frame compensation sequence diagram are displayed according to preset dynamic display parameters.
2. The method according to claim 1, characterized in that The step of generating a compensated image according to the original image comprises: Calculating the brightness value of each pixel in the compensated image according to the brightness value of each pixel in the original image and a preset brightness value; or Calculating the brightness value of each pixel in the compensated image according to the brightness value of each pixel in the original image and the average brightness value of the original image; or The brightness value of each pixel in the compensated image is calculated according to the brightness value of each pixel in the original image and the highest brightness value of the original image.
3. The method according to claim 1 or 2, characterized in that The N-frame compensation sequence diagram includes a first compensation sequence diagram, a second compensation sequence diagram, a third compensation sequence diagram and a fourth compensation sequence diagram; the generating of the N-frame compensation sequence diagram according to the original image and the compensated image includes: The brightness value of the pixel unit at the first position in the original image is replaced by the brightness value of the pixel unit at the first position in the compensated image to obtain the first compensation sequence diagram, wherein the first position is a pixel unit position whose row number and column number are both odd numbers; a pixel unit includes Y adjacent pixels, where Y is a positive integer; Replacing the brightness value of the pixel unit at the second position in the original image with the brightness value of the pixel unit at the second position in the compensated image to obtain the second compensation sequence diagram, wherein the second position is the pixel unit position with an even row number and an odd column number; Replacing the brightness value of the pixel unit at the third position in the original image with the brightness value of the pixel unit at the third position in the compensated image to obtain the third compensation sequence diagram, wherein the third position is a pixel unit position whose row number and column number are both even numbers; The brightness value of the pixel unit at the fourth position in the original image is replaced by the brightness value of the pixel unit at the fourth position in the compensated image to obtain the fourth compensation sequence diagram, wherein the fourth position is the pixel unit position with an odd row number and an even column number.
4. The method according to claim 1 or 2, characterized in that: The generating N frames of compensation sequence diagram according to the original image and the compensated image comprises: The brightness value of the pixel unit in the i-th row in the original image is replaced with the brightness value of the pixel unit in the i-th row of the compensated image to obtain the i-th frame compensation sequence diagram; i is a positive integer less than N, and N is the total number of rows of pixel units in the original image; a pixel unit includes Y adjacent pixels, and Y is a positive integer.
5. The method according to claim 1 or 2, characterized in that: The generating N frames of compensation sequence diagram according to the original image and the compensated image comprises: The brightness value of the pixel unit in the i-th column in the original image is replaced with the brightness value of the pixel unit in the i-th column of the compensated image to obtain the i-th frame compensation sequence diagram; i is a positive integer less than N, and N is the total number of pixel columns in the original image; a pixel unit includes Y adjacent pixels, and Y is a positive integer.
6. The method according to any one of claims 1 to 5, characterized in that: The step of generating a compensated image according to the original image comprises: Preprocessing the original image, and generating the compensated image according to the preprocessed original image; Wherein, the preprocessing includes at least one of the following: Determine a target area in the original image whose brightness is greater than a set threshold, and reduce the brightness of the target area; reducing the brightness of the original image; Dividing the original image into multiple regions, and adjusting the brightness of each region respectively; The size of the original image is set according to the size of the display area, and the size of the original image after setting is larger than the size of the display area.
7. The method according to any one of claims 1 to 6, characterized in that: The displaying of the original image and the N-frame compensation sequence diagram according to preset dynamic display parameters includes: The total number of frames of the original image and the compensation sequence diagram displayed within the preset time length is calculated according to the preset dynamic display parameters, and the number of frames P of the original image displayed within the preset time length and the number of frames Q of the compensation sequence diagram displayed within the preset time length are calculated according to the preset display ratio and the total number of frames; P and Q are positive integers; The original image and the N-frame compensation sequence diagram are displayed with the preset duration as the animation cycle, and the P-frame original image and the Q-frame compensation sequence diagram are displayed in each animation cycle; the Q-frame compensation sequence diagram belongs to the N-frame compensation sequence diagram.
8. The method according to claim 7, characterized in that The Q is less than or equal to the N.
9. The method according to claim 7 or 8, characterized in that After calculating the number of frames P of the original image displayed within a preset time length and the number of frames Q of the compensation sequence diagram displayed within a preset time length according to the preset display ratio and the total number of frames, before displaying the original image and the N-frame compensation sequence diagram with the preset time length as the animation cycle, the method further includes: Acquiring a screen temperature, and determining a temperature coefficient according to the screen temperature; The preset display ratio is adjusted according to the temperature coefficient, or the Q is adjusted according to the temperature coefficient.
10. The method according to claim 3, characterized in that The displaying of the original image and the N-frame compensation sequence diagram according to preset dynamic display parameters includes: The preprocessed original image and the N-frame compensation sequence diagram are displayed according to preset dynamic display parameters.
11. An electronic device, characterized in that: The system comprises at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 10.
12. An electronic device, characterized in that: It comprises a plurality of functional modules; the plurality of functional modules interact with each other to implement the method as claimed in any one of claims 1 to 10.
13. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 10.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method, device and system for compensating displaying
CN103489405A
Display compensation method and device of display panel
CN107909964A
Organic light emitting display device and driving method thereof
KR1020150025987A
Golf swing analysis system and operation method thereof
KR102301022B1
Pixel compensation method, pixel compensation apparatus and pixel compensation system
US20200152154A1
