Compensation method and device for display screen

By acquiring images on the display screen and performing grayscale compensation, the problem of display differences between the secondary and primary screen areas was solved, achieving improved display uniformity and user experience.

CN116994537BActive Publication Date: 2026-05-26KUNSHAN GO VISIONOX OPTO ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
KUNSHAN GO VISIONOX OPTO ELECTRONICS CO LTD
Filing Date
2023-08-09
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In full-screen displays, there are display differences between the secondary screen area and the main screen area when they are displayed simultaneously, resulting in display mura issues and affecting the user experience.

Method used

By acquiring an image of the target monochrome screen displayed on the display, the outline area of ​​the secondary screen area and the adjacent target area are determined. Compensation is performed based on grayscale values, and the compensation values ​​are calculated and stored in the pixel register unit of the secondary screen area to ensure the display uniformity of the secondary screen area and the main screen area.

Benefits of technology

It improves the display uniformity between the secondary and primary screen areas, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116994537B_ABST
    Figure CN116994537B_ABST
Patent Text Reader

Abstract

The display compensation method and apparatus provided in this application relate to the field of display technology. By using the grayscale values ​​at the display positions corresponding to pixels in the target area and the outline area, grayscale values ​​are assigned to the pixels in the outline area to obtain a compensated sub-screen image. Simultaneously, compensation values ​​are calculated for each pixel based on the sub-screen images before and after compensation, and these compensation values ​​are stored in the register unit of the corresponding pixel. During subsequent display, the pixels in the sub-screen area compensate for the display brightness using the compensation values, thereby ensuring the display uniformity between the sub-screen area and the main screen area and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and more specifically, to a compensation method and apparatus for a display screen. Background Technology

[0002] Full-screen displays are currently the industry trend. To achieve this, the front-facing camera is hidden under the display. The area where the under-display camera is located is called the secondary screen area. This secondary screen area is not displayed when the under-display camera is working, but can be used for display when the camera is not working. To meet these requirements, the secondary screen area is designed differently from the main screen area. This can lead to a display discrepancy when the secondary and main screen areas are displayed simultaneously, resulting in a display mutagenesis issue that affects the display effect and reduces the user experience. Summary of the Invention

[0003] In order to overcome the technical problems mentioned in the above technical background, this application provides a display screen compensation method and apparatus.

[0004] A first aspect of this application provides a compensation method for a display screen, the display screen including a sub-screen area for placing under-screen devices and a main screen area surrounding the sub-screen area, the method comprising:

[0005] Acquire an image of the target monochrome screen displayed on the display screen;

[0006] In the image, a contour region corresponding to the sub-screen area is determined, wherein the contour region includes the position of the pixel in the contour region;

[0007] Based on the contour region, a target region adjacent to the contour region is determined in the image region corresponding to the main screen region. The gray value of the pixel in the contour region is determined according to the gray value of the display position in the target region, and the compensated sub-screen region image is obtained. The target region includes the display position of the pixel in the contour region in the target region and the gray value at the display position.

[0008] Based on the compensated sub-screen area image and the sub-screen area image before compensation, the compensation value of each pixel in the sub-screen area is calculated, and the compensation value is stored in the register unit corresponding to each pixel in the sub-screen area.

[0009] In one possible embodiment of this application, the step of determining the contour region corresponding to the sub-screen region in the image includes:

[0010] By using the pre-known position of the secondary screen area on the display screen and the pixel distribution within the secondary screen area, the outline region of the secondary screen area in the image is determined; or,

[0011] The contour region corresponding to the sub-screen area is determined in the image using an image detection algorithm.

[0012] In one possible embodiment of this application, the step of determining a target region adjacent to the contour region in the image region corresponding to the main screen area based on the contour region, and determining the grayscale value of the pixel in the contour region according to the grayscale value of the display position in the target region to obtain the compensated secondary screen area image includes:

[0013] In the image, identify the target region adjacent to the contour region;

[0014] Detect whether the grayscale value of a pixel in the contour region is abnormal at its corresponding display position in the target region;

[0015] When an abnormal grayscale value is detected at a display location in the target area, the grayscale value at the abnormal display location is processed to obtain the processed target area.

[0016] The grayscale value of the display position in the target area is assigned to the corresponding pixel in the contour area to obtain the compensated sub-screen area image.

[0017] In one possible embodiment of this application, the step of determining the target region adjacent to the contour region in the image includes:

