Display method, device and system of display screen

By storing multi-grayscale compensation parameters in electronic devices and performing grayscale expansion, the problems of uneven brightness and color shift in electronic device screen display are solved, achieving higher compensation accuracy and user experience.

CN120833764APending Publication Date: 2025-10-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410479231.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

Existing electronic devices have problems with uneven brightness and color cast (such as green or bluish tint) when displaying images, which affects the user experience.

Method used

A display method is adopted to perform grayscale compensation on the screen by storing multiple grayscale compensation parameters in a unit or module with greater storage capacity (such as an application processor or memory). This includes compensation parameters for multiple reference grayscales and compensation parameters for at least one extended grayscale. Grayscale expansion is performed using an extended model and extended parameters to cover more grayscales and improve the accuracy of the compensation results.

Benefits of technology

It can ensure that the color and brightness of the displayed image meet the requirements of subjective visual effects and objective indicators in various scenarios, thereby improving the user's visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120833764A_ABST
    Figure CN120833764A_ABST
Patent Text Reader

Abstract

The invention discloses a display method, device and system of a display screen, relates to the technical field of display, can solve the problems of uneven brightness, color cast (such as greenness and bluing) and the like of a screen of electronic equipment during picture display, and ensures better visual experience of a user in the process of using the electronic equipment. In the application, the electronic device can compensate one or more gray scales corresponding to the to-be-compensated pixel of the first interface in a targeted manner according to the actual screen brightness value and the stored compensation data. The compensation data comprises the compensation parameters of a plurality of reference gray scales and the compensation parameters of at least one extended gray scale obtained by fusing the existing compensation parameters of a plurality of reference gray scales through the extension parameters to carry out gray scale extension. Therefore, various gray scales in various scenes can be covered, and the accuracy of the compensation result under each brightness and each gray scale is improved, so that the color and the display brightness of a display picture meet subjective visual effects and objective index requirements, and the visual experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the display technical field, and in particular to a display method, device and system of a display screen. BACKGROUND

[0002] At present, the use of electronic devices such as smart phones with picture display function is more and more widely used. When the screen of the electronic device displays a picture, the screen backlight can automatically adjust the screen brightness according to the brightness of the light source in the environment where the user is located, wherein the screen backlight covers medium, high and low brightness scenes, and the gray scale of the picture displayed by the screen also includes different scenes such as medium, high and low brightness. At present, when the screen of the electronic device displays a picture, there are often problems such as uneven brightness, color deviation (such as green, blue, etc.) and the like, which affect the user experience. SUMMARY

[0003] The present application provides a display method, device and system of a display screen, which can solve the problems such as uneven brightness, color deviation (such as green, blue, etc.) and the like existing when the screen of the electronic device displays a picture, and ensure good visual experience of the user during using the electronic device.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0005] In a first aspect, a display method of a display screen is provided. The method can be applied to electronic devices such as tablet computers, mobile phones and the like. The method can include: the electronic device displays a first interface, obtains a screen brightness value, and determines that a gray scale corresponding to a pixel to be compensated in the first interface is a target gray scale; the electronic device determines a compensation parameter of the target gray scale according to the screen brightness value and compensation data, wherein the compensation data includes compensation parameters of a plurality of reference gray scales and a compensation parameter of at least one extended gray scale, and the compensation parameter of the at least one extended gray scale is determined according to the compensation parameters of the plurality of reference gray scales; the electronic device obtains a second interface by performing gray scale compensation on the pixel to be compensated according to the compensation parameter of the target gray scale; and the electronic device displays the second interface.

[0006] The screen brightness value is used to represent the screen brightness of the electronic device. For example, the screen brightness value can be the luminous brightness value of the screen display panel or the luminous brightness value of the backlight plate (or backlight module), etc., without limitation.

[0007] For example, the pixel to be compensated in the first interface is a pixel whose color / display brightness cannot meet the preset requirements in the first interface. The evaluation standard for the pixel to be compensated is not limited.

[0008] According to the scheme provided by the first aspect, the electronic device can compensate one or more gray scales corresponding to the pixels of the first interface according to the actual screen brightness value and the saved compensation data. Since the compensation data includes compensation parameters of multiple reference gray scales and compensation parameters of at least one extended gray scale obtained by extending the compensation parameters of the multiple reference gray scales through the extension parameter, the problems such as uneven brightness, color deviation (e.g., green or blue), and the like of the screen of the electronic device during picture display can be solved, various gray scales in various scenarios can be covered, the accuracy of the compensation result in each brightness and each gray scale can be improved, the color and display brightness of the display picture can meet the subjective visual effect and objective index requirements, and the user visual experience can be improved.

[0009] As a possible implementation, the method further includes: obtaining, by the electronic device, compensation parameters of multiple reference gray scales and an extension parameter, where the extension parameter is used to obtain compensation parameters of an extended gray scale through calculation with the compensation parameters of the multiple reference gray scales. Based on this, the electronic device can calculate the compensation parameters of the multiple reference gray scales based on the extension parameter to perform gray scale extension, meet various gray scale compensation requirements of the electronic device, and make the color and display brightness of the display picture meet the subjective visual effect and objective index requirements in various scenarios, thereby improving the user visual experience.

[0010] As a possible implementation, the extension parameter includes multiple extension parameters corresponding to different screen brightness values, and different extension parameters are used to obtain compensation parameters of different extended gray scales through calculation with the compensation parameters of the multiple reference gray scales. Based on this, the electronic device can calculate the compensation parameters of the multiple reference gray scales based on the extension parameter to perform gray scale extension, meet various gray scale compensation requirements of the electronic device under different screen brightness values, and make the color and display brightness of the display picture meet the subjective visual effect and objective index requirements in various scenarios, thereby improving the user visual experience.

[0011] As a possible implementation, the extension parameters corresponding to the same extended gray scale are different under different screen brightness values. Based on this, reliable gray scale compensation can be ensured under different screen brightness values, and thus the meeting effect meeting the subjective visual effect and objective index requirements can be obtained.

[0012] As a possible implementation manner, the expansion parameter includes a plurality of weight value groups corresponding to the screen brightness value, and different weight value groups are used to calculate the compensation parameters of different expansion gray scales by weighting the compensation parameters of the plurality of reference gray scales, and the weight value group includes a plurality of weight values corresponding to the plurality of reference gray scales respectively. Based on this, the gray scale expansion can be supported by weighting the plurality of reference gray scales, the reliability of the compensation parameters of the expanded gray scales is improved, reliable gray scale compensation can be obtained under different screen brightness values, and then the meeting effect meeting the subjective visual effect and objective index requirements can be obtained.

[0013] As a possible implementation manner, the expansion parameter includes a plurality of weight value groups corresponding to the screen brightness value, and different weight value groups are used to calculate the compensation parameters of different expansion gray scales by weighting the compensation parameters of the plurality of reference gray scales, and the weight value group includes a plurality of weight values corresponding to the plurality of reference gray scales respectively. Based on this, the gray scale expansion can be supported by weighting the plurality of reference gray scales, the reliability of the compensation parameters of the expanded gray scales is improved, reliable gray scale compensation can be obtained under different screen brightness values, and then the meeting effect meeting the subjective visual effect and objective index requirements can be obtained.

[0014] Exemplarily, the electronic device can calculate the compensation parameters of the at least one expansion gray scale by weighting the compensation parameters of the plurality of reference gray scales according to the expansion parameter when displaying the first interface. Alternatively, the electronic device can calculate the compensation parameters of the at least one expansion gray scale by weighting the compensation parameters of the plurality of reference gray scales according to the expansion parameter before displaying the first interface, such as before factory shipment. In this way, the gray scale compensation efficiency when displaying the interface can be improved by performing gray scale expansion in advance.

[0015] As a possible implementation manner, the target gray scale includes a first target gray scale and a second target gray scale, the compensation data includes the compensation parameter of the first target gray scale and does not include the compensation parameter of the second target gray scale, the expansion parameter includes a first weight value group, the first weight value group includes a plurality of weight values corresponding to the plurality of reference gray scales respectively, and the electronic device determines the compensation parameters of the target gray scale according to the screen brightness value and the compensation data, including: the electronic device determines the compensation parameter of the first target gray scale corresponding to the screen brightness value from the compensation data; and the electronic device calculates the compensation parameter of the second target gray scale by weighting the compensation parameters of the plurality of reference gray scales according to the plurality of weight values in the first weight value group. Based on this, the electronic device can fully compensate the gray scale corresponding to the pixel to be compensated, and the user's visual experience can be improved to the greatest extent.

[0016] As a possible implementation manner, the compensation data is stored in any one of the following: an application processor (AP) of the electronic device, a memory of the electronic device, and a display driver integrated circuit (DDIC) of the electronic device. Based on this, the compensation data can be stored according to a unit or module with greater storage capacity, such as the AP, the memory, and the like, without increasing the storage cost, supporting storage of more compensation parameters, which may, in an ideal case, be unlimited, and further ensuring smooth implementation of the present solution and covering more gray scales.

[0017] As a possible implementation manner, the compensation data is stored in the AP or the memory, and the compensation parameters of the target gray scale are determined by the AP according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the AP or the DDIC; or the compensation data is stored in the DDIC or the memory, and the compensation parameters of the target gray scale are determined by the DDIC according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the DDIC. Based on this, the present solution can support various gray scale compensation layouts, has strong applicability and high flexibility.

[0018] As a possible implementation manner, the compensation parameters of the target gray scale include a gray scale reduction amount, and the electronic device performs the gray scale compensation on the pixel to be compensated according to the compensation parameters of the target gray scale, including: the electronic device reduces the gray scale of the pixel to be compensated by the gray scale reduction amount; or the compensation parameters of the target gray scale include a gray scale increase amount, and the electronic device performs the gray scale compensation on the pixel to be compensated according to the compensation parameters of the target gray scale, including: the electronic device increases the gray scale of the pixel to be compensated by the gray scale increase amount. Or, the compensation parameters of the target gray scale include a target value, and the electronic device performs the gray scale compensation on the pixel to be compensated according to the compensation parameters of the target gray scale, including: the electronic device adjusts the gray scale of the pixel to be compensated to the target value. Based on this, the present solution can support various forms of gray scale compensation parameters, has strong applicability and high flexibility.

