Data processing methods, data processing devices, electronic devices and storage media

By converting the brightness data on the OLED display into gamma values, the problem of uneven display was solved and the storage space occupied was reduced, achieving more efficient brightness data storage and display uniformity.

CN119811285BActive Publication Date: 2025-11-14HEFEI VISIONOX TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510112677.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-11-14
Estimated Expiration
2045-01-22

AI Technical Summary

Technical Problem

The uneven display phenomenon on existing OLED displays is difficult to solve effectively, and storing brightness data occupies a large amount of storage space.

Method used

By acquiring the brightness data of multiple pixels on the display screen under preset display conditions, the original gamma value is determined, and it is converted into a converted gamma value through a preset mapping relationship, reducing the number of bytes required for storage. The converted gamma value is then used to determine the brightness data.

Benefits of technology

It effectively reduces the storage space occupied, while ensuring the brightness distribution of the display screen under the current display conditions and improving display uniformity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119811285B_ABST
    Figure CN119811285B_ABST
Patent Text Reader

Abstract

This application provides a data processing method, a data processing apparatus, an electronic device, and a storage medium. The data processing method includes: acquiring brightness data to be processed for multiple pixels on a display screen under preset display conditions; determining, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixels under the preset display conditions; converting the original gamma value according to a preset third mapping relationship and a preset number of bytes to obtain a converted gamma value; wherein the converted gamma value is used to determine the brightness data of the multiple pixels under the preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed. The method of this application solves the problem of excessive storage space occupied by the data of brightness data to be processed for multiple pixels on a display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to a data processing method, a data processing device, an electronic device, and a storage medium. Background Technology

[0002] Organic light-emitting diode (OLED) and flat panel display devices based on light-emitting diode (LED) technologies are widely used in various consumer electronics products such as mobile phones, televisions, laptops, and desktop computers due to their advantages such as high image quality, energy saving, thin body and wide range of applications, becoming the mainstream of display devices.

[0003] For current OLED display products, uneven display surface is an unavoidable defect. Existing technologies typically employ Demura technology to address this unevenness and improve display quality. Demura technology usually requires brightness data of the pixels on the display to resolve unevenness, and storing this brightness data often occupies a significant amount of storage space. Summary of the Invention

[0004] In view of the above, embodiments of this application provide a data processing method, a data processing apparatus, an electronic device, and a storage medium to at least partially solve the above problems.

[0005] According to a first aspect of the embodiments of this application, a data processing method is provided, including:

[0006] Acquire the brightness data of multiple pixels on the display screen under preset display conditions;

[0007] Based on the brightness data to be processed, determine the original gamma value used to quantify the brightness performance of the pixel under the preset display conditions;

[0008] The original gamma value is converted according to a preset third mapping relationship and a preset number of bytes to obtain a converted gamma value; wherein the converted gamma value is used to determine the brightness data of the multiple pixels under the preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed.

[0009] In an optional embodiment, determining the raw gamma value for quantifying the brightness performance of the pixel under the preset display conditions based on the brightness data to be processed includes:

[0010] Select a portion of the brightness data to be processed, and obtain standard data based on the selected brightness data to be processed;

[0011] Based on the standard data, a first mapping relationship is determined between the standard data and the original grayscale in the preset display conditions. Based on the first mapping relationship, a second mapping relationship is determined between the brightness data to be processed and the original grayscale. Based on the second mapping relationship, an original gamma value for quantifying the brightness performance of the pixel under the preset display conditions is determined.

[0012] In an optional embodiment, determining a first mapping relationship between the standard data and the original grayscale in the preset display conditions based on the standard data, determining a second mapping relationship between the brightness data to be processed and the original grayscale based on the first mapping relationship, and determining an original gamma value for quantizing the brightness performance of the pixel under the preset display conditions based on the second mapping relationship includes:

[0013] Based on the standard data and the original grayscale in the preset display conditions, the first mapping relationship between the standard data and the original grayscale is determined as follows:

[0014]

[0015] Where O is the standard data, m is the brightness adjustment coefficient, x is the original gray level, n is the preset normalization factor, and gamma0 is the standard gamma value.

[0016] Based on the first mapping relationship, the brightness adjustment coefficient is determined by combining the standard data, the original grayscale, the preset normalization factor, and the standard gamma value.

[0017] Based on the brightness adjustment coefficient, the second mapping relationship between the brightness data to be processed and the original grayscale is determined as follows:

[0018]

[0019] Where L is the brightness data to be processed, and gamma1 is the original gamma value;

[0020] Based on the brightness data to be processed and the second mapping relationship, the original gamma value is determined to quantify the brightness performance of the pixel under the preset display conditions.

[0021] In an optional embodiment, the step of converting the original gamma value according to a preset number of bytes using a preset third mapping relationship to obtain the converted gamma value includes:

[0022] The original gamma value is converted into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes, to obtain the converted gamma value, wherein the preset third mapping relationship is as follows:

[0023] gamma2 = gamma1 × 200 - 300

[0024] Wherein, gamma2 is the converted gamma value;

[0025] Preferably, the first preset range is greater than or equal to 0 and less than or equal to 255;

[0026] Preferably, the converted gamma value is an integer.