[0018] The contour region is moved parallel to the opposite direction of the pixel arrangement in the contour region to obtain a selected region. The target region is determined in the selected region. The selected region also includes a portion of the contour region. The target region is the overlapping area of ​​the contour region and the main screen area image. The display position in the target region is determined by the position of the pixels in the contour region that overlaps with the main screen area image. The sum of the distances the contour regions move in opposite directions is equal to the size of the contour region in the direction of movement.

[0019] Preferably, in the direction of moving the contour region, the size of the target region in the selected region and the size of the partial contour region in the selected region are the same.

[0020] In one possible embodiment of this application, the step of assigning the grayscale value of the display position in the target area to the corresponding pixel in the contour area to obtain the compensated sub-screen area image includes:

[0021] Traverse the target area to obtain the grayscale value of each display position in the target area;

[0022] Using the boundary line between the target area and the contour area as the axis of symmetry, the grayscale values ​​of each display position in the target area are symmetrically assigned to the corresponding pixels in the contour area.

[0023] In one possible embodiment of this application, the step of determining the target region adjacent to the contour region in the image includes:

[0024] Using the geometric center of the outline region as the center point, the outline region is enlarged to obtain a selected region. The area surrounding the outline region in the selected region is taken as the target region. In any pixel arrangement direction passing through the geometric center, the display position in the target region is determined by the position of the pixels in the outline region. The size of the target region is not less than the distance from the edge of the outline region to the geometric center.

[0025] In one possible embodiment of this application, the step of assigning the grayscale value of the display position in the target area to the corresponding pixel in the contour area to obtain the compensated sub-screen area image includes:

[0026] In the pixel arrangement direction passing through the geometric center, with the intersection of the boundary line between the contour region and the target region and the pixel arrangement direction as the center of symmetry, the grayscale values ​​of each display position in the target region are assigned to the corresponding pixels in the contour region.

[0027] In one possible embodiment of this application, the step of detecting whether the grayscale value of a pixel in the contour region is abnormal at the corresponding display position in the target region includes:

[0028] The actual grayscale value of each display position in the target area is compared with the theoretical grayscale value of the displayed image;

[0029] When the difference between the actual grayscale value at the display location and the theoretical grayscale value of the displayed image is greater than a preset grayscale threshold, the grayscale value at the display location is determined to be abnormal.

[0030] In one possible embodiment of this application, the step of performing anomaly processing on the grayscale value at the abnormal display location when an anomaly is detected at the display location in the target area to obtain the processed target area includes:

[0031] When an abnormal grayscale value is detected at a display location in the target area, the average grayscale value of the remaining display locations in the target area, excluding the display location with the abnormal grayscale value, is calculated.

[0032] The average grayscale value is used to replace the grayscale value at the display location where the grayscale value is abnormal, thus obtaining the processed target area.

[0033] A second aspect of this application provides a compensation device for a display screen, the display screen including a sub-screen area for placing under-screen devices and a main screen area surrounding the sub-screen area, the device comprising:

[0034] The acquisition module is used to acquire an image of the target monochrome screen displayed on the display screen;

[0035] The determining module is used to determine the contour region corresponding to the sub-screen area in the image, wherein the contour region includes the position information of the pixels in the contour region;

[0036] The compensation module is used to determine a target area adjacent to the contour area in the image area corresponding to the main screen area based on the contour area, and to determine the gray value of the pixel in the contour area according to the gray value of the display position in the target area, so as to obtain the compensated sub-screen area image. The target area includes the display position of the pixel in the contour area in the target area and the gray value at the display position.

[0037] The storage module is used to calculate the compensation value of each pixel in the sub-screen area based on the compensated sub-screen area image and the sub-screen area image before compensation, and store the compensation value in the register unit corresponding to each pixel in the sub-screen area.

[0038] Thirdly, embodiments of this application also provide an electronic device, the electronic device including a processor and a computer-readable storage medium, the processor and the computer-readable storage medium being connected via a bus system, the computer-readable storage medium being used to store programs, instructions or code, and the processor being used to execute the programs, instructions or code in the computer-readable storage medium to implement the display screen compensation method in any of the possible embodiments of the first aspect.

[0039] Fourthly, embodiments of this application also provide a computer-readable storage medium storing instructions that, when executed, cause an electronic device to perform the display compensation method in any of the possible embodiments of the first aspect.