[0019] In a second aspect, an electronic device is provided, which includes: a display screen configured to display a first interface; a memory configured to store computer program instructions; and a controller configured to execute the computer program instructions to obtain a screen brightness value, determine a target gray scale corresponding to a pixel to be compensated in the first interface, and determine a compensation parameter of the target gray scale according to the screen brightness value and compensation data, wherein the compensation parameter of the target gray scale is used to compensate the gray scale of the pixel to be compensated; and the compensation data is stored in any one of the following: the controller and the memory, and the compensation data includes compensation parameters of a plurality of reference gray scales and a compensation parameter of at least one extended gray scale, which is determined according to the compensation parameters of the plurality of reference gray scales.

[0020] Exemplarily, the controller is an AP or a DDIC. The compensation data can be stored in any one of the following: the AP, the memory, and the DDIC.

[0021] The second aspect provides a solution that the electronic device can compensate one or more gray scales corresponding to the pixel to be compensated in the first interface according to the actual screen brightness value and the saved compensation data. Since the compensation data includes the compensation parameters of the plurality of reference gray scales and the compensation parameter of the at least one extended gray scale obtained by extending the compensation parameters of the plurality of reference gray scales, the solution can not only solve the problems of uneven brightness, color deviation (such as green and blue), and the like of the screen of the electronic device when displaying a picture, but also cover various gray scales in various scenarios, improve the accuracy of the compensation result in various brightness and various gray scales, and make the color and display brightness of the display picture meet the subjective visual effect and objective index requirements, thereby improving the user visual experience.

[0022] As a possible implementation, the controller is further configured to obtain the compensation parameters of the plurality of reference gray scales and an extension parameter, wherein the extension parameter is used to obtain the compensation parameter of the extended gray scale by calculation with the compensation parameters of the plurality of reference gray scales. Based on this, the electronic device can support calculation of the compensation parameters of the plurality of reference gray scales based on the extension parameter to perform gray scale extension, meet various gray scale compensation requirements of the electronic device, and make the color and display brightness of the display picture meet the subjective visual effect and objective index requirements in various scenarios, thereby improving the user visual experience.

[0023] As a possible implementation manner, the extension parameter includes a weight value group corresponding to the at least one extension gray scale respectively, and the controller is further configured to: perform weighted calculation on the compensation parameters of the plurality of reference gray scales according to the extension parameter to obtain the compensation parameter of the at least one extension gray scale. Based on this, the electronic device can support calculating the compensation parameters of the plurality of reference gray scales according to the extension parameter to perform gray scale extension, meet the compensation requirements of various gray scales of the electronic device under the screen brightness value, and make the color and display brightness of the display image meet the subjective visual effect and objective index requirement in various scenes, thereby improving the user visual experience.

[0024] As a possible implementation manner, the target gray scale includes a first target gray scale and a second target gray scale, the compensation data includes the compensation parameter of the first target gray scale and does not include the compensation parameter of the second target gray scale, the extension parameter includes a first weight value group, the first weight value group includes a plurality of weight values corresponding to the plurality of reference gray scales respectively, and the controller is configured to: determine the compensation parameter of the first target gray scale corresponding to the screen brightness value from the compensation data; and perform weighted calculation on the compensation parameters of the plurality of reference gray scales according to the plurality of weight values in the first weight value group to obtain the compensation parameter of the second target gray scale. Based on this, the electronic device can support full compensation on the gray scale corresponding to the pixel to be compensated, and maximize the user visual experience.

[0025] As a possible implementation manner, the controller is an AP, the compensation data is stored in the AP or a memory, the compensation parameter of the target gray scale is determined by the AP according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the AP; or, the controller includes an AP and a DDIC, the compensation data is stored in the AP or a memory, the compensation parameter of the target gray scale is determined by the AP according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the DDIC; or, the controller is a DDIC, the compensation data is stored in the DDIC or a memory, the compensation parameter of the target gray scale is determined by the DDIC according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the DDIC. Based on this, the scheme can support various gray scale compensation layouts, has strong applicability and high flexibility.

[0026] As a possible implementation manner, the compensation parameter of the target gray scale includes a gray scale reduction amount, and the controller is configured to: reduce the gray scale of the pixel to be compensated by the gray scale reduction amount; or, the compensation parameter of the target gray scale includes a gray scale increase amount, and the controller is configured to: increase the gray scale of the pixel to be compensated by the gray scale increase amount. Or, the compensation parameter of the target gray scale includes a target value, and the controller is configured to: adjust the gray scale of the pixel to be compensated to the target value. Based on this, the scheme can support various forms of gray scale compensation parameters, has strong applicability and high flexibility.

[0027] In a third aspect, a method for obtaining compensation data and extended parameters is provided, the method comprising: performing the following steps for a plurality of display screen samples at different screen brightness values ​​to obtain compensation data and extended parameters: S1: photographing the display screen sample surface to obtain S i Grayscale optical data, S i is a positive integer, and S i >1; S2: According to the obtained S i The optical data of gray levels generates M i Compensation parameters of the reference grayscale, M i is a positive integer, and M i >1; S3: Determine the extended parameters corresponding to the extended model; S4: Simulate the use of the extended model and extended parameters P i , based on M i The compensation parameters of the reference grayscale are used to expand the grayscale to generate N i The compensation parameters of the extended grayscale are calculated and grayscale compensation is simulated to generate a simulation effect diagram, N i is a positive integer, and N i >0; S5: obtaining the tester's evaluation result of the simulation effect diagram and / or the measurement result of the preset optical index of the simulation effect diagram based on the optical measuring device; S6: determining the above-mentioned extended parameter P according to the tester's first evaluation result of the simulation effect diagram and / or the first measurement result of the preset optical index of the simulation effect diagram based on the optical measuring device i As the extended parameter corresponding to the display sample, M i The compensation parameters of the reference grayscale and N i The compensation parameters of the extended grayscale are used as the compensation data corresponding to the display sample; or, according to the second evaluation result of the tester on the simulation effect diagram and / or the second measurement result of the preset optical index of the simulation effect diagram based on the optical measuring device, the extended parameter P is used as the compensation data corresponding to the display sample; i After making adjustments, execute the above S4-S5 again.

[0028] The solution provided in the third aspect above can continuously correct the extended parameters based on subjective methods and / or objective methods to obtain more accurate extended parameters, improve the accuracy of the compensation results at each brightness and each grayscale, so that the color and display brightness of the displayed image meet the subjective visual effects and objective index requirements, and improve the user's visual experience.

[0029] As a possible implementation, the above-mentioned determination of the extended parameters corresponding to the extended model includes: randomly setting the extended parameters; or, according to M i The data correlation between the compensation parameters of the reference grayscales determines M ilinear relationship between a gray scale and other gray scales in a reference gray scale to determine the expansion parameter. Based on this, a plurality of different methods can be provided to determine the initial expansion parameter, and different methods have different advantages. For example, a method of randomly setting the expansion parameter is relatively convenient, and a method of determining the expansion parameter based on the data correlation between the compensation parameters of the reference gray scale is relatively closer to the target expansion parameter, so that the number of corrections required during the experiment is less, and the time required to determine the final expansion parameter is shorter. i i

[0030] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer program instructions. When the computer program instructions are executed by a processor, the method in any possible implementation manner of the first aspect is implemented.

[0031] In a fifth aspect, a computer program product containing instructions is provided. When the computer program product is run on a computer, the computer is caused to implement the method in any possible implementation manner of the first aspect.

[0032] In a sixth aspect, a chip system is provided, and the chip system includes a processing circuit and a storage medium. The storage medium stores computer program instructions. When the computer program instructions are executed by the processor, the method in any possible implementation manner of the first aspect is implemented. The chip system can be composed of a chip, or can include a chip and other discrete devices. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1 A compensation method flowchart for a picture;

[0034] Figure 2 A compensation effect schematic diagram for three pictures;

[0035] Figure 3 A hardware structure schematic diagram of an electronic device provided by an embodiment of the present application;

[0036] Figure 4 A compensation data acquisition and application process schematic diagram for a picture provided by an embodiment of the present application;

[0037] Figure 5 A display method flowchart of a display screen provided by an embodiment of the present application;

[0038] Figure 6 A compensation effect schematic diagram for two pictures provided by an embodiment of the present application;

[0039] Figure 7 A compensation data acquisition method flowchart provided by an embodiment of the present application;

[0040] Figure 8 FIG. 1 is a schematic diagram of a reference gray scale compensation parameter acquisition and gray scale expansion process according to an embodiment of the present application;

[0041] Figure 9 FIG. 2 is a schematic diagram of a compensation parameter acquisition method according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in this document only represents the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0043] Hereinafter, the terms "first", "second", and the like are only used to distinguish different description objects, and have no limiting effect on the position, order, priority, number, or content of the described objects. For example, the described object is "field", and the ordinal numbers before "field" in "first field" and "second field" do not limit the position or order between "fields". "First" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of "first field" and "second field". For example, the described object is "level", and the ordinal numbers before "level" in "first level" and "second level" do not limit the priority between "levels". For example, the number of described objects is not limited, and can be one or more. For example, "first device", where the number of "devices" can be one or more. In addition, objects modified by different prefix words can be the same or different, for example, the described object is "device", and "first device" and "second device" can be the same type of device or different types of device. For example, the described object is "information", and "first information" and "second information" can be information of the same content or information of different content. In short, the use of ordinal numbers and other prefix words in the embodiments of the present application to distinguish the description objects does not limit the described objects, and the description of the described objects in the claims or embodiments should not be limited by the use of such prefix words.

[0044] Furthermore, in the embodiments of the present application, "connection" may be a direct connection or an indirect connection; in addition, it may refer to an electrical connection or a communication connection; for example, the connection between two electrical components A and B may refer to a direct connection between A and B, or may refer to an indirect connection between A and B through other electrical components or connection media, or may refer to an indirect connection between A and B through other communication devices or communication media, as long as communication between A and B can be achieved.

[0045] As described in the background technology, the display screens of existing electronic devices often have problems such as uneven brightness and shade, color cast (such as greening, bluishness, etc.) when displaying pictures, which affect the user experience. The reason for this problem may be that the performance of the three primary colors (green red blue, RGB) electroluminescence (EL) devices on the display screen is unstable, causing the white point color coordinates to deviate from the normal set value. The specific reasons are not limited in the embodiments of this application. In order to meet users' increasingly high requirements for color consistency and display brightness consistency of electronic devices such as mobile phones and tablets, and to improve user satisfaction, an extended algorithm is often used to perform grayscale compensation on pictures with different brightness and different grayscales to achieve better picture display effects. Among them, grayscale is also called grayscale, which refers to the range of brightness values ​​of each pixel when converting a color image into a black and white image in computer image processing; grayscale can represent the richness of color level information that an image can contain.

