Gray scale compensation data generation method and device, equipment, storage medium and program product

By converting and storing the grayscale compensation data of the AMOLED screen in block areas, the problem of uneven brightness of the AMOLED screen and uneven brightness of the color channel during low grayscale display is solved, and the storage volume is compressed and brighter Improved uniformity.

CN118942396APending Publication Date: 2024-11-12GLENFLY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411268812.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the uneven brightness problem of AMOLED screen display results in a large storage amount of grayscale compensation data, and the color channel brightness unevenness is complex during low grayscale display, making it difficult to effectively compensate.

Method used

By obtaining the brightness data of multiple grayscale images under the target shooting brightness, the original grayscale compensation data of different display grayscales are determined, and converted into target grayscale compensation data of the block area, which is stored in units of the block area, and the use is taken The median, mean rounding or mode algorithm is used to process to reduce the amount of storage.

Benefits of technology

It effectively compresses the storage amount of grayscale compensation data, improves the color channel brightness uniformity of AMOLED screen when displaying low grayscale, and reduces storage requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118942396A_ABST
    Figure CN118942396A_ABST
Patent Text Reader

Abstract

The invention relates to a gray scale compensation data generation method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring brightness data of a plurality of gray-scale pictures shot under target shooting brightness, wherein different gray-scale pictures correspond to different display gray scales; according to the brightness data of the plurality of gray scale pictures, respectively determining original gray scale compensation data of each pixel corresponding to different display gray scales; determining a storage gray scale from the plurality of display gray scales; the original gray scale compensation data of the pixels corresponding to the different storage gray scales are converted into target gray scale compensation data of block areas corresponding to the different storage gray scales, and the block areas are areas containing multiple pixels; and storing the target gray scale compensation data of the block regions corresponding to different storage gray scales. By adopting the method, the storage capacity of the gray scale compensation value can be compressed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image display technology, and in particular to a method, device, equipment, storage medium and program product for generating grayscale compensation data. Background Art

[0002] Active-Matrix Organic Light-Emitting Diodes (AMOLED) screens have the characteristics of wide color gamut, wide viewing angle, and independent light emission, and are widely used in the field of image display. In order to eliminate the uneven display brightness of AMOLED screens caused by the manufacturing process, an image display brightness compensation algorithm is usually used to compensate the display brightness of the AMOLED screen.

[0003] In the related art, when using the compensation algorithm of image display brightness to compensate the display brightness of the AMOLED screen, it is necessary to calculate the grayscale compensation data for each color channel (RGB) under different display grayscales based on the screen size of the AMOLED screen, and then store each grayscale compensation data with a bit width of 5 bits. Therefore, the grayscale compensation data generated in the related art will occupy a large amount of storage. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, equipment, storage medium and program product for generating grayscale compensation data that can compress the storage volume of grayscale compensation data in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a method for generating grayscale compensation data, comprising:

[0006] Obtaining brightness data of multiple grayscale images captured at target shooting brightness, where different grayscale images correspond to different display grayscales;

[0007] Determining original grayscale compensation data of each pixel corresponding to different display grayscales respectively according to the brightness data of the plurality of grayscale images;

[0008] Determining a storage grayscale from a plurality of display grayscales;

[0009] Converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of block areas corresponding to different stored grayscales, wherein the block area is an area including a plurality of pixels;

[0010] The target grayscale compensation data of the block areas corresponding to the different stored grayscales are stored.

[0011] In one embodiment, the brightness data of the grayscale image includes brightness data of multiple pixels in the grayscale image; and determining the original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of the multiple grayscale images includes:

[0012] Solving a preset grayscale-brightness relationship curve function according to the brightness data of multiple pixels in the multiple grayscale images to determine relationship parameters in the grayscale-brightness relationship curve;

[0013] Generate a grayscale difference function according to the relationship parameters in the grayscale brightness relationship curve;

[0014] Acquire standard brightness data of different display grayscales, wherein the standard brightness data is the brightness data of the central area of ​​the corresponding grayscale picture;

[0015] The standard brightness data of the different display grayscales and the brightness data of a plurality of pixels in the grayscale picture corresponding to the different display grayscales are input into the grayscale difference function, and the original grayscale compensation data of each pixel corresponding to the different display grayscales is obtained by solving.

[0016] In one embodiment, the original grayscale compensation data of each pixel corresponding to different stored grayscales are converted into target grayscale compensation data of block areas corresponding to different stored grayscales, including:

[0017] Acquire configuration data of at least one block area, wherein the configuration data includes a size of the block area and a conversion algorithm of the block area;

[0018] According to the size of the block area, determining the original grayscale compensation data of a plurality of pixels contained in each block area from the original grayscale compensation data of each pixel corresponding to the different stored grayscales;

[0019] The target grayscale compensation data is obtained by processing the original grayscale compensation data of a plurality of pixels contained in each block area using the conversion algorithm of the block area.

[0020] In one embodiment, the conversion algorithm includes a median algorithm, a mean algorithm or a mode algorithm.

[0021] In one of the embodiments, the at least one block area includes a primary block area and a secondary block area, and the size of the secondary block area is larger than the size of the primary block area;

[0022] The using the conversion algorithm of the block area to process the original grayscale compensation data of a plurality of pixels contained in each block area to obtain the target grayscale compensation data includes:

[0023] The conversion algorithm of the primary block area is used to process the original grayscale compensation data of a plurality of pixels contained in the primary block area to obtain a first compensation calculation value;

[0024] The conversion algorithm of the secondary block area is used to process the original grayscale compensation data of a plurality of pixels contained in the secondary block area to obtain a second compensation calculation value;