[0040] Based on any of the above aspects, the display compensation method and apparatus provided in this application first acquire an image of the target monochrome screen; then, determine the contour region corresponding to the sub-screen area in the image; next, determine the target area adjacent to the contour region in the image, and determine the grayscale value of the pixel in the contour region based on the grayscale value of the display position in the target region, thus obtaining the compensated sub-screen area image; finally, calculate the compensation value of each pixel in the sub-screen area based on the compensated sub-screen area image and the sub-screen area image before compensation, and store the compensation value in the register unit of the corresponding pixel. In the above process, the pixels in the contour region are assigned grayscale values ​​by using the grayscale value at the display position corresponding to the pixel in the target region and the pixel in the contour region, thereby obtaining the compensated sub-screen area image. At the same time, the compensation value of each pixel is calculated based on the sub-screen area images before and after compensation, and the compensation value is stored in the register unit of the corresponding pixel. During subsequent display, the pixels in the sub-screen area will compensate for the display brightness through the compensation value, thereby ensuring the display uniformity of the sub-screen area and the main screen area, and improving the user experience. Attached Figure Description

[0041] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This example illustrates how pixels in the secondary screen area are assigned the same grayscale value.

[0043] Figure 2 Examples based on Figure 1 A comparative diagram of images before and after compensation;

[0044] Figure 3 An interactive schematic diagram of the display compensation system provided in this embodiment is illustrated;

[0045] Figure 4 A flowchart illustrating the steps of the display compensation method provided in this embodiment is shown.

[0046] Figure 5 This embodiment illustrates the area distribution of the display screen.

[0047] Figure 6 An example of an implementation Figure 4 A flowchart illustrating step S13;

[0048] Figures 7a-7e An example of a... Figure 6A process diagram corresponding to the intermediate steps;

[0049] Figures 8a-8e Another example with Figure 6 A process diagram corresponding to the intermediate steps;

[0050] Figure 9 A functional block diagram of the display compensation device provided in this embodiment is illustrated.

[0051] Figure 10 A block diagram illustrating the structure of the electronic device provided in this embodiment is shown. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0053] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0054] To address the technical problems mentioned in the background section, a possible solution is as follows: First, select a region within the displayed image; then, filter out pixels with abnormal grayscale values ​​in that region, and calculate the average grayscale value of all pixels except the abnormal pixels; finally, assign the average grayscale value to each pixel in the secondary screen area, such as... Figure 1 As shown, all pixels in the secondary screen area are assigned the same grayscale value (e.g., a floating-point grayscale value of 64.53). However, the above solution is not very effective in solving the display uniformity problem between the main screen area and the secondary screen area. Figure 2 As shown, there are still significant differences between the compensated secondary screen area and the primary screen area.

[0055] To address the aforementioned problems, the inventors have innovatively designed the following technical solutions, which will be described in detail below with reference to the accompanying drawings. It should be noted that the deficiencies in the existing solutions are the result of the inventors' practical experience and careful research. Therefore, the discovery process of the aforementioned technical problems and the solutions proposed in this embodiment below are contributions made by the inventors to this application during the invention process, and should not be construed as technical content known to those skilled in the art.

[0056] Before introducing the specific solution provided in this embodiment, the application scenarios of the display compensation system 10 to which this specific solution is applicable will be introduced first. Please refer to [link / reference]. Figure 3 In this embodiment, the display compensation system 10 includes an electronic device 100, an image acquisition device 200, and a display screen 300, which are connected in communication. The electronic device 100 can perform display compensation on the display screen 300. The image acquisition device 200 can capture an image of the display screen 300 when it is displaying a screen and send the image to the electronic device 100. The electronic device 100 then performs grayscale compensation on the area corresponding to the sub-screen area based on the image.

[0057] The following is combined with Figure 3 The application scenarios shown illustrate the display compensation method provided in this application embodiment. Please refer to... Figure 4 The display compensation method provided in this application embodiment can be executed by the aforementioned electronic device 100. In other embodiments, the order of some steps in the display compensation method of this application embodiment can be interchanged according to actual needs, or some steps can be omitted or deleted. The detailed steps of the display compensation method executed by the electronic device 100 are described below.

[0058] Step S11: Obtain the image of the target monochrome screen displayed on the display screen.

[0059] Please refer to Figure 5 The display screen 300 includes a secondary screen area 300A with an under-display camera and a main screen area 300B surrounding the secondary screen area 300A. The electronic device 100 obtains an image from the image acquisition device 200 when the display screen 300 displays a target monochrome image. This image is the image when the secondary screen area 300A and the main screen area 300B are displayed simultaneously. The target monochrome image includes a monochrome image with equal or unequal grayscale value spacing, such as a red, green, or blue image with grayscale values ​​of 16, 32, 48, 64...240, 255.

[0060] Step S12: Determine the contour region corresponding to the sub-screen region in the image.