[0046] As a possible implementation method, when using an extended algorithm to perform grayscale compensation for images with different brightness and grayscales, the compensation data for several specific binding point grayscales (hereinafter referred to as reference grayscales) and specific backlight brightness are often burned into the display driver integrated circuit (DDIC) of the screen, and the grayscale compensation of the image is performed in the DDIC to solve problems such as uneven brightness and color cast of the image.

[0047] As an example, see Figure 1 , Figure 1 A flow chart of a compensation method for a picture is shown. Figure 1 As shown, firstly, the original image data is compensated in sequence, as shown in Figure 1 As shown, compensation is performed using compensation parameter A, compensation parameter B, and compensation parameter Offset1. For example, when performing basic compensation, it can be implemented based on the following formula 1:

[0048] Y=A*X 2 +B*X+Offset1; (Formula 1)

[0049] In the formula 1, A is a compensation parameter A, B is a compensation parameter B, Offset1 is a compensation parameter Offset1, and X is a gray scale value to be compensated in the original image.

[0050] After the basic compensation is completed, the compensated image data can be obtained by further using a compensation parameter Scalar for brightness segment compensation and using a parameter Offset2 for gray scale compensation. Exemplarily, the compensation can be implemented based on the following formula 2:

[0051] Y' = Y * Scalar + Offset2 (formula 2)

[0052] In the formula 2, Scalar is a brightness segment compensation parameter, and Offset2 is a gray scale compensation parameter.

[0053] However, in the above method, the compensation parameters A, B, Offset1, Scalar and Offset2 are determined based on the display brightness / color related tests at different brightness levels for the reference gray scale. Due to the limitation of the storage space and adjustable dimensions of the screen DDIC, the data that the DDIC can support to write is limited, such as only a small number (such as 2 or 3, generally not more than 7) of gray scale compensation parameters can be written, which leads to that only a small number of gray scales can be compensated based on the written compensation parameters, the compensation precision is limited, and it is difficult to well cover the needs of various scenes such as medium, high and low brightness and medium, high and low gray scale. Therefore, in some scenes, such as Figure 2 As shown in the figure, due to insufficient compensation, the electronic device still has problems such as uneven screen brightness, color deviation (such as green, blue, etc.) when displaying pictures.

[0054] To solve the above problems in the prior art and ensure a better visual experience for users using the electronic device, embodiments of the present application provide a display method for a display screen, which can implement a simple and fast picture compensation method. The method can perform gray scale compensation (such as reducing the gray scale or increasing the gray scale) on a picture according to compensation parameters of multiple gray scales stored in a unit or module with a larger storage capacity, such as an application processor (AP) or a memory. The compensation parameters of multiple gray scales include compensation parameters of multiple reference gray scales and compensation parameters of at least one extended gray scale. The compensation parameters of multiple reference gray scales are determined based on a large number of tests on the display brightness / color of the multiple reference gray scales under different backlight brightness. The compensation parameters of at least one extended gray scale are obtained by fusing the compensation parameters of the multiple reference gray scales. Since the unit or module (such as the AP or the memory) used to store the compensation parameters in the embodiments of the present application has a larger storage space than the DDIC, it can support the storage of more compensation parameters, such as being not limited in an ideal case. In addition, in the embodiments of the present application, the electronic device adds a gray scale extension function, such as performing gray scale extension by fusing the compensation parameters of the multiple reference gray scales through an extension model and extension parameters. Therefore, more gray scales can be covered, the accuracy of the compensation results under each brightness and each gray scale can be improved, the color and display brightness of the display picture can meet the subjective visual effect and objective index requirements, and the user visual experience can be improved.

[0055] In the embodiments of the present application, the electronic device can include, but is not limited to, any electronic device with a display screen (i.e., a screen), such as a smart phone, a netbook, a tablet computer, a smart drawing board, a handwriting board, a smart watch, a smart bracelet, a telephone watch, smart glasses, a smart camera, a palm computer, a vehicle-mounted computer, a personal computer (PC), a personal digital assistant (PDA), a portable multimedia player (PMP), an augmented reality (AR) / virtual reality (VR) device, a smart television, a projection device, or a motion sensing game machine in a human-computer interaction scene, etc. Alternatively, the electronic device can also be other types or structures of electronic devices with a display screen, which are not limited in the present application.

[0056] As an example, refer to Figure 3 , Figure 3 A hardware structure schematic diagram of an electronic device provided by the embodiments of the present application is shown.

[0057] As Figure 3As shown, the electronic device can include a processor 310, a memory (including an external memory interface 320 and an internal memory 321), a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a key 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and the like.

[0058] The sensor module 380 can include, but is not limited to, one or more of the following: a temperature sensor, a touch sensor, a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0059] The processor 310 can include one or more processing units. For example, the processor 310 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a flight 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 integrated into one or more processors.

[0060] The processor 310 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory can hold instructions or data that the processor 310 has just used or cycled through. If the processor 310 needs to use the instructions or data again, it can be called directly from the memory. This avoids repeated access and reduces the processor's 310 waiting time, thus improving the efficiency of the system.

[0061] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) can be stored in the memory in the AP or the processor 310 before the electronic device is shipped.

[0062] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) stored in the memory in the AP or the processor 310 can be stored before the electronic device is shipped.

[0063] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) stored in the memory in the AP or the processor 310 can be updated in real time / periodically / conditionally according to the indication of the server, for example, after the electronic device is shipped, without specific limitation.

[0064] In some embodiments, the memory in the AP or the processor 310 stores an extension algorithm for performing gray scale extension and an extension parameter, which is used by the AP or the DDIC of the electronic device to calculate the compensation parameter of the at least one extended gray scale by using the compensation parameters of the plurality of reference gray scales through the extension algorithm. For example, when displaying a picture, the electronic device can use the extension algorithm to calculate the compensation parameter of the target gray scale corresponding to one or more pixels to be compensated by using the extension parameter and the compensation parameters of the plurality of reference gray scales according to the actual gray scale of the picture. Of course, the extension parameter can also be stored in other units or modules, such as the DDIC, without specific limitation in the embodiments of the present application.

[0065] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) stored in the memory in the AP or the processor 310 can be updated in real time / periodically / conditionally according to the indication of the server, for example, after the electronic device is shipped, without specific limitation.

[0066] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) stored in the memory in the AP or the processor 310 can be updated in real time / periodically / conditionally according to the indication of the server, for example, after the electronic device is shipped, without specific limitation.

[0067] In some embodiments, the compensation data (e.g., compensation parameters of the plurality of reference gray scales and compensation parameters of the at least one extended gray scale) stored in the memory in the AP or the processor 310 can be updated in real time / periodically / conditionally according to the indication of the server, for example, after the electronic device is shipped, without specific limitation.

[0068] In some embodiments, the processor 310 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.

[0069] The charging management module 340 is configured to receive charging input from a charger. The power management module 341 is configured to connect the battery 342 with the processor 310 and the charging management module 340. The power management module 341 receives input from the battery 342 and / or the charging management module 340 to power the processor 310, the internal memory 321, the display screen 394, the camera 393, and the wireless communication module 360, etc.

[0070] The wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor, and the baseband processor, etc.

[0071] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 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 wireless local area networks. In some other embodiments, the antennas can be used in combination with tuning switches.

[0072] The mobile communication module 350 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device. The mobile communication module 350 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves from the antenna 1 and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.

[0073] The wireless communication module 360 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., a WiFi network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like, which is applied to the electronic device.

[0074] In some embodiments, the antenna 1 and the mobile communication module 350 of the electronic device are coupled, and the antenna 2 and the wireless communication module 360 are coupled, so that the electronic device 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, and the like. The GNSS can 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 systems (SBAS).

[0075] The electronic device implements a display function through a GPU, a display screen 394, and an AP, etc. The GPU is a microprocessor for image processing, connected to the display screen 394 and the AP. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 can include one or more GPUs that execute program instructions to generate or change display information.

[0076] The display screen 394 is used to display images, videos, etc. The display screen 394 includes a display panel. The display panel can adopt a low temperature poly-silicon (LTPS) display screen, a low temperature polycrystalline oxides (LTPO) display screen, a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED) display screen, a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-OLED, a quantum dot light emitting diodes (QLED), etc.

[0077] In some embodiments, the AP or the DDIC can display the application picture through the display screen 394 after compensating (such as lowering the gray scale or raising the gray scale) one or more target gray scales of the application picture based on the pre-stored compensation data according to the screen brightness (such as the backlight brightness) of the electronic device.

[0078] In some embodiments, the AP can send the application picture to the GPU after compensating (such as lowering the gray scale or raising the gray scale) one or more target gray scales of the application picture based on the pre-stored compensation data according to the screen brightness (such as the backlight brightness) of the electronic device. The GPU can perform graphics rendering based on the data of the application picture after the gray scale compensation, and then call the DDIC to display the application picture obtained after rendering through the display screen 394.

[0079] In some embodiments, the GPU can call the DDIC to compensate (such as lowering the gray scale or raising the gray scale) one or more target gray scales of the application picture based on the pre-stored compensation data after performing graphics rendering based on the data of the application picture provided by the AP, and then display the application picture through the display screen 394.

[0080] The external memory interface 320 can be configured to connect an external memory card, such as a Micro SD card, to extend the memory capacity of the electronic device. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function.

[0081] The internal memory 321 can be configured to store computer executable program codes. For example, the computer program can include an operating system program and an application program. The executable program codes include instructions. The processor 310 executes various function applications and data processing of the electronic device by running the instructions stored in the internal memory 321. The internal memory 321 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, and the like. The data storage area can store data created during use of the electronic device, and the like. In addition, the internal memory 321 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 310 executes various function applications and data processing of the electronic device by running the instructions stored in the internal memory 321 and / or the instructions stored in the memory disposed in the processor.

[0082] In some embodiments, the internal memory 321 can store compensation data (such as compensation parameters including a plurality of reference gray scales and compensation parameters of at least one extended gray scale) and / or extension parameters.

[0083] In some embodiments, the compensation data or the extension parameters stored in the internal memory 321 can be stored before the electronic device is shipped.

