Data processing method, data processing device, electronic equipment and storage medium
By performing gamma value conversion on pixel data on the OLED display screen, the problems of uneven display and excessive storage space are solved, and more efficient data storage and accuracy of brightness data are achieved.
Patent Information
- Application Number
- CN202510112677.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-22
AI Technical Summary
In existing OLED display products, uneven display on the display screen is inevitable, and Demura technology occupies a large storage space when storing brightness data.
By obtaining the to-process brightness data of multiple pixels on the display screen under preset display conditions, the original gamma value is determined, and the gamma value is converted according to the preset number of bytes through the preset third mapping relationship to obtain the converted gamma value. The converted gamma value is used to determine the brightness data of the pixel, and the number of bytes is less than the number of bytes of the brightness data to be processed.
The space occupied by storing the brightness data to be processed by multiple pixels of the display screen is reduced, and the brightness data of the multiple pixels of the display screen can be determined based on the converted gamma value, and the brightness distribution of the display screen under the current display conditions can be confirmed.
Smart Images

Figure CN119811285A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate 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 Art
[0002] Organic Light Emitting Display (OLED) and flat panel display devices based on technologies such as Light Emitting Diode (LED) have the advantages of high image quality, power saving, thin body and wide application range, and are widely used in various consumer electronic products such as mobile phones, televisions, laptops, desktop computers, etc., becoming the mainstream in display devices.
[0003] For current OLED display products, the non-uniform display phenomenon on the display screen is an unavoidable defect. In the prior art, the Demura technology is usually used to solve the non-uniform display phenomenon on the display screen to improve the display effect of the display screen. The Demura technology usually needs to solve the non-uniform display phenomenon on the display screen based on the brightness data of the pixels on the display screen, and when storing these brightness data, it often takes up a large storage space. Summary of the invention
[0004] In view of this, embodiments of the present application provide a data processing method, a data processing device, an electronic device, and a storage medium to at least partially solve the above problems.
[0005] According to a first aspect of an embodiment of the present application, there is provided a data processing method, including:
[0006] Acquire brightness data to be processed of multiple pixels on a display screen under preset display conditions;
[0007] Based on the brightness data to be processed, determining an original gamma value for quantifying the brightness performance of the pixel under the preset display condition;
[0008] Through a preset third mapping relationship, the original gamma value is converted according to 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, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixel under the preset display condition includes:
[0010] Selecting part of the brightness data to be processed, and obtaining standard data according to the selected brightness data to be processed;
[0011] Based on the standard data, a first mapping relationship between the standard data and the original grayscale in the preset display condition is determined; based on the first mapping relationship, a second mapping relationship between the brightness data to be processed and the original grayscale is determined; based on the second mapping relationship, an original gamma value used to quantify the brightness performance of the pixel under the preset display condition is determined.
[0012] In an optional embodiment, determining a first mapping relationship between the standard data and an original grayscale in the preset display condition 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 brightness performance of the pixel under the preset display condition based on the second mapping relationship includes:
[0013] Based on the standard data and the original grayscale in the preset display condition, a first mapping relationship between the standard data and the original grayscale is determined as follows:
[0014]
[0015] Wherein, O is the standard data, m is the brightness adjustment coefficient, x is the original grayscale, n is the preset normalization factor, and gamma0 is the standard gamma value;
[0016] Determining the brightness adjustment coefficient based on the first mapping relationship in combination with 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] Wherein, 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 used to quantify the brightness performance of the pixel under the preset display condition is determined.
[0021] In an optional embodiment, converting the original gamma value according to a preset number of bytes through a preset third mapping relationship to obtain a converted gamma value includes:
[0022] 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 a converted gamma value, wherein the preset third mapping relationship is as follows:
[0023] gamma2=gamma1×200-300
[0024] Wherein, gamma2 is the gamma value after conversion;
[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] Converting the original gamma value into a value within a second preset range;
[0029] Preferably, the original gamma value that is smaller than the minimum value in the second preset range is replaced by the minimum value, and the original gamma value that is larger than the maximum value in the second preset range is replaced by 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 a fourth mapping relationship; wherein the fourth mapping relationship is as follows:
[0033]
[0034] Wherein, P is the brightness data.
[0035] In an optional embodiment, the method further includes:
[0036] Encapsulating the preset display condition and the converted gamma value; wherein the preset display condition is used as a data packet header of a data packet, and the converted gamma value is used as valid data of the data packet;
[0037] Preferably, when packaging the converted gamma values, the converted gamma values are arranged according to positions of pixels corresponding to the converted gamma values in the display screen.
[0038] According to a second aspect of an embodiment of the present application, there is provided a data processing device, including:
[0039] A first acquisition unit, used to acquire brightness data to be processed of a plurality of pixels on a display screen under a preset display condition;
[0040] A second acquisition unit, configured to determine, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixel under the preset display condition;
[0041] A 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 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; and the preset number of bytes is less than the number of bytes of the brightness data to be processed.
[0042] According to the third aspect of an embodiment of the present application, there is provided an electronic device, 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 through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect.
[0043] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.
[0044] According to the scheme provided by the embodiment of the present application, the brightness data to be processed of multiple pixels on the display screen under the preset display conditions is obtained, and 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 the preset third mapping relationship, the original gamma value is converted according to the preset number of bytes to obtain the converted gamma value; wherein 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. Based on the brightness data to be processed of the pixels under the preset display conditions, the original gamma value for quantizing the brightness performance of the pixels under the preset display conditions is obtained, and the original gamma value is converted through the preset mapping relationship, and 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, which solves the problem of excessive storage space occupied by the brightness data to be processed of multiple pixels of the display screen. At the same time, the brightness data of multiple pixels of 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0046] Figure 1 A schematic diagram of an exemplary principle of compensating for a Mura area on a display screen;
[0047] Figure 2 A schematic diagram of an exemplary system applicable to the embodiment of the present application;
[0048] Figure 3 is a flowchart of a data processing method according to an embodiment of the present application;
[0049] Figure 4 is a structural schematic diagram of a data processing device according to an embodiment of the present application;
[0050] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0051] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of protection of the embodiments of the present application.
[0052] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The singular forms "a", "the" and "said" used in the embodiments of the present 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 the present 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 the present application in conjunction with the accompanying drawings of the embodiments of the present application.
[0054] For a display screen, Mura is a defect that is difficult to avoid. 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 can be more uniform.
[0055] Figure 2 An exemplary system to which the solution of the embodiment of the present application is applicable is shown, such as Figure 2As shown, the system may include a main control unit 210, a display screen 220, a camera 230 for photographing the display screen of the display screen 220, and a graphics generator 240. The main control unit 210 may 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. The display screen 220 displays the image corresponding to the processed image data. The main control unit 210 controls the camera 230 to photograph the image displayed on the display screen 220. The shooting environment is usually a dark or low-light environment such as a darkroom, so as to avoid interference of external light on the image displayed on the display screen 220. The camera 230 may be a high-resolution, high-resolution and low-noise camera to completely and accurately capture the image displayed on the display screen 220. After the image displayed on the display screen 220 captured by the camera 230 is transmitted back to the main control unit 210, it is further parsed into brightness data of each pixel after image processing such as removing moiré, filtering out dust, and correcting distortion in the main control unit 210, and is stored in the main control unit 210 in the CSV (Comma-Separated Values) format, and can be presented through the display 212. Generally, the brightness data of each pixel in the CSV file corresponds to the brightness of each pixel, but the brightness data of each pixel has no unit, and is presented in the form of a proportional relationship or relative value of the brightness of each pixel, which is used to reflect the brightness difference of different pixels on the display screen 220. Among them, the brightness data obtained is usually a four-byte floating point type, so when the CSV file containing the brightness data of multiple pixels on the display screen 220 is stored in the main control unit 210, a large space is required.
[0056] Based on the above system, the solution provided by the embodiments of the present application is described below through multiple embodiments.
[0057] Reference Figure 3 , shows a flow chart of the steps of a data processing method according to an embodiment of the present application, and a data processing method according to an embodiment of the present application includes the following steps:
[0058] Step S302: Obtain brightness data to be processed of a plurality of pixels on the display screen under preset display conditions.
[0059] In the embodiment of the present application, the display screen may be any display screen capable of displaying images, for example, Figure 2 Display screen 220 in.
[0060] In actual situations, the display may be prone to Mura in certain key areas, such as edge areas, or some known Mura usually appears in specific areas on the display. Therefore, when detecting Mura on the display, only some areas can be detected, that is, only the brightness data to be processed of some pixels on the display under the preset display conditions can be obtained to improve the detection efficiency. However, it is not limited to this, and the entire display can also be detected, that is, the brightness data to be processed of all pixels on the display under the preset display conditions can be obtained, so as to ensure a more comprehensive and complete Mura detection of the display.
[0061] In the Demura process, the red, green, and blue images are usually tested separately to obtain the brightness difference in each color channel. Combined with the brightness difference under different colors, the problem of uneven brightness of the entire display can be confirmed, so that better display effects can be obtained through compensation in the future. At the same time, the brightness unevenness caused by each color channel of the display can also be confirmed based on the brightness difference under each color, so that targeted compensation can be made for the brightness unevenness problems unique to different channels in the future.
[0062] In one feasible manner, the display screen is driven based on a preset display condition. The preset display condition may include an original grayscale. Multiple pixels on the display screen cooperate to make the display screen display a picture at the original grayscale. Commonly used original grayscales include 16 grayscales, 32 grayscales, 64 grayscales, 128 grayscales, 192 grayscales, 224 grayscales, 255 grayscales, etc. Further, the preset display condition may also include the color of the displayed picture, for example, red, green or blue, that is, when the display screen is lit, multiple pixels on the display screen cooperate to make the display screen display a red, green or blue picture at the original grayscale.
[0063] Based on the display screen displayed by the camera under the preset display conditions, the captured image is obtained. The camera can be any high-precision camera, for example, Figure 2The camera 230 in the image processing apparatus. After the processing device obtains the captured image, the captured image is further analyzed after performing processing such as removing moiré, filtering dust, and correcting distortion, and the analyzed image is the brightness information of multiple pixels on the display screen. Based on the brightness information, the brightness ratio relationship of each pixel is obtained as the brightness data to be processed of multiple pixels on the display screen under preset display conditions, and is stored in the form of unitless relative values. For example, in one feasible manner, the brightness value of the pixel is calculated based on the color value in the brightness information of the multiple pixels; in order to obtain the brightness ratio relationship of each pixel, in another feasible manner, the maximum value of the brightness values of the multiple pixels is obtained, the brightness value of pixel A among the multiple pixels is divided by the maximum value, and the obtained result is used as the brightness data to be processed of 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 obtained result is used as the brightness data to be processed of pixel A under preset display conditions. However, it is not limited to this, and any method of obtaining the brightness ratio relationship of each pixel is applicable to the scheme of the embodiment of the present application.
[0064] Step S304: Based on the brightness data to be processed, determine an original gamma value for quantifying the brightness performance of the pixel under a preset display condition.
[0065] The gamma value is a parameter that represents the brightness response characteristics of a display device. Specifically, the gamma value determines how the brightness of multiple pixels on a display screen will change based on changes in input signals such as the original grayscale. In the Demura process, the gamma value is usually the basis for calculating the compensation value of pixels in the Mura area. The gamma curve of multiple pixels on the display screen is fitted based on the gamma value. The gamma curve describes how the brightness of multiple pixels on the display screen changes with the change of the original grayscale. The gamma curve of a pixel among the multiple pixels is compared with the target gamma curve, and the grayscale value required to adjust the gamma curve of the pixel to coincide with the target gamma curve is obtained as the compensation value of the pixel. Among them, the target gamma curve is obtained based on the standard gamma value fitting. In a feasible way, the standard gamma value is 2.2. In this case, the brightness of the display screen has a high degree of match with the brightness perceived by the human eye, which can present a better visual effect.
[0066] In one feasible method, 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 used to quantify the brightness performance of the pixel under the preset display conditions is determined based on the second mapping relationship.
[0067] Thus, the original gamma value used to quantify the brightness performance of the pixel under the preset display condition is determined, so as to further calculate the brightness data of multiple pixels on the display screen under the preset display condition.
[0068] In one feasible manner, the brightness data to be processed of some pixels in a specific position or a representative position on the display screen is selected, and the standard data is obtained according to the selected brightness data to be processed. For example, after selecting a brightness data to be processed of a pixels in the center of the display screen, the average value of the a brightness data to be processed is calculated, or the median of the a brightness data to be processed is calculated as the standard data.
[0069] Based on the standard data and the original grayscale in the preset display condition, the first mapping relationship between the standard data and the original grayscale is determined as follows:
[0070]
[0071] Among them, O is the standard data, m is the brightness adjustment coefficient, x is the original grayscale, n is the preset normalization factor, and gamma0 is the standard gamma value.
[0072] Combining the standard data, the original grayscale, the preset normalization factor and the standard gamma value, based on the first mapping relationship, the brightness adjustment coefficient is determined; 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:
[0073]
[0074] Among them, 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, an original gamma value for quantifying the brightness performance of the pixel under a preset display condition is determined.
[0076] The original grayscale in the preset display condition is usually an integer between 0 and a maximum grayscale value, for example, an integer between 0 and 255. Directly using the original grayscale for calculation may result in a large amount of calculation or inaccurate calculation. Therefore, a normalization factor can be preset, and the preset normalization factor can scale the original grayscale to a suitable scale. In a feasible manner, the original grayscale is an integer between 0 and 255, and the preset normalization factor is 255. Therefore, the original grayscale is converted by the preset normalization factor, and the converted grayscale is a decimal between 0 and 1, thereby simplifying subsequent calculations.
[0077] Among them, the brightness adjustment coefficient is used as an adjustment factor to adjust the overall level of pixel brightness without affecting the degree of change of the standard gamma value on the converted grayscale. For example, in one feasible method, the brightness adjustment coefficient increases, then the product of the converted grayscale adjusted by the standard gamma value and the brightness adjustment coefficient becomes larger, thereby, the value of the obtained standard data also becomes larger accordingly. At the same time, the relative proportional relationship between the various standard data remains unchanged. By introducing the brightness adjustment coefficient, the flexibility of adjusting the standard data is increased.
[0078] Based on the nonlinear relationship between the original grayscale and the standard data described in the above formula 1, the brightness adjustment coefficient of the pixel can be confirmed 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 way, 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 the above formula 2, the original gamma values of multiple pixels on the display screen can be confirmed 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, with the help of standard data, a brightness adjustment coefficient is obtained when the degree of match between the brightness of the display screen and the brightness perceived by the human eye is high, and based on the 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, and the brightness data to be processed is converted into the original gamma value for quantifying the brightness performance of the pixels under preset display conditions without losing data accuracy, so as to further determine the brightness data of multiple pixels on the display screen under preset display conditions.
[0080] At the same time, due to the physical characteristics of different displays or different shooting conditions, the brightness data to be processed may be different between different displays. However, by converting the brightness data to be processed into original 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: Convert the original gamma value according to a preset number of bytes using a preset third mapping relationship to obtain a converted gamma value.
[0082] When the brightness data to be processed is converted into the original gamma value used to quantify the brightness performance of the pixel under preset display conditions, the original gamma value may still need to occupy more bytes. For example, the original gamma value of pixel A among multiple pixels on the display screen is 2.15. At this time, when the original gamma value of pixel A is stored as a 32-bit floating point number, four bytes are still required, and the storage space occupied is still relatively large.
[0083] Therefore, in a feasible manner, the original gamma value is converted into a value within the first preset range according to a preset number of bytes through a preset third mapping relationship to obtain a converted gamma value, wherein the preset third mapping relationship is as follows:
[0084] gamma2=gamma1×200-300 Formula 3
[0085] Among them, 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, the preset number of bytes is one, and when storing the converted gamma values, each converted gamma value only takes up one byte, which reduces the storage space by 75% compared to storing the original gamma values that take up four bytes.
[0087] In a feasible manner, before converting the original gamma value into a value within the first preset range through 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 the second preset range.
[0088] Because when the camera takes pictures, multiple pixels on the display screen are under the same preset display condition, for example, all under the condition of 32 grayscales, therefore, the brightness data to be processed between the multiple pixels on the display screen are usually slightly different, and the brightness uniformity of the screen body, that is, the minimum brightness value of the pixels on the screen body divided by the maximum brightness value, is maintained above 60%. The difference between the original gamma values obtained by converting the brightness data to be processed for quantifying the brightness performance of the pixels under the preset display conditions is usually small, and the original gamma values of the 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, and the second preset range is set to be greater than or equal to 1.5 and less than or equal to 2.775. In a feasible manner, the original gamma value less than the minimum value in the second preset range is replaced with the minimum value, and the original gamma value greater than the maximum value in the second preset range is replaced with the maximum value. Thus, the concentration of the original gamma value is further improved without losing data accuracy, thereby more effectively balancing the brightness of multiple pixels on the display screen. At the same time, after the original gamma value is converted into a value within the second preset range, the proportion of original gamma values with similar characteristics or original gamma values with the same value increases. Therefore, the original gamma values within the second preset range are further converted into values within the first preset range through a preset mapping relationship and according to a preset number of bytes. After obtaining the converted gamma value, the proportion of gamma values with similar characteristics or the same value in the converted gamma value increases. At this time, a data compression algorithm, such as run length coding, Huffman coding, etc., can be used when storing the converted gamma value to further reduce the storage space occupied by the redundant parts and the parts with the same value in the converted gamma value.
[0089] In one feasible manner, data processing is performed on the converted gamma value. For example, the converted gamma value is rounded to obtain a converted gamma value within a first preset range, that is, within a range greater than or equal to 0 and less than or equal to 255. Each converted gamma value only occupies one byte, which reduces the occupancy of storage space; at the same time, each converted gamma value is an integer, which is convenient for subsequent storage.
[0090] Furthermore, a data processing method of an embodiment of the present application further includes: determining an original gamma value of a pixel based on the converted gamma value, and determining brightness data of the pixel based on the original gamma value and a fourth mapping relationship; wherein the fourth mapping relationship is as follows:
[0091]
[0092] Wherein, P is the brightness data;
[0093] Based on the nonlinear relationship between the original grayscale and the brightness data of the pixel under the preset display condition described in the above formula 4, when the original gamma value of the pixel, the original grayscale under the preset display condition, 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 condition can be confirmed. According to the brightness data of multiple pixels on the display screen under the preset display condition, the gamma curve of each pixel can be fitted, and based on the gamma curve of each pixel, the compensation grayscale required to make the gamma curve coincide with the target gamma curve is confirmed as the compensation value of the pixel.
[0094] Furthermore, a data processing method according to an embodiment of the present application further includes: packaging the preset display conditions and the converted gamma values.
[0095] In order to facilitate subsequent access, the preset display conditions and the converted gamma values can be packaged together. In a feasible manner, the preset display conditions are used as the data packet header of the data packet, and the converted gamma values are used as the valid data of the data packet to indicate the preset display conditions corresponding to the converted gamma values, so as to facilitate the subsequent confirmation of the brightness data of the pixels on the display screen under the preset display conditions based on the packaged data. Furthermore, in a feasible manner, the preset display conditions and the converted gamma values are packaged together into a binary data packet and stored.
[0096] For example, the preset display condition is used as the data packet header of the data packet, and the data packet header includes 16 bytes, namely, B0, B1, B2, ..., B14, and B15. Among them, B0 represents the original grayscale in the preset display condition, for example, B0=32, which means that the original grayscale in the preset display condition is grayscale 32. B1 represents the color of the picture displayed on the display screen, for example, B1=0, which means that the color of the picture displayed on the display screen is white; B1=1, which means that the color of the picture displayed on the display screen is blue; B1=2, which means that the color of the picture displayed on the display screen is green; B1=3, which means that the color of the picture displayed on the display screen is red. B2 is used to represent the standard gamma value. For example, the standard gamma value is 2.2. In order to facilitate storage and reduce storage space occupation, the product of 2.2 and 100 is calculated, and the difference between the product and 100 is used as the value of B2, that is, B2=(2.2×100)-100=120. B3 is used to represent the preset normalization factor. In order to facilitate storage and reduce storage space occupation, the difference between the preset normalization factor and 255 is calculated as the value of B3. For example, the preset normalization factor is 255, and B3=255-255=0. B4 and B5 are used together to represent the number of pixels in each row in the horizontal direction of the display screen. For example, the resolution of the display screen is 1080*2400, that is, each row in the horizontal direction of the display screen has 1080 pixels. At this time, B4×256+B5=1080. The specific values of B4 and B5 can be any integer value pair that satisfies the relationship to reduce storage space occupation 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, the resolution of the display screen is 1080*2400, that is, each column in the vertical direction of the display screen has 2400 pixels. In this case, B6×256+B7=2400. The specific values of B6 and B7 can be any integer value pair that satisfies this relationship to reduce storage space occupation and facilitate storage. B8 to B15 are reserved for use.
[0097] Furthermore, in a feasible method, when packaging the converted gamma values, the converted gamma values are arranged based on the positions of the pixels corresponding to the converted gamma values in the display screen. Thus, when obtaining the converted gamma value of pixel A on the display screen in the packaged data, the converted gamma value of the corresponding position in the valid data of the packaged data can be obtained directly based on the position of pixel A in the display screen, and the converted gamma value of pixel A can be confirmed, making the retrieval simpler and the retrieval results more accurate. For example, for a display screen with a resolution of 1080*2400, the converted gamma value of the first pixel in the first row in the horizontal direction of the display screen is used as the first data in the valid data; the converted gamma value of the second pixel in the first row in the horizontal direction of the display screen is used as the second data in the valid data; ...; the converted gamma value of the 1080th pixel in the first row in the horizontal direction of the display screen is used as the 1080th data in the valid data; the converted gamma value of the first pixel in the second row in the horizontal direction of the display screen is used as the 1081st data in the valid data... and so on, so as to arrange the converted gamma values of 1080*2400 pixels on the display screen according to the positions of the pixels on the display screen.
[0098] As can be seen from the above, through the scheme of the embodiment of the present application, the brightness data to be processed of multiple pixels on the display screen under the preset display conditions is obtained, and based on the brightness data to be processed, the original gamma value used to quantify the brightness performance of the pixel under the preset display conditions is determined; through the preset third mapping relationship, the original gamma value is converted according to the preset number of bytes to obtain the converted gamma value; wherein 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. Based on the brightness data to be processed of the pixel under the preset display conditions, the original gamma value for quantizing the brightness performance of the pixel under the preset display conditions is obtained, and the original gamma value is converted through the preset mapping relationship, and 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, which solves the problem of excessive storage space occupied by the brightness data to be processed of multiple pixels of the display screen. At the same time, the brightness data of multiple pixels of 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] The present application also provides a data processing device, see Figure 4 As shown, including:
[0100] The first acquisition unit is used to acquire brightness data to be processed of a plurality of pixels on the display screen under a preset display condition.
[0101] The second acquisition unit is used to determine, based on the brightness data to be processed, an original gamma value used to quantify the brightness performance of the pixel under a preset display condition.
[0102] A 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 a 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 method, 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 used to quantify 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 condition, the first mapping relationship between the standard data and the original grayscale is determined as follows:
[0105]
[0106] Among them, O is the standard data, m is the brightness adjustment coefficient, x is the original grayscale, n is the preset normalization factor, and gamma0 is the standard gamma value.
[0107] Combining the standard data, the original grayscale, the preset normalization factor and the standard gamma value, based on the first mapping relationship, the brightness adjustment coefficient is determined; 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:
[0108]
[0109] Among them, 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, an original gamma value for quantifying the brightness performance of the pixel under a preset display condition is determined.
[0111] The original grayscale in the preset display condition is usually an integer between 0 and a maximum grayscale value, for example, an integer between 0 and 255. Directly using the original grayscale for calculation may result in a large amount of calculation or inaccurate calculation. Therefore, a normalization factor can be preset, and the preset normalization factor can scale the original grayscale to a suitable scale. In a feasible manner, the original grayscale is an integer between 0 and 255, and the preset normalization factor is 255. Therefore, the original grayscale is converted by the preset normalization factor, and the converted grayscale is a decimal between 0 and 1, thereby simplifying subsequent calculations.
[0112] In a feasible manner, the original gamma value is converted into a value within the first preset range according to a preset number of bytes through a preset third mapping relationship to obtain a converted gamma value, wherein the preset third mapping relationship is as follows:
[0113] gamma2=gamma1×200-300 Formula 3
[0114] Among them, 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, the preset number of bytes is one, and when storing the converted gamma values, each converted gamma value only takes up one byte, which reduces the storage space by 75% compared to storing the original gamma values that take up four bytes.
[0116] In a feasible manner, before converting the original gamma value into a value within the first preset range through 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 the 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, and the second preset range is set to be greater than or equal to 1.5 and less than or equal to 2.775. In one feasible manner, the original gamma value less than the minimum value in the second preset range is replaced with the minimum value, and the original gamma value greater than the maximum value in the second preset range is replaced with the maximum value. Thus, the concentration of the original gamma value is further improved without losing data accuracy, thereby more effectively balancing the brightness of multiple pixels on the display screen.
[0118] In one feasible manner, data processing is performed on the converted gamma value. For example, the converted gamma value is rounded to obtain a converted gamma value within a first preset range, that is, within a range greater than or equal to 0 and less than or equal to 255. Each converted gamma value only occupies one byte, which reduces the occupancy of storage space; at the same time, each converted gamma value is an integer, which is convenient for subsequent storage.
[0119] In a feasible manner, the data processing device of the embodiment of the present application further includes a third acquisition unit, which is used to determine the original gamma value of the pixel based on the converted gamma value, and 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:
[0120]
[0121] Among them, P is the brightness data.
[0122] In a feasible manner, it further includes a packaging unit for packaging the preset display condition and the converted gamma value.
[0123] Furthermore, in a feasible method, when packaging the converted gamma values, the converted gamma values are arranged based on the positions of the pixels corresponding to the converted gamma values in the display screen. Thus, when obtaining the converted gamma value of pixel A on the display screen in the packaged data, the converted gamma value of the corresponding position in the valid data of the packaged data can be obtained directly based on the position of pixel A in the display screen, and the converted gamma value of pixel A can be confirmed, making the retrieval simpler and the retrieval results more accurate.
[0124] Furthermore, in a feasible manner, the preset display condition and the converted gamma value are packaged together into a binary data packet and stored.
[0125] Reference Figure 5 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0126] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0127] in:
[0128] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0129] The communication interface 504 is used to communicate with other electronic devices or servers.
[0130] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in any of the above method embodiments.
[0131] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0132] The processor 502 may be a CPU, a GPU (Graphic Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present 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 may be processors of different types, such as one or more CPUs and one or more ASICs.
[0133] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0134] The program 510 may include multiple computer instructions. Specifically, the program 510 may enable the processor 502 to execute operations corresponding to the method described in any of the aforementioned method embodiments through the multiple computer instructions.
[0135] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.
[0136] The present application also provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.
[0137] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0138] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented 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 implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing 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 can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.
[0139] Those of ordinary skill in the art will appreciate that the units and method steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for specific applications, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0140] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A data processing method, characterized in that: include: Acquire brightness data to be processed of multiple pixels on a display screen under preset display conditions; Based on the brightness data to be processed, determining an original gamma value for quantifying the brightness performance of the pixel under the preset display condition; The original gamma value is converted according to a preset number of bytes through a preset third mapping relationship 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 condition; The preset number of bytes is smaller than the number of bytes of the brightness data to be processed.
2. The method according to claim 1, characterized in that The determining, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixel under the preset display condition comprises: Selecting part of the brightness data to be processed, and obtaining standard data according to the selected brightness data to be processed; Based on the standard data, a first mapping relationship between the standard data and the original grayscale in the preset display condition is determined; based on the first mapping relationship, a second mapping relationship between the brightness data to be processed and the original grayscale is determined; based on the second mapping relationship, an original gamma value used to quantify the brightness performance of the pixel under the preset display condition is determined.
3. The method according to claim 2, characterized in that The determining, based on the standard data, a first mapping relationship between the standard data and an original grayscale in the preset display condition, determining, based on the first mapping relationship, a second mapping relationship between the brightness data to be processed and the original grayscale, and determining, based on the second mapping relationship, an original gamma value for quantifying brightness performance of the pixel under the preset display condition, comprises: Based on the standard data and the original grayscale in the preset display condition, a first mapping relationship between the standard data and the original grayscale is determined as follows: Wherein, O is the standard data, m is the brightness adjustment coefficient, x is the original grayscale, n is the preset normalization factor, and gamma0 is the standard gamma value; Determining the brightness adjustment coefficient based on the first mapping relationship in combination with 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: 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 condition is determined.
4. The method according to claim 3, characterized in that The converting the original gamma value according to a preset number of bytes through a preset third mapping relationship to obtain a converted gamma value includes: 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 a converted gamma value, wherein the preset third mapping relationship is as follows: gamma2=gamma1×200-300 Wherein, gamma2 is the gamma value after conversion; Preferably, the first preset range is greater than or equal to 0 and less than or equal to 255; Preferably, the converted gamma value is an integer.
5. The method according to claim 4, characterized in that 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 a converted gamma value, the method further includes: Converting the original gamma value into a value within a second preset range; Preferably, the original gamma value that is smaller than the minimum value in the second preset range is replaced by the minimum value, and the original gamma value that is larger than the maximum value in the second preset range is replaced by the maximum value; Preferably, the second preset range is greater than or equal to 1.5 and less than or equal to 2.
775.
6. The method according to claim 5, characterized in that The method further comprises: 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 a fourth mapping relationship; wherein the fourth mapping relationship is as follows: Wherein, P is the brightness data.
7. The method according to claim 1, characterized in that The method further comprises: Encapsulating the preset display condition and the converted gamma value; wherein the preset display condition is used as a data packet header of a data packet, and the converted gamma value is used as valid data of the data packet; Preferably, when packaging the converted gamma values, the converted gamma values are arranged according to positions of pixels corresponding to the converted gamma values in the display screen.
8. A data processing device, characterized in that: include: A first acquisition unit, used to acquire brightness data to be processed of a plurality of pixels on a display screen under a preset display condition; A second acquisition unit, configured to determine, based on the brightness data to be processed, an original gamma value for quantifying the brightness performance of the pixel under the preset display condition; A conversion unit, configured to convert the original gamma value according to a preset number of bytes through a preset third mapping relationship 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 condition; The preset number of bytes is smaller than the number of bytes of the brightness data to be processed.
9. An electronic device, 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, and the executable instruction enables the processor to perform an operation corresponding to the method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
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
Display screen optical external compensation method and device and storage medium
CN112562576A
LED display control method and device, display equipment and readable storage medium
CN116994520A
Image Data Processing Apparatus, Image Data Processing Method, And Program
US20090290045A1