[0027] In an optional embodiment, before converting the original gamma value into a value within a first preset range according to a preset number of bytes through a preset third mapping relationship to obtain the converted gamma value, the method further includes:

[0028] The original gamma value is converted into a value within a second preset range;

[0029] Preferably, the original gamma value that is less than the minimum value in the second preset range is replaced with the minimum value, and the original gamma value that is greater than the maximum value in the second preset range is replaced with the maximum value;

[0030] Preferably, the second preset range is greater than or equal to 1.5 and less than or equal to 2.775.

[0031] In an optional embodiment, the method further includes:

[0032] The original gamma value of the pixel is determined based on the converted gamma value, and the brightness data of the pixel is determined based on the original gamma value and the fourth mapping relationship; wherein, the fourth mapping relationship is as follows:

[0033]

[0034] Wherein, P represents the brightness data.

[0035] In an optional embodiment, the method further includes:

[0036] The preset display conditions and the converted gamma value are encapsulated; wherein the preset display conditions are used as the header of the data packet, and the converted gamma value is used as the valid data of the data packet;

[0037] Preferably, when encapsulating the converted gamma values, the converted gamma values ​​are arranged in the display screen according to the position of the pixel corresponding to the converted gamma value.

[0038] According to a second aspect of the embodiments of this application, a data processing apparatus is provided, comprising:

[0039] The first acquisition unit is used to acquire the brightness data of multiple pixels on the display screen under preset display conditions.

[0040] The second acquisition unit is used to determine, based on the brightness data to be processed, the original gamma value for quantifying the brightness performance of the pixel under the preset display conditions;

[0041] A conversion unit is used to convert the original gamma value according to a preset third mapping relationship and a preset number of bytes to obtain a converted gamma value; wherein the converted gamma value is used to determine the brightness data of the plurality of pixels under the preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed.

[0042] According to a third aspect of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction causes the processor to perform an operation corresponding to the method described in the first aspect.

[0043] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0044] According to the solution provided in this application embodiment, luminance data to be processed for multiple pixels on the display screen under preset display conditions is obtained. Based on the luminance data to be processed, an original gamma value for quantizing the luminance performance of the pixels under the preset display conditions is determined. The original gamma value is converted according to a preset number of bytes using a preset third mapping relationship to obtain a converted gamma value. The converted gamma value is used to determine the luminance data of multiple pixels under the preset display conditions, and the preset number of bytes is less than the number of bytes of the luminance data to be processed. By obtaining the original gamma value for quantizing the luminance performance of the pixels under the preset display conditions based on the luminance data to be processed for the pixels, and converting the original gamma value using a preset mapping relationship, the number of bytes in the converted gamma value is less than the number of bytes in the luminance data to be processed. Therefore, for multiple pixels on the display screen, the space occupied by storing the converted gamma value is less than the space occupied by storing the luminance data to be processed, solving the problem of excessive storage space occupied by the luminance data to be processed for multiple pixels on the display screen. Simultaneously, the luminance data of multiple pixels on the display screen under the preset display conditions can be determined based on the converted gamma value to confirm the luminance distribution of the display screen under the current display conditions. Attached Figure Description

[0045] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0046] Figure 1 This is a schematic diagram illustrating the principle of compensating for the Mura area on a display screen, as an example.

[0047] Figure 2 This is a schematic diagram of an exemplary system to which the embodiments of this application are applicable;

[0048] Figure 3 This is a flowchart illustrating the steps of a data processing method according to an embodiment of this application.

[0049] Figure 4 This is a schematic diagram of the structure of a data processing apparatus according to an embodiment of this application;

[0050] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0051] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art shall fall within the scope of protection of the embodiments of this application.

[0052] The terms used in the embodiments of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "the", and "said" used in the embodiments of this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the embodiments of this application refers to and includes any or all possible combinations of one or more of the associated listed items.

[0053] The following further illustrates the specific implementation of the embodiments of this application with reference to the accompanying drawings of the embodiments of this application.

[0054] For a display screen, Mura is an inevitable defect. Mura is the Romanization of the Japanese Chinese character "spot", which originally means uneven and defective. In the field of display technology, Mura refers to the uneven phenomenon on the display screen. By using Demura technology to compensate the Mura area on the display screen, the display effect of the display screen can be made more uniform. Figure 1 It is a schematic diagram of the principle for exemplarily compensating the Mura area on the display screen. By analyzing the brightness data of the pixels on the display screen, the over-bright or over-dark Mura areas are found, and the corresponding compensation data is used for compensation respectively, so that the picture of the compensated Mura area is more uniform.