[0084] In some embodiments, the compensation data or the extension parameters stored in the internal memory 321 can be updated in real time / periodically / conditionally according to the indication of the server, for example, updated according to the indication of the server after the electronic device is shipped, without specific limitation.

[0085] The electronic device can implement an audio function through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the AP, and the like. For example, music playing, recording, and the like.

[0086] In addition, the description of the hardware, such as the key 390, the motor 391, the indicator 392, and the like, can refer to the conventional technology, and the embodiments of the present application will not be described herein.

[0087] It can be understood that the present application Figure 3The illustrated structure does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device 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.

[0088] As an example, refer to Figure 4 (a) in FIG. 1, Figure 4 (a) in FIG. 1 shows a process diagram of obtaining compensation data and applying to picture compensation provided by an embodiment of the present application. As shown in Figure 4 (a) in FIG. 1, the obtaining of compensation data includes obtaining compensation parameters of reference gray scales and obtaining compensation parameters of extended gray scales. For example, before the electronic device is shipped, the production line equipment side can perform display brightness / color related tests under different screen brightness (such as backlight brightness) on M (M is a positive integer greater than 1) reference gray scales to obtain measurement data, and the electronic device can generate compensation parameters of the M reference gray scales that can achieve a certain display brightness / color display index according to the measurement data, determine an extension model and an extension parameter according to the measurement data, and use the extension model and the extension parameter to extend the compensation parameters of the M reference gray scales, thereby additionally obtaining compensation parameters of N (N is a positive integer) extended gray scales. Based on this, the electronic device can obtain compensation parameters of M reference gray scales and N extended gray scales, and when displaying a picture after shipment, the electronic device can compensate multiple gray scales of the picture under different screen brightness (such as backlight brightness) according to the compensation parameters of the M+N gray scales, and then display to obtain a better display effect of display brightness and color.

[0089] In some embodiments, the electronic device can extend the compensation parameters of the M reference gray scales using the model and the extension parameter before shipment, such as by using the extension parameter to calculate and interpolate between the M reference gray scales to obtain compensation parameters of N extended gray scales.

[0090] In some embodiments, the electronic device can determine the extension model and the extension parameter according to the measurement data and save them in the electronic device before shipment; when displaying a picture, the electronic device can use the extension model and the extension parameter to extend the compensation parameters of the M reference gray scales according to the actual gray scale corresponding to the pixel to be compensated, such as by using the extension parameter to calculate and interpolate between the M reference gray scales to obtain compensation parameters of one or more target gray scales (such as N extended gray scales) corresponding to the pixel to be compensated. Based on this, the storage pressure caused by storing a large number of compensation parameters in the electronic device can be further reduced.

[0091] As an example, refer to Figure 4 (b) in FIG. 1, Figure 4(b) shows another process diagram of obtaining compensation data and applying it to picture compensation provided by an embodiment of the present application. Figure 4 As shown in (b), the acquisition of compensation data includes the acquisition of compensation parameters of the reference grayscale and the acquisition of compensation parameters of the extended grayscale. For example, before the electronic device leaves the factory, the production line equipment side can perform relevant tests such as display brightness / color under different screen brightness (such as backlight brightness) on M (M is a positive integer greater than 1) reference grayscales to obtain measurement data. The electronic device can generate compensation parameters of M reference grayscales that can achieve certain display brightness / color display indicators based on the measurement data, and determine the extension model and extension parameters based on the measurement data. Based on this, the electronic device can obtain the compensation parameters, extension model and extension parameters of M reference grayscales. When displaying the picture after leaving the factory, the electronic device can determine the corresponding extension parameters based on the obtained screen brightness value and the grayscale of the picture, and then use the extension model and the determined extension parameters to compensate for multiple grayscales of the picture according to the compensation parameters of the M reference grayscales and send them for display, so as to obtain a display effect with better display brightness and color.

[0092] As an example, an electronic device may include a screen depth compensation (Demura) calculation module and an AP. The electronic device may generate compensation parameters for M reference grayscales that can achieve certain display brightness / color display indicators based on measurement data from the production line equipment side through the screen depth compensation (Demura) calculation module, and determine an expansion model and expansion parameters, and save the compensation parameters, expansion model and expansion parameters of the M reference grayscales in a controller or memory of the electronic device, such as in an AP, a memory or a DDIC; then, through a unit or module for grayscale expansion in the controller, the compensation parameters of the M reference grayscales are calculated using the expansion model and expansion parameters to perform grayscale expansion, thereby obtaining compensation parameters for N extended grayscales, and saving the compensation parameters for the N extended grayscales in the electronic device. For example, the compensation parameters for the N extended grayscales are consistent with the saving path of the compensation parameters for the M reference grayscales. The embodiments of the present application do not specifically limit the specific timing for the electronic device to perform grayscale expansion.

[0093] In some embodiments, the electronic device may also use the extended model and extended parameters to calculate compensation parameters for the M reference grayscales to optimize the compensation parameters for any of the M reference grayscales. Alternatively, the electronic device may accept manual adjustments by production line equipment staff to update the compensation parameters for any of the M reference grayscales, thereby achieving a better image compensation effect based on the compensation parameters.

[0094] In some examples, the electronic device can use the extension model and the extension parameters to calculate the compensation parameters of the M reference gray scales to optimize the compensation parameters of any reference gray scale in the M reference gray scales through a unit or module for gray scale extension in the controller.

[0095] As an example, refer to Figure 5 , Figure 5 A display method flowchart of a display screen provided by an embodiment of the present application is shown in FIG. 5, which can include S501-S504. Figure 5

[0096] S501: The electronic device displays a first interface, acquires a screen brightness value, and determines one or more gray scales corresponding to pixels to be compensated in the first interface as target gray scales.

[0097] The screen brightness value is used to represent the screen brightness of the electronic device. In some examples, the screen brightness value can be represented in the form of a brightness number, and of course, the screen brightness value can also be represented in other forms, which are not limited in the embodiments of the present application.

[0098] In some embodiments, for the case that the screen display panel can independently emit light, the screen brightness value can be the light emission brightness value of the screen display panel.

[0099] In some embodiments, for the case that the screen display panel cannot independently emit light, a backlight plate (or a backlight module) is usually needed to realize light emission and normal display of the picture by irradiation, and in this case, the screen brightness value can be the light emission brightness value of the backlight plate (or the backlight module).

[0100] Taking the screen brightness value as DBV (display brightness value) for example, the screen brightness value can include but is not limited to any of the following values: 2 nit, 21 nit, 90 nit, 249 nit, 500 nit, 1200 nit.

[0101] As an example, the pixels to be compensated in the first interface are pixels whose color / display brightness cannot meet the preset requirements in the first interface, and the evaluation criteria for the pixels to be compensated are not limited in the embodiments of the present application.

[0102] S502: The electronic device determines the compensation parameters for the one or more target gray scales in the first interface according to the screen brightness value and the saved compensation data, wherein the compensation data includes compensation parameters of a plurality of reference gray scales and compensation parameters of at least one extension gray scale, and the compensation parameters of the at least one extension gray scale are obtained according to the compensation parameters of the plurality of reference gray scales.

[0103] ​The compensation data is stored in a controller or a memory of the electronic device, and the controller is not limited, such as an AP or a DDIC. Preferably, the compensation data can be stored in an AP or a memory with a larger storage space. The compensation parameters of the plurality of reference gray scales included in the compensation data include compensation parameters corresponding to different reference gray scales under different screen brightness values, and the compensation parameters of the at least one extended gray scale included in the compensation data include compensation parameters corresponding to the at least one extended gray scale under different screen brightness values. For example, the compensation parameters of the reference gray scales and the compensation parameters of the extended gray scales can be stored in the electronic device in the form of a corresponding relationship among the screen brightness value, the gray scale, and the compensation parameter. Of course, the compensation parameters can also be stored in the electronic device in other forms, and the embodiments of the present application are not limited in this regard.

[0104] In some embodiments, the AP of the electronic device has the function of gray scale extension, such as including a unit or a module for gray scale extension in the AP. Assuming that the compensation data is stored in the AP, the AP can determine the compensation parameters for one or more target gray scales in the first interface pixel by pixel according to the obtained screen brightness value and the compensation data stored in the AP. Alternatively, assuming that the compensation data is stored in the memory, the AP can determine the compensation parameters for one or more target gray scales in the first interface pixel by pixel according to the obtained screen brightness value and the compensation data read from the memory.

[0105] In some embodiments, the DDIC of the electronic device has the function of gray scale extension. Assuming that the compensation data is stored in the memory, the DDIC can determine the compensation parameters for one or more target gray scales in the first interface pixel by pixel according to the obtained screen brightness value and the compensation data read from the memory. Assuming that the compensation data is stored in the DDIC, the DDIC can determine the compensation parameters for one or more target gray scales in the first interface pixel by pixel according to the obtained screen brightness value and the compensation data stored in the DDIC.

[0106] In some examples, the compensation parameters represent the gray scale compensation amount, such as including the gray scale reduction amount or the gray scale increase amount. In other examples, the compensation parameters represent the target value of the gray scale, such as including the target value. The specific representation form of the compensation parameters is not limited in the embodiments of the present application.

[0107] As an example, the compensation parameters of the plurality of reference gray scales (such as M reference gray scales) are compensation parameters generated by the electronic device before leaving the factory according to the measurement data on the equipment side of the production line, which can achieve a certain display brightness / color display index, wherein the measurement data is obtained by the equipment side of the production line through different backlight brightness display brightness / color related tests on the M (such as M is 2, 3, etc.) reference gray scales.

[0108] Exemplarily, the M reference gray scales can include, but are not limited to, any one or more of the following tie-in gray scales: 5 gray scales, 10 gray scales, 15 gray scales, …, 255 gray scales, and the like. Of course, the present embodiment does not limit the setting step of the reference gray scale. For example, taking a setting step of 8 gray scales as an example, the M reference gray scales can include, but are not limited to, any one or more of the following tie-in gray scales: 8 gray scales, 16 gray scales, 24 gray scales, 32 gray scales, 48 gray scales, 64 gray scales, …, 192 gray scales, and the like. The present embodiment does not make specific limitations.