[0025] The target grayscale compensation data is obtained according to the first compensation calculation value and the second compensation calculation value.

[0026] In one embodiment, the target shooting brightness includes a first shooting brightness and a second shooting brightness; the target grayscale compensation data includes first target grayscale compensation data at the first shooting brightness and second target grayscale compensation data at the second shooting brightness; the method further includes:

[0027] The first target grayscale compensation data and the second target grayscale compensation data are weighted to obtain final grayscale compensation data of block areas corresponding to different stored grayscales.

[0028] In one of the embodiments, after storing the target grayscale compensation data of the block areas corresponding to the different stored grayscales, the method further includes:

[0029] receiving setting information of a virtual grayscale, the setting information being used to set at least one virtual grayscale, the value of the virtual grayscale being within a value interval formed by values ​​of any two stored grayscales;

[0030] Acquire target grayscale compensation data of a block area corresponding to two adjacent storage grayscales of each virtual grayscale;

[0031] Obtaining a preset grayscale generation coefficient;

[0032] The target grayscale compensation data of each virtual grayscale is generated according to the target grayscale compensation data of the block area corresponding to the two storage grayscales adjacent to each virtual grayscale and the grayscale generation coefficient.

[0033] In a second aspect, the present application provides a device for generating grayscale compensation data, comprising:

[0034] An acquisition module is used to acquire brightness data of multiple grayscale images captured under target shooting brightness, where different grayscale images correspond to different display grayscales;

[0035] A processing module, for determining original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of the plurality of grayscale images; determining a storage grayscale from the plurality of display grayscales; and converting the original grayscale compensation data of each pixel corresponding to different storage grayscales into target grayscale compensation data of a block area corresponding to different storage grayscales, wherein the block area is an area including a plurality of pixels;

[0036] The storage module is used to store the target grayscale compensation data of the block area corresponding to the different storage grayscales.

[0037] In one embodiment, the brightness data of the grayscale image includes brightness data of multiple pixels in the grayscale image; the processing module is further used to solve a preset grayscale-brightness relationship curve function according to the brightness data of multiple pixels in the multiple grayscale images, and determine the relationship parameters in the grayscale-brightness relationship curve; generate a grayscale difference function according to the relationship parameters in the grayscale-brightness relationship curve; obtain standard brightness data of different display grayscales, wherein the standard brightness data is the brightness data of the central area of ​​the corresponding grayscale image; input the standard brightness data of different display grayscales and the brightness data of multiple pixels in the grayscale image corresponding to the different display grayscales into the grayscale difference function, and solve to obtain the original grayscale compensation data of each pixel corresponding to the different display grayscales.

[0038] In one of the embodiments, the processing module is also used to obtain configuration data of at least one block area, the configuration data including the size of the block area and the conversion algorithm of the block area; according to the size of the block area, determine the original grayscale compensation data of multiple pixels contained in each block area from the original grayscale compensation data of each pixel corresponding to the different stored grayscales; use the conversion algorithm of the block area to process the original grayscale compensation data of multiple pixels contained in each block area to obtain the target grayscale compensation data.

[0039] In one embodiment, the conversion algorithm includes a median algorithm, a mean algorithm or a mode algorithm.

[0040] In one of the embodiments, the at least one block area includes a primary block area and a secondary block area, and the size of the secondary block area is larger than the size of the primary block area;

[0041] The processing module is also used to process the original grayscale compensation data of multiple pixels contained in the primary block area using the conversion algorithm of the primary block area to obtain a first compensation calculation value; to process the original grayscale compensation data of multiple pixels contained in the secondary block area using the conversion algorithm of the secondary block area to obtain a second compensation calculation value; and to obtain the target grayscale compensation data according to the first compensation calculation value and the second compensation calculation value.

[0042] In one embodiment, the target shooting brightness includes a first shooting brightness and a second shooting brightness; the target grayscale compensation data includes first target grayscale compensation data at the first shooting brightness and second target grayscale compensation data at the second shooting brightness; the grayscale compensation data generating device further includes:

[0043] The optimization module is used to perform weighted processing on the first target grayscale compensation data and the second target grayscale compensation data to obtain final grayscale compensation data of block areas corresponding to different stored grayscales.

[0044] In one of the embodiments, after storing the target grayscale compensation data of the block areas corresponding to the different stored grayscales, the optimization module is further used to receive setting information of the virtual grayscale, the setting information is used to set at least one virtual grayscale, the value of the virtual grayscale is in a value interval formed by the values ​​of any two stored grayscales; obtain the target grayscale compensation data of the block areas corresponding to two adjacent stored grayscales for each virtual grayscale; obtain a preset grayscale generation coefficient; and generate the target grayscale compensation data of each virtual grayscale according to the target grayscale compensation data of the block areas corresponding to the two adjacent stored grayscales for each virtual grayscale and the grayscale generation coefficient.

[0045] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method for generating grayscale compensation data when executing the computer program.

[0046] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned method for generating grayscale compensation data when executed by a processor.

[0047] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the above-mentioned method for generating grayscale compensation data when executed by a processor.

[0048] The above-mentioned grayscale compensation data generation method, device, equipment, storage medium and program product first obtain the brightness data of multiple grayscale images captured at the target shooting brightness, and different grayscale images correspond to different display grayscales. Secondly, according to the brightness data of the multiple grayscale images, the original grayscale compensation data of each pixel corresponding to the different display grayscales are determined respectively, and the storage grayscale is determined from the multiple display grayscales. Thirdly, the original grayscale compensation data of each pixel corresponding to the different storage grayscales are converted into the target grayscale compensation data of the block area corresponding to the different storage grayscales, and the block area is an area containing multiple pixels. Finally, the target grayscale compensation data of the block area corresponding to the different storage grayscales is stored. Since the original grayscale compensation data of each pixel is converted into the target grayscale compensation data of the block area in units of block area when storing the grayscale compensation data, the storage amount of the grayscale compensation data can be compressed. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A diagram of an application environment of a method for generating grayscale compensation data provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a flow chart of a method for generating grayscale compensation data provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of a flow chart of another method for generating grayscale compensation data provided in an embodiment of the present application;