[0061] The outline region can be the area enclosed by the outer contour of the sub-screen area 300A in the image. The shape of the outline region varies depending on the shape of the sub-screen area 300A. For example, the shape of the outline region includes a circle, a matrix, an ellipse, a regular hexagon, etc.

[0062] In this embodiment, the contour region includes the position of the pixel in the contour region, that is, the contour region contains the position information (e.g., coordinates) of the pixel in the sub-screen area.

[0063] Step S13: Based on the contour region, determine the target region adjacent to the contour region in the image region corresponding to the main screen region, and determine the gray value of the pixel in the contour region according to the gray value of the display position in the target region to obtain the compensated sub-screen region image.

[0064] In this embodiment, the display position in the target area corresponds to the pixel in the outline area. The grayscale value at the display position in the target area is determined by the grayscale value of the actual displayed pixel in the corresponding image area. That is, the grayscale value at the display position in the target area can be determined by the grayscale value of at least one actual displayed pixel in the corresponding image area. The display position can correspond to an actual displayed pixel or to the area between adjacent actual displayed pixels. In this embodiment, the target area includes the display position of the pixel in the outline area corresponding to the display position in the target area and the grayscale value at the display position.

[0065] Step S14: Based on the compensated sub-screen area image and the sub-screen area image before compensation, calculate the compensation value of each pixel in the sub-screen area and store the compensation value in the register unit corresponding to each pixel in the sub-screen area.

[0066] The electronic device 100 sends the calculated compensation values ​​to the register units corresponding to each pixel in the secondary screen area 300A and stores them. It can be understood that after calculating the compensation values ​​corresponding to a series of monochrome images with different grayscale values, a compensation value curve satisfying the gamma 2.2 curve characteristic can be obtained based on the compensation values. The compensation value corresponding to each grayscale value in the compensation value curve is then stored in the register unit corresponding to each pixel. This allows for subsequent display compensation of the pixel's display based on the corresponding grayscale compensation value, ensuring that the secondary screen area and the main screen area have the same display effect.

[0067] The above solution assigns grayscale values ​​to pixels in the contour region by using the grayscale values ​​at the display positions corresponding to pixels in the target region and the contour region, thus obtaining the compensated secondary screen image. Simultaneously, it calculates the compensation value for each pixel based on the secondary screen images before and after compensation and stores the compensation value in the corresponding pixel's register unit. During subsequent display, the pixels in the secondary screen area will compensate for the display brightness using the compensation values, thereby ensuring the uniformity of display between the secondary and main screen areas and improving the user experience.

[0068] In this embodiment, step S12 can be implemented in the following two ways.

[0069] The first implementation method determines the outline region of the secondary screen area in the image by using the pre-known position of the secondary screen area in the display screen and the pixel distribution in the secondary screen area. Specifically, the pixel distribution data of the display screen and the position of the secondary screen area in the display area can be pre-written into the electronic device 100. After receiving the image captured by the image acquisition device 200, the outline region corresponding to the secondary screen area is determined based on the pre-written information.

[0070] The second implementation method involves determining the contour region corresponding to the secondary screen area in the image using an image detection algorithm. For example, an edge detection algorithm can be used to determine the contour edge of the secondary screen area and the positions of pixels within the secondary screen area to obtain the contour region corresponding to the secondary screen area.

[0071] Preferably, in this embodiment, step S12 can be implemented using the first implementation method.

[0072] Further, please refer to Figure 6 In this embodiment, step S13 can be implemented by the following method.

[0073] Step S131: Identify the target region adjacent to the contour region in the image.

[0074] Step S132: Detect whether the grayscale value of the pixel in the contour area is abnormal at the corresponding display position in the target area.

[0075] The actual grayscale value at a display location in the target area can be determined by the grayscale value of at least one pixel actually displayed around that display location in the corresponding image, or by the grayscale value of a pixel located at that display location. In this step, the actual grayscale value at each display location in the target area can be compared with the theoretical grayscale value of the displayed image. If the difference between the actual grayscale value at the display location and the theoretical grayscale value of the displayed image is greater than a preset grayscale threshold, the grayscale value at the display location is determined to be abnormal. For example, if the preset grayscale threshold is 5, and the actual grayscale value is 65 while the theoretical grayscale value is 64, then the grayscale value at the display location is determined to be normal; if the preset grayscale threshold is 5, and the actual grayscale value is 70 while the theoretical grayscale value is 64, then the grayscale value at the display location is determined to be abnormal. If the grayscale value at the display location is determined to be normal, proceed to step S134; if the grayscale value at the display location is determined to be abnormal, proceed to step S133.

[0076] Step S133: Perform anomaly processing on the grayscale values ​​at the abnormal display location to obtain the processed target area.