[0055] Figure 2 Shows an exemplary system to which the solution of the embodiments of this application is applicable, such as Figure 2As shown, the system may include a main control unit 210, a display screen 220, a camera 230 for capturing the image displayed on the display screen 220, and a graphics generator 240. The main control unit 210 can be implemented as a computer. Specifically, the main control unit 210 may include a display 212 and a hardware accelerator 214. The main control unit 210 controls the hardware accelerator 214 to process the image data generated by the graphics generator 240. The processed image data is sent to the display screen 220 via the graphics generator 240, where the display screen 220 displays the image corresponding to the processed image data. The main control unit 210 then controls the camera 230 to capture the image displayed on the display screen 220. The shooting environment is typically a darkroom or other low-light environment to avoid interference from external light on the image displayed on the display screen 220. The camera 230 can be a high-resolution, high-noise camera to capture the image displayed on the display screen 220 completely and accurately. After the image captured by camera 230 and displayed on screen 220 is transmitted back to main control unit 210, it undergoes image processing such as moiré removal, dust filtering, and distortion correction. The resulting image is further parsed into brightness data for each pixel and stored in main control unit 210 in CSV (Comma-Separated Values) format, which can then be displayed on screen 212. Typically, the brightness data for each pixel in the CSV file corresponds to the brightness of that pixel, but the brightness data for each pixel is unitless, presented as a proportional relationship or relative value of the brightness of each pixel to represent the brightness differences between different pixels on screen 220. The obtained brightness data is usually a four-byte floating-point number; therefore, storing a CSV file containing brightness data for multiple pixels on screen 220 in main control unit 210 requires a significant amount of space.

[0056] Based on the above system, the solutions provided in the embodiments of this application will be described below through multiple examples.

[0057] Reference Figure 3 The diagram illustrates a flowchart of a data processing method according to an embodiment of this application. The data processing method according to an embodiment of this application includes the following steps:

[0058] Step S302. Obtain the brightness data to be processed of multiple pixels on the display screen under preset display conditions.

[0059] In this embodiment of the application, the display screen can be any display screen capable of displaying images, for example, it can be... Figure 2 The display screen 220 in the middle.

[0060] In practice, displays may exhibit Mura (mullions) in certain critical areas, such as edge areas, or some known Mura may typically appear in specific areas of the display. Therefore, when detecting Mura on a display, detection can be performed on only certain areas, that is, only acquiring the brightness data of a subset of pixels under preset display conditions to improve detection efficiency. However, this is not the only option; the entire display can also be detected, acquiring the brightness data of all pixels under preset display conditions to ensure a more comprehensive and complete Mura detection.

[0061] In the Demura process, red, green, and blue images are typically detected separately to obtain the brightness differences in each color channel. By combining the brightness differences across different colors, overall brightness uniformity issues on the display can be identified, allowing for subsequent compensation to achieve better display results. Simultaneously, the brightness differences within each color channel can also be used to identify brightness uniformity issues caused by specific color channels on the display, enabling targeted compensation for the unique brightness uniformity problems of each channel in subsequent processing.

[0062] In one feasible approach, the display screen is driven based on preset display conditions. These preset display conditions may include the original grayscale. Multiple pixels on the display screen work together to display an image at the original grayscale level. Commonly used original grayscale levels include 16 grayscale, 32 grayscale, 64 grayscale, 128 grayscale, 192 grayscale, 224 grayscale, and 255 grayscale. Furthermore, the preset display conditions may also include the color of the displayed image, such as red, green, or blue. That is, when the display screen is lit, multiple pixels on the display screen work together to display a red, green, or blue image at the original grayscale level.

[0063] The image is obtained by capturing the display screen under preset display conditions using a camera. The camera can be any high-precision camera; for example, it can be a... Figure 2The camera 230 in the image processing device acquires the captured image, performs processing such as moiré removal, dust filtering, and distortion correction, and then further analyzes the captured image. The analysis result is the brightness information of multiple pixels on the display screen. Based on the brightness information, the brightness ratio of each pixel is obtained as the brightness data to be processed for multiple pixels on the display screen under preset display conditions, and stored in the form of unitless relative values. For example, in one feasible method, the brightness value of a pixel is calculated based on the color value in the brightness information of multiple pixels; in another feasible method, to obtain the brightness ratio of each pixel, the maximum value among the brightness values ​​of multiple pixels is obtained, the brightness value of pixel A is divided by the maximum value, and the result is used as the brightness data to be processed for pixel A under preset display conditions; or, the difference between the maximum value and the brightness value of pixel A is calculated, and the difference is divided by the brightness value of pixel A, and the result is used as the brightness data to be processed for pixel A under preset display conditions. However, this is not limited to these methods; any method of obtaining the brightness ratio of each pixel is applicable to the scheme of this application embodiment.

[0064] Step S304. Based on the brightness data to be processed, determine the original gamma value used to quantize the brightness performance of the pixel under preset display conditions.

[0065] Gamma value is a parameter representing the brightness response characteristics of a display device. Specifically, the gamma value determines how the brightness of multiple pixels on the display changes based on variations in input signals such as the original grayscale. In the Demura process, the gamma value is typically the basis for calculating the compensation value of pixels in the Demura region. Gamma curves for multiple pixels on the display are fitted based on the gamma value; these curves describe how the brightness of the pixels changes with variations in the original grayscale. The gamma curves of several pixels are compared to a target gamma curve to obtain the grayscale value required to adjust the pixel's gamma curve to match the target gamma curve, which is then used as the compensation value for that pixel. The target gamma curve is obtained by fitting a standard gamma value. In one feasible approach, the standard gamma value is 2.2, in which case the brightness of the display is highly matched to the brightness perceived by the human eye, resulting in a superior visual effect.

[0066] In one feasible approach, a portion of the brightness data to be processed is selected, and standard data is obtained based on the selected brightness data to be processed; a first mapping relationship between the standard data and the original grayscale in the preset display conditions is determined based on the standard data; a second mapping relationship between the brightness data to be processed and the original grayscale is determined based on the first mapping relationship; and an original gamma value for quantizing the brightness performance of the pixel under the preset display conditions is determined based on the second mapping relationship.