[0053] Figure 4 A schematic flow chart of another method for generating grayscale compensation data provided in an embodiment of the present application;

[0054] Figure 5 A structural block diagram of a device for generating grayscale compensation data provided in an embodiment of the present application;

[0055] Figure 6 An internal structure diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] First, the related technology will be described below.

[0058] Active-Matrix Organic Light-Emitting Diodes (AMOLED) screens have the characteristics of wide color gamut, wide viewing angle, and independent light emission, and are widely used in the field of image display. However, in the manufacturing process of AMOLED screens, due to factors such as the non-uniformity of amorphous silicon (A-SI), unstable air pressure in the annealing chamber during the electron beam evaporation (ELA) stage, interference between parallel and scanning directions caused by the optical system, the formation of CVD films, and platform vibration, a large number of display brightness unevenness (Mura) defects may be introduced into AMOLED screens.

[0059] In order to eliminate the uneven display brightness of the AMOLED screen caused by the manufacturing process, the compensation algorithm of the image display brightness is usually used to compensate the display brightness of the AMOLED screen. The compensation of Mura is affected by the display brightness. Usually, the conduction of the pixels in the AMOLED screen is controlled by the Metal-Oxide-Semiconductor Field-EffectTransistor (MOSFET) device. The MOSFET device works in the saturation region. The conduction current of the MOSFET is affected by the threshold voltage. As the display brightness decreases. The pixel in the AMOLED corresponds to the critical state of the MOSFET device working in the saturation region and the linear region, an unstable display effect may occur, resulting in serious color cast and split screen phenomenon of the AMOLED screen. In the early stage of the process, the compensation of Mura is mainly for the compensation of the display mode of the display brightness value (Display Brightness Value) in the normal (Normal) case. At present, in order to achieve a better display effect, the problem of uneven brightness of the color channel (RGB) pixels needs to be solved for low grayscale display in the low DBV mode, and the compensation of Mura is also more complicated.

[0060] In the related art, when using an image display brightness compensation algorithm to compensate for the display brightness of an AMOLED screen, it is necessary to calculate grayscale compensation data for each color channel (R / G / B) under different display grayscales based on the screen size of the AMOLED screen, and then store each grayscale compensation data with a bit width of 5 bits.

[0061] For example, if the screen size of the AMOLED screen is 2400*1080, the pixels of each RGB color channel store grayscale compensation data, and the bit width of each grayscale compensation data is 5 bits, then when the grayscale compensation data of 3 RGB color channels displaying grayscales are selected to be stored, the required storage space is 2400*1080*3*5=116640000 bits, that is, 111.24 Mbits. Therefore, the grayscale compensation data generated in the related art will occupy a large amount of storage.

[0062] In order to solve the above-mentioned technical problems, the embodiments of the present application provide a method, device, equipment, storage medium and program product for generating grayscale compensation data. Due to the method for generating grayscale compensation data, when storing grayscale compensation data, the original grayscale compensation data of each pixel is converted into target grayscale compensation data of the block area in units of block area, thereby compressing the storage amount of grayscale compensation data.

[0063] The following describes an application scenario of the method for generating grayscale compensation data.

[0064] The method for generating grayscale compensation data provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the shooting device 101 communicates with the processing device 102. The data storage system can store data that the processing device 102 needs to process. The data storage system can be integrated on the processing device 102, or placed on the cloud or other network servers.

[0065] When generating grayscale compensation data, the shooting device 101 can first capture the brightness data of multiple grayscale images at the target shooting brightness, and different grayscale images correspond to different display grayscales. The shooting device 101 sends the brightness data of the captured multiple grayscale images to the processing device 102. Secondly, the processing device 102 determines the original grayscale compensation data of each pixel corresponding to the different display grayscales according to the brightness data of the multiple grayscale images, and determines the storage grayscale from the multiple display grayscales. Thirdly, the processing device 102 converts the original grayscale compensation data of each pixel corresponding to the different storage grayscales into the target grayscale compensation data of the block area corresponding to the different storage grayscales, and the block area is an area containing multiple pixels. Finally, the processing device 102 stores the target grayscale compensation data of the block area corresponding to the different storage grayscales.

[0066] Among them, the shooting device 101 can be a camera, a video camera, etc. The processing device 102 can be a terminal or a server. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0067] In an exemplary embodiment, Figure 2 As shown, a method for generating grayscale compensation data is provided, and the method is applied to Figure 1 The processing device in is taken as an example to illustrate, including S201-S205:

[0068] S201, obtaining brightness data of a plurality of grayscale images captured at a target shooting brightness.

[0069] In the present application, the shooting device can collect brightness data of multiple grayscale images of the display screen at the target shooting brightness, and then send the brightness data of the multiple grayscale images captured to the processing device.

[0070] The brightness data of the grayscale image includes brightness data of a plurality of pixels in the grayscale image.

[0071] In some embodiments, the target shooting brightness can be one or more, and the embodiments of the present application do not limit this. If the target shooting brightness is one, the processing device can obtain a set of brightness data accordingly, and if the target shooting brightness is multiple, the processing device can obtain multiple sets of brightness data accordingly.