[0077] In this step, the anomaly handling process can be as follows: First, calculate the average gray value of all display positions in the target area except for the display position with the abnormal gray value; then, replace the gray value at the display position with the average gray value to obtain the processed target area.

[0078] Step S134: Assign the grayscale value of the display position in the target area to the corresponding pixel in the contour area to obtain the compensated sub-screen area image.

[0079] The implementation process of step S13 will be described in detail below with reference to two specific implementation methods. For ease of explanation, the shape of the contour area is a rectangle as an example. It can be understood that the following implementation methods are also applicable to contour areas of other shapes.

[0080] In the first embodiment of this example, firstly, the contour region is moved parallel to the opposite direction (pixel row direction or pixel column direction) along the arrangement direction of the pixels in the contour region to obtain a selected region. A target region is then determined within the selected region. The selected region also includes a portion of the contour region. The target region is the overlapping area between the contour region and the main screen image. The display position in the target region is determined by the position of the pixels in the contour region overlapping with the main screen image. The sum of the distances the contour regions move in opposite directions is equal to the size of the contour region in the moving direction. Next, it is detected whether the grayscale value of the pixels in the contour region at the corresponding display position in the target region is abnormal. Then, when an abnormal grayscale value is detected at the display position in the target region, abnormal processing is performed on the grayscale value at the abnormal display position to obtain the processed target region. Finally, the target region is traversed to obtain the grayscale value of each display position in the target region. Using the boundary line between the target region and the contour region as the axis of symmetry, the grayscale values ​​of each display position in the target region are symmetrically assigned to the corresponding pixels in the contour region.

[0081] For example, in conjunction with the appendix Figures 7a-7eThe process of the above implementation method will be described. Taking translation along the horizontal direction of the contour region (consistent with the long side direction of the contour region, X direction in the figure, pixel row direction) as an example, and assuming that the pixels in the contour region are distributed in a 4*4 array, the contour region A is moved horizontally to the right by a distance d1 to obtain the first selected region A1, and the contour region is moved horizontally to the left by a distance d2 to obtain the second selected region A2. The sum of the moving distances d1 and d2 is equal to the long side width d of the contour region. Taking the moving distance d1 as 3 / 4 of the long side width d and the moving distance d2 as 1 / 4 of the long side width d as examples, in the first selected region A1, the first target region A11 corresponds to the display position distribution of the 4*3 array. By traversing the image corresponding to the first target region A11, the grayscale value at each display position in the first target region A11 is obtained. Then, taking the boundary line L2 between the first target region A11 and the contour region A as the axis of symmetry, the grayscale value of the display position in the first target region A11 can be assigned to the grayscale values ​​of the three right columns of pixels in the contour region A. Similarly, in the second selected area A2, the second target area A21 corresponds to the display position distribution of a 4*1 array. By traversing the grayscale values ​​of the image corresponding to the second target area A21 at each display position, the grayscale value of the display position in the second target area A21 is obtained. Then, taking the boundary line L1 between the second target area A21 and the contour area A as the axis of symmetry, the grayscale value of the display position in the second target area A21 can be assigned to the grayscale values ​​of the left column of pixels in the contour area A. In the above process, if the grayscale value of the display position is abnormal, the display position with abnormal grayscale value is handled abnormally before assigning the grayscale value of the display position to the pixels in the contour area A. The specific abnormal handling process is as described above and will not be repeated here.

[0082] In this embodiment, in order to make the display of the secondary screen area and the surrounding main screen area uniform, it is preferable that the distances moved in opposite directions are the same, that is, the number of secondary screen area pixels compensated by the first target area A11 is the same as the number of secondary screen area pixels compensated by the second target area A21.

[0083] In the second embodiment of this example, firstly, the contour region is enlarged with the geometric center of the contour region as the center point to obtain a selected region. The area surrounding the contour region is taken as the target region. In any pixel arrangement direction passing through the geometric center, the display position in the target region is determined by the position of the pixels in the contour region. The size of the target region is not less than the distance between the edge of the contour region and the geometric center. Next, it is detected whether the grayscale value of the pixels in the contour region at the corresponding display position in the target region is abnormal. Then, when an abnormal grayscale value is detected at the display position in the target region, the grayscale value at the abnormal display position is processed to obtain the processed target region. Finally, in the pixel arrangement direction passing through the geometric center, with the intersection of the boundary line between the contour region and the target region and the pixel arrangement direction as the center of symmetry, the grayscale values ​​of each display position in the target region are assigned to the corresponding pixels in the contour region.