[0067] Therefore, the original gamma value is determined to quantify the brightness performance of a pixel under preset display conditions, so as to further calculate the brightness data of multiple pixels on the display screen under preset display conditions.

[0068] In one feasible approach, luminance data to be processed is selected from a subset of pixels at a specific or representative location on the display screen, and standard data is obtained based on the selected luminance data. For example, after selecting 'a' luminance data points from 'a' pixels at the center of the display screen, the average value of the 'a' luminance data points, or the median of the 'a' luminance data points, is calculated as the standard data.

[0069] Based on the standard data and the original grayscale in the preset display conditions, the first mapping relationship between the standard data and the original grayscale is determined as follows: Formula 1:

[0070]

[0071] Where O represents standard data, m represents brightness adjustment coefficient, x represents original grayscale, n represents preset normalization factor, and gamma0 represents standard gamma value.

[0072] Combining standard data, original grayscale, preset normalization factor, and standard gamma value, the brightness adjustment coefficient is determined based on the first mapping relationship; based on the brightness adjustment coefficient, the second mapping relationship between the brightness data to be processed and the original grayscale is determined as follows: Formula 2

[0073]

[0074] Where L is the brightness data to be processed, and gamma1 is the original gamma value;

[0075] Based on the brightness data to be processed and the second mapping relationship, the original gamma value is determined to quantize the brightness performance of the pixel under preset display conditions.

[0076] The original grayscale level in the preset display conditions is usually an integer between 0 and a certain maximum grayscale value, such as an integer between 0 and 255. Directly using the original grayscale level for calculation may lead to a large amount of computation or inaccurate calculations. Therefore, a preset normalization factor can be used to scale the original grayscale level to a suitable scale. In one feasible approach, the original grayscale level is an integer between 0 and 255, and the preset normalization factor is 255. Thus, the original grayscale level is converted using the preset normalization factor, and the converted grayscale level is a decimal between 0 and 1, thereby simplifying subsequent calculations.

[0077] The brightness adjustment coefficient, acting as a modifier, can be used to adjust the overall brightness level of pixels without affecting the degree to which the standard gamma value changes the converted grayscale. For example, in one feasible approach, increasing the brightness adjustment coefficient results in a larger product between the converted grayscale value adjusted by the standard gamma value and the brightness adjustment coefficient itself, thereby increasing the value of the obtained standard data. Simultaneously, the relative proportional relationships between the various standard data remain unchanged. Introducing the brightness adjustment coefficient increases the flexibility in adjusting the standard data.

[0078] Based on the nonlinear relationship between the original grayscale and standard data described in Formula 1 above, the brightness adjustment coefficient of a pixel can be determined when the standard data, the original grayscale in the preset display conditions, the preset normalization factor, and the standard gamma value are known. In one feasible approach, the standard gamma value is 2.2. Based on the nonlinear relationship between the original grayscale and the brightness data to be processed described in Formula 2 above, the original gamma values ​​of multiple pixels on the display screen can be determined when the brightness data to be processed, the original grayscale in the preset display conditions, the preset normalization factor, and the brightness adjustment coefficient are known.

[0079] Therefore, by using standard data, a brightness adjustment coefficient is obtained when the matching degree between the brightness of the display screen and the brightness perceived by the human eye is relatively high. Based on this brightness adjustment coefficient and the brightness data to be processed, the original gamma value used to quantify the brightness performance of multiple pixels on the display screen under preset display conditions is confirmed. Without losing data accuracy, the brightness data to be processed is converted into the original gamma value used to quantify the brightness performance of pixels under preset display conditions, so as to further determine the brightness data of multiple pixels on the display screen under preset display conditions.

[0080] Meanwhile, due to differences in the physical characteristics of different displays or shooting conditions, the brightness data to be processed may vary between different displays. However, by converting the brightness data to be processed into raw gamma values, the relative brightness distribution of multiple pixels on the display at different brightness levels can be reflected, thereby establishing a comparable benchmark between different displays.

[0081] Step S306. Using a preset third mapping relationship, the original gamma value is converted according to a preset number of bytes to obtain the converted gamma value.

[0082] When the brightness data to be processed is converted into the raw gamma value used to quantify the brightness performance of a pixel under preset display conditions, the raw gamma value may still require a lot of bytes. For example, if the raw gamma value of pixel A among the multiple pixels on the display screen is 2.15, then storing the raw gamma value of pixel A as a 32-bit floating-point number still requires four bytes, and the storage space is still relatively large.

[0083] Therefore, in one feasible method, the original gamma value is converted into a value within a first preset range according to a preset number of bytes through a preset third mapping relationship, to obtain the converted gamma value, wherein the preset third mapping relationship is as follows: Formula 3:

[0084] Formula 3: gamma2 = gamma1 × 200 - 300

[0085] Where gamma2 is the converted gamma value.

[0086] The preset number of bytes is less than the number of bytes of the brightness data to be processed. For example, if the preset number of bytes is one, then when storing the converted gamma values, each converted gamma value only needs to occupy one byte, which reduces the storage space usage by 75% compared to storing the original gamma values, which occupy four bytes.