[0072] For example, the target shooting brightness may include 600 nits in the normal display mode and 10 nits in the low display mode. Accordingly, the processing device may obtain the brightness data of 600 nits and the brightness data of 10 nits.

[0073] In some embodiments, different grayscale images correspond to different display grayscales. For example, multiple grayscale images may correspond to multiple display grayscales such as 16, 32, 96, 160, 192, 224, etc. Since each grayscale is divided into three color channels of R, G, and B, when shooting each grayscale image showing the grayscale, the brightness data corresponding to the three color channels of R, G, and B may be shot respectively.

[0074] S202 : Determine original grayscale compensation data of each pixel corresponding to different display grayscales according to brightness data of a plurality of grayscale images.

[0075] In this step, after the processing device obtains the brightness data of multiple grayscale images captured at the target shooting brightness, the original grayscale compensation data of each pixel corresponding to different display grayscales can be determined respectively according to the brightness data of the multiple grayscale images.

[0076] The brightness data of the grayscale image includes brightness data of a plurality of pixels in the grayscale image.

[0077] In some embodiments, the processing device may first solve a preset grayscale-brightness relationship curve function according to the brightness data of multiple pixels in multiple grayscale images, and determine the relationship parameters in the grayscale-brightness relationship curve. Secondly, the processing device may generate a grayscale difference function according to the relationship parameters in the grayscale-brightness relationship curve. Thirdly, the processing device may obtain standard brightness data of different display grayscales. Finally, the processing device may input the standard brightness data of different display grayscales and the brightness data of multiple pixels in the grayscale images corresponding to different display grayscales into the grayscale difference function, and solve to obtain the original grayscale compensation data of each pixel corresponding to different display grayscales.

[0078] The standard brightness data is the brightness data of the central area of ​​the corresponding grayscale image. Exemplarily, the brightness data of the central area may be the average value of the brightness data of the central 40×40 pixels.

[0079] Exemplarily, formula (1) is a set of equations corresponding to the grayscale-brightness relationship curve function. By inputting the display grayscale and corresponding brightness data of each pixel of the R, G, and B color channels into formula (1), the relationship parameters gamma1 and b1 in the grayscale-brightness relationship curve can be solved.

[0080]

[0081] Among them, gray1[i] is the value of the i-th grayscale display, lum1[i] is the brightness data corresponding to the i-th grayscale pixel, i∈[16,32,64,128,192,224]. The brightness corresponding to the center area of ​​the screen lum_mid[i] is the brightness data of the center area of ​​the grayscale screen.

[0082] Exemplarily, the processing device can also solve other relationship data gamma and b in the grayscale-brightness relationship curve by bringing the display grayscale of each pixel of the R, G, and B color channels and the corresponding central area brightness data into formula (1).

[0083] Exemplarily, after solving and obtaining the relationship parameters in the grayscale brightness relationship curve, the processing device may construct a grayscale difference function based on the relationship parameters gamma1 and b1. The grayscale difference function may be as shown in formula (2).

[0084]

[0085] in, is the grayscale compensation value, gamma1 and b1 are the relationship parameters in the grayscale brightness relationship curve, gray1[i] is the value of the i-th display grayscale, i∈[16,32,64,128,192,224].

[0086] Exemplarily, after generating the grayscale difference function, the processing device can input the standard brightness data of different display grayscales and the brightness data of multiple pixels in the grayscale picture corresponding to the different display grayscales into the grayscale difference function to obtain the original grayscale compensation data of each pixel corresponding to the different display grayscales.

[0087] In some embodiments, when solving the original grayscale compensation data of each pixel corresponding to different display grayscales, the solution may be performed with color channels as dimensions.

[0088] For example, taking the R channel as an example, the standard brightness data of different display grayscales and the brightness data of multiple pixels of the R channel corresponding to different display grayscales can be input into the grayscale difference function to obtain the original grayscale compensation data of the display grayscale 16. Displays the original grayscale compensation data of grayscale 32 Displays the original grayscale compensation data of grayscale 96 Displays the original grayscale compensation data of grayscale 128 Displays the original grayscale compensation data of grayscale 192 Displays the original grayscale compensation data of grayscale 224

[0089] For example, taking the G channel as an example, the standard brightness data of different display grayscales and the brightness data of multiple pixels of the G channel corresponding to different display grayscales can be input into the grayscale difference function to obtain the original grayscale compensation data of the display grayscale 16. Displays the original grayscale compensation data of grayscale 32 Displays the original grayscale compensation data of grayscale 96 Displays the original grayscale compensation data of grayscale 128 Displays the original grayscale compensation data of grayscale 192 Displays the original grayscale compensation data of grayscale 224

[0090] S203: Determine a storage gray scale from a plurality of display gray scales.

[0091] In this step, after the original grayscale compensation data of each pixel corresponding to different display grayscales are determined, the storage grayscale can be determined from the multiple display grayscales.

[0092] The stored grayscale may be a display grayscale corresponding to the target grayscale compensation data to be stored.

[0093] It should be understood that the embodiments of the present application do not limit how to determine the storage gray scale from multiple display gray scales. In some embodiments, the processing device can receive instruction information input by the user and select one or more storage gray scales from multiple display gray scales.

[0094] Exemplarily, for original grayscale compensation data of six display grayscales, 16, 32, 64, 128, 192, and 224, three may be selected as storage grayscales, for example, 16, 64, and 192 may be selected as storage grayscales.

[0095] S204 , converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of the block area corresponding to different stored grayscales.

[0096] In this step, after the processing device determines the storage grayscale from multiple display grayscales, the original grayscale compensation data of each pixel corresponding to different storage grayscales can be converted into target grayscale compensation data of the block area corresponding to different storage grayscales.