[0084] For example, in conjunction with the appendix Figures 8a-8e The process of the above implementation method is described below. Taking a 4*4 array distribution of pixels in the contour region as an example, the geometric center of the contour region A is o. The selected region is obtained by magnifying the contour region A. The selected region includes the contour region A and the target region B surrounding the contour region A. The pixel arrangement directions passing through the geometric center o in the selected region include the straight line directions M1N1, M2N2, M3N3, M4N4, M5N5, and M6N6. In the above straight line directions, the size d4 of the target region B is not less than the size d3 of the distance from the edge of the contour region A to the geometric center o. In the directions OM1, ON1, OM2, ON2, OM3, ON3, OM4, ON4, OM5, ON5, OM6, and ON6, the display position corresponding to the pixel in the contour region A can be determined in the target region B. By traversing the grayscale values ​​of the image corresponding to the target region B at each display position, the grayscale value of the display position is obtained. If the grayscale value is abnormal, it is handled as is in the previous implementation method and will not be repeated here. Then, in the pixel arrangement direction passing through the geometric center o, taking the intersection of the boundary line between the contour region A and the target region B and the pixel arrangement direction as the center of symmetry, the grayscale values ​​of each display position in the target region B are assigned to the corresponding pixels in the contour region A, thus obtaining the grayscale values ​​of each pixel in the contour region A.

[0085] Further, please refer to Figure 9 , Figure 9This is a schematic diagram of the functional modules of a display compensation device 400 provided in an embodiment of this application. The embodiment of this application can divide the display compensation device 400 into functional modules according to the method embodiments executed by the electronic device. That is, the following functional modules corresponding to the display compensation device 400 can be used to execute the above-mentioned method embodiments. The display-based compensation device 400 may include an acquisition module 410, a determination module 420, a compensation module 430, and a storage module 440. The functions of each functional module of the display compensation device 400 will be described in detail below.

[0086] The acquisition module 410 is used to acquire the image when the display screen shows the target monochrome image.

[0087] In this embodiment, the acquisition module 410 obtains an image from the image acquisition device 200 when the display screen 300 displays a target monochrome image. This image is the image when the secondary screen area and the main screen area are displayed simultaneously. The target monochrome image includes monochrome images with equal or unequal grayscale value spacing, such as red, green, or blue images with grayscale values ​​of 16, 32, 48, 64...240, 255.

[0088] In this embodiment, the acquisition module 410 can be used to perform the above-described step S11. For a detailed description of the implementation of the acquisition module 410, please refer to the above-described detailed description of step S11.

[0089] The determination module 420 is used to determine the contour region corresponding to the sub-screen region in the image.

[0090] The outline region can be the area enclosed by the outer contour of the sub-screen area 300A in the image. The shape of the outline region varies depending on the shape of the sub-screen area 300A. For example, the shape of the outline region includes a circle, a matrix, an ellipse, a regular hexagon, etc.

[0091] In this embodiment, the contour region includes the position of the pixel in the contour region, that is, the contour region contains the position information (e.g., coordinates) of the pixel in the sub-screen area.

[0092] In this embodiment, the determining module 420 can be used to perform the above-described step S12. For a detailed description of the implementation of the determining module 420, please refer to the above-described description of step S12.

[0093] The compensation module 430 is used to determine the target area adjacent to the contour area in the image area corresponding to the main screen area based on the contour area, and to determine the gray value of the pixel in the contour area according to the gray value of the display position in the target area, so as to obtain the compensated sub-screen area image.

[0094] The display position in the target area corresponds to a pixel in the outline area. The grayscale value at the display position in the target area is determined by the grayscale value of the actual displayed pixel in the image area corresponding to the target area. That is, the grayscale value at the display position in the target area can be determined by the grayscale value of at least one actual displayed pixel in the image area. The display position can correspond to an actual displayed pixel or to the area between adjacent actual displayed pixels. In this embodiment, the target area includes the display position of the pixel in the outline area corresponding to the display position in the target area and the grayscale value at the display position.

[0095] In this embodiment, the compensation module 430 can be used to perform the above-described step S13. For a detailed description of the implementation of the compensation module 430, please refer to the above-described detailed description of step S13.

[0096] The storage module 440 is used to calculate the compensation value of each pixel in the sub-screen area based on the compensated sub-screen area image and the sub-screen area image before compensation, and to store the compensation value in the register unit corresponding to each pixel in the sub-screen area.