[0109] As an example, the compensation parameters of the at least one extended gray scale (such as N extended gray scales) are calculated by the electronic device using an extension model and extension parameters on the compensation parameters of the M reference gray scales, where the extension model can include, but is not limited to, a calculation model determined by the electronic device according to the measurement data on the line equipment side, weighted on the compensation parameters of the M reference gray scales, and considering a bias amount, the compensation parameters including one or more weight values determined by the electronic device according to the measurement data on the line equipment side, and in some examples, the compensation parameters can also include one or more bias amounts (shift) determined by the electronic device according to the measurement data on the line equipment side. The specific method and process of determining the extension model, the extension parameters, and the specific method and process of gray scale extension will be described in detail below, and will not be expanded here.

[0110] Exemplarily, the N extended gray scales can include, but are not limited to, any one or more of the following gray scales: 5 gray scales, 10 gray scales, 15 gray scales, …, 255 gray scales, and the like; or taking a setting compensation of 8 gray scales as an example, the N extended gray scales can include any one or more of the following gray scales: 8 gray scales, 16 gray scales, 24 gray scales, 32 gray scales, 48 gray scales, 64 gray scales, …, 192 gray scales, and the like.

[0111] Exemplarily, the electronic device includes a screen depth compensation (Demura) calculation module, and the compensation parameters of the plurality of reference gray scales (such as M reference gray scales), the extension model, and the extension parameters can be generated by the screen depth compensation (Demura) calculation module.

[0112] Exemplarily, the electronic device includes a unit or module for performing gray scale extension, and the compensation parameters of the at least one extended gray scale (such as N extended gray scales) can be generated by the unit or module.

[0113] As an example, the extended parameters include multiple extended parameters under the above-mentioned screen brightness value, and different extended parameters are used to obtain compensation parameters of different extended grayscales by calculating with compensation parameters of M reference grayscales. The extended parameters corresponding to the same extended grayscale at different screen brightness values ​​are generally different. For example, the extended parameters include multiple weight value groups under the above-mentioned screen brightness value, and different weight value groups are used to obtain compensation parameters of different extended grayscales by weighted calculation of compensation parameters of M reference grayscales, and the weight value groups include multiple weight values ​​corresponding to multiple reference grayscales.

[0114] For example, extended parameters such as (W i0 , W i1 ,……,W iM , shift), the extended model may be as shown in the following formula 3:

[0115] G(extended grayscale i)=W i0 *G(reference grayscale 1)+W i1 *G(reference grayscale 2)+……+W iM *G(reference grayscale M)+shift; (Formula 3)

[0116] In the above formula 3, G(reference grayscale 1), G(reference grayscale 2), ..., G(reference grayscale M) represent the compensation parameters of reference grayscale 1, reference grayscale 2, ..., reference grayscale M, respectively; G(extended grayscale i) represents the compensation parameter of extended grayscale i (i is an integer, and 0<i≤N); W i0 、W i1 、……、W iM They respectively represent the weight values ​​corresponding to the compensation parameters of reference grayscale 1, reference grayscale 2, . . . , reference grayscale M when grayscale i is expanded.

[0117] The M reference grayscales include 16 grayscales, 64 grayscales, and 192 grayscales. The extended model is as shown in Formula 3 above. The compensation parameters include the compensation parameters of the first extended grayscale, the compensation parameters of the second extended grayscale, ..., the compensation parameters of the Mth extended grayscale (here M is greater than 2 as an example, in actual applications, M may also be 1 or 2). The first extended grayscale is 16 grayscale, the second extended grayscale is 64 grayscale, and the Mth extended grayscale is 192 grayscale. The compensation parameter of the first extended grayscale includes the first weight value corresponding to the 16 grayscale (denoted as W 10 ), the first weight value corresponding to 64 gray levels (denoted as W 11 ), the first weight value corresponding to 192 gray levels (denoted as W 12 ) and the offset (shift), the compensation parameters of the second extended grayscale include the second weight value corresponding to the 16 grayscales (denoted as W 20 ), the second weight value corresponding to 64 gray levels (denoted as W21 ), a second weight value (denoted as W 22 ) corresponding to 192 gray scales, and a shift, …, the compensation parameters of the third extended gray scale include a third weight value (denoted as W 30 ) corresponding to 16 gray scales, a third weight value (denoted as W 31 ) corresponding to 64 gray scales, a third weight value (denoted as W 32 ) corresponding to 192 gray scales, and a shift.

[0118] G8 = W 10 *G16 + W 11 *G64 + W 12 *G192 + shift; (Formula 4)

[0119] G48 = W 20 *G16 + W 21 *G64 + W 22 *G192 + shift; (Formula 5)

[0120] G128 = W 30 *G16 + W 31 *G64 + W 32 *G192 + shift; (Formula 6).

[0121] In the above Formula 4-Formula 6, G16 represents the compensation parameters of 16 gray scales, G64 represents the compensation parameters of 64 gray scales, and G192 represents the compensation parameters of 192 gray scales.

[0122] As an example, the extended model can be as shown in the following Formula 7:

[0123] G (extended gray scale i) = (W i0 *G (reference gray scale 1) + W i1 *G (reference gray scale 2) + … + W iM *G (reference gray scale M)) * X + shift; (Formula 7)

[0124] In the above Formula 7, G (reference gray scale 1), G (reference gray scale 2), …, G (reference gray scale M) represent the compensation parameters of the reference gray scale 1, the reference gray scale 2, …, the reference gray scale M, respectively, G (extended gray scale i) represents the compensation parameters of the extended gray scale i (i is an integer, and 0 < i ≤ N), W i0 , W i1 , …, W iMrespectively, X is a parameter determined according to the measurement data.

[0125] Taking M reference gray scales including 16 gray scales, 64 gray scales and 192 gray scales, the extension model is as shown in the above formula 7, the compensation parameters include a compensation parameter of a first extension gray scale, a compensation parameter of a second extension gray scale, …, a compensation parameter of an Mth extension gray scale (here, taking M greater than 2 as an example, in actual application, M can also be 1 or 2), the first extension gray scale is 16 gray scales, the second extension gray scale is 64 gray scales, and the Mth extension gray scale is 192 gray scales, the compensation parameter of the first extension gray scale includes a first weight value corresponding to 16 gray scales (denoted as W 10 ), a first weight value corresponding to 64 gray scales (denoted as W 11 ), a first weight value corresponding to 192 gray scales (denoted as W 12 ), and a shift, the compensation parameter of the second extension gray scale includes a second weight value corresponding to 16 gray scales (denoted as W 20 ), a second weight value corresponding to 64 gray scales (denoted as W 21 ), a second weight value corresponding to 192 gray scales (denoted as W 22 ), and a shift, …, the compensation parameter of the third extension gray scale includes a third weight value corresponding to 16 gray scales (denoted as W 30 ), a third weight value corresponding to 64 gray scales (denoted as W 31 ), a third weight value corresponding to 192 gray scales (denoted as W 32 ), and a shift, for example, the compensation parameter of 8 gray scales (denoted as G8), the compensation parameter of 48 gray scales (denoted as G48), …, the compensation parameter of 128 gray scales (denoted as G128) can be respectively extended based on the following formula 8, formula 9 and formula 10:

[0126] G8 = (W 10 *G16 + W 11 *G64 + W 12 *G192) *X + shift; (formula 8)

[0127] G48 = (W 20 *G16 + W 21 *G64 + W 22 *G192) *X + shift; (formula 9)

[0128] G128 = (W 30 *G16 + W 31 *G64 + W 32 *G192) *X + shift; (formula 10).

[0129] In the above formulas 8-10, G16 represents the compensation parameter of 16 gray scales, G64 represents the compensation parameter of 64 gray scales, and G192 represents the compensation parameter of 192 gray scales.

[0130] It should be noted that the above formulas 1 and 7 are only examples of two extension models, and in actual applications, the specific extension model determined based on the measurement data is not limited and can be determined according to specific conditions.

[0131] As an example, the compensation parameters of at least one extension gray scale (such as N extension gray scales) can be calculated by the electronic device before leaving the factory using the extension model and the extension parameters on the compensation parameters of the M reference gray scales, such as interpolation between the M reference gray scales and saved in the electronic device.

[0132] Alternatively, the compensation parameters of at least one extension gray scale (such as N extension gray scales) can be calculated by the electronic device when displaying the first interface according to the screen brightness value and the actual gray scale of the first interface (such as one or more target gray scales), using the extension model and the extension parameters on the compensation parameters of the M reference gray scales, such as interpolation between the M reference gray scales and saved in the electronic device. Based on this, the storage pressure caused by the electronic device storing a large number of compensation parameters can be further reduced.

[0133] The specific timing of the gray scale extension of the electronic device is not limited in the embodiments of the present application.

[0134] For the case where the compensation parameters of the extension gray scale (such as N extension gray scales) are calculated by the electronic device when displaying the picture, S502 can specifically include: first, the electronic device uses the extension model and the extension parameters to extend the compensation parameters of the M reference gray scales according to the screen brightness value, to obtain the compensation parameters of the extension gray scales (such as N extension gray scales) not included in the M reference gray scales in the target gray scale corresponding to one or more pixels to be compensated in the first interface; then, the electronic device determines the compensation parameters for one or more target gray scales according to the screen brightness value, the compensation parameters of the M reference gray scales, and the compensation parameters of the N extension gray scales.

[0135] In some embodiments, the electronic device saves the extension model and the extension parameters. The extension model and the extension parameters can be used to continuously improve the compensation parameters of the extension gray scales to meet the compensation requirements of more gray scales in more scenarios.

[0136] For the compensation parameters of the N extended gray scales, the electronic device extends the compensation parameters of the M reference gray scales using the extension model and the extension parameters before the electronic device is shipped, and saves the compensation parameters in the electronic device. If the M reference gray scales and the N extended gray scales do not include a target gray scale corresponding to a pixel to be compensated at the first interface, the electronic device can use the saved extension model and extension parameters to extend the compensation parameters of the M reference gray scales to obtain the compensation parameters of the target gray scale corresponding to the pixel to be compensated. For example, assuming that the target gray scales include a first target gray scale and a second target gray scale, the compensation data includes the compensation parameters of the first target gray scale and does not include the compensation parameters of the second target gray scale, and the extension parameters include a first weight value group, the first weight value group includes a plurality of weight values corresponding to the M reference gray scales, respectively, the electronic device can determine the compensation parameters of the first target gray scale corresponding to the screen brightness value from the compensation data, and calculate the compensation parameters of the second target gray scale by weighting the compensation parameters of the plurality of reference gray scales according to the plurality of weight values in the first weight value group.

