Compensation value acquisition and display control method and device, display screen and storage medium
By dividing pixel blocks in the image screen and calculating the correction coefficient for pixel compensation, the problem of incomplete pixel blocks in the prior art is solved, and the display effect of the image screen is improved.
Patent Information
- Application Number
- CN202311753341.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, when processing pixel blocks containing incomplete pixels, pixel compensation cannot be effectively performed, resulting in poor display effect of image screens.
By dividing the image screen into multiple pixel blocks, the compensation value of each pixel in each pixel block is determined, and the correction coefficient corresponding to each compensation value is calculated based on the area of the complete pixel, the number of pixels in the pixel block, and the area of the pixel block, and then the correction is made to obtain the corrected pixel compensation value.
Effective compensation for each pixel is achieved, the brightness uniformity and color accuracy of the image picture are improved, and the display effect is improved.
Smart Images

Figure CN120183323A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technologies, and in particular, to a method and apparatus for obtaining compensation values and controlling display, a display screen, and a storage medium. Background Art
[0002] In the manufacturing processes of chips and display screens, there are instabilities and non-uniformities, which can cause uneven brightness and color in the images displayed on the display screen. This phenomenon is called the mura defect of the screen. By using the demura method, that is, the mura elimination method, the defect can be improved by compensating the brightness and chrominance of pixels. In related technologies, when using the demura method for pixel compensation, the effective display area of the demura display panel is divided into multiple pixel blocks, the compensation data for each pixel block is calculated, and the compensation data is used to uniformly compensate each pixel in the pixel block. For the case where the pixel block only contains complete pixels, pixel compensation can be effectively performed by the above method. However, for a pixel block containing incomplete pixels, effective compensation cannot be performed by the above method, and the display effect of the image cannot be effectively improved. Summary of the Invention
[0003] Embodiments of the present application provide a method and apparatus for obtaining compensation values and controlling display, a display screen, and a storage medium, aiming to improve the display effect of an image.
[0004] Embodiments of the present application provide a method for obtaining pixel compensation values. The method for obtaining pixel compensation values includes:
[0005] Determining the compensation value of each pixel in each pixel block of the image;
[0006] Determining a correction coefficient corresponding to each compensation value according to the area of complete pixels in the image, the number of pixels in the pixel block, and the area of the pixel block;
[0007] Correcting each compensation value based on the correction coefficient to obtain a corrected pixel compensation value.
[0008] Optionally, the step of determining a correction coefficient corresponding to each compensation value according to the area of complete pixels in the image, the number of pixels in the pixel block, and the area of the pixel block includes:
[0009] Determining a first area according to the area of complete pixels and the number of pixels in the pixel block;
[0010] Determining a correction coefficient corresponding to each compensation value according to the first area and the area of the pixel block.
[0011] Optionally, the step of determining a correction coefficient corresponding to each of the compensation values according to the first area and the area of the pixel block includes:
[0012] Determine the ratio between the first area and the area of the pixel block as the correction coefficient corresponding to the compensation value of each pixel in the pixel block.
[0013] Optionally, before the step of determining a correction coefficient corresponding to each of the compensation values according to the area of the complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block, further includes:
[0014] Identify the number of complete pixels in the pixel block;
[0015] Determine the proportion of non-complete pixels in the pixel block according to the area of the complete pixels and the area of the pixel block in the pixel block;
[0016] Determine the number of pixels in the pixel block according to the number of complete pixels in the pixel block and the proportion of the non-complete pixels.
[0017] Optionally, the step of determining the compensation value of each pixel in each pixel block of the image frame includes:
[0018] Divide the image frame into multiple pixel blocks;
[0019] Determine the brightness compensation value of the pixel block according to the target display brightness of the image frame and the actual display brightness of the pixel block;
[0020] Based on the brightness compensation value, determine the compensation value of each pixel in the pixel block.
[0021] Optionally, the step of dividing the image frame into multiple pixel blocks includes:
[0022] Determine the shape, size, and number of pixel blocks;
[0023] Based on the shape, size, and number of the pixel blocks, divide the image frame into pixel blocks.
[0024] Optionally, the step of determining the shape, size, and number of pixel blocks includes:
[0025] Determine the shape of the pixel block according to the shape and arrangement of the complete pixels in the image frame;
[0026] And determine the size of the pixel block according to one of the storage capacity, photographing time, resolution of the image acquisition device, and size of the complete pixels in the image frame;
[0027] And, according to the size of the image frame and the size of the complete pixels, determine the number of pixel blocks.
[0028] Optionally, the step of determining the compensation value of each pixel in the pixel block based on the brightness compensation value includes:
[0029] Perform interpolation operation on each pixel in the pixel block based on the brightness compensation value to obtain the compensation value of each pixel in the pixel block.
[0030] In addition, to achieve the above object, the present invention further provides a pixel compensation value acquisition device, including: a memory, a processor, and a pixel compensation value acquisition program stored on the memory and executable on the processor. When the pixel compensation value acquisition program is executed by the processor, the steps of the above pixel compensation value acquisition method are implemented.
[0031] In addition, to achieve the above object, the present invention further provides a display screen including the pixel compensation value acquisition device.
[0032] In addition, to achieve the above object, the present invention further provides a display control method applied to a display device. The method includes:
[0033] Obtain a pixel compensation value, where the pixel compensation value is obtained by using the pixel compensation value acquisition method as described above;
[0034] Control the display device to display an image frame according to the pixel compensation value.
[0035] In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which a pixel compensation value acquisition program is stored. When the pixel compensation value acquisition program is executed by a processor, the steps of the above pixel compensation value acquisition method are implemented or the steps of the above display control method are implemented.
[0036] In the technical solution of a compensation value acquisition and display control method, device, display screen, and storage medium provided in the embodiments of the present application, by dividing an image frame into pixel blocks, determining the compensation value of each pixel in the pixel block, and then determining a correction coefficient corresponding to the compensation value of each pixel in the pixel block according to the area of complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block, and further correcting the compensation value of the corresponding pixel based on the correction coefficient to obtain a corrected pixel compensation value. Through the above technical solution of the present application, after compensating each pixel, the pixel compensation value is further accurately corrected, and effective compensation can be achieved for both complete pixels and non-complete pixels, improving the display effect of the image frame. Description of the Drawings
[0037] Figure 1 Schematic flowchart of the first embodiment of the method for obtaining pixel compensation value of the present invention;
[0038] Figure 2 Schematic flowchart of the second embodiment of the method for obtaining pixel compensation value of the present invention;
[0039] Figure 3 Schematic flowchart of the third embodiment of the method for obtaining pixel compensation value of the present invention;
[0040] Figure 4 Schematic flowchart of the fourth embodiment of the method for obtaining pixel compensation value of the present invention;
[0041] Figure 5 Schematic structural diagram of the device for obtaining pixel compensation value related to the embodiment solution of the present invention;
[0042] Figure 6 Schematic layout diagram of rectangular pixels of the present invention;
[0043] Figure 7 Schematic specific layout diagram of rectangular pixel blocks of the present invention;
[0044] Figure 8 Schematic pattern diagram of a circular pixel block of the present invention;
[0045] Figure 9 Schematic pattern diagram of another rectangular pixel block of the present invention;
[0046] Figure 10 Schematic pattern diagram of another trapezoidal pixel block of the present invention.
[0047] The realization of the purpose of this application, functional features and advantages will be further described in combination with the embodiments with reference to the accompanying drawings. The above accompanying drawings are only diagrams of one embodiment, rather than all of the invention. Detailed implementation manners
[0048] In order to better understand the above technical solutions, the exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.
[0049] To solve the above problems, the present application proposes a new method for obtaining pixel compensation values, which includes: determining the compensation value of each pixel in each pixel block of the image screen; determining the correction coefficient corresponding to each compensation value according to the area of the complete pixels in the image screen, the number of pixels in the pixel block, and the area of the pixel block; and correcting each compensation value based on the correction coefficient. After compensating each pixel in the pixel area, the present application further corrects the pixel compensation value of each pixel more precisely to improve the display effect of the image screen.
[0050] Secondly, break through the shooting limit of the key camera unit of the existing demura device, so that it can handle micro displays with higher resolutions and smaller pixel sizes. Using a pixel block shape that matches the pixel arrangement can reduce the storage capacity of picture data. Finally, use a relatively regular pixel block shape to handle pixels of various shapes and various arrangements, and extract luminance data more quickly and accurately, which is beneficial to reducing the time required for demura.
[0051] In the first embodiment of the present application, the present application does not limit the type of display applicable to the method for obtaining pixel compensation values. For example, it can be applied to an OLED display, an AMOLED display, or an LCD to improve or eliminate the Mura phenomenon during image display. As Figure 1 shown, the method for obtaining pixel compensation values of the present application includes the following steps:
[0052] Step S110, determining the compensation value of each pixel in each pixel block of the image screen;
[0053] Optionally, the image screen displayed by the display panel is a video-encoded image, which can be referred to as a video-encoded image. In each image, several pixel blocks are arranged in sequence, and the video encoding algorithm encodes each pixel block one by one to organize a continuous video stream.
[0054] In this embodiment, the present application divides the image screen into multiple pixel blocks.
[0055] Optionally, all pixels in the pixel block are complete pixels, or only some pixels are complete pixels.
[0056] Optionally, the size, shape, and number of pixel blocks can be determined according to the actual situation. For example, they can be determined according to the resolution of the camera, the storage capacity, or the pixel size of the display panel. For details, see the second embodiment. There are multiple pixels in each pixel block. In this application, the pixels in each pixel block are compensated to improve the brightness and color uniformity of the image. In addition, using a pixel block shape that matches the pixel arrangement can reduce the storage capacity of picture data. Finally, using a relatively regular pixel block shape to deal with pixels of various shapes and various arrangements can extract brightness data more quickly and accurately, which is beneficial to reducing the time required for demura.
[0057] Optionally, the compensation values of each pixel block in the image can be determined first, and then the compensation value of each pixel in the corresponding pixel block can be determined according to the compensation value of the pixel block. Pixel compensation can be understood as making the actual display brightness equal to the target display brightness, or making the actual display chromaticity equal to the target display chromaticity. A camera, such as a CCD camera with high resolution and high precision, can be used to capture the image displayed on the display panel, and then the brightness values or chromaticity values of the image in different regions can be detected.
[0058] Among them, due to the limitation of the camera resolution, the captured image may have clear areas or blurred areas, that is, the display brightness or display chromaticity corresponding to each pixel block may be different.
[0059] Determining the compensation values of each pixel block in the image includes the following methods:
[0060] First, the above compensation value can be a brightness compensation value. Obtain the target display brightness of the image and the actual display brightness of the pixel block, and determine the brightness compensation value of the pixel block according to the difference between the target display brightness of the image and the actual display brightness of the pixel block.
[0061] Second, in some scenarios, algorithms such as the LBG algorithm and the convolutional neural network algorithm are used to calculate the brightness compensation values of each pixel block in the image frame. Taking the LBG algorithm as an example, for a single pixel block, the Mura data of s pixel blocks are selected as vectors; these s vectors are used to divide all the pixel blocks of the pixel block, that is, divided into s sets, so that the Mura data of the pixel blocks in each set are all at the minimum coordinate distance from the corresponding vector; from the centroid coordinates of these s sets, s new vectors are obtained; continue to perform set division and centroid coordinate calculation with the s new vectors until the s new vectors do not change much from the original vectors (that is, meet the convergence requirements), then the training of the codebook is completed. The s new vectors are used as the codebook, and the codebook is a pixel compensation table and written into the flash memory of the display. Each new vector in the codebook is used as the pixel compensation value of each pixel block. Among them, the Mura data refers to the difference between the actual display brightness parameter and the target display brightness in a certain area.
[0062] Third, the above compensation value can be a chromaticity compensation value. Obtain the target chromaticity of the image frame and the actual chromaticity of the pixel block, and determine the chromaticity compensation value of the pixel block according to the chromaticity difference between the target chromaticity of the image frame and the actual chromaticity of the pixel block. Subsequently, the correction coefficient corresponding to each compensation value can be determined according to the area of the complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block. Each compensation value is corrected based on the correction coefficient, and the image frame after pixel compensation is displayed.
[0063] Through the above method, this application determines the brightness compensation value or chromaticity compensation value corresponding to each pixel block, performs brightness compensation or chromaticity compensation on the image frame, and improves the brightness uniformity and color accuracy of the display screen.
[0064] Among them, determining the compensation value of each pixel in the corresponding pixel block according to the compensation value of the pixel block includes the following methods: taking the average value of the compensation value according to the number of pixels in the pixel block, so as to obtain the compensation value of each pixel in the pixel block. This method is applicable to pixel compensation for pixel blocks with regular shapes or pixel shapes with regular shapes, such as Figure 6 the square pixel block or the square pixel shape shown. Specifically, take the average value of the brightness compensation value or chromaticity compensation value according to the number of pixels in the pixel block, so as to obtain the brightness compensation value or chromaticity compensation value of each pixel in the pixel block. Determining the compensation value of each pixel in the corresponding pixel block according to the compensation value of the pixel block can also adopt other methods, specifically refer to the second embodiment.
[0065] Step S120, determine the correction coefficient corresponding to each of the compensation values according to the area of the complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block.
[0066] Optionally, the related technology is to compensate each complete pixel in a rectangular pixel block. When the shape of the rectangular pixel block changes, for example, for a circular pixel block, a trapezoidal pixel block or a rectangular pixel block, due to the characteristics of the shape, there may be incomplete pixels in the pixel block. If each pixel is compensated using the brightness mean, the pixel compensation accuracy is low, which will lead to poor display effects of the image. Therefore, after determining the compensation value corresponding to each pixel, the present application corrects the compensation value of the pixel in the pixel block according to the characteristics of the shape of each pixel block or the arrangement of the pixels, thereby improving the accuracy of the pixel compensation and improving the display effects of the image.
[0067] Optionally, a complete pixel refers to a complete pixel in an image. An image is composed of multiple pixels, and the shape of a pixel can be as follows: Figure 6 The rectangle shown can also be Figures 8 - 10 The hexagon shown in any of the figures may also be other shapes. The complete pixel is a complete rectangular pixel or a complete hexagonal pixel. For example, when the pixel shape is a rectangle, the area of the complete pixel may be length*width, that is, Figure 6 a*b shown in . When the pixel shape is a hexagon, the area of the complete pixel is the area of the hexagon.
[0068] Optionally, the number of pixels in the pixel block may be an integer or a non-integer.
[0069] When the pixel shape is rectangular, the number of pixels in the pixel block is an integer, such as Figure 6 The B01 area in the image is 2×2block, B02 is 2×3block, and B03 is 3×3block. When 2×2block is selected, the camera's storage capacity is 1 / 4 of that when a single pixel is extracted; 2×3block, the storage capacity is only 1 / 6 of that when a single pixel is extracted; 3×3block, the storage capacity is only 1 / 9 of that when a single pixel is extracted, reducing the storage capacity of the image data.
[0070] Take the 2×2 block as an example: Figure 7 The pixel brightness is extracted in the area size shown, and the pixels in the pixel block include 4 pixels: p11, p12, p21 and p22; Figure 7 As shown: the pixel size is a×b, the pixel spacings are c1 and c2 respectively, then the area of the pixel block is A×B, where 2a+c1≤A<2a+3c1, 2b+c2≤B<2b+3c2; the size of the pixel block tries to cover the edges of integer multiples of pixels.
[0071] When the pixel shape is hexagonal, the shape of the pixel block will be diverse, such as Figure 8 The circle shown, Figure 9The rectangle shown, and Figure 10 The trapezoid shown. The size of the pixel block is also determined according to the camera pixels and the pixel size of the product. It should be noted that the shape of the selected pixel block should preferably contain relatively complete pixels, or integer fractions such as 1 / 2, 1 / 3, etc. of some pixels within the pixel block. At this time, the number of pixels in the pixel block is a non-integer, such as 2.1, 2.2, etc. The integer part represents the number of complete pixels in the pixel block, and the decimal part represents the proportion of the area of the incomplete pixels in the entire area of the pixel block. In this case, the area of the pixel block can be the area of a circle, the area of a rectangle, or the area of a trapezoid.
[0072] Step S130, correct each of the compensation values based on the correction coefficient to obtain the corrected pixel compensation value.
[0073] Optionally, the correction coefficient corresponding to each pixel in the pixel block is the same. When the shape of the pixel block changes, or when the pixel shape changes, the correction coefficient corresponding to each pixel also changes correspondingly, enabling the correction of the compensation values for pixel blocks of different shapes or pixels of different shapes. After determining the correction coefficient, each compensation value is corrected using this correction coefficient, and then the image screen after pixel compensation is obtained. The image screen after pixel compensation is displayed on the display screen, and the brightness uniformity and color accuracy of the corrected display screen are significantly improved.
[0074] In this embodiment, according to the above technical solution, the compensation value of each pixel in each pixel block of the image screen is determined; according to the area of the complete pixels in the image screen, the number of pixels in the pixel block, and the area of the pixel block, the correction coefficient corresponding to each compensation value is determined; each compensation value is corrected based on the correction coefficient. Regardless of the shape of the pixel block, after compensating each pixel in this application, the pixel compensation value of each pixel is corrected more precisely, and the accuracy of pixel compensation is improved, and the display effect of the image screen is improved.
[0075] Further, referring to Figure 2 , based on the first embodiment, in the second embodiment of the present application, step S110 of the present application includes the following steps:
[0076] Step S111, divide the image screen into multiple pixel blocks.
[0077] The present application divides the image screen into multiple pixel blocks, and the size, shape, and number of the pixel blocks can be determined according to the actual situation.
[0078] Optionally, determine the shape, size, and number of pixel blocks; based on the shape, size, and number of pixel blocks, divide the image frame into pixel blocks.
[0079] Among them, the shape of the pixel block includes, but is not limited to, rectangle, circle, trapezoid, hexagon, or square, etc. The shape of the pixel block can be determined according to the shape and arrangement of the complete pixels in the image frame.
[0080] Among them, the size of the pixel block can be determined according to one of the storage capacity, shooting time, resolution of the image acquisition device, and size of the complete pixels in the image frame. Among them, the shooting time is subject to the requirements of factory production capacity. Assuming that the resolution of the product is getting higher and higher, such as 4K*4K, and the number of pixels reaches tens of millions, then if each pixel is photographed, the time will be very long. To shorten the time, the pixel block method can be used to determine the size of the pixel block.
[0081] Among them, the number of pixel blocks can be determined according to the size of the image frame, the size of the complete pixels, or the size of the pixel blocks. It can be understood that when the size of the image frame is larger, the corresponding number of pixel blocks is more, reducing the storage amount of image data. When the size of the pixel block is larger, the corresponding number of pixel blocks is less.
[0082] Step S112, determine the brightness compensation value of the pixel block according to the target display brightness of the image frame and the actual display brightness of the pixel block.
[0083] Optionally, as an implementation manner, the brightness compensation value of the pixel block can be determined according to the difference between the target display brightness of the image frame and the actual display brightness of the pixel block.
[0084] Step S113, determine the compensation value of each pixel in the pixel block based on the brightness compensation value.
[0085] Optionally, determining the compensation value of each pixel in the pixel block based on the brightness compensation value includes the following methods: taking the average value of the compensation value according to the number of pixels in the pixel block, so as to obtain the compensation value of each pixel in the pixel block. This method is applicable to pixel compensation with regular-shaped pixel blocks or regular-shaped pixel shapes, such as Figure 6 the square pixel block or square pixel shape shown. Specifically, take the average value of the brightness compensation value or chromaticity compensation value according to the number of pixels in the pixel block, so as to obtain the brightness compensation value or chromaticity compensation value of each pixel in the pixel block.
[0086] Optionally, determining the compensation value for each pixel in the pixel block based on the brightness compensation value includes: performing an interpolation operation on each pixel in the pixel block based on the brightness compensation value to obtain the compensation value for each pixel in the pixel block. Specifically, according to the brightness compensation value of the pixel block, the compensation value for each pixel in the pixel block is calculated using the bilinear interpolation method. The expression of the bilinear interpolation method is:
[0087]
[0088] where (x1, y1) and (x2, y2) represent the brightness values of any two pixels, x in represents the brightness compensation value, and y out represents the compensation value for each pixel in the pixel block.
[0089] In this embodiment, according to the above technical solution, since the image screen is divided into multiple pixel blocks, the brightness compensation value of the pixel block is determined according to the target display brightness of the image screen and the actual display brightness of the pixel block. Finally, based on the brightness compensation value, the compensation value for each pixel in the pixel block is determined, so as to realize the compensation for each pixel in the pixel block.
[0090] Further, referring to Figure 3 , based on the first embodiment and / or the second embodiment, in the third embodiment of the present application, step S120 of the present application includes the following steps:
[0091] Step S121, determining a first area according to the area of the complete pixel and the number of pixels in the pixel block.
[0092] Step S122, determining a correction coefficient corresponding to each compensation value according to the first area and the area of the pixel block.
[0093] Optionally, when the shapes of the complete pixels are different, the areas of the corresponding complete pixels are different, and the determined first areas are different. For example, the first area corresponding to a circular complete pixel is different from the first area corresponding to a trapezoidal complete pixel. Taking a rectangular complete pixel as an example. Referring to Figure 6 , the area of the rectangular complete pixel is a*b. Taking a 2×2 pixel block as an example, the number of pixels in the corresponding pixel block is 4. Referring to Figure 7 , the determined first area is (2a + c1)*(2b + c2). Where 2a + c1 ≤ A < 2a + 3c1, 2b + c2 ≤ B < 2b + 3c2. Optionally, when the shapes of the pixel blocks are different, the areas of the corresponding pixel blocks are different. Taking Figure 7 as an example, the determined area of the pixel block is A*B.
[0094] Optionally, determining a correction coefficient corresponding to each of the compensation values according to the first area and the area of the pixel block includes: determining a ratio between the first area and the area of the pixel block as the correction coefficient corresponding to the compensation value of each pixel in the pixel block.
[0095] Specifically, the correction coefficient is determined by the formula [(2a + c1)*(2b + c2)] / (A*B). The correction coefficient corresponding to each compensation value in the pixel block is the same.
[0096] In this embodiment, according to the above technical solution, regardless of the shape of the pixel block, after compensating each pixel, the pixel compensation value of each pixel is further accurately corrected, which not only realizes mura elimination, but also improves the accuracy of pixel compensation and the display effect of the image screen.
[0097] Further, referring to Figure 4 , based on any one of the first to third embodiments, in the fourth embodiment of the present application, before step S120 of the present application, the following steps are further included:
[0098] Step S210, identifying the number of complete pixels in the pixel block;
[0099] Optionally, the number of complete pixels in the pixel block can be identified by a deep neural network algorithm. The number of complete pixels in the pixel block can also be determined according to the area of the pixel block and the area of the complete pixels. Other methods can also be used to determine the number of complete pixels in the pixel block.
[0100] Step S220, determining the proportion of non-complete pixels in the pixel block according to the area of the complete pixels in the pixel block and the area of the pixel block;
[0101] For example, when the pixel shape is hexagonal, the shape of the pixel block at this time will be diverse, such as Figure 8 the circle shown, Figure 9 the rectangle shown, and Figure 10 the trapezoid shown. The size of the pixel block is also determined according to the camera pixels and the pixel size of the product. It should be particularly noted that the shape of the selected pixel block should preferably contain relatively complete pixels, or integer parts such as 1 / 2, 1 / 3, etc. of some pixels within the pixel block. At this time, the number of pixels in the pixel block is a non-integer, such as 2.1, 2.2, etc. The integer part represents the number of complete pixels in the pixel block, and the decimal part represents the proportion of the area of the non-complete pixels in the area of the entire pixel block. In this case, the area of the pixel block can be the area of the circle, the area of the rectangle, or the area of the trapezoid.
[0102] Since the sizes of the complete pixels and the pixel blocks are known, the areas of the complete pixels and the pixel blocks are known. Thus, the proportion of the area of the incomplete pixels in the area of the pixel block can be calculated, that is, the proportion of the incomplete pixels can be determined.
[0103] Step S230: Determine the number of pixels in the pixel block according to the number of complete pixels in the pixel block and the proportion of the incomplete pixels.
[0104] Optionally, after determining the proportion of the incomplete pixels, determine this proportion as the fractional part of the number of pixels in the pixel block. Determine the number of complete pixels in the pixel block as the integer part of the number of pixels in the pixel block. After determining the fractional part and the integer part of the number of pixels, add the corresponding fractional part and integer part of the number of pixels to obtain the number of pixels in the pixel block. For example, assume that the number of complete pixels in the pixel block is 2 and the proportion of the incomplete pixels is 0.2. Then, the determined number of pixels in the pixel block is 2.2.
[0105] According to the above technical solution, in this embodiment, by identifying the number of complete pixels in the pixel block; determining the proportion of the incomplete pixels in the pixel block according to the area of the complete pixels and the area of the pixel block in the pixel block; and determining the number of pixels in the pixel block according to the number of complete pixels in the pixel block and the proportion of the incomplete pixels. Thus, the number of pixels in the pixel block can be accurately calculated.
[0106] An embodiment of the method for obtaining the pixel compensation value is provided in an embodiment of the present invention. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
[0107] As Figure 5 shown, Figure 5The figure is a schematic structural diagram of the hardware operating environment of the pixel compensation value acquisition device according to the embodiment of the present invention. The pixel compensation value acquisition device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0108] Those skilled in the art can understand that Figure 5 the structure of the pixel compensation value acquisition device shown in
[0109] does not limit the pixel compensation value acquisition device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. Figure 5 As shown in
[0110] In Figure 5 the pixel compensation value acquisition device shown, the user interface 1003 is mainly used to connect to the terminal and perform data communication with the terminal; the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 may be used to call the pixel compensation value acquisition program stored in the memory 1005.
[0111] In this embodiment, the pixel compensation value acquisition device includes: a memory 1005, a processor 1001, and a pixel compensation value acquisition program stored on the memory and executable on the processor, where:
[0112] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are performed:
[0113] Determine the compensation value of each pixel in each pixel block of the image screen;
[0114] Determine a correction coefficient corresponding to each of the compensation values according to the area of the complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block;
[0115] Based on the correction coefficient, correct each of the compensation values to obtain a corrected pixel compensation value.
[0116] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are further performed:
[0117] Determine a first area according to the area of the complete pixels and the number of pixels in the pixel block;
[0118] Determine a correction coefficient corresponding to each of the compensation values according to the first area and the area of the pixel block.
[0119] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are further performed:
[0120] Determine the ratio between the first area and the area of the pixel block as the correction coefficient corresponding to the compensation value of each pixel in the pixel block.
[0121] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are further performed:
[0122] Identify the number of complete pixels in the pixel block;
[0123] Determine the proportion of non-complete pixels in the pixel block according to the area of the complete pixels and the area of the pixel block in the pixel block;
[0124] Determine the number of pixels in the pixel block according to the number of complete pixels and the proportion of non-complete pixels in the pixel block.
[0125] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are further performed:
[0126] Divide the image frame into multiple pixel blocks;
[0127] Determine the brightness compensation value of the pixel block according to the target display brightness of the image frame and the actual display brightness of the pixel block;
[0128] Based on the brightness compensation value, determine the compensation value of each pixel in the pixel block.
[0129] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are further performed:
[0130] Determine the shape, size, and number of pixel blocks;
[0131] Based on the shape, size, and number of the pixel blocks, divide the image frame into pixel blocks.
[0132] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are also performed:
[0133] Determine the shape of the pixel block according to the shape and arrangement of the complete pixels in the image frame;
[0134] And determine the size of the pixel block according to one of the storage capacity, shooting time, resolution of the image acquisition device, and size of the complete pixels in the image frame;
[0135] And determine the number of pixel blocks according to the size of the image frame and the size of the complete pixels.
[0136] When the processor 1001 calls the pixel compensation value acquisition program stored in the memory 1005, the following operations are also performed:
[0137] Perform interpolation operations on each pixel in the pixel block based on the brightness compensation value to obtain the compensation value of each pixel in the pixel block.
[0138] Based on the same inventive concept, an embodiment of the present application further provides a display screen, and the display screen includes a pixel compensation value acquisition device.
[0139] Based on the same inventive concept, an embodiment of the present application further provides a display control method, which is applied to a display device. The method includes obtaining a pixel compensation value, where the pixel compensation value is obtained by using the pixel compensation value acquisition method described in the present application; controlling the display device to display an image frame according to the pixel compensation value.
[0140] Since the display control method provided by the embodiment of the present application is the display control method adopted for implementing the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, those skilled in the art can understand the specific variations of the display control method, so it will not be elaborated here. Any display control method adopted by the method of the embodiment of the present application belongs to the scope protected by the present application.
[0141] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a pixel compensation value acquisition program. When the pixel compensation value acquisition program is executed by a processor, it implements each step of the pixel compensation value acquisition method described above and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0142] Since the computer-readable storage medium provided in the embodiments of the present application is the storage medium used to implement the methods in the embodiments of the present application, based on the methods introduced in the embodiments of the present application, those skilled in the art can understand the specific structure and variations of the storage medium, and thus will not be elaborated herein. Any storage medium used in the methods of the embodiments of the present application falls within the scope of protection of the present application.
[0143] It should be noted that in this article, the terms "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such a process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.
[0144] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0145] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, TV, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0146] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A method for obtaining pixel compensation values, characterized in that, The method includes: Determining the compensation value of each pixel in each pixel block of the image frame; Determining a correction coefficient corresponding to each compensation value according to the area of complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block; Correcting each compensation value based on the correction coefficient to obtain a corrected pixel compensation value.
2. The method for obtaining pixel compensation values according to claim 1, characterized in that, The step of determining a correction coefficient corresponding to each compensation value according to the area of complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block includes: Determining a first area according to the area of complete pixels and the number of pixels in the pixel block; Determining a correction coefficient corresponding to each compensation value according to the first area and the area of the pixel block.
3. The method for obtaining pixel compensation values according to claim 2, characterized in that, The step of determining a correction coefficient corresponding to each compensation value according to the first area and the area of the pixel block includes: Determining the ratio between the first area and the area of the pixel block as the correction coefficient corresponding to the compensation value of each pixel in the pixel block.
4. The method for obtaining pixel compensation values according to any one of claims 1-3, characterized in that, Before the step of determining a correction coefficient corresponding to each compensation value according to the area of complete pixels in the image frame, the number of pixels in the pixel block, and the area of the pixel block, it further includes: Identifying the number of complete pixels in the pixel block; Determining the proportion of non-complete pixels in the pixel block according to the area of complete pixels and the area of the pixel block in the pixel block; Determining the number of pixels in the pixel block according to the number of complete pixels and the proportion of non-complete pixels in the pixel block.
5. The method for obtaining pixel compensation values according to claim 1, characterized in that, The step of determining the compensation value of each pixel in each pixel block of the image frame includes: Dividing the image frame into multiple pixel blocks; Determining the brightness compensation value of the pixel block according to the target display brightness of the image frame and the actual display brightness of the pixel block; Determining the compensation value of each pixel in the pixel block based on the brightness compensation value.
6. The method for obtaining pixel compensation values according to claim 5, characterized in that, The step of dividing the image frame into multiple pixel blocks includes: Determining the shape, size, and number of pixel blocks; Dividing the image frame into pixel blocks based on the shape, size, and number of pixel blocks.
7. The method for obtaining pixel compensation values according to claim 6, characterized in that, The step of determining the shape, size, and number of pixel blocks includes: Determining the shape of the pixel block according to the shape and arrangement of complete pixels in the image frame; And determining the size of the pixel block according to one of the storage capacity, photographing time, resolution of the image acquisition device, and size of complete pixels in the image frame; And determining the number of pixel blocks according to the size of the image frame and the size of the complete pixels.
8. The method for obtaining pixel compensation values according to claim 5, characterized in that, The step of determining the compensation value of each pixel in the pixel block based on the brightness compensation value includes: Performing interpolation operation on each pixel in the pixel block based on the brightness compensation value to obtain the compensation value of each pixel in the pixel block.
9. A device for obtaining pixel compensation values, characterized in that, The pixel compensation value acquisition device includes: a memory, a processor, and a pixel compensation value acquisition program stored on the memory and running on the processor. When the pixel compensation value acquisition program is executed by the processor, it implements the steps of the pixel compensation value acquisition method according to any one of claims 1-8.
10. A display screen, characterized in that, The display screen includes the pixel compensation value acquisition device according to claim 9.
11. A display control method, applied to a display device, characterized in that, The method includes: acquiring a pixel compensation value, wherein the pixel compensation value is acquired by using the method according to any one of claims 1-8; controlling the display device to display an image screen according to the pixel compensation value.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the steps of the pixel compensation value acquisition method according to any one of claims 1-8 or implements the steps of the display control method according to claim 11.