[0097] The block area is an area including multiple pixels.

[0098] In some embodiments, the processing device may obtain configuration data of at least one block area, the configuration data including the size of the block area and the conversion algorithm of the block area. Subsequently, the processing device may determine the original grayscale compensation data of multiple pixels contained in each block area from the original grayscale compensation data of each pixel corresponding to different stored grayscales according to the size of the block area. Finally, the processing device may use the conversion algorithm of the block area to process the original grayscale compensation data of multiple pixels contained in each block area to obtain the target grayscale compensation data.

[0099] It should be understood that the embodiment of the present application does not limit the size of the block area, for example, it can be 1 (row) x2 (column), 2x1, 2x2, 2x4, 4x2, 4x4, etc. For block areas with a size of 1x2 and 2x1, 2 pixels may be included. For a block area with a size of 2x2, 4 pixels may be included. For a block area with a size of 2x4 and 4x2, 8 pixels may be included. For a block area with a size of 4x4, 16 pixels may be included.

[0100] In some embodiments, the processing device can determine the pixels contained in each block area by the size of the block area. Subsequently, the block area conversion algorithm can be used to process the original grayscale compensation data of multiple pixels contained in each block area to obtain the target grayscale compensation data.

[0101] The conversion algorithm of the block area may include a median algorithm, a mean rounding algorithm or a mode algorithm.

[0102] Exemplarily, taking the R channel as an example, a 4x 3 block area is selected, and the original grayscale compensation data of the pixels contained therein is [1,4,2,3,2,-1,-4,-3,2,2,-3,2], and the original grayscale compensation data is sorted as [-3,-3,-4,-1,1,2,2,2,2,2,3,4]. Subsequently, the processing device determines that the median of the original grayscale compensation data is 2 through a median algorithm, and the target grayscale compensation data of the block area is 2.

[0103] Exemplarily, the processing device may also determine that the mean value of the original grayscale compensation data is 0.58 through a mean rounding algorithm, and round it up to 1, so the target grayscale compensation data of the block area is 1.

[0104] Exemplarily, the processing device may also determine that the mode of the original grayscale compensation data is 2 by taking the mode algorithm, and then the target grayscale compensation data of the block area is 2.

[0105] Exemplarily, Table 1 is a parameter table of a block area provided in an embodiment of the present application. As shown in Table 1, according to the 1x1 storage method, the original grayscale compensation data value of each pixel of the R channel in the three display grayscales 16, 64, and 192 requires 4 bits, the G compensation value requires 5 bits, and the B compensation value requires 4 bits. The total storage required is 1080*2400*3*(4+5+4)=101088000Bit=96.4Mbit, that is, a data storage capacity of about 32.14Mbit*3. While using the block area (4x3) storage method, the storage capacity consumed is 1080*2400*(4 / 12+5+4 / 12)*3=14688000bit*3=14Mbit*3=42Mbit, and 42Mbit is much less than 96.4Mbit, that is, the storage mode using multiple block areas can effectively reduce the storage capacity.

[0106] Table 1

[0107]

[0108] In some embodiments, at least one block area includes a primary block area and a secondary block area, and the size of the secondary block area is larger than the size of the primary block area. Accordingly, the processing device can first use the conversion algorithm of the primary block area to process the original grayscale compensation data of multiple pixels contained in the primary block area to obtain a first compensation calculation value. Subsequently, the processing device can use the conversion algorithm of the secondary block area to process the original grayscale compensation data of multiple pixels contained in the secondary block area to obtain a second compensation calculation value. Finally, the processing device can obtain the target grayscale compensation data according to the first compensation calculation value and the second compensation calculation value.

[0109] Exemplarily, when performing block area storage, both primary block areas (small block areas) and secondary block areas (large block areas) may be included, so that the target grayscale compensation data is obtained and stored in a two-level block area manner.

[0110] Exemplarily, the size of the primary block area may be 1x2, 2x1, 2x2, 2x4, 4x2, 4x4, etc., and the size of the secondary block area may be 8x8, 16x16. Table 2 is a parameter table of a multi-level block area provided in an embodiment of the present application. As shown in Table 2, the bit width of the secondary block area may be 5 bits, 6 bits, and the first compensation calculation value and the second compensation calculation value may satisfy formula (3).

[0111]

[0112] in, is the target grayscale compensation data, offset1 is the first compensation calculation value, offset2 is the second compensation calculation value, and Q is the digital amplification magnitude.

[0113] Table 2

[0114]

[0115] It should be understood that for the original grayscale compensation data of the stored grayscale, since each stored grayscale includes the original grayscale compensation data of each pixel corresponding to the three channels of R, G, and B, and each pixel contains a different storage bit width (for example, 3bit, 4bit, 5bit), if the original grayscale compensation data of each pixel is stored in 1X1 mode, that is, the original grayscale compensation data of each pixel is stored in a process, then the storage space consumed is relatively large. In the present application, a block area contains multiple pixels, and the original grayscale compensation data of multiple pixels are converted into the target grayscale compensation data of a block area, thereby greatly reducing the storage consumption. In addition, a multi-level area combination method can be used to further compress the storage consumption.

[0116] S205 , storing target grayscale compensation data of block areas corresponding to different stored grayscales.

[0117] In this step, after the processing device obtains the target grayscale compensation data of the block areas corresponding to different stored grayscales, the target grayscale compensation data of the block areas corresponding to different stored grayscales may be stored.

[0118] In the present application, when storing the target grayscale compensation data, multiple methods may be used to optimize the target grayscale compensation data.