[0087] In one feasible approach, before converting the original gamma value into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes to obtain the converted gamma value, the original gamma value is converted into a value within a second preset range.

[0088] Because multiple pixels on the display screen are under the same preset display conditions when the camera takes a picture, such as all being under 32 gray levels, the brightness data to be processed among the multiple pixels on the display screen are usually small in difference. The brightness uniformity of the screen, that is, the minimum brightness value divided by the maximum brightness value of the pixels on the screen, is always above 60%. The differences between the original gamma values ​​obtained by converting the brightness data to be processed and used to quantify the brightness performance of the pixels under the preset display conditions are usually small, and the original gamma values ​​of multiple pixels on the display screen are usually within a relatively concentrated range. The second preset range can be appropriately set by those skilled in the art according to actual needs. For example, it can be appropriately set based on historical experience or statistical data, setting the second preset range to greater than or equal to 1.5 and less than or equal to 2.775. In one feasible method, the original gamma values ​​smaller than the minimum value in the second preset range are replaced with the minimum value, and the original gamma values ​​larger than the maximum value in the second preset range are replaced with the maximum value. Thus, without sacrificing data accuracy, the concentration of the original gamma values ​​is further improved, thereby more effectively balancing the brightness of multiple pixels on the display screen. Simultaneously, after converting the original gamma values ​​to values ​​within a second preset range, the proportion of original gamma values ​​with similar characteristics or identical values ​​increases. Therefore, the original gamma values ​​within the second preset range are further converted to values ​​within a first preset range using a preset mapping relationship and according to a preset number of bytes. After obtaining the converted gamma values, the proportion of gamma values ​​with similar characteristics or identical values ​​increases. At this point, data compression algorithms, such as run-length encoding or Huffman coding, can be used when storing the converted gamma values ​​to further reduce the storage space occupied by redundant parts and identical parts in the converted gamma values.

[0089] In one feasible approach, the converted gamma values ​​undergo data processing. For example, the converted gamma values ​​are rounded to obtain converted gamma values ​​within a first preset range, that is, within the range of greater than or equal to 0 and less than or equal to 255. Each converted gamma value occupies only one byte, reducing storage space usage; furthermore, each converted gamma value is an integer, facilitating subsequent storage.

[0090] Furthermore, one data processing method according to an embodiment of this application further includes: determining the original gamma value of a pixel based on the converted gamma value, and determining the pixel's brightness data based on the original gamma value and a fourth mapping relationship; wherein the fourth mapping relationship is as follows: Formula 4:

[0091]

[0092] Where P represents the brightness data;

[0093] Based on the nonlinear relationship between the original grayscale and the brightness data of a pixel under preset display conditions, as described in Formula 4 above, and given that the original gamma value of the pixel, the original grayscale under the preset display conditions, the preset normalization factor, and the brightness adjustment coefficient are known, the brightness data of multiple pixels on the display screen under the preset display conditions can be determined. Based on the brightness data of multiple pixels on the display screen under the preset display conditions, the gamma curve for each pixel can be fitted. Based on the gamma curve of each pixel, the compensation grayscale required to make the gamma curve coincide with the target gamma curve is determined and used as the compensation value for that pixel.

[0094] Furthermore, one data processing method according to an embodiment of this application further includes: encapsulating the preset display conditions and the converted gamma value.

[0095] To facilitate subsequent retrieval, the preset display conditions and the converted gamma value can be encapsulated together. In one feasible approach, the preset display conditions are used as the header of the data packet, and the converted gamma value is used as the valid data of the data packet, indicating the preset display conditions corresponding to the converted gamma value. This facilitates subsequent confirmation of the brightness data of the pixels on the display screen under the preset display conditions based on the encapsulated data. Further, in another feasible approach, the preset display conditions and the converted gamma value are encapsulated together and packaged into a binary data packet for storage.

[0096] For example, the preset display conditions are used as the header of the data packet. The header includes 16 bytes: B0, B1, B2, ..., B14, B15. B0 represents the original grayscale in the preset display conditions; for example, B0 = 32 means the original grayscale in the preset display conditions is 32. B1 represents the color of the image displayed on the screen; for example, B1 = 0 means the image is white; B1 = 1 means the image is blue; B1 = 2 means the image is green; B1 = 3 means the image is red. B2 represents the standard gamma value; for example, if the standard gamma value is 2.2, to facilitate storage and reduce storage space usage, the product of 2.2 and 100 is calculated, and the difference between the product and 100 is used as the value of B2, i.e., B2 = (2.2 × 100) - 100 = 120. B3 represents the preset normalization factor. To facilitate storage and reduce storage space usage, the difference between the preset normalization factor and 255 is calculated as the value of B3. For example, if the preset normalization factor is 255, then B3 = 255 - 255 = 0. B4 and B5 together represent the number of pixels per row in the horizontal direction of the display screen. For example, if the resolution of the display screen is 1080*2400, that is, each row in the horizontal direction of the display screen has 1080 pixels, then B4 × 256 + B5 = 1080. The specific values ​​of B4 and B5 can be any pair of integer values ​​that satisfy this relationship, in order to reduce storage space usage and facilitate storage. B6 and B7 are used together to represent the number of pixels in each column in the vertical direction of the display screen. For example, if the resolution of the display screen is 1080*2400, that is, each column in the vertical direction of the display screen has 2400 pixels, then B6×256+B7=2400. The specific values ​​of B6 and B7 can be any pair of integer values ​​that satisfy this relationship, in order to reduce storage space usage and facilitate storage. B8 to B15 are reserved for future use.

