Image display brightness compensation method and device and computer equipment
By obtaining the pixel brightness change cycle of the display and calculating the brightness compensation filter kernel according to the preset brightness mapping rules, the boundary pixel values are updated frame by frame, which solves the burn-in and visual defects of AMOLED displays and improves the display effect.
Patent Information
- Application Number
- CN202610121521.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-28
- Publication Date
- 2026-03-06
AI Technical Summary
When AMOLED displays show static images for extended periods, the blue subpixels age rapidly, leading to color shifts and burn-in. This is especially noticeable to the human eye on small screens, affecting the display quality.
By obtaining the pixel brightness change cycle of the display, the current display brightness and frame rate are determined. A brightness compensation filter kernel is calculated using a preset brightness mapping rule. The pixel values of boundary pixels are updated frame by frame to avoid boundary pixels being at a fixed brightness for a long time. The display brightness is adjusted by using a brightness compensation filter kernel.
It effectively prevents screen burn-in, improves visual defects, enhances display effects, and reduces the impact of pixel jitter on the human eye.
Smart Images

Figure CN121617355A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to an image display brightness compensation method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] AMOLED (Active Matrix Organic Light Emitting Diode) display technology has become the mainstream choice for smart devices due to its advantages such as high contrast, wide color gamut, and thinness and flexibility. However, its self-emissive nature also brings unique technical challenges. Specifically, in AMOLED subpixels, blue subpixels require higher current to drive due to their lower luminous efficiency, and their aging rate is significantly faster than that of red and green subpixels. Therefore, when displaying static images (such as navigation bars and status bars) for extended periods, blue subpixels will continuously work under high load. This difference in aging can cause color shift or image retention, i.e., screen burn-in, resulting in permanent image retention on the screen, such as a yellowing white background or residual displayed content, affecting the visual experience.
[0003] In existing technologies, to mitigate the risk of pixel aging and prevent screen burn-in caused by subpixels remaining in one state for an extended period, the following pixel displacement schemes can be adopted: 1. Panasonic TV anti-burn-in system, which moves the image on the screen by one pixel after a certain period of time; 2. Samsung pixel offset technology, which can move the image in both horizontal and vertical directions, moving 4 pixels every minute; 3. Alienware OLED image moves one pixel every 3 minutes.
[0004] Existing pixel shifting technologies, when applied to large screens (such as television displays), are less noticeable or only slightly perceptible due to the greater distance between the human eye and the screen, and because the human eye's attention is typically focused on a localized area. This results in minimal impact on display quality. However, when applied to small screens (such as computer or tablet displays), the closer proximity to the screen makes even slight pixel shifts easily detectable, affecting display quality and creating visual defects. Therefore, while existing pixel shifting technologies can prevent screen burn-in, they introduce visual defects that negatively impact display performance. Summary of the Invention
[0005] Therefore, it is necessary to provide an image display brightness compensation method, device, computer equipment, computer-readable storage medium, and computer program product that can prevent screen burn-in, improve visual defects, and effectively enhance the display effect of the monitor, in order to address the above-mentioned technical problems.
[0006] In a first aspect, this application provides an image display brightness compensation method, including:
[0007] Obtain the pixel brightness change period of the display, and determine the current display brightness and the current frame number of the image frame when the display is displaying an image frame;
[0008] Based on preset brightness mapping rules, determine the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness;
[0009] Based on the position of the current frame number within the pixel brightness change cycle, the filter kernel calculation coefficients are determined from the maximum display brightness, the reference display brightness, and the minimum display brightness.
[0010] The brightness compensation filter kernel is calculated based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period.
[0011] The pixel values of the boundary pixels in the image frame are updated using a brightness compensation filter kernel to obtain an image frame with complete display brightness compensation.
[0012] In one embodiment, determining the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule includes:
[0013] Based on preset brightness mapping rules, determine the current display brightness mode to which the current display brightness belongs, and the current display brightness range in which the current display brightness is located;
[0014] The working display brightness under the current display brightness mode is used as the reference display brightness, the maximum value within the current display brightness range is used as the maximum display brightness, and the minimum value within the current display brightness range is used as the minimum display brightness.
[0015] In one embodiment, the pixel brightness variation period includes two sub-periods, which are determined based on the midpoint frame number characterized by half the pixel brightness variation period. The two sub-periods include a brightness enhancement period and a brightness decay period. Based on this, according to the position of the current frame number within the pixel brightness variation period, the filter kernel calculation coefficients are determined from the maximum display brightness, the reference display brightness, and the minimum display brightness, including:
[0016] By comparing the current frame number with the midpoint frame number, the sub-cycle in which the current frame number is located within the pixel brightness change cycle is determined;
[0017] When the current frame rate is in a brightness enhancement cycle, the maximum display brightness and the reference display brightness are used as the coefficients for the filter kernel calculation.
[0018] When the current frame rate is in a brightness decay cycle, the maximum and minimum display brightness are used as the coefficients for the filter kernel calculation.
[0019] In one embodiment, a brightness compensation filter kernel is calculated based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, including:
[0020] The interpolation parameters are calculated based on the current frame number and the pixel brightness change period;
[0021] A brightness compensation filter kernel is obtained by using linear interpolation to calculate the coefficients and interpolation parameters based on the filter kernel.
[0022] In one embodiment, the pixel values of boundary pixels in the image frame are updated using a brightness compensation filter kernel to obtain an image frame with completed display brightness compensation, including:
[0023] Identify the boundary pixels in the image frame, and determine the multiple pixel values covered by the pixel block centered on the boundary pixels;
[0024] Using a brightness compensation filter kernel, multiple pixel values are weighted and processed to obtain a weighted sum of pixel values;
[0025] The pixel values are weighted and then shifted to obtain the compensated pixel values.
[0026] The compensated pixel values are updated to the pixel values of the boundary pixels to obtain the image frame with completed display brightness compensation.
[0027] In one embodiment, after obtaining the image frame with completed display brightness compensation, the image display brightness compensation method further includes:
[0028] When the display shows a new image frame, the pixel brightness change period and the current display brightness are reacquired, and the current frame number is updated.
[0029] Return to the steps of querying the preset brightness mapping rules using the current display brightness to determine the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness, until no new image frames exist.
[0030] Secondly, this application also provides an image display brightness compensation device, comprising:
[0031] The current data acquisition module is used to acquire the pixel brightness change cycle of the display, and determine the current display brightness and the current frame number of the image frame when the display is displaying an image frame;
[0032] The display brightness determination module is used to determine the maximum display brightness, the reference display brightness, and the minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule.
[0033] The coefficient calculation module is used to determine the filter kernel calculation coefficients based on the position of the current frame number in the pixel brightness change cycle, from the maximum display brightness, the reference display brightness, and the minimum display brightness.
[0034] The filter kernel calculation module is used to calculate the brightness compensation filter kernel based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period.
[0035] The pixel value update module is used to update the pixel values of boundary pixels in the image frame using the brightness compensation filter kernel, so as to obtain the image frame with complete display brightness compensation.
[0036] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the various embodiments of the above-described image display brightness compensation method.
[0037] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the various embodiments of the above-described image display brightness compensation method.
[0038] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the various embodiments of the above-described image display brightness compensation method.
[0039] The aforementioned image display brightness compensation method, apparatus, computer equipment, computer-readable storage medium, and computer program product first acquire the pixel brightness change period of the display, and determine the current display brightness and the current frame number of the image frame when the display displays an image frame. Further, based on a preset brightness mapping rule, the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness are determined. Then, based on the position of the current frame number within the pixel brightness change period, filter kernel calculation coefficients are determined from the maximum display brightness, reference display brightness, and minimum display brightness. Next, based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, a brightness compensation filter kernel is calculated, and the pixel values of boundary pixels in the image frame are updated using the brightness compensation filter kernel to obtain an image frame with completed display brightness compensation. Using this process, the pixel values of boundary pixels in the display can be updated frame by frame, avoiding aging differences in boundary pixels due to long-term fixed pixel values, thereby preventing screen burn-in. Furthermore, since display brightness compensation is based on the pixel brightness change period and the brightness compensation filter kernel, rather than simple pixel displacement, it can weaken pixel jitter observed by the human eye and improve visual defects. Therefore, by adopting the above process, screen burn-in can be prevented, visual defects can be improved, and the display effect of the monitor can be effectively enhanced. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is an application environment diagram of the image display brightness compensation method in one embodiment;
[0042] Figure 2 This is a flowchart illustrating an image display brightness compensation method in one embodiment;
[0043] Figure 3 This is a schematic diagram illustrating the brightness display effect controlled by a brightness compensation filter kernel in one embodiment;
[0044] Figure 4 This is a schematic diagram illustrating the periodic display brightness compensation in one embodiment;
[0045] Figure 5 This is a flowchart illustrating an AMOLED display image brightness compensation method in one embodiment;
[0046] Figure 6 This is a structural block diagram of an image display brightness compensation device in one embodiment;
[0047] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0049] The image display brightness compensation method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, specifically, server 102 can first obtain the pixel brightness change period of display 104, and when display 104 displays an image frame, determine the current display brightness of display 104 and the current frame number of the image frame. Further, server 102 can determine the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule, and then determine the filter kernel calculation coefficients from the maximum display brightness, reference display brightness, and minimum display brightness according to the position of the current frame number in the pixel brightness change period. Even further, server 102 can calculate a brightness compensation filter kernel based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, use the brightness compensation filter kernel to update the pixel values of boundary pixels in the image frame, and send the updated pixel values to display 104, causing display 104 to refresh and display the image frame with completed brightness compensation. Server 102 can be connected to display 104 via a network or line. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The display 104 can be, but is not limited to, a display device on various terminal devices such as personal computers, laptops, smartphones, tablets, and IoT devices.
[0050] In one exemplary embodiment, such as Figure 2 As shown, an image display brightness compensation method is provided, which is applied to... Figure 1 Taking server 102 as an example, the explanation includes the following steps 202 to 210. Wherein:
[0051] Step 202: Obtain the pixel brightness change period of the display, and when the display is displaying an image frame, determine the current display brightness of the display and the current frame number of the image frame.
[0052] When a monitor displays image frames, it must refresh the image frames according to the pixel refresh rate set in the monitor's operating system or controller. The pixel refresh rate refers to the number of times the monitor refreshes pixels per second. The pixel brightness change cycle is set as an integer multiple of the pixel refresh rate, such as 1x, 2x, 3x, etc., and the specific multiple can be flexibly configured according to the needs of the actual application scenario. The current frame number of an image frame refers to the display order of the currently displayed image frame within its own pixel brightness change cycle, indicating which frame it is within that cycle. The current frame number can be counted using a counter; for a single pixel brightness change cycle, the counter increments by 1 for each image frame displayed. The current display brightness can specifically be the currently displayed DBV (Display Brightness Value), a numerical value used to control the monitor's display brightness; generally, the higher the DBV value, the higher the screen brightness.
[0053] Optionally, the server can obtain the set pixel refresh rate and pixel brightness change period from the monitor's operating system or controller. Simultaneously, when the monitor displays image frames, the server can obtain the current display brightness (DBV value) and the current frame number of the currently displayed image frame by reading the monitor's operating system's brightness settings or from the display driver.
[0054] For example, taking an AMOLED display as an example, the pixel refresh rate of the display is generally set to 60Hz, but it can also be higher refresh rates such as 90Hz, 120Hz, and 144Hz. Taking a pixel refresh rate of 60Hz as an example, it means that the display refreshes its pixels 60 times per second (60 frames). In this case, the pixel brightness change period of the display can be twice the pixel refresh rate, that is, 120 frames, corresponding to a period of 2 seconds.
[0055] Step 204: Based on the preset brightness mapping rules, determine the maximum display brightness, the reference display brightness, and the minimum display brightness corresponding to the current display brightness.
[0056] Optionally, the server can determine the current display brightness mode and the current display brightness range to which the current display brightness belongs based on preset brightness mapping rules. Specifically, each display brightness mode has a corresponding working display brightness. The server can match the current display brightness with the working display brightness corresponding to each display brightness mode to determine the current display brightness mode to which the current display brightness belongs. Each display brightness range represents a range of display brightness values. The server can determine the current display brightness range to which the current display brightness belongs based on the range of values to which the current display brightness belongs. Multiple display brightness modes and multiple display brightness ranges can be flexibly configured according to the needs of actual application scenarios.
[0057] Furthermore, the server can use the working display brightness under the current display brightness mode as the baseline display brightness, the maximum value of the current display brightness range as the maximum display brightness, and the minimum value of the current display brightness range as the minimum display brightness.
[0058] For example, taking an AMOLED display device as an example, the configured display brightness modes can be divided into: low light mode, normal mode, and high bright mode. Low light mode is suitable for low light intensity and dark scenes; normal mode is suitable for normal light intensity and indoor scenes during the day; high bright mode is suitable for strong light scenes.
[0059] Step 206: Based on the position of the current frame number in the pixel brightness change cycle, determine the filter kernel calculation coefficients from the maximum display brightness, the reference display brightness, and the minimum display brightness.
[0060] Optionally, the server can divide the pixel brightness change cycle into a brightness enhancement cycle and a brightness decay cycle, and then determine whether the current frame is in a brightness enhancement cycle or a brightness decay cycle based on its position within the pixel brightness change cycle. Further, if it is in a brightness enhancement cycle, it can be determined that it is in the brightness enhancement phase, and the maximum display brightness and the reference display brightness are used as the calculation coefficients for the filter kernel; if it is in a brightness decay cycle, it can be determined that it is in the brightness decay phase, and the maximum display brightness and the minimum display brightness are used as the calculation coefficients for the filter kernel.
[0061] Step 208: Calculate the brightness compensation filter kernel based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period.
[0062] Among them, the brightness compensation filter core can be used to periodically modulate the display brightness of boundary pixels to prevent screen burn-in.
[0063] Optionally, the server can calculate the interpolation parameters based on the current frame rate and the pixel brightness change period. Further, linear interpolation can be used to interpolate between the calculated coefficients of the filter kernel using the interpolation parameters. For example, interpolation can be performed between the maximum display brightness and the reference display brightness to obtain a brightness compensation filter kernel under the brightness enhancement period, or interpolation can be performed between the maximum display brightness and the minimum display brightness to obtain a brightness compensation filter kernel under the brightness decay period. Linear interpolation is a mathematical method that calculates an intermediate value between two known numerical points using a linear proportional relationship. In step 208, linear interpolation can be used to generate a smoothly transitioning brightness compensation filter kernel to achieve periodic modulation of the display brightness of boundary pixels and prevent screen burn-in.
[0064] Step 210: Update the pixel values of the boundary pixels in the image frame using the brightness compensation filter kernel to obtain the image frame with completed display brightness compensation.
[0065] Among them, boundary pixels can refer to pixels whose brightness or color difference with adjacent pixels exceeds a certain threshold.
[0066] Optionally, the server can use a brightness compensation filter kernel to weight the pixel values of boundary pixels in the image frame, then perform pixel value shifting on the weighted sum of the calculated pixel values to obtain the compensated pixel values. Further, the server can update the compensated pixel values with the pixel values of the boundary pixels to obtain an image frame with completed display brightness compensation, and then continue to perform image display brightness compensation processing on the next image frame.
[0067] It should be noted that for non-boundary pixels in each image frame, the original pixel values can be kept unchanged, and there is no need to perform image display brightness compensation processing.
[0068] The aforementioned image display brightness compensation method first obtains the pixel brightness change period of the display, and then determines the current display brightness and the current frame number of the image frame when the display is showing an image frame. Further, based on a preset brightness mapping rule, it determines the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness. Then, based on the position of the current frame number within the pixel brightness change period, it determines the filter kernel calculation coefficients from the maximum display brightness, reference display brightness, and minimum display brightness. Next, based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, it calculates a brightness compensation filter kernel, and uses this kernel to update the pixel values of boundary pixels in the image frame, resulting in an image frame with completed display brightness compensation. This process updates the pixel values of boundary pixels in the display frame by frame, preventing aging differences in boundary pixels due to prolonged exposure to fixed pixel values, thus avoiding screen burn-in. Furthermore, since display brightness compensation is based on the pixel brightness change period and the brightness compensation filter kernel, rather than simple pixel displacement, it weakens pixel jitter observed by the human eye and improves visual defects. Therefore, this process can prevent screen burn-in, improve visual defects, and effectively enhance the display effect.
[0069] In some embodiments, determining the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule includes:
[0070] Based on preset brightness mapping rules, determine the current display brightness mode to which the current display brightness belongs, and the current display brightness range in which the current display brightness is located;
[0071] The working display brightness under the current display brightness mode is used as the reference display brightness, the maximum value within the current display brightness range is used as the maximum display brightness, and the minimum value within the current display brightness range is used as the minimum display brightness.
[0072] Optionally, the server can compare the current display brightness with the working display brightness of multiple current display brightness modes based on the mapping relationship in the preset brightness mapping rules to determine the current display brightness mode to which the current display brightness belongs. The server can also compare the current display brightness with the value range of multiple display brightness intervals based on the mapping relationship in the preset brightness mapping rules, and determine the current display brightness interval based on the value range in which the current display brightness is located. Furthermore, the server can use the working display brightness of the current display brightness mode as the baseline display brightness, the maximum value within the current display brightness interval as the maximum display brightness, and the minimum value within the current display brightness interval as the minimum display brightness.
[0073] For example, taking an AMOLED display device as an example, its display brightness mode can be divided into low light mode, normal mode, and high bright mode. The preset brightness mapping rules can be stored in the form of a mapping table. The specific preset brightness mapping rules are shown in Table 1.
[0074] Table 1 Preset brightness mapping rules
[0075]
[0076] In Table 1, DBV is a digital control value with no physical unit; it is a numerical code. Grayscale brightness can refer to the actual physical brightness, such as the brightness at a certain grayscale level, measured in nits (nits), which can represent the brightness perceived by the human eye. A DBV value range represents a display brightness range. For a given DBV value, if it belongs to a certain display brightness range, then its actual displayed brightness at a certain grayscale level will also be between the minimum and maximum grayscale brightness corresponding to that range. Furthermore, when the DBV value changes within that range, the grayscale brightness will also change between the corresponding minimum and maximum grayscale brightness.
[0077] Therefore, in Table 1: Normal 1 is a normal mode with a DVB value corresponding to a display brightness range of 50~378 and a grayscale brightness range of 145nit~150nit; Normal 2 is also a normal mode with a DVB value corresponding to a display brightness range of 379~798 and a grayscale brightness range of 300nit~310nit; Normal 3 is also a normal mode with a DVB value corresponding to a display brightness range of 799~1468 and a grayscale brightness range of 550nit~570nit; HBM1 is a high-brightness mode with a DVB value corresponding to a display brightness range of 1469~1898 and a grayscale brightness range of 705nit~730nit; HBM2 is also a high-brightness mode with a DVB value corresponding to a display brightness range of 1899~2048 and a grayscale brightness range of 770nit~800nit.
[0078] For example, taking an AMOLED display as an example, its brightness control can adopt a two-layer architecture. For instance, first, gamma binding point mapping is used for non-linear correction, and then the DVB value is used to adjust the brightness to output the final display brightness. Here, the gamma binding point is a predefined brightness control point that can be used to control the brightness output corresponding to different grayscale levels. Based on this, the final display brightness of the display can be adjusted by dynamically adjusting the DVB value within different display brightness ranges.
[0079] In this embodiment, the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness can be accurately determined based on the preset brightness mapping rules, so as to accurately select the filter kernel to calculate the coefficients in the future.
[0080] In one embodiment, the pixel brightness variation period includes two sub-periods, which are determined based on the midpoint frame number characterized by half the pixel brightness variation period. The two sub-periods include a brightness enhancement period and a brightness decay period. Based on this, according to the position of the current frame number within the pixel brightness variation period, the filter kernel calculation coefficients are determined from the maximum display brightness, the reference display brightness, and the minimum display brightness, including:
[0081] By comparing the current frame number with the midpoint frame number, the sub-cycle in which the current frame number is located within the pixel brightness change cycle is determined;
[0082] When the current frame rate is in a brightness enhancement cycle, the maximum display brightness and the reference display brightness are used as the coefficients for the filter kernel calculation.
[0083] When the current frame rate is in a brightness decay cycle, the maximum and minimum display brightness are used as the coefficients for the filter kernel calculation.
[0084] Optionally, the server can determine the sub-cycle within the pixel brightness change cycle by comparing the current frame number with the midpoint frame number. For example, if the current frame number is greater than or equal to the midpoint frame number, the server determines that the current frame number is in a brightness enhancement cycle within the pixel brightness change cycle; if the current frame number is less than the midpoint frame number, the server determines that the current frame number is in a brightness decay cycle within the pixel brightness change cycle. Furthermore, when the current frame number is in a brightness enhancement cycle, the server can use the maximum display brightness and the reference display brightness as the filter kernel calculation coefficients; when the current frame number is in a brightness decay cycle, the server can use the maximum display brightness and the minimum display brightness as the filter kernel calculation coefficients.
[0085] For example, if the pixel brightness variation period of an AMOLED display device is 120 frames per second, and the midpoint frame rate is 60 frames per second, the maximum display brightness corresponding to the current display brightness is Kernel_A, the reference display brightness is Kernel_B1, and the minimum display brightness is Kernel_B2. In this case, if the current frame rate (100 frames) is greater than the midpoint frame rate (60 frames), then it is in a brightness enhancement period, and the filter kernel calculation coefficients are Kernel_A and Kernel_B1; if the current frame rate (40 frames) is less than the midpoint frame rate (60 frames), then it is in a brightness decay period, and the filter kernel calculation coefficients are Kernel_A and Kernel_B2.
[0086] In this embodiment, the required filter kernel calculation coefficients can be accurately selected based on the position of the current frame number within the pixel brightness change cycle.
[0087] In one possible implementation, the brightness compensation filter kernel is calculated based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, including:
[0088] The interpolation parameters are calculated based on the current frame number and the pixel brightness change period;
[0089] A brightness compensation filter kernel is obtained by using linear interpolation to calculate the coefficients and interpolation parameters based on the filter kernel.
[0090] Optionally, as shown in formula (1), the server can calculate the interpolation parameters based on the current frame number count and the midpoint frame number num of the pixel brightness change period:
[0091] (1)
[0092] In formula (1), Used to determine the specific position of the current frame number count relative to the midpoint frame number num. This is used to achieve a smooth transition through normalization. Periodic processing can be achieved by using the operation shown in formula (1).
[0093] Furthermore, when the current frame is in a brightness enhancement cycle, the coefficients (Kernel_A and Kernel_B1) and interpolation parameters are calculated based on the filter kernel. Calculate the brightness compensation filter kernel Specifically, it can be shown in formula (2):
[0094] (2)
[0095] When the current frame is in a brightness decay cycle, the coefficients (Kernel_A and Kernel_B2) and interpolation parameters are calculated based on the filter kernel. Calculate the brightness compensation filter kernel Specifically, it can be shown in formula (3):
[0096] (3)
[0097] In this embodiment, the mixing ratio of the filter kernel calculation coefficients (Kernel_A and Kernel_B1, or Kernel_A and Kernel_B2) can be precisely controlled based on the interpolation parameters to obtain the brightness compensation filter kernel. or This allows for the periodic attenuation of brightness at boundary pixels and their subsequent enhancement after reaching the maximum attenuation limit during the subsequent adjustment of display effects based on the brightness compensation filter kernel, until the original display effect is restored. Based on this, dynamic adjustment of pixel values can be achieved, preventing screen burn-in.
[0098] In one embodiment, the pixel values of boundary pixels in the image frame are updated using a brightness compensation filter kernel to obtain an image frame with completed display brightness compensation, including:
[0099] Identify the boundary pixels in the image frame, and determine the multiple pixel values covered by the pixel block centered on the boundary pixels;
[0100] Using a brightness compensation filter kernel, multiple pixel values are weighted and processed to obtain a weighted sum of pixel values;
[0101] The pixel values are weighted and then shifted to obtain the compensated pixel values.
[0102] The compensated pixel values are updated to the pixel values of the boundary pixels to obtain the image frame with completed display brightness compensation.
[0103] Optionally, the server can detect and identify boundary regions in an image frame where there are significant changes in brightness or color through brightness gradient detection, and designate pixels in these boundary regions as boundary pixels. Since boundary regions are located at the intersection of different color or brightness regions, and there is a significant gradient change between boundary pixels and adjacent pixels, these boundary regions are high-risk areas for uneven aging and screen burn-in.
[0104] Furthermore, the server can select a pixel block (3×3 in size) centered on the boundary pixel, determine the multiple pixel values covered by this pixel block, and then use a brightness compensation filter kernel (specifically a 3×3 weight matrix) to weight the multiple pixel values covered by the pixel block. Each pixel value in the 3×3 pixel block is multiplied by the weight at the corresponding position in the brightness compensation filter kernel, and then summed to obtain a weighted sum of pixel values. Even further, the server can perform pixel value shifting on the weighted sum of pixel values, shifting the weighted sum 8 bits to the right (i.e., dividing by 256) to obtain the compensated pixel value. This compensated pixel value is then updated to the pixel value of the boundary pixel, resulting in an image frame with completed brightness compensation.
[0105] For example, taking a pixel brightness variation period of 480 frames as an example, and with a pixel block size of 3×3 centered on the boundary pixel, such as Figure 3 As shown, a schematic diagram is provided for adjusting the brightness display effect through a brightness compensation filter core. During the brightness enhancement cycle, the brightness compensation filter core is... During the brightness decay period, the brightness compensation filter kernel is... Based on this, by adjusting the brightness decay period and brightness enhancement period, pixel jitter can be made imperceptible to the human eye, improving visual defects and enhancing display effects on both large and small screens. Generally, the higher the frame rate setting, the less visually noticeable the significant differences in pixel brightness changes become to the human eye.
[0106] For example, if the pixel refresh rate is 60Hz, the pixel brightness change period is 120 frames, the pixel value of the boundary pixel is 200, the multiple pixel values of the 3×3 pixel block centered on the boundary pixel are [0,199,197,0,200,201,0,200,200], the maximum display brightness Kernel_A=[0,0,0,0,256,0,0,0,0], the reference display brightness Kernel_B1=[15,13,15,55,60,55,15,13,15], and the minimum display brightness Kernel_B2=[8,8,8,8,200,8,8,8,8]. Figure 4As shown, a schematic diagram of periodic display brightness compensation is provided. Within the pixel brightness variation cycle such as 0~120 frames, 120 frames~240 frames, etc., the display effect can be adjusted based on Kernel_A and Kernel_B1, or Kernel_A and Kernel_B2.
[0107] With the current frame rate at 100 frames per second, during the brightness enhancement cycle, based on the above formula (2):
[0108] Formula (2)
[0109] The luminance compensation filter kernel was calculated. A brightness compensation filter kernel can be used. The pixel values in the 3×3 pixel block are weighted and then the resulting pixel values are weighted and then shifted (shifted 8 bits to the right, i.e., divided by 256) to obtain the compensation pixel value = (4×199+5×197+191×200+18×201+200×4+200×5)>>8=177, thus updating the pixel value of the boundary pixel from 200 to 177.
[0110] With the current frame rate at 40 frames per second, during the brightness decay period, based on the above formula (3):
[0111] Formula (3)
[0112] The luminance compensation filter kernel was calculated. A brightness compensation filter kernel can be used. The pixel values in the 3×3 pixel block are weighted and then the resulting pixel values are weighted and then shifted (shifted 8 bits to the right, i.e., divided by 256) to obtain the compensation pixel value = (8×199+10×197+125×200+37×201+200×8+200×10)>>8=155, thus updating the pixel value of the boundary pixel from 200 to 155.
[0113] In this embodiment, two brightness compensation filter kernels can be used ( or The system updates the pixel values of the boundary pixels frame by frame, allowing the display brightness of the boundary pixels to decrease periodically and increase after reaching the maximum decrease limit, until the original display effect is restored. This prevents the boundary pixels from being in the same state for a long time, balances the pixel usage frequency of each area, disperses the risk of pixel aging, avoids screen burn-in, and solves the problems of display aging and image retention.
[0114] In one exemplary embodiment, after obtaining the image frame for which display brightness compensation has been completed, the image display brightness compensation method further includes:
[0115] When the display shows a new image frame, the pixel brightness change period and the current display brightness are reacquired, and the current frame number is updated.
[0116] Return to the steps of querying the preset brightness mapping rules using the current display brightness to determine the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness, until no new image frames exist.
[0117] Optionally, when the display shows a new image frame, the server can re-acquire the pixel brightness change period and current display brightness when the new image frame is displayed, increment the current frame count by 1 to obtain the updated current frame count, and then return to the step of querying the preset brightness mapping rule using the current display brightness to determine the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness. This is used to calculate the corresponding brightness compensation filter kernel for the new image frame, and the pixel values of the boundary pixels in the image frame are updated using the brightness compensation filter kernel. Based on this, the above steps are repeated until no new image frames exist.
[0118] In this embodiment, the brightness compensation filter kernel can be calculated frame by frame, and the brightness compensation filter kernel can be used to perform image display brightness compensation processing frame by frame to avoid boundary pixels being in the same state for a long time, thereby avoiding screen burn-in.
[0119] Based on the above embodiments, such as Figure 5 As shown, an AMOLED display image brightness compensation method is provided, which mainly includes the following steps:
[0120] Step 502: Obtain the pixel brightness change period of the display, and when the display is displaying an image frame, determine the current display brightness of the display and the current frame number of the image frame;
[0121] Step 504: Based on the preset brightness mapping rules, determine the current display brightness mode to which the current display brightness belongs and the current display brightness range in which the current display brightness is located;
[0122] Step 506: Take the working display brightness in the current display brightness mode as the reference display brightness, take the maximum value in the current display brightness range as the maximum display brightness, and take the minimum value in the current display brightness range as the minimum display brightness.
[0123] If the current frame is in a brightness enhancement cycle, execute step 508, and use the maximum display brightness and the reference display brightness as the coefficients for the filter kernel calculation;
[0124] If the current frame number is in a brightness decay cycle, execute step 510 to use the maximum display brightness and minimum display brightness as the coefficients for the filter kernel calculation.
[0125] After executing step 508 or 510, execute step 512 to calculate the interpolation parameters based on the current frame number and the pixel brightness change period.
[0126] Step 514: Using linear interpolation, the coefficients and interpolation parameters are calculated based on the filter kernel to obtain the brightness compensation filter kernel;
[0127] Step 516: Determine the boundary pixels in the image frame, and determine the multiple pixel values covered by the pixel block centered on the boundary pixels;
[0128] Step 518: Use a brightness compensation filter kernel to weight multiple pixel values and obtain a weighted sum of pixel values;
[0129] Step 520: Perform pixel value shifting processing on the weighted sum of pixel values to obtain compensated pixel values, and update the compensated pixel values to the pixel values of the boundary pixels;
[0130] If a new image frame is displayed on the monitor, return to step 502 until no new image frame is displayed, then proceed to step 522 to end the image display brightness compensation process.
[0131] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0132] Based on the same inventive concept, this application also provides an image display brightness compensation device for implementing the image display brightness compensation method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more image display brightness compensation device embodiments provided below can be found in the limitations of the image display brightness compensation method described above, and will not be repeated here.
[0133] In one exemplary embodiment, such as Figure 6As shown, an image display brightness compensation device is provided, including: a current data acquisition module 602, a display brightness determination module 604, a calculation coefficient determination module 606, a filter kernel calculation module 608, and a pixel value update module 610, wherein:
[0134] The current data acquisition module is used to acquire the pixel brightness change cycle of the display, and determine the current display brightness and the current frame number of the image frame when the display is displaying an image frame;
[0135] The display brightness determination module is used to determine the maximum display brightness, the reference display brightness, and the minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule.
[0136] The coefficient calculation module is used to determine the filter kernel calculation coefficients based on the position of the current frame number in the pixel brightness change cycle, from the maximum display brightness, the reference display brightness, and the minimum display brightness.
[0137] The filter kernel calculation module is used to calculate the brightness compensation filter kernel based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period.
[0138] The pixel value update module is used to update the pixel values of boundary pixels in the image frame using the brightness compensation filter kernel, so as to obtain the image frame with complete display brightness compensation.
[0139] The aforementioned image display brightness compensation device first acquires the pixel brightness change period of the display, and determines the current display brightness and the current frame number of the image frame when the display is displaying an image frame. Further, based on a preset brightness mapping rule, it determines the maximum display brightness, reference display brightness, and minimum display brightness corresponding to the current display brightness. Then, based on the position of the current frame number within the pixel brightness change period, it determines the filter kernel calculation coefficients from the maximum display brightness, reference display brightness, and minimum display brightness. Next, based on the filter kernel calculation coefficients, the current frame number, and the pixel brightness change period, it calculates a brightness compensation filter kernel and uses it to update the pixel values of boundary pixels in the image frame, resulting in an image frame with completed display brightness compensation. This process updates the pixel values of boundary pixels in the display frame by frame, preventing aging differences in boundary pixels due to prolonged exposure to fixed pixel values, thus avoiding screen burn-in. Furthermore, since display brightness compensation is based on the pixel brightness change period and the brightness compensation filter kernel, rather than simple pixel displacement, it weakens pixel jitter observed by the human eye and improves visual defects. Therefore, this process can prevent screen burn-in, improve visual defects, and effectively enhance the display effect.
[0140] In one embodiment, the display brightness determination module includes:
[0141] The mapping rule query unit is used to determine the current display brightness mode to which the current display brightness belongs and the current display brightness range in which the current display brightness is located, based on the preset brightness mapping rules.
[0142] The display brightness determination unit is used to take the working display brightness in the current display brightness mode as the reference display brightness, take the maximum value in the current display brightness range as the maximum display brightness, and take the minimum value in the current display brightness range as the minimum display brightness.
[0143] In one embodiment, the pixel brightness change period includes two sub-periods, which are determined based on the midpoint frame number characterized by half the pixel brightness change period. The two sub-periods include a brightness enhancement period and a brightness decay period. Based on this, the coefficient determination module includes:
[0144] The relative position determination unit is used to determine the sub-cycle in the pixel brightness change cycle of the current frame number by comparing the current frame number with the midpoint frame number.
[0145] The enhancement cycle coefficient determination unit is used to calculate the maximum display brightness and the reference display brightness as the coefficients of the filter kernel when the current frame number is in the brightness enhancement cycle.
[0146] The attenuation cycle coefficient determination unit is used to calculate the maximum and minimum display brightness as the coefficients of the filter kernel when the current frame number is in the brightness attenuation cycle.
[0147] In one embodiment, the filter kernel calculation module includes:
[0148] The interpolation parameter calculation unit is used to calculate the interpolation parameters based on the current frame number and the pixel brightness change period.
[0149] The linear interpolation calculation unit is used to calculate the coefficients and interpolation parameters based on the filter kernel using the linear interpolation method to obtain the brightness compensation filter kernel.
[0150] In one embodiment, the pixel value update module includes:
[0151] The pixel value determination unit is used to determine the boundary pixels in the image frame and to determine the values of multiple pixels covered by the pixel block centered on the boundary pixels.
[0152] The pixel value weighting unit is used to process multiple pixel values using a brightness compensation filter kernel to obtain a weighted sum of pixel values.
[0153] The pixel value shifting unit is used to perform pixel value shifting processing on the weighted sum of pixel values to obtain the compensated pixel value;
[0154] The pixel value update unit is used to update the compensated pixel value to the pixel value of the boundary pixel, thereby obtaining an image frame that has completed the display brightness compensation.
[0155] In one embodiment, the image display brightness compensation device further includes:
[0156] The current data update module is used to reacquire the pixel brightness change period and the current display brightness when the display shows a new image frame, and update the current frame number.
[0157] The brightness cycle compensation module is used to return to the steps of querying the preset brightness mapping rules using the current display brightness to determine the maximum display brightness, the reference display brightness, and the minimum display brightness corresponding to the current display brightness, until no new image frames exist.
[0158] Each module in the aforementioned image display brightness compensation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0159] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements an image display brightness compensation method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0160] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0161] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0162] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0163] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0164] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0165] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0166] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0167] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An image display luminance compensation method characterized by, The method comprises: acquiring a pixel brightness change period of a display, and determining a current display brightness of the display and a current frame number of an image frame displayed by the display; determining a maximum display brightness, a reference display brightness and a minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule; determining a filter kernel calculation coefficient from the maximum display brightness, the reference display brightness and the minimum display brightness according to a position of the current frame number in the pixel brightness change period; calculating a brightness compensation filter kernel based on the filter kernel calculation coefficient, the current frame number and the pixel brightness change period; updating pixel values of boundary pixels in the image frame using the brightness compensation filter kernel to obtain an image frame with completed display brightness compensation.
2. The method of claim 1, wherein, The method comprises: determining a current display brightness mode to which the current display brightness belongs and a current display brightness interval in which the current display brightness is located based on the preset brightness mapping rule; taking a working display brightness in the current display brightness mode as the reference display brightness, taking a maximum value in the current display brightness interval as the maximum display brightness, and taking a minimum value in the current display brightness interval as the minimum display brightness.
3. The method of claim 1, wherein, The pixel brightness change period comprises two sub-periods, and the two sub-periods are determined based on midpoint frame numbers of a half period of the pixel brightness change period; the two sub-periods comprise a brightness enhancement period and a brightness decay period. The method comprises: determining a sub-period in which the current frame number is located in the pixel brightness change period by comparing the current frame number with the midpoint frame numbers; in a case where the current frame number is in the brightness enhancement period, taking the maximum display brightness and the reference display brightness as filter kernel calculation coefficients; in a case where the current frame number is in the brightness decay period, taking the maximum display brightness and the minimum display brightness as filter kernel calculation coefficients.
4. The method of claim 1, wherein, The method comprises: calculating an interpolation parameter according to the current frame number and the pixel brightness change period; obtaining the brightness compensation filter kernel based on the filter kernel calculation coefficient and the interpolation parameter by using a linear interpolation method.
5. The method of claim 1, wherein, The method comprises: determining boundary pixels in the image frame and a plurality of pixel values covered by a pixel block centered on the boundary pixels; obtaining a pixel value weighted sum by using the brightness compensation filter kernel to weight process the plurality of pixel values. perform pixel value bit shift processing on the pixel value weighted sum to obtain a compensated pixel value; update the compensated pixel value as a pixel value of the boundary pixel to obtain an image frame with completed display brightness compensation.
6. The method of claim 1, wherein, After obtaining the image frame with completed display brightness compensation, the method further includes: when the display displays a new image frame, reacquire the pixel brightness variation period, the current display brightness, and update the current frame number; return to the step of querying the preset brightness mapping rule using the current display brightness to determine the maximum display brightness, the reference display brightness, and the minimum display brightness corresponding to the current display brightness until there is no new image frame.
7. An image display brightness compensation device, characterized in that, The device includes: a current data acquisition module configured to acquire a pixel brightness variation period of a display, and determine a current display brightness of the display and a current frame number of an image frame when the display displays the image frame; a display brightness determination module configured to determine a maximum display brightness, a reference display brightness, and a minimum display brightness corresponding to the current display brightness based on a preset brightness mapping rule; a calculation coefficient determination module configured to determine a filter kernel calculation coefficient from the maximum display brightness, the reference display brightness, and the minimum display brightness according to a position of the current frame number in the pixel brightness variation period; a filter kernel calculation module configured to calculate a brightness compensation filter kernel based on the filter kernel calculation coefficient, the current frame number, and the pixel brightness variation period; a pixel value update module configured to update a pixel value of a boundary pixel in the image frame using the brightness compensation filter kernel to obtain an image frame with completed display brightness compensation. 8.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-7. The processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.