[0097] The storage module 440 sends the calculated compensation values ​​to the register units corresponding to each pixel in the secondary screen area 300A and stores them. It can be understood that after calculating the compensation values ​​corresponding to a series of monochrome images with different grayscale values, a compensation value curve satisfying the gamma 2.2 curve characteristic can be obtained based on the compensation values. The compensation values ​​corresponding to each grayscale value in the compensation value curve are then stored in the register units corresponding to each pixel. This allows for subsequent display compensation of the pixel display based on the corresponding grayscale compensation value, ensuring that the secondary screen area and the main screen area have the same display effect.

[0098] In this embodiment, the storage module 440 can be used to execute the above-described step S14. For a detailed description of the implementation of the storage module 440, please refer to the above-described detailed description of step S14.

[0099] It should be noted that the division of modules in the above device or system is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software (e.g., open-source software) via processor calls; they can also be implemented entirely in hardware; or some modules can be implemented via processor calls to software, while others are implemented in hardware. As an example, compensation module 430 can be implemented by a separate processor and can be stored as program code in the memory of the above device or system. A processor in the above device or system can call and execute the function of compensation module 430. The implementation of other modules is similar and will not be elaborated further here. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processor described here can be an integrated circuit with signal processing capabilities. During implementation, each step or module in the above technical solution can be completed through integrated logic circuits in the processor or by executing software programs.

[0100] Please refer to Figure 10 , Figure 10 A schematic diagram of the hardware structure of an electronic device 100 for implementing the above-described display compensation method, provided in an embodiment of this disclosure, is shown. Figure 10 As shown, the electronic device 100 may include a processor 110, a computer-readable storage medium 120, a bus 130, and a communication unit 140.

[0101] In a specific implementation, the processor 110 executes computer-executable instructions (e.g., instructions stored in the computer-readable storage medium 120) stored in the computer-readable storage medium 120. Figure 9 The various modules in the display compensation device 400 shown enable the processor 110 to execute the display compensation method as described in the above method embodiment, wherein the processor 110, the computer-readable storage medium 120, and the communication unit 140 can be connected via the bus 130.

[0102] The specific implementation process of processor 110 can be found in the various method embodiments executed by the above-mentioned electronic device 100. The implementation principle and technical effect are similar, and will not be repeated here in the embodiments of this application.

[0103] The computer-readable storage medium 120 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The computer-readable storage medium 120 is used to store programs or data.

[0104] Bus 130 can be divided into address bus, data bus, control bus, etc. For ease of illustration, the buses in the accompanying drawings of this application are not limited to only one bus or one type of bus.

[0105] The communication unit 140 is used to communicate with the image acquisition device 200 and the display screen 300 to realize data interaction among the three.

[0106] Furthermore, this application embodiment also provides a readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the display screen compensation method described above.

[0107] In summary, the display compensation method, apparatus, and computer-readable storage medium provided in this application first acquire an image of the target monochrome screen; then, determine the contour region corresponding to the secondary screen area in the image; next, determine the target area adjacent to the contour region in the image, and determine the grayscale value of the pixels in the contour region based on the grayscale value of the display position in the target region, thus obtaining the compensated secondary screen area image; finally, calculate the compensation value of each pixel in the secondary screen area based on the compensated secondary screen area image and the secondary screen area image before compensation, and store the compensation value in the register unit of the corresponding pixel. In the above process, the pixels in the contour region are assigned grayscale values ​​by using the grayscale value of the display position corresponding to the pixel in the target region and the pixel in the contour region, thereby obtaining the compensated secondary screen area image. At the same time, the compensation value of each pixel is calculated based on the secondary screen area images before and after compensation, and the compensation value is stored in the register unit of the corresponding pixel. During subsequent display, the pixels in the secondary screen area will compensate for the display brightness through the compensation value, thereby ensuring the display uniformity of the secondary screen area and the main screen area and improving the user experience.

[0108] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A compensation method for a display screen, characterized in that, The display screen includes a secondary screen area for placing under-screen devices and a main screen area surrounding the secondary screen area, and the method includes: Acquire an image of the target monochrome screen displayed on the display screen; In the image, a contour region corresponding to the sub-screen area is determined, wherein the contour region includes the position of the pixel in the contour region; In the image, a target region adjacent to the contour region is determined; it is detected whether the grayscale value of a pixel in the contour region at its corresponding display position in the target region is abnormal; when an abnormal grayscale value is detected at the display position in the target region, the grayscale value at the abnormal display position is processed to obtain the processed target region; the grayscale value at the display position in the target region is assigned to the corresponding pixel in the contour region to obtain the compensated sub-screen area image, wherein the target region includes the display position of the pixel in the contour region in the target region and the grayscale value at the display position; Based on the compensated sub-screen area image and the sub-screen area image before compensation, the compensation value of each pixel in the sub-screen area is calculated, and the compensation value is stored in the register unit corresponding to each pixel in the sub-screen area.