[0097] Furthermore, in one feasible approach, when encapsulating the converted gamma values, the converted gamma values ​​are arranged based on the position of the corresponding pixel on the display screen. Thus, when obtaining the converted gamma value of pixel A on the display screen from the encapsulated data, the converted gamma value at the corresponding position in the valid data of the encapsulated data can be obtained directly based on the position of pixel A on the display screen, thereby confirming the converted gamma value of pixel A. This makes the retrieval simpler and the retrieval results more accurate. For example, for a 1080*2400 resolution display, the converted gamma value of the first pixel in the first row of the horizontal direction is taken as the first piece of valid data; the converted gamma value of the second pixel in the first row of the horizontal direction is taken as the second piece of valid data; ...; the converted gamma value of the 1080th pixel in the first row of the horizontal direction is taken as the 1080th piece of valid data; the converted gamma value of the first pixel in the second row of the horizontal direction is taken as the 1081st piece of valid data... and so on, thus arranging the converted gamma values ​​of the 1080*2400 pixels on the display according to the position of the pixels on the display.

[0098] As can be seen from the above, the solution of this application embodiment obtains the brightness data to be processed of multiple pixels on the display screen under preset display conditions. Based on the brightness data to be processed, the original gamma value used to quantify the brightness performance of the pixels under the preset display conditions is determined. Through a preset third mapping relationship, the original gamma value is converted according to a preset number of bytes to obtain the converted gamma value. The converted gamma value is used to determine the brightness data of multiple pixels under the preset display conditions, and the preset number of bytes is less than the number of bytes of the brightness data to be processed. By obtaining the original gamma value to quantify the brightness performance of the pixels under the preset display conditions based on the brightness data to be processed of the pixels, and converting the original gamma value through a preset mapping relationship, the number of bytes of the converted gamma value is less than the number of bytes of the brightness data to be processed. Therefore, for multiple pixels on the display screen, the space occupied by storing the converted gamma value is less than the space occupied by storing the brightness data to be processed, solving the problem of excessive storage space occupied by the brightness data to be processed of multiple pixels on the display screen. Simultaneously, the brightness data of multiple pixels on the display screen under the preset display conditions can be determined based on the converted gamma value to confirm the brightness distribution of the display screen under the current display conditions.

[0099] This application also provides a data processing apparatus, see below. Figure 4 As shown, it includes:

[0100] The first acquisition unit is used to acquire the brightness data of multiple pixels on the display screen under preset display conditions.

[0101] The second acquisition unit is used to determine the raw gamma value for quantizing the brightness performance of a pixel under preset display conditions based on the brightness data to be processed.

[0102] The conversion unit is used to convert the original gamma value according to a preset number of bytes through a preset third mapping relationship to obtain the converted gamma value; wherein, the converted gamma value is used to determine the brightness data of multiple pixels under preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed.

[0103] In one feasible approach, a portion of the brightness data to be processed is selected, and standard data is obtained based on the selected brightness data to be processed; a first mapping relationship between the standard data and the original grayscale in the preset display conditions is determined based on the standard data; a second mapping relationship between the brightness data to be processed and the original grayscale is determined based on the first mapping relationship; and an original gamma value for quantizing the brightness performance of the pixel under the preset display conditions is determined based on the second mapping relationship.

[0104] Based on the standard data and the original grayscale in the preset display conditions, the first mapping relationship between the standard data and the original grayscale is determined as follows: Formula 1:

[0105]

[0106] Where O represents standard data, m represents brightness adjustment coefficient, x represents original grayscale, n represents preset normalization factor, and gamma0 represents standard gamma value.

[0107] Combining standard data, original grayscale, preset normalization factor, and standard gamma value, the brightness adjustment coefficient is determined based on the first mapping relationship; based on the brightness adjustment coefficient, the second mapping relationship between the brightness data to be processed and the original grayscale is determined as follows: Formula 2

[0108]

[0109] Where L is the brightness data to be processed, and gamma1 is the original gamma value;

[0110] Based on the brightness data to be processed and the second mapping relationship, the original gamma value is determined to quantize the brightness performance of the pixel under preset display conditions.

[0111] The original grayscale level in the preset display conditions is usually an integer between 0 and a certain maximum grayscale value, such as an integer between 0 and 255. Directly using the original grayscale level for calculation may lead to a large amount of computation or inaccurate calculations. Therefore, a preset normalization factor can be used to scale the original grayscale level to a suitable scale. In one feasible approach, the original grayscale level is an integer between 0 and 255, and the preset normalization factor is 255. Thus, the original grayscale level is converted using the preset normalization factor, and the converted grayscale level is a decimal between 0 and 1, thereby simplifying subsequent calculations.

[0112] In one feasible approach, the original gamma value is converted into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes, to obtain the converted gamma value. The preset third mapping relationship is as follows: Formula 3:

[0113] Formula 3: gamma2 = gamma1 × 200 - 300

[0114] Where gamma2 is the converted gamma value.