[0119] In some embodiments, the target shooting brightness includes a first shooting brightness and a second shooting brightness; the target grayscale compensation data includes first target grayscale compensation data at the first shooting brightness and second target grayscale compensation data at the second shooting brightness. The processing device can perform weighted processing on the first target grayscale compensation data and the second target grayscale compensation data to obtain final grayscale compensation data of block areas corresponding to different stored grayscales.

[0120] Exemplarily, when compensating for low grayscale Mura, there are factors that affect the accuracy of compensation. Therefore, two sets of brightness data of [32, 64, 128, 192, 224] can be shot at the first shooting brightness and the second shooting brightness, including the brightness data of the maximum brightness of 600nit in the normal mode and the brightness data of the maximum brightness of 10nit. Accordingly, after calculating the compensation data, the first target grayscale compensation data and the second target grayscale compensation data can be obtained. The first target grayscale compensation data and the second target grayscale compensation data can be weighted as shown in formula (4) to obtain the final grayscale compensation data.

[0121]

[0122] Among them, a and b are the weight adjustment values ​​of the target grayscale compensation data, is the first target grayscale compensation data, is the second target grayscale compensation data, is the final grayscale compensation data.

[0123] In other embodiments, the processing device may also receive setting information of a virtual grayscale, the setting information being used to set at least one virtual grayscale, the value of the virtual grayscale being in a value interval formed by the values ​​of any two stored grayscales. Subsequently, the processing device may obtain target grayscale compensation data of a block area corresponding to two adjacent stored grayscales for each virtual grayscale, and obtain a preset grayscale generation coefficient. Finally, the processing device may generate target grayscale compensation data for each virtual grayscale based on the target grayscale compensation data of a block area corresponding to two adjacent stored grayscales for each virtual grayscale and the grayscale generation coefficient.

[0124] Exemplarily, the stored grayscales may include 16, 96, and 192, then the virtual grayscale 32 may be set in the value interval consisting of 16 and 96, and the virtual grayscale 128 may be set in the value interval consisting of 96 and 192. Subsequently, the processing device may obtain the target grayscale compensation data of the stored grayscales 16 and 96 adjacent to the virtual grayscale 32, and obtain the target grayscale compensation data of the stored grayscales 96 and 192 adjacent to the virtual grayscale 128. In addition, the processing device may obtain the preset grayscale generation coefficients m1, n1 and m2, n2. The target grayscale compensation data of the virtual grayscale 32 may be obtained by multiplying the target grayscale compensation data of 16 and 96 by the corresponding grayscale generation coefficients and then adding them. The target grayscale compensation data of the virtual grayscale 128 may be obtained by multiplying the target grayscale compensation data of 96 and 192 by the corresponding grayscale generation coefficients and then adding them.

[0125] Exemplarily, target grayscale compensation data of virtual grayscales 32 and 128 may be as shown in Table 3.

[0126] Table 3

[0127]

[0128] In the present application, the target grayscale compensation data of the virtual grayscale is generated by the preset grayscale generation coefficient and the target grayscale compensation data of the block area corresponding to the two adjacent stored grayscales. Compared with directly calculating the target grayscale compensation data of the virtual grayscale by interpolating the adjacent compensation values, the adjustment method of the grayscale generation coefficient is more flexible and the compensation effect is more controllable. In addition, multiple virtual grayscales and multiple sets of RBG color deviation coefficients are used to optimize the ultra-low grayscale, and the compensation effect is better.

[0129] The method for generating grayscale compensation data provided by the embodiment of the present application first obtains the brightness data of multiple grayscale images captured at the target shooting brightness, and different grayscale images correspond to different display grayscales. Secondly, according to the brightness data of the multiple grayscale images, the original grayscale compensation data of each pixel corresponding to the different display grayscales are respectively determined, and the storage grayscale is determined from the multiple display grayscales. Thirdly, the original grayscale compensation data of each pixel corresponding to the different storage grayscales are respectively converted into the target grayscale compensation data of the block area corresponding to the different storage grayscales, and the block area is an area containing multiple pixels. Finally, the target grayscale compensation data of the block area corresponding to the different storage grayscales is stored. Since the original grayscale compensation data of each pixel is converted into the target grayscale compensation data of the block area in units of block area when storing the grayscale compensation data, the storage amount of the grayscale compensation data can be compressed.

[0130] The following describes how to determine the original grayscale compensation data. Figure 3A flowchart of another method for generating grayscale compensation data provided in an embodiment of the present application is provided. The method for generating grayscale compensation data includes S301-S308:

[0131] S301, obtaining brightness data of a plurality of grayscale images captured at a target shooting brightness, wherein different grayscale images correspond to different display grayscales.

[0132] The brightness data of the grayscale image includes brightness data of a plurality of pixels in the grayscale image.

[0133] S302: Solve a preset grayscale-brightness relationship curve function according to brightness data of multiple pixels in multiple grayscale images to determine relationship parameters in the grayscale-brightness relationship curve.

[0134] S303: Generate a grayscale difference function according to the relationship parameters in the grayscale brightness relationship curve.

[0135] S304 , obtaining standard brightness data of different display grayscales, where the standard brightness data is the brightness data of the central area of ​​the corresponding grayscale image.

[0136] S305 , inputting standard brightness data of different display grayscales and brightness data of multiple pixels in the grayscale picture corresponding to different display grayscales into a grayscale difference function, and solving to obtain original grayscale compensation data of each pixel corresponding to different display grayscales.

[0137] S306: Determine a storage gray scale from a plurality of display gray scales.

[0138] S307 , converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of block areas corresponding to different stored grayscales, where the block area is an area including a plurality of pixels.

[0139] S308 , storing target grayscale compensation data of block areas corresponding to different stored grayscales.