[0137] Alternatively, if the M reference gray scales and the N extended gray scales do not include a target gray scale corresponding to a pixel to be compensated at the first interface, the electronic device can use the saved extension model and extension parameters to extend the compensation parameters of the M reference gray scales and the N extended gray scales to obtain the compensation parameters of the target gray scale corresponding to the pixel to be compensated, so as to realize smooth compensation of the target gray scale and achieve better picture display effect.

[0138] In some embodiments, if the M reference gray scales and the N extended gray scales do not include a target gray scale corresponding to a pixel to be compensated at the first interface, the electronic device can also use a conventional interpolation method to determine the smooth compensation of the target gray scale based on the compensation parameters of two gray scales adjacent to the target gray scale in the M reference gray scales and the N extended gray scales, so as to achieve better picture display effect.

[0139] S503: The electronic device obtains a second interface by performing gray scale compensation on the pixel to be compensated in the first interface according to the determined compensation parameters of one or more target gray scales.

[0140] As an example, the compensation parameter represents a gray scale compensation amount, for example, the compensation parameter includes a gray scale reduction amount or a gray scale increase amount. For this case, the controller of the electronic device can reduce the gray scale of the pixel to be compensated by the gray scale reduction amount indicated by the gray scale reduction compensation parameter corresponding to the screen brightness value, or increase the gray scale of the pixel to be compensated by the gray scale increase amount indicated by the gray scale increase compensation parameter corresponding to the screen brightness value. The controller is not limited to, such as an AP or a DDIC.

[0141] For example, the electronic device can lower the first gray scale by a first gray scale lowering amount, or raise the first gray scale by a first gray scale raising amount, where the first gray scale lowering amount is a gray scale lowering amount corresponding to the first gray scale at the corresponding screen brightness value indicated by the compensation parameter, and the first gray scale raising amount is a gray scale raising amount corresponding to the first gray scale at the corresponding screen brightness value indicated by the compensation parameter; and the electronic device can lower the second gray scale by a second gray scale lowering amount, or raise the second gray scale by a second gray scale raising amount, where the second gray scale lowering amount is a gray scale lowering amount corresponding to the second gray scale at the corresponding screen brightness value indicated by the compensation parameter, and the second gray scale raising amount is a gray scale raising amount corresponding to the second gray scale at the corresponding screen brightness value indicated by the compensation parameter. Of course, the target gray scale corresponding to the pixel to be compensated can also include one or more other gray scales, which are not specifically limited by the embodiments of the present application.

[0142] For example, the compensation parameter based on one or more target gray scales lowers the 2nit 5 gray scale by 5 gray scales for corresponding gray scale compensation, and lowers the 2nit 15 gray scale by 10 gray scales for corresponding gray scale compensation.

[0143] As an example, the compensation parameter represents a target value of the gray scale, such as the compensation parameter including the target value. For this case, the electronic device can adjust (such as lower / raise) the gray scale of the pixel to be compensated to the target value indicated by the compensation parameter.

[0144] For example, the compensation parameter based on one or more target gray scales lowers the 2nit 5 gray scale by 5 gray scales for corresponding gray scale compensation, and lowers the 2nit 15 gray scale by 10 gray scales for corresponding gray scale compensation.

[0145] For example, the compensation parameter based on one or more target gray scales lowers the 2nit 5 gray scale by 5 gray scales for corresponding gray scale compensation, and lowers the 2nit 15 gray scale by 10 gray scales for corresponding gray scale compensation.

[0146] As an example, the AP of the electronic device has the function of gray scale expansion, such as including a unit or module for gray scale expansion in the AP, for such a case, the AP of the electronic device can perform gray scale compensation on the pixels to be compensated in the first interface according to the compensation parameters of one or more target gray scales determined, and obtain the second interface after the gray scale compensation. In some examples, the AP of the electronic device can directly call the DDIC to perform S504 after performing gray scale compensation on the pixels to be compensated in the first interface. In some examples, the AP of the electronic device can perform graphic rendering of the application picture after gray scale compensation by GPU after performing gray scale compensation on the pixels to be compensated in the first interface, and then call the DDIC to perform S504. The rendered application picture is displayed through the display screen 394. As to whether to perform graphic rendering after performing gray scale compensation on the pixels to be compensated in the first interface, the embodiments of the present application are not limited.

[0147] As an example, the DDIC of the electronic device has the function of gray scale expansion, for such a case, the DDIC of the electronic device can perform S504 after performing gray scale compensation on the pixels to be compensated in the first interface according to the compensation parameters of one or more target gray scales determined, and obtaining the second interface.

[0148] S504: The electronic device displays the second interface.

[0149] Exemplarily, the electronic device can call the DDIC to display the second interface to display the second interface through the display screen.

[0150] It should be noted that the above embodiments of the present application only take the electronic device displaying the first interface after the first interface, and then performing gray scale compensation on the pixels to be compensated in the first interface according to the screen brightness value and the saved compensation data, and displaying the second interface obtained after compensation as an example. The embodiments of the present application do not limit whether the electronic device displays the first interface, for example, in some embodiments, when there is a need to display the first interface, the electronic device can modify the interface parameters of the first interface according to the screen brightness value and the saved compensation data to perform gray scale compensation, and then display the second interface obtained after compensation, which can be determined according to specific circumstances.

[0151] It can be understood that based on the embodiments provided by the present application Figure 5The display method of the grayscale compensation-based display screen is shown. The electronic device can compensate one or more gray scales corresponding to pixels to be compensated of the first interface according to the actual screen brightness value and the compensation data. Since the compensation data includes compensation parameters of a plurality of reference gray scales determined based on a large number of display brightness / color related tests of the plurality of reference gray scales under different backlight brightnesses, and compensation parameters of at least one extended gray scale obtained by extending the existing compensation parameters of the plurality of reference gray scales through the extension model and the extension parameters. Therefore, various gray scales in various scenes can be covered. In addition, the scheme can save the compensation data according to a unit or a module with greater storage capacity, such as an AP, a memory, and the like, without increasing the storage cost. Therefore, more compensation parameters can be stored, such as in an ideal case, which can be unlimited, to further ensure the smooth implementation of the scheme, cover more gray scales, improve the accuracy of the compensation results under various brightness and various gray scales, make the color and display brightness of the display screen meet the subjective visual effect and objective index requirements, such as making the display screen have uniform brightness, uniform chroma, and high consistency between brightness and chroma, and improving the user visual experience.

[0152] For example, refer to Figure 6 , Figure 6 The compensation effect schematic diagrams of two pictures provided by the embodiments of the present application are shown. As shown in Figure 6 , based on the scheme provided by the embodiments of the present application, the color uniformity and the brightness uniformity can be achieved in the high-brightness low-gray-scale scene and the high-brightness high-gray-scale scene. Of course, Figure 6 only as an example, in actual application, the scheme provided by the embodiments of the present application can also be applied to other display scenes such as low-brightness low-gray-scale, low-brightness high-gray-scale, and the like, without limitation.

[0153] As a possible implementation manner, refer to Figure 7 , Figure 7 A method flowchart for obtaining compensation data provided by the embodiments of the present application is shown. As shown in Figure 7 , the compensation parameters and the compensation data can be obtained based on S701-S706 and S707A, or S701-S706 and S707B:

[0154] S701: For a display screen sample i with a screen brightness value of L i , optical data of S i gray scales are obtained.

[0155] Wherein, S i is a positive integer, and S i > 1.

[0156] As a possible implementation method, for multiple display screen samples with specific hardware structures and specific materials, such as different display screen sample 1, display screen sample 2, ..., display screen sample I (I is a positive integer, i∈[1, I]) with different hardware structures and / or different materials, optical data of different screen brightness values ​​and grayscales can be captured through a Demura (screen depth compensation) camera.

[0157] S702: According to the obtained S i The optical data of gray levels generates M i Compensation parameters for a reference grayscale.

[0158] Among them, M i is a positive integer, and M i >1.

[0159] As a possible implementation method, the screen depth compensation (Demura) calculation module deployed on the production line equipment side can be used to calculate the depth of the screen according to the obtained S i The optical data of gray levels generates M i Regarding the specific method and process of generating the compensation parameters of the reference grayscale according to the optical data, reference may be made to conventional technology and is not limited here.

[0160] It should be noted that different display screen samples may have different temperature-varying characteristics and / or characteristics at different screen brightness values ​​due to differences in the hardware structure and / or materials of their RGB EL devices. Therefore, for different display screen samples, the compensation parameters of the reference grayscale at different temperatures and different screen brightnesses may be different. The embodiments of this application do not limit this and can be determined according to actual conditions.

[0161] In some embodiments, the compensation parameters for the reference grayscale described in the embodiments of the present application may be obtained based on the test results of a single test, or may be calculated based on the test results of multiple tests, without specific limitation. For example, to ensure the accuracy of the grayscale compensation results, the operations shown in S701 and S702 may be performed on multiple (e.g., 10) display screen samples from the same batch with a specific hardware structure and specific materials. The compensation parameters for the same temperature, screen brightness, and grayscale of the multiple identical display screen samples may then be averaged to obtain the compensation parameters for the reference grayscale of the display screen sample.

[0162] As an example, see Figure 8 , Figure 8 FIG1 shows a schematic diagram of a grayscale compensation parameter acquisition and grayscale expansion process provided by an embodiment of the present application. Figure 8 As shown, the production line equipment side obtains S i The optical data of gray levels generates M iCompensation parameters of the reference grayscale, such as Figure 8 The compensation parameters of the reference grayscale 1, the compensation parameters of the reference grayscale 2, the compensation parameters of the reference grayscale 3, ..., the reference grayscale M i The compensation parameters ( Figure 8 M i Taking an integer greater than 3 as an example, in practical applications, M i It can also be 2, without limitation).

[0163] S703: Determine the extended parameter P corresponding to the extended model Z i .

[0164] In some embodiments, the extended parameter P i It can be a set of randomly set initialization extension parameters. The extension parameters P can be continuously modified by subsequent subjective and / or objective methods. i .

[0165] In other embodiments, the extended parameter P i The extended parameters can be determined in the following way: the screen depth compensation (Demura) calculation module is based on M i The data correlation between the compensation parameters of the reference grayscales (such as the compensation parameters of 16 grayscales, the compensation parameters of 32 grayscales, the compensation parameters of 64 grayscales and the compensation parameters of 192 grayscales, etc.) determines M i The linear relationship between a certain grayscale and other grayscales in the reference grayscale is used to determine the corresponding expansion parameter.