[0115] The preset number of bytes is less than the number of bytes of the brightness data to be processed. For example, if the preset number of bytes is one, then when storing the converted gamma values, each converted gamma value only needs to occupy one byte, which reduces the storage space usage by 75% compared to storing the original gamma values, which occupy four bytes.

[0116] In one feasible approach, before converting the original gamma value into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes to obtain the converted gamma value, the original gamma value is converted into a value within a second preset range.

[0117] The second preset range can be appropriately set by those skilled in the art according to actual needs. For example, it can be appropriately set based on historical experience or statistical data, such as setting the second preset range to be greater than or equal to 1.5 and less than or equal to 2.775. In one feasible approach, the original gamma values ​​smaller than the minimum value in the second preset range are replaced with the minimum value, and the original gamma values ​​larger than the maximum value in the second preset range are replaced with the maximum value. This further enhances the concentration of the original gamma values ​​without sacrificing data accuracy, thereby more effectively balancing the brightness of multiple pixels on the display screen.

[0118] In one feasible approach, the converted gamma values ​​undergo data processing. For example, the converted gamma values ​​are rounded to obtain converted gamma values ​​within a first preset range, that is, within the range of greater than or equal to 0 and less than or equal to 255. Each converted gamma value occupies only one byte, reducing storage space usage; furthermore, each converted gamma value is an integer, facilitating subsequent storage.

[0119] In one feasible embodiment, the data processing apparatus of this application further includes a third acquisition unit, configured to determine the original gamma value of a pixel based on the converted gamma value, and to determine the brightness data of the pixel based on the original gamma value and a fourth mapping relationship; wherein the fourth mapping relationship is as follows: Formula 4

[0120]

[0121] Where P represents the brightness data.

[0122] In one feasible approach, an encapsulation unit is also included for encapsulating the preset display conditions and the converted gamma value.

[0123] Furthermore, in one feasible approach, when encapsulating the converted gamma values, the converted gamma values ​​are arranged based on the position of the corresponding pixel on the display screen. Thus, when obtaining the converted gamma value of pixel A on the display screen from the encapsulated data, the converted gamma value at the corresponding position in the valid data of the encapsulated data can be obtained directly based on the position of pixel A on the display screen, thereby confirming the converted gamma value of pixel A. This makes the retrieval simpler and the retrieval results more accurate.

[0124] Furthermore, in one feasible approach, the preset display conditions and the converted gamma value are encapsulated together and packaged into a binary data packet for storage.

[0125] Reference Figure 5 This document illustrates a schematic diagram of an electronic device according to an embodiment of this application. The specific embodiments of this application do not limit the specific implementation of the electronic device.

[0126] like Figure 5 As shown, the electronic device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.

[0127] in:

[0128] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.

[0129] Communication interface 504 is used to communicate with other electronic devices or servers.

[0130] The processor 502 is used to execute program 510, which can specifically execute the relevant steps in any of the above method embodiments.

[0131] Specifically, program 510 may include program code that includes computer operation instructions.

[0132] The processor 502 may be a CPU, a GPU (Graphics Processing Unit), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.

[0133] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0134] Program 510 may include multiple computer instructions. Specifically, program 510 may use multiple computer instructions to cause processor 502 to perform the operation corresponding to the method described in any of the foregoing multiple method embodiments.

[0135] The specific implementation of each step in program 510 can be found in the corresponding steps and units described in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0136] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in any of the foregoing method embodiments. The computer storage medium includes, but is not limited to, compact disc read-only memory (CD-ROM), random access memory (RAM), floppy disk, hard disk, or magneto-optical disk.

[0137] It should be noted that, depending on the implementation needs, the various components / steps described in the embodiments of this application can be broken down into more components / steps, or two or more components / steps or parts of the operation of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of this application.

[0138] The methods described in the embodiments of this application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code downloaded over a network that is originally stored in a remote recording medium or a non-transitory machine-readable medium and will be stored in a local recording medium. Thus, the methods described herein can be stored on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA)). It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., Random Access Memory (RAM), Read-Only Memory (ROM), Flash Memory, etc.) capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods described herein. Furthermore, when a general-purpose computer accesses code used to implement the methods shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for executing the methods shown herein.

[0139] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for specific applications, but such implementations should not be considered beyond the scope of the embodiments of this application.

[0140] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims.

Claims