2. The compensation method for the display screen as described in claim 1, characterized in that, The step of determining the contour region corresponding to the secondary screen region in the image includes: By using the pre-known position of the secondary screen area on the display screen and the pixel distribution within the secondary screen area, the outline region of the secondary screen area in the image is determined; or, The contour region corresponding to the sub-screen area is determined in the image using an image detection algorithm.

3. The compensation method for the display screen as described in claim 1, characterized in that, The step of determining the target region adjacent to the contour region in the image includes: The contour region is moved parallel to the opposite direction of the pixel arrangement in the contour region to obtain a selected region. The target region is determined in the selected region. The selected region also includes a portion of the contour region. The target region is the overlapping area of ​​the contour region and the main screen area image. The display position in the target region is determined by the position of the pixels in the contour region that overlaps with the main screen area image. The sum of the distances that the contour regions move in opposite directions is equal to the size of the contour region in the direction of movement.

4. The compensation method for the display screen as described in claim 3, characterized in that, In the direction of moving the contour region, the size of the target region in the selected region and the size of the partial contour region in the selected region are the same.

5. The compensation method for the display screen as described in claim 4, characterized in that, The step of assigning the grayscale value of the display position in the target area to the corresponding pixel in the contour area to obtain the compensated sub-screen area image includes: Traverse the target area to obtain the grayscale value of each display position in the target area; Using the boundary line between the target area and the contour area as the axis of symmetry, the grayscale values ​​of each display position in the target area are assigned to the corresponding pixels in the contour area.

6. The compensation method for the display screen as described in claim 1, characterized in that, The step of determining the target region adjacent to the contour region in the image includes: Using the geometric center of the outline region as the center point, the outline region is enlarged to obtain a selected region. The area surrounding the outline region in the selected region is taken as the target region. In any pixel arrangement direction passing through the geometric center, the display position in the target region is determined by the position of the pixels in the outline region. The size of the target region is not less than the distance from the edge of the outline region to the geometric center.

7. The compensation method for the display screen as described in claim 6, characterized in that, The step of assigning the grayscale value of the display position in the target area to the corresponding pixel in the contour area to obtain the compensated sub-screen area image includes: In the pixel arrangement direction passing through the geometric center, with the intersection of the boundary line between the contour region and the target region and the pixel arrangement direction as the center of symmetry, the grayscale values ​​of each display position in the target region are assigned to the corresponding pixels in the contour region.

8. The display screen compensation method according to any one of claims 3-7, characterized in that, The step of detecting whether the grayscale value of a pixel in the contour region is abnormal at its corresponding display position in the target region includes: The actual grayscale value of each display position in the target area is compared with the theoretical grayscale value of the displayed image; When the difference between the actual grayscale value at the display location and the theoretical grayscale value of the displayed image is greater than a preset grayscale threshold, the grayscale value at the display location is determined to be abnormal.

9. The compensation method for the display screen as described in claim 8, characterized in that, The step of performing anomaly processing on the grayscale value at the abnormal display location when an anomaly is detected in the target area to obtain the processed target area includes: When an abnormal grayscale value is detected at a display location in the target area, the average grayscale value of the remaining display locations in the target area, excluding the display location with the abnormal grayscale value, is calculated. The average grayscale value is used to replace the grayscale value at the display location where the grayscale value is abnormal, thus obtaining the processed target area.

10. A compensation device for a display screen, characterized in that, The display screen includes a secondary screen area for placing under-screen devices and a main screen area surrounding the secondary screen area; the device includes: The acquisition module is used to acquire an image of the target monochrome screen displayed on the display screen; The determining module is used to determine the contour region corresponding to the sub-screen area in the image, wherein the contour region includes the position information of the pixels in the contour region; A compensation module is used to determine a target region adjacent to the contour region in the image; detect whether the grayscale value of a pixel in the contour region at its corresponding display position in the target region is abnormal; when an abnormal grayscale value is detected at the display position in the target region, perform abnormal processing on the grayscale value at the abnormal display position to obtain a processed target region; and assign the grayscale value of the display position in the target region to the corresponding pixel in the contour region to obtain a compensated sub-screen area image, wherein the target region includes the display position of the pixel in the contour region in the target region and the grayscale value at the display position; The storage module is used to calculate the compensation value of each pixel in the sub-screen area based on the compensated sub-screen area image and the sub-screen area image before compensation, and store the compensation value in the register unit corresponding to each pixel in the sub-screen area.