[0166] For example, Figure 9 As shown, assuming M i The reference grayscales include 16 grayscales, 32 grayscales, 64 grayscales and 192 grayscales, among which the compensation parameters of 16 grayscales, 32 grayscales, 64 grayscales and 192 grayscales are the compensation parameters in the same 4*4 pixel interval, such as Figure 9 As shown, by analyzing the data correlation between the compensation parameters of 32 grayscale in the above 4*4 pixel interval and the compensation parameters of 16 grayscale, 64 grayscale and 192 grayscale in the above 4*4 pixel interval, the linear relationship between the compensation parameters of 32 grayscale and the compensation parameters of the other three grayscales (i.e., 16 grayscale, 64 grayscale and 192 grayscale) can be determined, as shown in the following formula 11:

[0167] G32 = A1*G16 + A2*G64 + A3*G192 + B; (Formula 11)

[0168] Wherein, the above formula 11, G16 represents the compensation parameter of 16 gray scale, G32 represents the compensation parameter of 32 gray scale, G64 represents the compensation parameter of 64 gray scale, G192 represents the compensation parameter of 192 gray scale, A1 represents the weight value corresponding to 16 gray scale, A2 represents the weight value corresponding to 64 gray scale, A3 represents the weight value corresponding to 192 gray scale, B represents the offset. That is, the expansion parameter P i Including A1, A2, A3 and B.

[0169] S704: simulate using the expansion model Z and the expansion parameter P i , based on the compensation parameters of M i Reference gray scale, the compensation parameters of N i Expansion gray scale are generated, and the gray scale compensation is simulated to generate a simulation effect picture.

[0170] Exemplarily, the Cmodel simulation tool can simulate the generation of the compensation parameters of N i Expansion gray scale based on the expansion model Z and the expansion parameter P i , and simulate the gray scale compensation to generate a simulation effect picture.

[0171] Exemplarily, as shown in Figure 8 , the Cmodel simulation tool can calculate the compensation parameters of each reference gray scale according to the expansion parameter P i Based on the expansion model Z, and expand the compensation parameters of N i Expansion gray scale. As shown in Figure 8 , after gray scale expansion, the compensation parameters used for subsequent gray scale compensation have been expanded from the previous M i To M i +N i .

[0172] With M i Reference gray scale includes 16 gray scale, 64 gray scale and 192 gray scale, the expansion model is as shown in the above formula 3, the compensation parameters include the compensation parameters of the first expansion gray scale, the compensation parameters of the second expansion gray scale, …, the compensation parameters of the M i Expansion gray scale (here, M i More than 2 as an example, in actual application, M i May be 1 or 2), the first expansion gray scale is 16 gray scale, the second expansion gray scale is 64 gray scale, and the Mth expansion gray scale is 192 gray scale, the compensation parameters of the first expansion gray scale include the weight value corresponding to 16 gray scale (denoted as W i(10) ), the weight value corresponding to 64 gray scale (denoted as W i(11) ), and the weight value corresponding to 192 gray scale (denoted as W i(12)) and the offset (shift), the compensation parameters of the second extended grayscale include the weight value corresponding to the 16 grayscales (denoted as W i(20) ), the weight value corresponding to 64 gray levels (denoted as W i(21) ), the weight value corresponding to 192 gray levels (denoted as W i(22) ) and the offset (shift), ..., the compensation parameters of the third extended grayscale include the weight values ​​corresponding to the 16 grayscales (denoted as W i(30) ), the weight value corresponding to 64 gray levels (denoted as W i(31) ), the weight value corresponding to 192 gray levels (denoted as W i(32) ) and the offset (shift) as an example, the compensation parameters for 8 grayscales (denoted as G8), 48 grayscales (denoted as G48), ..., and 128 grayscales (denoted as G128) can be expanded based on the following formulas 12, 13, and 14, respectively:

[0173] G8=W i(10) *G16+W i(11) *G64+W i(12) *G192+shift; (Formula 12)

[0174] G48=W i(20) *G16+W i(21) *G64+W i(22) *G192+shift; (Formula 13)

[0175] G128=W i(30) *G16+W i(31) *G64+W i(32) *G192+shift; (Formula 14).

[0176] M i The reference grayscales include 16 grayscales, 64 grayscales, and 192 grayscales. The extended model is as shown in the above formula 7. The compensation parameters include the compensation parameters of the first extended grayscale, the compensation parameters of the second extended grayscale, ..., the Mth extended grayscale, i The compensation parameters of the extended grayscale (here M i Greater than 2 as an example, in actual applications M i It may also be 1 or 2), the first extended grayscale is 16 grayscales, the second extended grayscale is 64 grayscales, and the Mth extended grayscale is 192 grayscales. The compensation parameter of the first extended grayscale includes the weight value corresponding to the 16 grayscales (denoted as W i(10) ), the weight value corresponding to 64 gray levels (denoted as W i(11) ), the weight value corresponding to 192 gray levels (denoted as W i(12) ) and the offset (shift), the compensation parameters of the second extended grayscale include the weight value corresponding to the 16 grayscales (denoted as Wi(20) ), the weight value corresponding to 64 gray scales (denoted as W i(21) ), the weight value corresponding to 192 gray scales (denoted as W i(22) ), and a shift, the compensation parameters of the third extended gray scale include the weight value corresponding to 16 gray scales (denoted as W i(30) ), the weight value corresponding to 64 gray scales (denoted as W i(31) ), the weight value corresponding to 192 gray scales (denoted as W i(32) ), and a shift, for example, the compensation parameters of 8 gray scales (denoted as G8), the compensation parameters of 48 gray scales (denoted as G48), …, the compensation parameters of 128 gray scales (denoted as G128) can be respectively extended based on the following formula 15, formula 16, formula 17:

[0177] G8 = (W i(10) *G16 + W i(11) *G64 + W i(12) *G192) * X + shift; (formula 15)

[0178] G48 = (W i(20) *G16 + W i(21) *G64 + W i(22) *G192) * X + shift; (formula 16)

[0179] G128 = (W i(30) *G16 + W i(31) *G64 + W i(32) *G192) * X + shift; (formula 17)

[0180] For other algorithms of the extension model, similar methods can also be used for gray scale extension, which will not be described here.

[0181] In some embodiments, for the case that the set of initialization extension parameters P i is randomly set, since the initialization extension parameters P i usually cannot achieve good picture compensation effect, it is usually necessary to continuously correct the extension parameters to obtain more accurate extension parameters. For example, the final extension parameters with higher accuracy can be determined through the following S705A or S705B.

[0182] In some embodiments, for the case that the extension parameter P i is determined according to the linear relationship between the compensation parameters of each reference gray scale, in some examples, the extension parameter P i can be directly used as the extension parameter corresponding to the display screen sample i, and the compensation parameters of M iThe compensation parameters of the extended grayscales are used as compensation data corresponding to the display sample i. Of course, in order to obtain more accurate extended parameters, in some examples, the following S705A or S705B may be used to determine the final extended parameters with higher accuracy.

[0183] In some embodiments, in addition to using the extended model Z and the extended parameter P i , based on M i The compensation parameters of the reference grayscale are used to expand the grayscale to generate N i The compensation parameters of the extended grayscale can also be used with the extended model Z and the extended parameter P i Based on M i Compensation parameter optimization of the reference grayscale i The compensation parameters of any reference grayscale among the reference grayscales.

[0184] For example, the extended model Z and the extended parameter P can be used i Based on the compensation parameters of 16 grayscales, 64 grayscales, and 192 grayscales, the compensation parameters of 16 grayscales are optimized using the following formula 18 or formula 19:

[0185] G16'=W i(40) *G16+W i(41) *G64+W i(42) *G192+shift; (Formula 18)

[0186] G16'=(W i(40) *G16+W i(41) *G64+W i(42) *G192)*X+shift; (Formula 19)