1. A data processing method, characterized in that, include: Acquire the brightness data of multiple pixels on the display screen under preset display conditions; Based on the brightness data to be processed, determine the original gamma value used to quantify the brightness performance of the pixel under the preset display conditions; The original gamma value is converted according to a preset third mapping relationship and a preset number of bytes to obtain a converted gamma value; wherein, the converted gamma value is used to determine the brightness data of the multiple pixels under the preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed; The step of determining the raw gamma value for quantifying the brightness performance of the pixel under the preset display conditions based on the brightness data to be processed includes: Select a portion of the brightness data to be processed, and obtain standard data based on the selected brightness data to be processed; Based on the standard data, a first mapping relationship is determined between the standard data and the original grayscale in the preset display conditions. Based on the first mapping relationship, a second mapping relationship is determined between the brightness data to be processed and the original grayscale. Based on the second mapping relationship, an original gamma value for quantifying the brightness performance of the pixel under the preset display conditions is determined. The process of determining a first mapping relationship between the standard data and the original grayscale in the preset display conditions based on the standard data, determining a second mapping relationship between the brightness data to be processed and the original grayscale based on the first mapping relationship, and determining an original gamma value for quantifying the brightness performance of the pixel under the preset display conditions based on the second mapping relationship includes: Based on the standard data and the original grayscale in the preset display conditions, the first mapping relationship between the standard data and the original grayscale is determined as follows: Where O is the standard data, m is the brightness adjustment coefficient, x is the original gray level, n is the preset normalization factor, and gamma0 is the standard gamma value. Based on the first mapping relationship, the brightness adjustment coefficient is determined by combining the standard data, the original grayscale, the preset normalization factor, and the standard gamma value. Based on the brightness adjustment coefficient, the second mapping relationship between the brightness data to be processed and the original grayscale is determined as follows: Where L is the brightness data to be processed, and gamma1 is the original gamma value; Based on the brightness data to be processed and the second mapping relationship, the original gamma value is determined to quantify the brightness performance of the pixel under the preset display conditions.

2. The method according to claim 1, characterized in that, The step of converting the original gamma value according to a preset number of bytes using a preset third mapping relationship to obtain the converted gamma value includes: The original gamma value is converted into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes, to obtain the converted gamma value, wherein the preset third mapping relationship is as follows: gamma2 = gamma1 × 200 - 300 Wherein, gamma2 is the converted gamma value.

3. The method according to claim 2, characterized in that, The first preset range is greater than or equal to 0 and less than or equal to 255.

4. The method according to claim 2, characterized in that, The converted gamma value is an integer.

5. The method according to claim 2, characterized in that, Before converting the original gamma value into a value within a first preset range using a preset third mapping relationship and according to a preset number of bytes to obtain the converted gamma value, the method further includes: The original gamma value is converted into a value within a second preset range.

6. The method according to claim 5, characterized in that, The original gamma value that is less than the minimum value in the second preset range is replaced with the minimum value, and the original gamma value that is greater than the maximum value in the second preset range is replaced with the maximum value.

7. The method according to claim 5, characterized in that, The second preset range is greater than or equal to 1.5 and less than or equal to 2.

775.

8. The method according to claim 5, characterized in that, The method further includes: The original gamma value of the pixel is determined based on the converted gamma value, and the brightness data of the pixel is determined based on the original gamma value and the fourth mapping relationship; wherein, the fourth mapping relationship is as follows: Wherein, P represents the brightness data.

9. The method according to claim 1, characterized in that, The method further includes: The preset display conditions and the converted gamma value are encapsulated; wherein the preset display conditions are used as the header of the data packet, and the converted gamma value is used as the valid data of the data packet.

10. The method according to claim 9, characterized in that, The method further includes: When encapsulating the converted gamma values, the converted gamma values ​​are arranged in the display screen according to the position of the pixel corresponding to the converted gamma value.

11. A data processing apparatus, characterized in that, include: The first acquisition unit is used to acquire the brightness data of multiple pixels on the display screen under preset display conditions. The second acquisition unit is configured to determine, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixel under preset display conditions. The determination of the original gamma value for quantifying the brightness performance of the pixel under preset display conditions based on the brightness data to be processed includes: selecting a portion of the brightness data to be processed; obtaining standard data based on the selected brightness data to be processed; determining a first mapping relationship between the standard data and the original grayscale in the preset display conditions based on the standard data; determining a second mapping relationship between the brightness data to be processed and the original grayscale based on the first mapping relationship; and determining the original gamma value for quantifying the brightness performance of the pixel under preset display conditions based on the second mapping relationship. The determination of the first mapping relationship between the standard data and the original grayscale in the preset display conditions based on the standard data; determining the second mapping relationship between the brightness data to be processed and the original grayscale based on the first mapping relationship; and determining the original gamma value for quantifying the brightness performance of the pixel under preset display conditions based on the second mapping relationship includes: determining the first mapping relationship between the standard data and the original grayscale based on the standard data and the original grayscale in the preset display conditions as follows: Where O represents the standard data, m represents the brightness adjustment coefficient, x represents the original grayscale, n represents the preset normalization factor, and gamma0 represents the standard gamma value; combining the standard data, the original grayscale, the preset normalization factor, and the standard gamma value, the brightness adjustment coefficient is determined based on the first mapping relationship; based on the brightness adjustment coefficient, the second mapping relationship between the brightness data to be processed and the original grayscale is determined as follows: Wherein, L is the brightness data to be processed, and gamma1 is the original gamma value; based on the brightness data to be processed and the second mapping relationship, the original gamma value used to quantify the brightness performance of the pixel under the preset display conditions is determined; A conversion unit is used to convert the original gamma value according to a preset third mapping relationship and a preset number of bytes to obtain a converted gamma value; wherein the converted gamma value is used to determine the brightness data of the plurality of pixels under the preset display conditions; the preset number of bytes is less than the number of bytes of the brightness data to be processed.

12. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform an operation corresponding to the method as described in any one of claims 1-10.

13. A computer storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Device for generating gamma correction data table of plasma TV video image

    CN102761749A

  • Display drive, compression and decompression method and device, display device and storage medium

    CN110176210A