[0140] The following describes how to optimize the target grayscale compensation data. Figure 4 A flowchart of another method for generating grayscale compensation data provided in an embodiment of the present application is provided. The method for generating grayscale compensation data includes S401-S409:

[0141] S401, obtaining brightness data of a plurality of grayscale images captured at a target shooting brightness, wherein different grayscale images correspond to different display grayscales.

[0142] S402 : Determine original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of the plurality of grayscale images.

[0143] S403: Determine a storage gray scale from a plurality of display gray scales.

[0144] S404 , converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of block areas corresponding to different stored grayscales, where the block area is an area including a plurality of pixels.

[0145] S405 , storing target grayscale compensation data of block areas corresponding to different stored grayscales.

[0146] S406: Receive setting information of a virtual gray scale, where the setting information is used to set at least one virtual gray scale, and a value of the virtual gray scale is within a value interval formed by values ​​of any two stored gray scales.

[0147] S407 , obtaining target grayscale compensation data of block areas corresponding to two adjacent storage grayscales of each virtual grayscale.

[0148] S408: Obtain a preset grayscale generation coefficient.

[0149] S409 , generating target grayscale compensation data for each virtual grayscale according to the target grayscale compensation data and the grayscale generation coefficient of the block area corresponding to two adjacent storage grayscales of each virtual grayscale.

[0150] The method for generating grayscale compensation data provided by the embodiment of the present application first obtains the brightness data of multiple grayscale images captured at the target shooting brightness, and different grayscale images correspond to different display grayscales. Secondly, according to the brightness data of the multiple grayscale images, the original grayscale compensation data of each pixel corresponding to the different display grayscales are respectively determined, and the storage grayscale is determined from the multiple display grayscales. Thirdly, the original grayscale compensation data of each pixel corresponding to the different storage grayscales are respectively converted into the target grayscale compensation data of the block area corresponding to the different storage grayscales, and the block area is an area containing multiple pixels. Finally, the target grayscale compensation data of the block area corresponding to the different storage grayscales is stored. Since the original grayscale compensation data of each pixel is converted into the target grayscale compensation data of the block area in units of block area when storing the grayscale compensation data, the storage amount of the grayscale compensation data can be compressed.

[0151] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0152] Based on the same inventive concept, the embodiment of the present application also provides a device for generating grayscale compensation data for implementing the grayscale compensation data generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more grayscale compensation data generation devices provided below can refer to the limitations of the grayscale compensation data generation method above, and will not be repeated here.

[0153] In an exemplary embodiment, Figure 5 As shown, a device 500 for generating grayscale compensation data is provided, comprising: an acquisition module 501, a processing module 502 and a storage module 503, wherein:

[0154] The acquisition module 501 is used to acquire brightness data of multiple grayscale images captured under target shooting brightness. Different grayscale images correspond to different display grayscales.

[0155] The processing module 502 is used to determine the original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of multiple grayscale images; determine the storage grayscale from the multiple display grayscales; and convert the original grayscale compensation data of each pixel corresponding to different storage grayscales into target grayscale compensation data of block areas corresponding to different storage grayscales, where the block area is an area containing multiple pixels.

[0156] The storage module 503 is used to store target grayscale compensation data of block areas corresponding to different stored grayscales.

[0157] In one embodiment, the brightness data of the grayscale image includes the brightness data of multiple pixels in the grayscale image; the processing module 502 is further used to solve a preset grayscale-brightness relationship curve function according to the brightness data of multiple pixels in the multiple grayscale images, and determine the relationship parameters in the grayscale-brightness relationship curve; generate a grayscale difference function according to the relationship parameters in the grayscale-brightness relationship curve; obtain standard brightness data of different display grayscales, the standard brightness data being the brightness data of the central area of ​​the corresponding grayscale image; input the standard brightness data of different display grayscales and the brightness data of multiple pixels in the grayscale image corresponding to the different display grayscales into the grayscale difference function, and solve to obtain the original grayscale compensation data of each pixel corresponding to the different display grayscales.

[0158] In one embodiment, the processing module 502 is also used to obtain configuration data of at least one block area, the configuration data including the size of the block area and the conversion algorithm of the block area; according to the size of the block area, determine the original grayscale compensation data of multiple pixels contained in each block area from the original grayscale compensation data of each pixel corresponding to different stored grayscales; use the conversion algorithm of the block area to process the original grayscale compensation data of multiple pixels contained in each block area to obtain target grayscale compensation data.

[0159] In one embodiment, the conversion algorithm includes a median algorithm, a mean algorithm, or a mode algorithm.

[0160] In one of the embodiments, the at least one block area includes a primary block area and a secondary block area, and the size of the secondary block area is larger than the size of the primary block area.

[0161] The processing module 502 is also used to use the conversion algorithm of the primary block area to process the original grayscale compensation data of multiple pixels contained in the primary block area to obtain a first compensation calculation value; use the conversion algorithm of the secondary block area to process the original grayscale compensation data of multiple pixels contained in the secondary block area to obtain a second compensation calculation value; and obtain the target grayscale compensation data according to the first compensation calculation value and the second compensation calculation value.

[0162] In one embodiment, the target shooting brightness includes a first shooting brightness and a second shooting brightness; the target grayscale compensation data includes first target grayscale compensation data at the first shooting brightness and second target grayscale compensation data at the second shooting brightness; the grayscale compensation data generation device 500 further includes:

[0163] The optimization module is used to perform weighted processing on the first target grayscale compensation data and the second target grayscale compensation data to obtain final grayscale compensation data of block areas corresponding to different stored grayscales.

