Compensation data compression method and device, electronic device and storage medium
By blocking and frequency domain conversion of the brightness compensation data of the LED/OLED display screen and compressing the frequency domain feature points, the problem of uneven brightness of the display screen is solved, and the data volume is reduced and the transmission efficiency is improved.
Patent Information
- Application Number
- CN202111492009.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2041-12-08
AI Technical Summary
In the production process of LED/OLED display screens, due to the inconsistent luminous efficiency of different lamp beads, the brightness of the display screen is uneven. Each lamp bead needs to be compensated by light, resulting in large data volume and large storage and transmission pressure.
By blocking the compensation data to be compressed in the display area, converting it into frequency domain feature points, compressing these feature points based on the preset compression rate, obtaining the compressed compensation data, and reducing the amount of data.
The amount of compressed compensation data after luminance uniformity compensation in the display area is effectively reduced, and data transmission efficiency and storage space utilization are improved.
Smart Images

Figure CN114170334B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a method and device for compressing compensation data, an electronic device, and a storage medium. Background Art
[0002] Light-Emitting Diode (LED) displays and Organic Light-Emitting Diode (OLED) displays are widely used in the field of screen display. However, in the production process of LED and OLED screens, it is difficult to ensure the consistency of the luminous efficiency of all lamp beads on the display. Figure 1 FIG. 1 is a schematic diagram showing the display brightness of a display screen in the related art. Figure 1 As shown, due to the inconsistent luminous efficiency of different lamp beads on the display screen, the brightness of the entire display area of the display screen is uneven. Therefore, it is necessary to compensate for the brightness uniformity of the entire display area in order to achieve a satisfactory luminous effect of the display screen. In the related art, it is usually necessary to perform point-by-point brightness compensation for each lamp bead on the display screen, that is, each pixel in the display area corresponds to a compensation data. However, as the resolution of LED / OLED display screens becomes higher and higher, the amount of compensation data corresponding to the display area is also increasing, resulting in greater pressure on data storage and data transmission. Summary of the invention
[0003] In view of this, the present disclosure proposes a method and device for compressing compensation data, an electronic device and a storage medium, which effectively reduce the amount of compressed compensation data for compensating for brightness uniformity of a display area.
[0004] According to one aspect of the present disclosure, a method for compressing compensation data is provided, comprising: performing data segmentation on the compensation data to be compressed corresponding to a display area to obtain compensation data blocks corresponding to multiple display sub-areas; converting the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points; based on a preset compression rate, compressing the multiple first feature points to obtain multiple second feature points; and determining the compressed compensation data corresponding to the display area based on the multiple second feature points.
[0005] In a possible implementation, converting the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain the multiple first feature points includes: performing discrete cosine transform on the compensation data blocks corresponding to the multiple display sub-areas to obtain the multiple first feature points.
[0006] In a possible implementation, the multiple first feature points are compressed based on a preset compression rate to obtain multiple second feature points, including: determining a target number of the multiple second feature points based on the number of the multiple first feature points and the preset compression rate; and selecting the multiple second feature points from the multiple first feature points based on the target number.
[0007] In a possible implementation, the selecting the multiple second feature points from the multiple first feature points based on the target number includes: classifying the multiple first feature points based on the target number to obtain a set of first feature points of multiple categories, wherein the number of the multiple categories is the target number; and determining the multiple second feature points based on the set of first feature points of the multiple categories.
[0008] In a possible implementation, the determining of the multiple second feature points based on the first feature point sets of the multiple categories includes: determining, for the first feature point set of any category, the sum of square errors between each first feature point in the first feature point set and other first feature points; and determining the first feature point with the smallest sum of square errors as the second feature point selected from the first feature point set.
[0009] In a possible implementation manner, the method further includes: establishing a target mapping relationship between the multiple display sub-areas and the multiple second feature points.
[0010] In one possible implementation, establishing a target mapping relationship between the multiple display sub-areas and the multiple second feature points includes: for any of the display sub-areas, determining an error between a first feature point corresponding to the display sub-area and each of the second feature points; and determining the second feature point with the smallest error as the second feature point having the target mapping relationship with the display sub-area.
[0011] In a possible implementation manner, the method further includes: based on the target mapping relationship, decompressing the compressed compensation data to obtain target compensation data corresponding to the display area.
[0012] In a possible implementation, the compressed compensation data is decompressed based on the target mapping relationship to obtain the target compensation data corresponding to the display area, including: for any of the display sub-areas, determining, in the compressed compensation data, a second feature point having the target mapping relationship with the display sub-area; converting the second feature point having the target mapping relationship with the display sub-area from the frequency domain to the spatial domain to obtain a decompressed compensation data block corresponding to the display sub-area; and obtaining the target compensation data based on the decompressed compensation data blocks corresponding to the multiple display sub-areas.
[0013] In one possible implementation, converting the second feature point having the target mapping relationship with the display sub-area from the frequency domain to the spatial domain to obtain the decompressed compensated data block corresponding to the display sub-area includes: performing an inverse discrete cosine transform on the second feature point having the target mapping relationship with the display sub-area to obtain the decompressed compensated data block corresponding to the display sub-area.
[0014] In a possible implementation manner, the method further includes: performing brightness display compensation on the display area based on the target compensation data.
[0015] According to another aspect of the present disclosure, a device for compressing compensation data is provided, including: a data blocking module, used to block the compensation data to be compressed corresponding to the display area, so as to obtain compensation data blocks corresponding to multiple display sub-areas; a frequency domain conversion module, used to convert the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain, so as to obtain multiple first feature points; a compression module, used to compress the multiple first feature points based on a preset compression rate, so as to obtain multiple second feature points; and a determination module, used to determine the compressed compensation data corresponding to the display area based on the multiple second feature points.
[0016] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned compensation data compression method.
[0017] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above-mentioned compensation data compression method when executed by a processor.
[0018] In the disclosed embodiment, the to-be-compressed compensation data corresponding to the display area is divided into blocks, and the compensation data blocks corresponding to the obtained multiple display sub-areas are converted from the spatial domain to the frequency domain, so as to realize the conversion of the to-be-compressed compensation data into multiple first feature points, and then the multiple first feature points are compressed according to a preset compression rate to obtain multiple second feature points for determining the compressed compensation data corresponding to the display area. By flexibly changing the preset compression rate, the size of the compressed compensation data can be flexibly adjusted according to actual application requirements, thereby effectively reducing the data amount of the compressed compensation data for compensating the brightness uniformity of the display area.
[0019] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0021] Figure 1 A schematic diagram showing the display brightness of a display screen in the related art is shown;
[0022] Figure 2 A flowchart showing a method for compressing compensation data according to an embodiment of the present disclosure is shown;
[0023] Figure 3 A schematic diagram showing a second feature point selection method according to an embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram showing a specific process of selecting a second feature point according to an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram showing a method of establishing a target mapping relationship between a plurality of display sub-areas and a plurality of second feature points according to an embodiment of the present disclosure;
[0026] Figure 6 A block diagram showing a device for compressing compensation data according to an embodiment of the present disclosure;
[0027] Figure 7 A block diagram of a compressing device 800 for compensating data according to an embodiment of the present disclosure is shown;
[0028] Figure 8 A block diagram of a compressing device 1900 for compensating data according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0029] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0030] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0031] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0032] During the production process of LED screens and OLED screens, it is difficult to ensure the consistency of the luminous efficiency of all lamp beads on the display screen. The inconsistent luminous brightness of each lamp bead on the display screen leads to uneven brightness of the entire display area of the display screen. Therefore, it is necessary to compensate for the brightness uniformity of the entire display area in order to achieve a satisfactory luminous effect of the display screen. In the related art, it is usually necessary to perform point-by-point brightness compensation for each lamp bead on the display screen, that is, each pixel in the display area corresponds to a compensation data. However, as the resolution of the display screen becomes higher and higher, the amount of compensation data corresponding to the display area is also increasing. Therefore, when the amount of compensation data is large, the pressure of directly storing and transmitting the compensation data is relatively large.
[0033] The disclosed embodiment provides a method for compressing compensation data, which can be applied to the display screen of an electronic device, by dividing the to-be-compressed compensation data corresponding to the display area into blocks, and then converting the compensation data blocks corresponding to multiple display sub-areas from the spatial domain to the frequency domain, so as to realize the conversion of the to-be-compressed compensation data into multiple first feature points, and then compressing the multiple first feature points based on a preset compression rate to obtain multiple second feature points for determining the compressed compensation data corresponding to the display area. When the resolution of the display screen is large, that is, the amount of compensation data corresponding to the display area is large, by flexibly adjusting the preset compression rate, the size of the compressed compensation data can be flexibly adjusted according to actual application requirements, effectively reducing the amount of compressed compensation data for brightness uniformity compensation of the display area, thereby improving data transmission efficiency and saving storage space.
[0034] Figure 2 FIG. 1 is a flow chart showing a method for compressing compensation data according to an embodiment of the present disclosure. Figure 2 As shown, the compressing method of the compensation data may include:
[0035] In step S21, the to-be-compressed compensation data corresponding to the display area is divided into blocks to obtain compensation data blocks corresponding to a plurality of display sub-areas.
[0036] The display area here may be a display area in a display screen (eg, an LED display screen or an OLED display screen).
[0037] The to-be-compressed compensation data is the original compensation data for brightness compensation of the display area, including a compensation data corresponding to each pixel in the display screen. The to-be-compressed compensation data can be obtained by determining the brightness compensation data of the display screen in the related art, and the present disclosure does not specifically limit this.
[0038] The to-be-compressed compensation data corresponding to the display area is divided into blocks to obtain compensation data blocks corresponding to multiple display sub-areas. That is, the entire display area is divided into multiple display sub-areas, and for any display sub-area, the compensation data block corresponding to the display sub-area is obtained according to the compensation data corresponding to each pixel point in the display sub-area.
[0039] For example, if the display area size is 1080*2240, the size of the to-be-compressed compensation data corresponding to the display area is also 1080*2240. The to-be-compressed compensation data corresponding to the display area is divided into 8*8 compensation data blocks, that is, the display area is divided into 135*280=37800 display sub-areas, each display sub-area size is 8*8, each display sub-area corresponds to a 8*8 compensation data block, that is, the 1080*2240 to-be-compressed compensation data is divided into 37800 8*8 compensation data blocks.
[0040] The data segmentation method can be flexibly selected according to actual conditions, and the present disclosure does not make any specific limitations on this.
[0041] In step S22, the compensation data blocks corresponding to the multiple display sub-areas are converted from the spatial domain to the frequency domain to obtain multiple first feature points.
[0042] After the to-be-compressed compensation data corresponding to the display area is divided into a plurality of compensation data blocks corresponding to the display sub-areas, the plurality of compensation data blocks are converted from the spatial domain to the frequency domain to obtain a plurality of first feature points.
[0043] For example, for the above 8*8 size compensation data block, a 64-dimensional first feature point is obtained by converting from the spatial domain to the frequency domain, and then the above 37800 8*8 size compensation data blocks are converted from the spatial domain to the frequency domain, and 37800 64-dimensional first feature points are obtained. The dimension of the first feature point is related to the size of the compensation data block.
[0044] In step S23, the plurality of first feature points are compressed based on a preset compression rate to obtain a plurality of second feature points.
[0045] By compressing the plurality of first feature points according to a preset compression rate, a plurality of second feature points may be obtained, wherein the number of the plurality of second feature points is less than the number of the plurality of first feature points.
[0046] The specific value of the preset compression rate can be flexibly set according to actual needs, and the present disclosure does not make any specific limitation on this.
[0047] The second feature point may be a representative first feature point selected from a plurality of first feature points. The process of compressing a plurality of first feature points to obtain a plurality of second feature points will be described in detail below in conjunction with possible implementations of the present disclosure, and will not be described in detail here.
[0048] In step S24, based on the plurality of second feature points, the compressed compensation data corresponding to the display area is determined.
[0049] Based on the plurality of second characteristic points obtained after compression, the compressed compensation data corresponding to the entire display area may be determined.
[0050] Since the amount of the compressed compensated data is smaller than the initial compensated data to be compressed, storing and transmitting the compressed compensated data can effectively improve the transmission efficiency and save storage space.
[0051] In the disclosed embodiment, the to-be-compressed compensation data corresponding to the display area is divided into blocks, and the compensation data blocks corresponding to the obtained multiple display sub-areas are converted from the spatial domain to the frequency domain, so as to realize the conversion of the to-be-compressed compensation data into multiple first feature points, and then the multiple first feature points are compressed according to a preset compression rate to obtain multiple second feature points for determining the compressed compensation data corresponding to the display area. By flexibly changing the preset compression rate, the size of the compressed compensation data can be flexibly adjusted according to actual application requirements, thereby effectively reducing the data amount of the compressed compensation data for compensating the brightness uniformity of the display area.
[0052] In a possible implementation, converting the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points includes: performing discrete cosine transform on the compensation data blocks corresponding to the multiple display sub-areas to obtain multiple first feature points.
[0053] For a display sub-region, a discrete cosine transform (DCT) is performed on the compensation data block corresponding to the display sub-region, so as to quickly convert the compensation data block from the spatial domain to the frequency domain and obtain the first feature point corresponding to the display sub-region.
[0054] Taking the 37,800 8*8 compensation data blocks corresponding to the above-mentioned 37,800 display sub-areas as an example, by performing DCT transform on the 8*8 compensation data block corresponding to any display sub-area, the 8*8 compensation data block can be converted from the spatial domain to the frequency domain to obtain a 64-dimensional first feature point corresponding to the display sub-area.
[0055] After DCT transformation is performed on the 37,800 compensation data blocks corresponding to the 37,800 display sub-areas, 37,800 64-dimensional first feature points can be obtained.
[0056] In addition to the above-mentioned DCT transformation, other transformation methods may be used to transform the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain, and the present disclosure does not specifically limit this.
[0057] In a possible implementation, multiple first feature points are compressed based on a preset compression rate to obtain multiple second feature points, including: determining a target number of multiple second feature points based on the number of multiple first feature points and the preset compression rate; and selecting multiple second feature points from the multiple first feature points based on the target number.
[0058] Based on the number of the plurality of first feature points and a preset compression rate, a target number of the plurality of second feature points can be effectively calculated.
[0059] For example, the number of first feature points is 37,800. When the compression rate is 50%, the 37,800 first feature points need to be compressed twice, and the target number of multiple second feature points after compression is 18,900. When the compression rate is 25%, the 37,800 first feature points need to be compressed four times, and the target number of multiple second feature points after compression is 9,450.
[0060] Based on the target number of second feature points, the plurality of first feature points are compressed, that is, the target number of second feature points are selected from the plurality of first feature points.
[0061] According to actual application requirements, the preset compression rate can be flexibly adjusted to achieve flexible compression of the data to be compressed and compensated.
[0062] In one possible implementation, based on the target number, multiple second feature points are selected from multiple first feature points, including: based on the target number, the multiple first feature points are classified to obtain a set of first feature points of multiple categories, wherein the number of the multiple categories is the target number; and multiple second feature points are determined based on the set of first feature points of multiple categories.
[0063] Based on the target number of the second feature points, the multiple first feature points are divided into multiple categories, each category corresponds to a set of first feature points, and the number of the multiple categories is equal to the target number of the second feature points. Based on the sets of the first feature points of the multiple categories, the multiple second feature points can be quickly determined.
[0064] Figure 3 FIG. 1 is a schematic diagram showing a second feature point selection method according to an embodiment of the present disclosure. Figure 3 As shown in the figure, the number of first feature points is N, and the target number of second feature points is 2, that is, 2 second feature points need to be selected from the N first feature points. At this time, the N first feature points are classified, and the number of categories is equal to the target number of second feature points, that is, the N first feature points are divided into 2 categories, and each category corresponds to a set of first feature points. In the set of first feature points of each category obtained by classification, one first feature point is selected as the second feature point, and the two second feature points finally selected are obtained.
[0065] In one possible implementation, multiple second feature points are determined based on multiple categories of first feature point sets, including: for any category of first feature point sets, determining the sum of square errors between each first feature point in the first feature point set and other first feature points; and determining the first feature point with the smallest sum of square errors as the second feature point selected from the first feature point set.
[0066] For a set of first feature points of any category, the sum of square errors between each first feature point in the set of first feature points and other first feature points is calculated respectively, and all the calculated sums of square errors are compared to determine the first feature point with the smallest sum of square errors. It can be considered that the first feature point with the smallest sum of square errors is the most representative first feature point in the set of first feature points. Therefore, the first feature point with the smallest sum of square errors can be determined as the second feature point selected from the set of first feature points.
[0067] In one example, selecting multiple second feature points from multiple first feature points can be achieved by using a K-means clustering algorithm. The specific process of selecting the second feature points by using the K-means clustering algorithm will be described in detail below.
[0068] Figure 4 A schematic diagram showing a specific process of selecting a second feature point according to an embodiment of the present disclosure is shown. Figure 4 As shown, the number of first feature points is N, and the target number of second feature points is 2, that is, it is necessary to select N first feature points (C1, C2, ..., C N ) and select two second feature points. The specific process of selecting the second feature points is as follows.
[0069] (1) Select two initial category center points from the N first feature points.
[0070] like Figure 4 As shown in (a), two first feature points C1 and C2 on the diagonal are selected as two initial category center points.
[0071] In addition, other methods may be used to select the initial category center point, which is not specifically limited in the present disclosure.
[0072] (2) According to the two category center points, the N first feature points are divided into two categories, and each category corresponds to a set of first feature points.
[0073] like Figure 4 As shown in (b), for each first feature point C i , calculate the first feature point C respectively i The distance between the center points of the two categories and the first feature point C i Mark it to the category corresponding to the nearest category center point. After traversing all the first feature points, divide the N first feature points into 2 categories.
[0074] For example, for each first feature point C i , calculate the first feature point C respectively i The square error with the two category center points C1 and C2 gives the first feature point C i The square error (C i -x1) 2 , and the first feature point C i The square error (C i -x2) 2 In (C i -x1) 2 Less than (C i -x2) 2 In the case of i Mark to the category where the category center point C1 is located; in (C i -x2) 2 Less than (C i -x1) 2 In the case of i Mark it into the category where the category center point C2 is located.
[0075] Calculate the first feature point C i In addition to the above-mentioned square error, the distance between the center points of the two initial categories can also be calculated by Euclidean distance, covariance, Pearson coefficient, etc., which is not specifically limited in the present disclosure.
[0076] (3) The category center point of each category is updated to the mean value of all first feature points in the first feature point set corresponding to the category.
[0077] like Figure 4 As shown in (c), for any category, the mean of all first feature points in the first feature point set corresponding to the category is Updated to the category center point of the category.
[0078] (4) Repeat the above (2) and (3) until the iteration termination condition is reached.
[0079] like Figure 4 As shown in (d) to (i), the above steps (2) and (3) are repeated until the iteration termination condition is reached, and the first feature point sets of 2 categories after the final classification of N first feature points are obtained.
[0080] Among them, the iteration termination condition can be determined according to the number of iterations, the rate of change of the class center, the minimum square error, etc., and the present disclosure does not specifically limit the iteration termination condition.
[0081] The second feature point is selected based on the first feature point sets of two categories after the N first feature points are finally classified, that is, the most representative first feature point is selected from the first feature point set of each category as the second feature point.
[0082] In a possible implementation, the method for compressing compensation data further includes: establishing a target mapping relationship between the plurality of display sub-areas and the plurality of second feature points.
[0083] After obtaining multiple second feature points for determining the compressed compensation data corresponding to the display area, a target mapping relationship between multiple display sub-areas and multiple second feature points can be established to facilitate subsequent brightness display compensation for each display sub-area based on the compressed compensation data.
[0084] Figure 5 FIG. 1 is a schematic diagram showing a method of establishing a target mapping relationship between multiple display sub-areas and multiple second feature points according to an embodiment of the present disclosure. Figure 5 As shown, the display area is divided into 16 display sub-areas D1 to D 16 , corresponding to the 16 first feature points C1~C 16 , for the 16 first feature points C1~C 16 After compression, two second feature points C6 and C 11 . Create 16 display sub-areas D1~D 16 With the two second characteristic points C6 and C 11 The target mapping relationship between them.
[0085] In one possible implementation, a target mapping relationship is established between multiple display sub-areas and multiple second feature points, including: for any display sub-area, determining the error between the first feature point corresponding to the display sub-area and each second feature point; and determining the second feature point with the smallest error as the second feature point having a target mapping relationship with the display sub-area.
[0086] For any display sub-area in the display area, the error between the first feature point corresponding to the display sub-area and each second feature point is calculated, and all the errors obtained are compared. The second feature point with the smallest error can be considered to be the closest to the first feature point corresponding to the display sub-area. Therefore, the second feature point with the smallest error can be determined as the second feature point with a target mapping relationship with the display sub-area. Subsequently, based on the second feature point with the smallest error, a target compensation data block with a higher accuracy corresponding to the display sub-area can be obtained to improve the brightness display compensation effect.
[0087] Still with the above Figure 5 For example, for the display sub-area D1, the first feature point C1 corresponding to the display sub-area D1 and each second feature point C6, C 11 The error between the first feature point C1 and the second feature point C6 is calculated, and the two obtained error values are compared. When the error between the first feature point C1 and the second feature point C6 is the smallest, a target mapping relationship is established between the second feature point C6 and the display sub-area D1.
[0088] Among them, the error between the first feature point C1 and the second feature point C6 is the smallest, and it can be considered that the correlation between the first feature point C1 and the second feature point C6 is high. Due to the high correlation, based on the second feature point C6, a target compensation data block with higher accuracy corresponding to the display sub-area D1 can be obtained, thereby improving the brightness display compensation effect of the display sub-area D1.
[0089] And so on, traverse and display sub-areas D1 to D 16 , determining a second feature point having a target mapping relationship with each display sub-area.
[0090] In a possible implementation, the method for compressing compensation data further includes: decompressing the compressed compensation data based on a target mapping relationship to obtain target compensation data corresponding to the display area.
[0091] After compressing the to-be-compressed compensation data corresponding to the display area to obtain the compressed compensation data, the compressed compensation data can be stored. Compared with the to-be-compressed compensation data, the compressed compensation data requires less data to be transmitted and stored, thereby effectively improving the transmission efficiency and saving storage space. When performing brightness uniformity compensation for the entire display area, the stored compressed compensation data can be decompressed based on the established target mapping relationship to obtain the target compensation data of the display area.
[0092] In one possible implementation, based on the target mapping relationship, the compressed compensation data is decompressed to obtain the target compensation data corresponding to the display area, including: for any display sub-area, determining a second feature point having a target mapping relationship with the display sub-area in the compressed compensation data; converting the second feature point having a target mapping relationship with the display sub-area from the frequency domain to the spatial domain to obtain a decompressed compensation data block corresponding to the display sub-area; and obtaining the target compensation data based on the decompressed compensation data blocks corresponding to multiple display sub-areas.
[0093] When decompressing the compressed compensation data, for any display sub-area, in the compressed compensation data, a second feature point having a target mapping relationship with the display sub-area is determined, and the second feature point is converted from the spatial domain to the frequency domain to obtain a decompressed compensation data block corresponding to the display sub-area. By traversing multiple display sub-areas, a decompressed compensation data block corresponding to each display sub-area can be obtained. According to the decompressed compensation data blocks corresponding to the multiple display sub-areas, the target compensation data for brightness uniformity compensation of the entire display area can be obtained.
[0094] Still with the above Figure 5 For example, for the display sub-area D1, in the compressed compensated data, it is determined that the second feature point C6 has a target mapping relationship with the display sub-area D1, and the second feature point C6 is converted from the spatial domain to the frequency domain to obtain the decompressed compensated data block corresponding to the display sub-area D1. 16 , 16 display sub-areas D1~D 16 The corresponding decompressed compensation data blocks are respectively obtained, thereby obtaining the target compensation data corresponding to the entire display area.
[0095] In one possible implementation, a second feature point having a target mapping relationship with the display sub-region is converted from the frequency domain to the spatial domain to obtain a decompressed compensated data block corresponding to the display sub-region, including: performing an inverse discrete cosine transform on the second feature point having a target mapping relationship with the display sub-region to obtain a decompressed compensated data block corresponding to the display sub-region.
[0096] The second feature point having a target mapping relationship with the display sub-region may be transformed from the spatial domain to the frequency domain by using inverse discrete cosine transform, so as to obtain a decompressed compensation data block corresponding to the display sub-region.
[0097] In a possible implementation, the method for compressing compensation data further includes: performing brightness display compensation on the display area based on the target compensation data.
[0098] After obtaining the target compensation data, brightness compensation correction can be performed point by point on the entire display area based on the target compensation data to complete brightness uniformity compensation of the entire display area.
[0099] For example, for any display sub-region, the decompressed compensation data block corresponding to the display sub-region is used to perform point-by-point brightness correction compensation on the display sub-region, and all display sub-regions are traversed to complete brightness uniformity compensation for the entire display region.
[0100] In the disclosed embodiment, the to-be-compressed compensation data corresponding to the display area is divided into blocks, and the compensation data blocks corresponding to the obtained multiple display sub-areas are converted from the spatial domain to the frequency domain, so as to realize the conversion of the to-be-compressed compensation data into multiple first feature points, and then the multiple first feature points are compressed according to a preset compression rate to obtain multiple second feature points for determining the compressed compensation data corresponding to the display area. By flexibly changing the preset compression rate, the size of the compressed compensation data can be flexibly adjusted according to actual application requirements, thereby effectively reducing the data amount of the compressed compensation data for compensating the brightness uniformity of the display area.
[0101] Figure 6 FIG. 5 is a block diagram showing a compensating data compression device according to an embodiment of the present disclosure. Figure 6 As shown, the device 60 may include:
[0102] A data block module 61 is used to block the to-be-compressed compensation data corresponding to the display area to obtain compensation data blocks corresponding to a plurality of display sub-areas;
[0103] A frequency domain conversion module 62, used to convert the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points;
[0104] A compression module 63, configured to compress the plurality of first feature points based on a preset compression rate to obtain a plurality of second feature points;
[0105] The determination module 64 is used to determine the compressed compensation data corresponding to the display area based on the multiple second feature points.
[0106] In a possible implementation, the frequency domain conversion module 62 is specifically configured to:
[0107] Discrete cosine transform is performed on the compensation data blocks corresponding to the multiple display sub-areas to obtain multiple first feature points.
[0108] In a possible implementation, the compression module 63 includes:
[0109] A first determination submodule, configured to determine a target number of the plurality of second feature points based on the number of the plurality of first feature points and a preset compression rate;
[0110] The second feature point selection submodule is used to select a plurality of second feature points from a plurality of first feature points based on the target quantity.
[0111] In a possible implementation, the second feature point selection submodule includes:
[0112] A classification unit, configured to classify the plurality of first feature points based on the target number to obtain a plurality of categories of first feature point sets, wherein the number of the plurality of categories is the target number;
[0113] The determining unit is used to determine a plurality of second feature points according to a plurality of categories of first feature point sets.
[0114] In a possible implementation manner, the determining unit is specifically configured to:
[0115] For a first feature point set of any category, determining the sum of square errors between each first feature point in the first feature point set and other first feature points;
[0116] The first feature point with the smallest sum of square errors is determined as the second feature point selected from the first feature point set.
[0117] In a possible implementation, the device 60 further includes:
[0118] The target mapping relationship establishing module is used to establish a target mapping relationship between a plurality of display sub-areas and a plurality of second feature points.
[0119] In a possible implementation, the target mapping relationship establishing module includes:
[0120] A second determination submodule is used to determine, for any display subregion, an error between a first feature point corresponding to the display subregion and each second feature point;
[0121] The third determination submodule is used to determine the second feature point with the smallest error as the second feature point having a target mapping relationship with the display subregion.
[0122] In a possible implementation, the device 60 further includes:
[0123] The decompression module is used to decompress the compressed compensation data based on the target mapping relationship to obtain the target compensation data corresponding to the display area.
[0124] In a possible implementation, the decompression module includes:
[0125] A fourth determination submodule is used to determine, for any display subregion, in the compressed compensated data, a second feature point having a target mapping relationship with the display subregion;
[0126] A spatial domain conversion submodule, used to convert the second feature point having a target mapping relationship with the display sub-region from the frequency domain to the spatial domain, and obtain a decompressed compensation data block corresponding to the display sub-region;
[0127] The fifth determining submodule is used to obtain target compensation data according to the decompressed compensation data blocks corresponding to the multiple display sub-areas.
[0128] In a possible implementation, the airspace conversion submodule is further used to:
[0129] An inverse discrete cosine transform is performed on the second feature point having a target mapping relationship with the display sub-region to obtain a decompressed compensation data block corresponding to the display sub-region.
[0130] In a possible implementation, the device 60 further includes:
[0131] The compensation module is used to perform brightness display compensation on the display area based on the target compensation data.
[0132] The device 60 provided in the present disclosure can implement each step in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.
[0133] Figure 7 A block diagram of a compressing device 800 for compensating data according to an embodiment of the present disclosure is shown. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0134] Reference Figure 7 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0135] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0136] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0137] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0138] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0139] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0140] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0141] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0142] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0143] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0144] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the device 800 to perform the above method.
[0145] Figure 8 FIG. 1 is a block diagram of a device 1900 for compensating data according to an embodiment of the present disclosure. For example, the device 1900 may be provided as a server. Figure 8 , the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0146] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output (I / O) interface 1958. The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.
[0147] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.
[0148] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0149] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0150] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0151] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0152] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0153] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0154] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0155] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0156] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for compressing compensation data, characterized in that: include: Dividing the to-be-compressed compensation data corresponding to the display area into blocks to obtain compensation data blocks corresponding to a plurality of display sub-areas; Convert the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points; Based on a preset compression rate, compressing the plurality of first feature points to obtain a plurality of second feature points; Determining the compressed compensation data corresponding to the display area based on the plurality of second feature points; The method of compressing the plurality of first feature points based on a preset compression rate to obtain a plurality of second feature points includes: Determining a target number of the plurality of second feature points based on the number of the plurality of first feature points and the preset compression rate; Based on the number of targets, classify the plurality of first feature points to obtain a plurality of categories of first feature point sets, wherein the number of the plurality of categories is the number of targets; For any category of the first feature point set, determine the sum of square errors between each first feature point in the first feature point set and other first feature points; The first feature point with the smallest sum of square errors is determined as the second feature point selected from the first feature point set.
2. The method according to claim 1, characterized in that The converting the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points includes: Discrete cosine transform is performed on the compensation data blocks corresponding to the multiple display sub-areas to obtain the multiple first feature points.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: A target mapping relationship between the plurality of display sub-areas and the plurality of second feature points is established.
4. The method according to claim 3, characterized in that The establishing of a target mapping relationship between the plurality of display sub-areas and the plurality of second feature points comprises: For any of the display sub-areas, determining an error between a first feature point corresponding to the display sub-area and each of the second feature points; The second feature point with the smallest error is determined as the second feature point having the target mapping relationship with the display sub-area.
5. The method according to claim 3, characterized in that: The method further comprises: Based on the target mapping relationship, the compressed compensation data is decompressed to obtain target compensation data corresponding to the display area.
6. The method according to claim 5, characterized in that The decompressing the compressed compensation data based on the target mapping relationship to obtain the target compensation data corresponding to the display area includes: For any of the display sub-areas, determining, in the compressed compensated data, a second feature point having the target mapping relationship with the display sub-area; Converting the second feature point having the target mapping relationship with the display sub-region from the frequency domain to the spatial domain to obtain a decompressed compensation data block corresponding to the display sub-region; The target compensation data is obtained according to the decompressed compensation data blocks corresponding to the multiple display sub-areas.
7. The method according to claim 6, characterized in that The converting the second feature point having the target mapping relationship with the display sub-area from the frequency domain to the spatial domain to obtain a decompressed compensation data block corresponding to the display sub-area includes: An inverse discrete cosine transform is performed on the second feature point having the target mapping relationship with the display sub-region to obtain the decompressed compensation data block corresponding to the display sub-region.
8. The method according to claim 5, characterized in that The method further comprises: Based on the target compensation data, brightness display compensation is performed on the display area.
9. A compressing device for compensation data, characterized in that: include: A data block module is used to block the to-be-compressed compensation data corresponding to the display area to obtain compensation data blocks corresponding to a plurality of display sub-areas; A frequency domain conversion module, used to convert the compensation data blocks corresponding to the multiple display sub-areas from the spatial domain to the frequency domain to obtain multiple first feature points; A compression module, configured to compress the plurality of first feature points based on a preset compression rate to obtain a plurality of second feature points; A determination module, configured to determine the compressed compensation data corresponding to the display area based on the plurality of second feature points; Wherein, the compression module includes: a first determination submodule and a second feature point selection submodule; The first determination submodule is used to determine a target number of the plurality of second feature points based on the number of the plurality of first feature points and the preset compression rate; The second feature point selection submodule includes: a classification unit and a determination unit; The taxonomic units are used for: Based on the number of targets, classify the plurality of first feature points to obtain a plurality of categories of first feature point sets, wherein the number of the plurality of categories is the number of targets; The determining unit is used for: For any category of the first feature point set, determine the sum of square errors between each first feature point in the first feature point set and other first feature points; The first feature point with the smallest sum of square errors is determined as the second feature point selected from the first feature point set.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 8.
11. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Display drive, compression and decompression method and device, display device and storage medium
CN110176210A
Compression storage method and device of compensation data, electronic equipment and storage medium
CN113595556A