[0187] Among them, in the above formula 18 and formula 19, W i(40) 、W i(41) and W i(42 are the weight values ​​corresponding to 6 grayscale, 64 grayscale, and 192 grayscale during G16 optimization; G16' is the compensation parameter of 16 grayscale obtained after optimization.

[0188] S705: Display simulation effect diagram.

[0189] For example, after completing the generation of the simulation effect diagram, the Cmodel simulation tool can display the simulation effect diagram through the display screen provided by the tool, or send the simulation effect diagram to other display screens for display, which is not limited in the embodiments of the present application.

[0190] S706: Obtaining the evaluation results of the tester on the simulation effect diagram and / or the measurement results of the preset optical indicators of the simulation effect diagram based on the optical measurement equipment.

[0191] Exemplarily, the preset optical index is E1 and / or E5, but the specific optical index for evaluating the simulation effect picture is not limited in the embodiments of the present application, and can be determined according to specific conditions.

[0192] That is, in the embodiments of the present application, the simulation effect picture after the gray scale compensation can be evaluated based on the subjective method and / or the objective method. The evaluation of the simulation effect picture by the tester is the subjective method, and the measurement of the preset optical index of the simulation effect picture based on the optical measurement equipment is the objective method. If the evaluation result of the subjective method meets the expectation (for example, the evaluation result is the first evaluation result) and / or the measurement result of the objective method meets the expectation (for example, the measurement result is the first measurement result), the expansion parameter is not modified, as shown in S707A; if the evaluation result of the subjective method meets the expectation (for example, the evaluation result is the second evaluation result) and / or the measurement result of the objective method meets the expectation (for example, the measurement result is the second measurement result), the iteration of the gray scale compensation and simulation is performed again after adjusting the expansion parameter, as shown in S707B below.

[0193] The optical measurement equipment can be used to measure the luminance uniformity and chrominance uniformity of the current picture, and the consistency between the luminance and the chrominance; the optical measurement equipment can include but is not limited to a luminance meter (such as LMK, CS2000, etc.), a color analyzer (such as CA410), and the like, and the embodiments of the present application are not limited.

[0194] S707A: according to the first evaluation result of the simulation effect picture by the tester and / or the first measurement result of the preset optical index of the simulation effect picture based on the optical measurement equipment, it is determined that the expansion parameter P i As the expansion parameter corresponding to the display screen sample i, the compensation parameter of M i reference gray scales and the compensation parameter of N i expansion gray scales are taken as the compensation data corresponding to the display screen sample i.

[0195] S707B: according to the second evaluation result of the simulation effect picture by the tester and / or the second measurement result of the preset optical index of the simulation effect picture based on the optical measurement equipment, the expansion parameter P i is adjusted and then iterated again.

[0196] Exemplarily, after the expansion parameter P i is adjusted, the simulation based on the expansion model Z and the adjusted expansion parameter (such as P iThe compensation parameters for gray scale expansion are generated, and the gray scale compensation is simulated to regenerate the simulation effect picture, and then the regenerated simulation effect picture is evaluated (e.g., S704-S706 are performed again) based on the subjective method and / or the objective method until the evaluation result of the subjective method meets the expectation (e.g., the evaluation result is the first evaluation result) and / or the measurement result of the objective method meets the expectation (e.g., the measurement result is the first measurement result).

[0197] wherein the above-mentioned expansion parameter P i The adjustment is performed automatically according to a preset step or manually by a worker on the production line equipment side, which is not limited in the embodiments of the application.

[0198] Based on this, the expansion parameter can be continuously corrected based on the subjective method and / or the objective method to obtain a more accurate expansion parameter, improve the accuracy of the compensation result at each brightness and each gray scale, make the color and display brightness of the display picture meet the subjective visual effect and the objective index requirement, and improve the user visual experience.

[0199] It should be understood that the various schemes of the embodiments of the application can be reasonably combined for use, and the explanation or description of each term appearing in the embodiments can be mutually referenced or explained in the various embodiments, and this is not limited.

[0200] It should also be understood that in various embodiments of the application, the size of the serial number of the above-mentioned processes does not mean the order of execution, and the execution order of the processes 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 application.

[0201] It can be understood that electronic devices and the like contain hardware structures and / or software modules corresponding to the execution of each function in order to realize the functions of any one of the above-mentioned embodiments. Those skilled in the art should easily realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the application.

[0202] The embodiments of the present application can divide the electronic device into function modules, for example, each function module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be realized in the form of hardware or in the form of a software function module. It should be noted that the division of the module in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division manner can be used. It should also be understood that each module in the electronic device can be realized in the form of software and / or hardware, and is not specifically limited. In other words, the electronic device is presented in the form of a function module. The "module" herein can refer to an application specific integrated circuit (ASIC), a circuit, a processor and a memory executing one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.

[0203] In an alternative manner, when the data transmission is implemented by using software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are implemented in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital video disk (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)), etc.

[0204] The steps of methods or algorithms described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, a removable media, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium can be integral to the processor. The processor and the storage medium can reside in an ASIC. Alternatively, the processor and the storage medium can reside as discrete components in a computing device. Indeed, the functions of the processor and the storage medium can be provided through the platforms, such as Google and the like, and / or software modules that execute on platform-based servers, as is / are known in the art.

[0205] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for description, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

Claims

1. A display method of a display screen, characterized by, The method comprises: displaying a first interface, and obtaining a screen brightness value; determining a target gray scale corresponding to a pixel to be compensated in the first interface; determining compensation parameters of the target gray scale according to the screen brightness value and compensation data, wherein the compensation data comprises compensation parameters of a plurality of reference gray scales and compensation parameters of at least one extended gray scale, and the compensation parameters of the at least one extended gray scale are determined according to the compensation parameters of the plurality of reference gray scales; performing gray scale compensation on the pixel to be compensated according to the compensation parameters of the target gray scale to obtain a second interface; and displaying the second interface.

2. The method of claim 1, wherein, The method further comprises: obtaining compensation parameters of the plurality of reference gray scales and an expansion parameter, wherein the expansion parameter is used to obtain compensation parameters of an extended gray scale by calculation based on the compensation parameters of the plurality of reference gray scales.

3. The method according to claim 1 or 2, characterized in that, The expansion parameter comprises a plurality of expansion parameters corresponding to the screen brightness value, and different expansion parameters are used to obtain compensation parameters of different extended gray scales by calculation based on the compensation parameters of the plurality of reference gray scales.

4. The method of claim 3, wherein, The expansion parameter corresponding to the same extended gray scale is different under different screen brightness values.

5. The method according to any one of claims 1-4, characterized in that, The expansion parameter comprises a plurality of weight value groups corresponding to the screen brightness value, different weight value groups are used to obtain compensation parameters of different extended gray scales by weighted calculation based on the compensation parameters of the plurality of reference gray scales, and each weight value group comprises a plurality of weight values corresponding to the plurality of reference gray scales.

6. The method according to any one of claims 2-5, characterized in that, The expansion parameter comprises a weight value group corresponding to each of the at least one extended gray scale, and the method further comprises: obtaining the compensation parameters of the at least one extended gray scale by weighted calculation based on the compensation parameters of the plurality of reference gray scales according to the expansion parameter.

7. The method according to any one of claims 3-6, characterized in that, The target gray scale comprises a first target gray scale and a second target gray scale, the compensation data comprises the compensation parameters of the first target gray scale and does not comprise the compensation parameters of the second target gray scale, the expansion parameter comprises a first weight value group, the first weight value group comprises a plurality of weight values corresponding to the plurality of reference gray scales, and the determination of the compensation parameters of the target gray scale according to the screen brightness value and the compensation data comprises: determining the compensation parameters of the first target gray scale corresponding to the screen brightness value from the compensation data; and obtaining the compensation parameters of the second target gray scale by weighted calculation based on the compensation parameters of the plurality of reference gray scales according to the plurality of weight values in the first weight value group.

8. The method of any one of claims 1-7, wherein: the compensation data is stored in any one of the following: an application processor of the electronic device, a memory of the electronic device, and a display driver integrated circuit of the electronic device.

9. The method of claim 8, wherein: the compensation data is stored in the application processor or the memory, the compensation parameters of the target gray scale are determined by the application processor according to the screen brightness value and the compensation data, and the gray scale compensation on the pixel to be compensated is performed by the application processor or the display driver integrated circuit; or ​ The compensation data is stored in the display driving integrated circuit or the memory, the compensation parameter of the target gray scale is determined by the display driving integrated circuit according to the screen brightness value and the compensation data, and the gray scale compensation of the pixel to be compensated is performed by the display driving integrated circuit.

10. The method of any one of claims 1-9, wherein, the compensation parameter of the target gray scale comprises a gray scale reduction amount, and the gray scale compensation of the pixel to be compensated according to the compensation parameter of the target gray scale comprises reducing the gray scale of the pixel to be compensated by the gray scale reduction amount; or the compensation parameter of the target gray scale comprises a gray scale increase amount, and the gray scale compensation of the pixel to be compensated according to the compensation parameter of the target gray scale comprises increasing the gray scale of the pixel to be compensated by the gray scale increase amount.

11. The method of any one of claims 1-9, wherein, the compensation parameter of the target gray scale comprises a target value, and the gray scale compensation of the pixel to be compensated according to the compensation parameter of the target gray scale comprises adjusting the gray scale of the pixel to be compensated to the target value. The electronic device comprises: a display screen configured to display a first interface; 12. An electronic device, comprising: a memory configured to store computer program instructions; a controller configured to execute the computer program instructions to obtain a screen brightness value, determine a target gray scale corresponding to a pixel to be compensated in the first interface, and determine a compensation parameter of the target gray scale according to the screen brightness value and compensation data, the compensation parameter of the target gray scale being used for gray scale compensation of the pixel to be compensated. The compensation data is stored in any one of the following: the controller, the memory, the compensation data comprises compensation parameters of a plurality of reference gray scales and compensation parameters of at least one extended gray scale, and the compensation parameters of the at least one extended gray scale are determined according to the compensation parameters of the plurality of reference gray scales. The controller is further configured to: obtain the compensation parameters of the plurality of reference gray scales and an extension parameter, the extension parameter being used to obtain the compensation parameters of the extended gray scale through calculation with the compensation parameters of the plurality of reference gray scales.

13. The electronic device of claim 12, wherein, The extension parameter comprises a weight value group corresponding to the at least one extended gray scale, and the controller is further configured to: weight and calculate the compensation parameters of the plurality of reference gray scales according to the extension parameter to obtain the compensation parameters of the at least one extended gray scale.

14. The electronic device of claim 13, wherein, The target gray scale comprises a first target gray scale and a second target gray scale, the compensation data comprises the compensation parameter of the first target gray scale and does not comprise the compensation parameter of the second target gray scale, the extension parameter comprises a first weight value group, the first weight value group comprises a plurality of weight values corresponding to the plurality of reference gray scales respectively, and the controller is configured to: determine the compensation parameter of the first target gray scale corresponding to the screen brightness value from the compensation data; 15. The electronic device of claim 13 or 14, wherein, weight and calculate the compensation parameters of the plurality of reference gray scales according to the plurality of weight values in the first weight value group to obtain the compensation parameter of the second target gray scale. ​ ​ 16. The electronic device of any of claims 12-15, wherein the controller is an application processor, the compensation data is stored in the application processor or the memory, and the compensation parameter for the target gray level is determined by the application processor based on the screen brightness value and the compensation data, and the gray level compensation for the pixel to be compensated is performed by the application processor. or wherein the controller comprises an application processor and a display driver integrated circuit, the compensation data is stored in the application processor or the memory, and the compensation parameter for the target gray level is determined by the application processor based on the screen brightness value and the compensation data, and the gray level compensation for the pixel to be compensated is performed by the display driver integrated circuit. or wherein the controller is a display driver integrated circuit, the compensation data is stored in the display driver integrated circuit or the memory, and the compensation parameter for the target gray level is determined by the display driver integrated circuit based on the screen brightness value and the compensation data, and the gray level compensation for the pixel to be compensated is performed by the display driver integrated circuit.

17. The electronic device of any of claims 12-16, wherein the compensation parameter for the target gray level comprises a gray level decrease amount, and the controller is configured to decrease the gray level of the pixel to be compensated by the gray level decrease amount. or wherein the compensation parameter for the target gray level comprises a gray level increase amount, and the controller is configured to increase the gray level of the pixel to be compensated by the gray level increase amount.

18. The electronic device of any of claims 12-16, wherein the compensation parameter for the target gray level comprises a target value, and the controller is configured to adjust the gray level of the pixel to be compensated to the target value. The computer readable storage medium has stored thereon computer program instructions which, when executed by processing circuitry, implement the method of any of claims 1-11. The computer program product, when running on a computer, causes the computer to perform the method of any of claims 1-11. ​ ​ ​ ​ 19. A computer-readable storage medium, characterized in that, ​ 20. A computer program product comprising instructions, characterized in that, ​