[0164] In one of the embodiments, after storing the target grayscale compensation data of the block areas corresponding to different stored grayscales, the optimization module is further used to receive setting information of the virtual grayscale, the setting information is used to set at least one virtual grayscale, the value of the virtual grayscale is in a value interval formed by the values ​​of any two stored grayscales; obtain the target grayscale compensation data of the block areas corresponding to two adjacent stored grayscales for each virtual grayscale; obtain a preset grayscale generation coefficient; and generate the target grayscale compensation data of each virtual grayscale according to the target grayscale compensation data and the grayscale generation coefficient of the block areas corresponding to two adjacent stored grayscales for each virtual grayscale.

[0165] Each module in the above-mentioned grayscale compensation data generation device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0166] In an exemplary embodiment, a computer device is provided. The computer device may be the above-mentioned processing device. The processing device may be a terminal or a server. The internal structure diagram thereof may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating grayscale compensation data is implemented.

[0167] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0168] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned method for generating grayscale compensation data when executing the computer program.

[0169] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for generating grayscale compensation data is implemented.

[0170] In one embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned method for generating grayscale compensation data when executed by a processor.

[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0172] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0173] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for generating grayscale compensation data, It is characterized in that The method comprises: Obtaining brightness data of multiple grayscale images captured at target shooting brightness, where different grayscale images correspond to different display grayscales; Determining original grayscale compensation data of each pixel corresponding to different display grayscales respectively according to the brightness data of the plurality of grayscale images; Determining a storage grayscale from a plurality of display grayscales; Converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of block areas corresponding to different stored grayscales, wherein the block area is an area including a plurality of pixels; The target grayscale compensation data of the block areas corresponding to the different stored grayscales are stored.

2. The method according to claim 1, It is characterized in that The brightness data of the grayscale picture includes brightness data of multiple pixels in the grayscale picture; and determining original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of the multiple grayscale pictures respectively includes: Solving a preset grayscale-brightness relationship curve function according to the brightness data of multiple pixels in the multiple grayscale images to determine relationship parameters in the grayscale-brightness relationship curve; Generate a grayscale difference function according to the relationship parameters in the grayscale brightness relationship curve; Acquire standard brightness data of different display grayscales, wherein the standard brightness data is the brightness data of the central area of ​​the corresponding grayscale picture; The standard brightness data of the different display grayscales and the brightness data of a plurality of pixels in the grayscale picture corresponding to the different display grayscales are input into the grayscale difference function, and the original grayscale compensation data of each pixel corresponding to the different display grayscales is obtained by solving.

3. The method according to claim 1, It is characterized in that The step of converting the original grayscale compensation data of each pixel corresponding to different stored grayscales into target grayscale compensation data of block areas corresponding to different stored grayscales comprises: Acquire configuration data of at least one block area, wherein the configuration data includes a size of the block area and a conversion algorithm of the block area; According to the size of the block area, determining the original grayscale compensation data of a plurality of pixels contained in each block area from the original grayscale compensation data of each pixel corresponding to the different stored grayscales; The target grayscale compensation data is obtained by processing the original grayscale compensation data of a plurality of pixels contained in each block area using the conversion algorithm of the block area.

4. The method according to claim 3, It is characterized in that The conversion algorithm includes a median algorithm, a mean rounding algorithm or a mode algorithm.

5. The method according to claim 3, It is characterized in that The at least one block region includes a primary block region and a secondary block region, and a size of the secondary block region is larger than a size of the primary block region; The using the conversion algorithm of the block area to process the original grayscale compensation data of a plurality of pixels contained in each block area to obtain the target grayscale compensation data includes: The conversion algorithm of the primary block area is used to process the original grayscale compensation data of a plurality of pixels contained in the primary block area to obtain a first compensation calculation value; The conversion algorithm of the secondary block area is used to process the original grayscale compensation data of a plurality of pixels contained in the secondary block area to obtain a second compensation calculation value; The target grayscale compensation data is obtained according to the first compensation calculation value and the second compensation calculation value.

6. The method according to any one of claims 1 to 5, It is characterized in that The target shooting brightness includes a first shooting brightness and a second shooting brightness; the target grayscale compensation data includes first target grayscale compensation data at the first shooting brightness and second target grayscale compensation data at the second shooting brightness; the method further includes: The first target grayscale compensation data and the second target grayscale compensation data are weighted to obtain final grayscale compensation data of block areas corresponding to different stored grayscales.

7. The method according to any one of claims 1 to 5, It is characterized in that After storing the target grayscale compensation data of the block areas corresponding to the different stored grayscales, the method further includes: receiving setting information of a virtual grayscale, the setting information being used to set at least one virtual grayscale, the value of the virtual grayscale being within a value interval formed by values ​​of any two stored grayscales; Obtain target grayscale compensation data of a block area corresponding to two adjacent storage grayscales of each virtual grayscale; Obtaining a preset grayscale generation coefficient; The target grayscale compensation data of each virtual grayscale is generated according to the target grayscale compensation data of the block area corresponding to the two storage grayscales adjacent to each virtual grayscale and the grayscale generation coefficient.

8. A device for generating grayscale compensation data, It is characterized in that The device comprises: An acquisition module is used to acquire brightness data of multiple grayscale images captured under target shooting brightness, where different grayscale images correspond to different display grayscales; A processing module, for determining original grayscale compensation data of each pixel corresponding to different display grayscales according to the brightness data of the plurality of grayscale images; determining a storage grayscale from the plurality of display grayscales; and converting the original grayscale compensation data of each pixel corresponding to different storage grayscales into target grayscale compensation data of a block area corresponding to different storage grayscales, wherein the block area is an area including a plurality of pixels; The storage module is used to store the target grayscale compensation data of the block area corresponding to the different storage grayscales.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.