Screen display control device and method, equipment and storage medium
Patent Information
- Application Number
- CN202411701281.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-25
AI Technical Summary
In OLED display panels, subtle brightness adjustments can lead to significant color changes and color shifts in low brightness or low grayscale conditions.
By detecting the grayscale value of the same color subpixel in adjacent pixels, the target compensation coefficient is calculated, and the grayscale value is adjusted according to the coefficient to reduce the color shift of the image.
It effectively reduces the color shift of the image, improves the display quality of the image, and ensures more accurate color rendering and brightness adjustment.
Smart Images

Figure CN119600910A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of display technology, and in particular to a screen display control device, method, equipment and storage medium. Background Art
[0002] In the field of display technology, a display device displays an image based on the light emitted by sub-pixels on the display device, and the brightness of the light emitted by the sub-pixels is determined based on the corresponding grayscale value. In an OLED (Organic Light-Emitting Diode) display panel, a special pixel structure is usually used, for example, RGBG (Red, Green, Blue, Green), and the grayscale value of each sub-pixel is calculated by an SPR (Sub Pixel Rendering) algorithm. In low brightness or low grayscale conditions, slight brightness adjustments can also lead to obvious color changes, and color cast may occur. Therefore, there is an urgent need for a screen display control method to improve the above-mentioned color cast. Summary of the invention
[0003] The present application provides a screen display control device, method, equipment and storage medium to reduce the degree of color cast in an image. The technical solution is as follows:
[0004] In one aspect, a screen display control device is provided, which is applied to a display device. The device includes a processing module, and the processing module is configured to:
[0005] Detecting the image data, and recording sub-pixels of the same color in any two adjacent pixels detected as a first sub-pixel and a second sub-pixel;
[0006] Acquire a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel;
[0007] determining a target compensation coefficient based on the first grayscale value and the second grayscale value;
[0008] The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0009] In a possible implementation, when the processing module determines the target compensation coefficient based on the first grayscale value and the second grayscale value, it is configured to: determine a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value; and determine the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0010] In a possible embodiment, when the processing module determines the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value, it is configured to: determine the gap between the first grayscale value and the second grayscale value, and the gap is positively correlated with the target weight; determine a reference grayscale value based on the first grayscale value and the second grayscale value, and the reference grayscale value is negatively correlated with the target weight; determine the target weight based on the gap and the reference grayscale value.
[0011] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and a grayscale value threshold of the display screen.
[0012] In a possible implementation manner, the first sub-pixel and the second sub-pixel are blue sub-pixels or red sub-pixels.
[0013] In a possible implementation, the reference compensation coefficient is determined based on the color cast degree of the screen, and the value of the reference compensation coefficient is positively correlated with the color cast degree.
[0014] In a possible implementation, the screen display control device is a display driver chip.
[0015] On the other hand, a screen display control method is also provided, the method comprising:
[0016] Detecting the image data, and recording sub-pixels of the same color in any two adjacent pixels detected as a first sub-pixel and a second sub-pixel;
[0017] Acquire a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel;
[0018] determining a target compensation coefficient based on the first grayscale value and the second grayscale value;
[0019] The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0020] In a possible implementation, determining the target compensation coefficient based on the first grayscale value and the second grayscale value includes: determining a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value; and determining the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0021] In a possible implementation, determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value includes: determining the gap between the first grayscale value and the second grayscale value, the gap being positively correlated with the target weight; determining a reference grayscale value based on the first grayscale value and the second grayscale value, the reference grayscale value being negatively correlated with the target weight; and determining the target weight based on the gap and the reference grayscale value.
[0022] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and a grayscale value threshold of the display screen.
[0023] In a possible implementation manner, both the first sub-pixel and the second sub-pixel are blue sub-pixels or red sub-pixels.
[0024] In a possible implementation, the reference compensation coefficient is determined based on the color cast degree of the screen, and the value of the reference compensation coefficient is positively correlated with the color cast degree.
[0025] On the other hand, an electronic device is also provided, the electronic device comprising any of the above-mentioned screen display control devices.
[0026] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor of an electronic device so that the electronic device implements any of the above-mentioned screen display control methods.
[0027] On the other hand, a computer program product or a computer program is also provided, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any of the above-mentioned screen display control methods.
[0028] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0029] The technical solution provided in the present application aims to reduce the degree of color deviation of the displayed image by compensating the grayscale values of the same-color sub-pixels in any two adjacent pixels in order to solve the problem that the grayscale values of the same-color sub-pixels in adjacent pixels cause color deviation of the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 It is a schematic diagram of an implementation environment of a screen display control method provided in an embodiment of the present application;
[0032] Figure 2 is a flow chart of a screen display control method provided by an embodiment of the present application;
[0033] Figure 3 is a schematic diagram of a target compensation coefficient model provided in an embodiment of the present application;
[0034] Figure 4 is a structural schematic diagram of a screen display control device provided in an embodiment of the present application;
[0035] Figure 5 It is a structural schematic diagram of a processing module provided in an embodiment of the present application;
[0036] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0038] It should be noted that the terms "first", "second", etc. (if any) in the specification of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application.
[0039] In the field of display technology, display devices display images by emitting light through sub-pixels. The brightness of the light emitted by a sub-pixel is determined by the corresponding grayscale value. The higher the grayscale value, the brighter the light emitted by the sub-pixel, that is, the brighter the brightness of the sub-pixel, and vice versa. In order to control the brightness of each sub-pixel, the display device uses the SPR algorithm to calculate the grayscale value of each sub-pixel. In low brightness or low grayscale conditions, subtle brightness adjustments can also lead to obvious color changes, which may cause color cast. For example, in the process of testing the screen display of an image, when the grayscale values between adjacent sub-pixels of the same color are large, and these grayscale values are relatively small (also called low grayscale), the displayed image will have a color cast. The color cast phenomenon affects the display quality of the image and reduces the user's viewing experience.
[0040] The embodiment of the present application provides a screen display control method for reducing the degree of color cast of an image, thereby improving the color cast of the image and improving the display quality of the image. Figure 1 , which shows a schematic diagram of the implementation environment of the screen display control method provided in the embodiment of the present application. The implementation environment may include: an electronic device 101 and a display screen 102, and the electronic device 101 and the display screen 102 are connected by wire or wirelessly. Optionally, the display screen 102 may be a screen installed on the electronic device 101, in which case the display screen 102 is a part of the electronic device 101.
[0041] The embodiment of the present application does not limit the type of the electronic device 101, for example, the electronic device 101 may be a terminal. Optionally, the terminal may be any electronic product that can interact with a user through one or more methods such as a keyboard, a touch pad, a touch screen, a remote control, voice interaction, or a handwriting device, such as a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, etc.
[0042] The embodiment of the present application does not limit the type of the display screen 102. For example, the display screen 102 may be a LED (Light Emitting Diode) screen or an LCD (Liquid Crystal Display) screen.
[0043] Those skilled in the art should understand that the above-mentioned electronic device 101 is only an example, and other existing or future computer devices and display screens that are applicable to the present application should also be included in the scope of protection of the present application and are included here by reference.
[0044] See also Figure 2 , Figure 2 The flowchart of a screen display control method provided in an embodiment of the present application is taken as an example to illustrate the method performed by an electronic device, where the electronic device is connected to a display screen. For example, the electronic device may be Figure 1 The electronic device 101 shown in FIG. Figure 1 The display screen 102 is shown. Figure 2 As shown, the screen display control method includes but is not limited to the following steps 201 to 204.
[0045] Step 201 , detecting image data, and recording sub-pixels of the same color in any two adjacent pixels detected as a first sub-pixel and a second sub-pixel.
[0046] The image data is the data of the image to be displayed, which refers to the image to be displayed on the display screen. Detecting the image data is to detect the sub-pixels. The sub-pixels are the units that constitute a complete pixel on the screen. The screen uses multiple sub-pixels to synthesize a complete pixel to achieve richer color display. For example, a pixel may be composed of three sub-pixels: red, green, and blue, or it may be a combination of red, green, blue, and green.
[0047] In an embodiment of the present application, the first sub-pixel and the second sub-pixel refer to two sub-pixels that are adjacent on the screen and emit the same color light. Two sub-pixels that emit the same color light are called same-color sub-pixels, and the same-color sub-pixels detected in any two adjacent pixels are recorded as the first sub-pixel and the second sub-pixel. Adjacent can be adjacent left and right, or adjacent up and down. For example, the first sub-pixel and the second sub-pixel are both red sub-pixels, and the sub-pixels on the screen are arranged as red sub-pixels, green sub-pixels, blue sub-pixels, green sub-pixels, red sub-pixels, etc., and the first red sub-pixel and the second red sub-pixel are the first sub-pixel and the second sub-pixel. In a possible implementation, the first sub-pixel and the second sub-pixel are both blue sub-pixels or green sub-pixels.
[0048] Step 202 , obtaining a first grayscale value and a second grayscale value, wherein the first grayscale value is a grayscale value of a first sub-pixel, and the second grayscale value is a grayscale value of a second sub-pixel.
[0049] Among them, the grayscale value refers to the brightness or color depth of the pixel in the image. In black and white images, the grayscale value usually represents different brightness levels from black to white. In color images, each color channel (such as red, green, and blue) also has a corresponding grayscale value. The first grayscale value is the grayscale value of the first sub-pixel of the screen, and the second grayscale value is the grayscale value of the second sub-pixel of the screen.
[0050] The embodiment of the present application does not limit the method of obtaining grayscale values. For example, among multiple grayscale values corresponding to the image to be displayed, two grayscale values corresponding to the same-color sub-pixels in any two adjacent pixels are determined, which are the first grayscale value and the second grayscale value.
[0051] In a display panel, a pixel structure such as RGBG (Red, Green, Blue, Green) may be used to balance the lifespan of sub-pixels. In the RGBG structure, each pixel is composed of red, green, blue, and an additional green sub-pixel. Using two green sub-pixels instead of one green sub-pixel reduces the area of a single green sub-pixel, so that the lifespan of the green sub-pixel matches that of the red sub-pixel and the blue sub-pixel.
[0052] The SPR algorithm renders each sub-pixel under the RGBG structure to ensure that the image can be displayed normally on the RGBG pixel structure. The present application embodiment does not limit the rendering process. For example, the rendering process may involve a color borrowing process, which is to borrow the light of adjacent sub-pixels of the same color to compensate for the light emitted by the current sub-pixel. Among them, the SPR algorithm is calculated for red sub-pixels and blue sub-pixels.
[0053] Step 203: determining a target compensation coefficient based on the first grayscale value and the second grayscale value.
[0054] In a possible implementation, the process of determining the target compensation coefficient based on the first grayscale value and the second grayscale value includes: determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value; and determining the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0055] The reference compensation coefficient may be a preset value used to adjust the grayscale value difference between adjacent sub-pixels of the same color to improve the color cast. For example, the reference compensation coefficient may be freely set by the user based on experimental data and image analysis, aiming to reduce the degree of color cast while maintaining the overall brightness and color balance of the image.
[0056] In an embodiment of the present application, the influence of the reference compensation coefficient can be dynamically adjusted according to the difference between the first grayscale value and the second grayscale value, that is, its weight can be determined. If the difference between the first grayscale value and the second grayscale value is large, it indicates that two adjacent sub-pixels of the same color have significant differences in brightness or color depth, and a larger compensation is required to adjust the difference between the grayscale values. If the two grayscale values are similar, it indicates that the brightness of two adjacent sub-pixels of the same color is relatively close, and not much compensation is required. Thus, by dynamically adjusting the weight of the reference compensation coefficient, and calculating the target compensation coefficient based on the weight and the preset reference compensation coefficient, more refined and accurate image rendering and display optimization can be achieved.
[0057] In a possible implementation, the process of determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value includes: determining the gap between the first grayscale value and the second grayscale value, the gap being positively correlated with the target weight; determining a reference grayscale value based on the first grayscale value and the second grayscale value, the reference grayscale value being negatively correlated with the target weight; and determining the target weight based on the gap and the reference grayscale value.
[0058] The gap between the first grayscale value and the second grayscale value can be represented by the ratio between the first grayscale value and the second grayscale value. For example, the larger grayscale value between the first grayscale value and the second grayscale value is called max, and the smaller grayscale value between the first grayscale value and the second grayscale value is called min. The gap is min / max, wherein the smaller the min / max ratio is, the larger the gap between the first grayscale value and the second grayscale value is, and the larger the min / max ratio is, the smaller the gap between the first grayscale value and the second grayscale value is. If the min / max ratio is 1, it indicates that there is no gap between the first grayscale value and the second grayscale value.
[0059] In the embodiment of the present application, the reference grayscale value is determined based on the first grayscale value and the second grayscale value. The reference grayscale value is the larger grayscale value (i.e., max) between the first grayscale value and the second grayscale value. The larger grayscale value can indicate the grayscale conditions of the two grayscale values. For example, if the larger grayscale value is a low grayscale, then the smaller grayscale value is also a low grayscale. The embodiment of the present application does not define the range of the low grayscale. For example, a grayscale value less than 30 is considered to be a low grayscale.
[0060] The increase of positive correlation indicates that the gap will lead to an increase of target weight, thereby increasing the influence of reference compensation coefficient on the final compensation result. The increase of negative correlation indicates that the reference grayscale value will lead to a decrease of target weight, thereby weakening the influence of reference compensation coefficient on the final compensation result. Low grayscale is prone to color deviation, and the grayscale values of adjacent sub-pixels of the same color are close and prone to color deviation. That is, the lower the grayscale, the greater the degree of color deviation, the greater the degree of compensation should be, and the greater the gap, the greater the degree of color deviation, and the greater the degree of compensation should be.
[0061] In a possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the gap between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen. For example, the process of determining the target weight based on the gap and the reference grayscale value includes determining the first sub-weight based on the gap according to the following formula: A=1-min / max, where A indicates the first sub-weight, max indicates the reference grayscale value, min indicates another grayscale value, the other grayscale value is a grayscale value other than the reference grayscale value in the first grayscale value and the second grayscale value, and min / max indicates the gap. The second sub-weight is determined based on the reference grayscale value according to the following formula: B=1-max / C, where B indicates the second sub-weight, and C indicates the grayscale value threshold of the screen.
[0062] The first sub-weight is determined based on the gap, which is the ratio between the first grayscale value and the second grayscale value, that is, min / max. Min / max actually represents the relative size of the gap, that is, the degree of difference between the two grayscale values. When the gap increases (that is, min is smaller than max), the value of 1-min / max will increase, which means that the first sub-weight A will also increase. That is, when the difference between the two grayscale values is large, a larger compensation is required to adjust the difference, so the first sub-weight will be set higher.
[0063] The second sub-weight is determined based on the reference grayscale value using the formula B=1-max / C, where B represents the second sub-weight, max represents the reference grayscale value, and C represents the grayscale value threshold of the screen. When the reference grayscale value max is close to the grayscale value threshold C of the screen, the value of 1-max / C will decrease, and the second sub-weight B will also decrease. This is because when the reference grayscale value is high (close to the grayscale value threshold of the screen), the overall brightness is already high, and no compensation is required at this time, so the second sub-weight will be set lower. Different screens have different grayscale value thresholds, and the grayscale value threshold is the maximum grayscale value that the screen can provide. For example, the grayscale value threshold of the screen can be 255, 511, or 1023, etc.
[0064] In a possible implementation, the value of the reference compensation coefficient is greater than 0 and less than 2. The reference compensation coefficient is a preset value used to guide how to adjust the grayscale value difference between adjacent sub-pixels of the same color. In order to maintain the overall brightness and color balance of the image while reducing the color cast phenomenon in specific situations. The value of the reference compensation coefficient is set within a range greater than 0 and less than 2 to ensure that the compensation process is both effective and not excessive. Among them, the reference compensation coefficient between 0 and 1 indicates that the adjustment method is to reduce the grayscale value, and the reference compensation coefficient between 1 and 2 indicates that the adjustment method is to increase the grayscale value. The reference compensation coefficient of 1 indicates that no compensation is made to the grayscale value.
[0065] In a possible implementation, the reference compensation coefficient is determined based on the degree of color deviation of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color deviation. For example, the difference between the value of the reference compensation coefficient and 1 is positively correlated with the degree of color deviation. Among them, the positive correlation between the difference between the value of the reference compensation coefficient and 1 and the degree of color deviation may mean that the absolute value of the difference between the value of the reference compensation coefficient and 1 is positively correlated with the degree of color deviation. Alternatively, when the value of the reference compensation coefficient is between 0 and 1, the difference between the value of the reference compensation coefficient and 1 may be 1-the value of the reference compensation coefficient; when the value of the reference compensation coefficient is between 1 and 2, the difference between the value of the reference compensation coefficient and 1 may be the value of the reference compensation coefficient-1.
[0066] In addition, the size of the difference is positively correlated with the degree of color deviation, which means that the more severe the color deviation, the greater the difference between the reference compensation coefficient and 1, that is, the higher the degree of compensation. The positive correlation ensures that when there is a significant color deviation on the screen, the reference compensation coefficient can provide sufficient compensation to adjust the grayscale value, thereby reducing the color deviation. Conversely, when the degree of color deviation on the screen is mild, the difference between the reference compensation coefficient and 1 is small, that is, the degree of compensation is low, to avoid over-compensation and image distortion.
[0067] Exemplarily, taking the first sub-pixel and the second sub-pixel as red sub-pixels, if the color deviation of the screen is reddish, it is necessary to set the reference compensation coefficient between 0 and 1, so as to reduce the grayscale value of the red sub-pixel, thereby reducing the degree of reddish color deviation, and the higher the degree of reddish deviation, the smaller the reference compensation coefficient, that is, the greater the influence of the reference compensation coefficient on the grayscale value. If the color deviation of the screen is bluish or greenish, it is necessary to set the reference compensation coefficient between 1 and 2, so as to increase the grayscale value of the red sub-pixel, thereby reducing the degree of color deviation, and the higher the degree of color deviation, the larger the reference compensation coefficient, so that the reference compensation coefficient has a greater influence on the grayscale value. In addition, in the embodiment of the present application, the blue sub-pixel and the red sub-pixel can be processed synchronously, that is, the same reference compensation coefficient is used for adjustment.
[0068] For ease of understanding, for example, Figure 3 Taking the target compensation coefficient model schematic diagram shown as an example, the x-axis is the max value of the larger grayscale value of the two sub-pixels in the input data, and the value range is (0, 1023), that is, the grayscale value threshold is 1023. The y-axis is the min / max ratio of the grayscale values of the two sub-pixels, and the value range is (0, 1). The z-axis represents the target compensation coefficient, and the value on the z-axis is the set REG (register) value, that is, the adjustable reference compensation coefficient, and the range is (0, 2). When the max value is the maximum value of 1023 or the min / max value is the maximum value of 1, the coordinate in the z-axis direction is 1, that is, the target compensation coefficient is 1, that is, no compensation is performed.
[0069] Thus, three fixed points are defined, a (0, 1, 1), b (1023, 0, 1), c (1023, 1, 1), and the z-axis coordinates of the three points are all 1. The point corresponding to REG (i.e., point d), whose coordinates are (0, 0, REG), is used to perform linear interpolation with the fixed points in the x-axis and y-axis directions to obtain the surface (i.e., the surface surrounded by a, b, c, and d). The z-axis coordinate corresponding to the point on the surface is the target compensation coefficient. By Figure 3 It can be seen that the larger the input grayscale value or the smaller the grayscale value difference between the two sub-pixels, the smaller the target compensation coefficient is affected by the REG value and the closer it is to 1 (i.e. no compensation). The smaller the input grayscale value or the larger the grayscale value difference between the two sub-pixels, the larger the target compensation coefficient is affected by the REG value.
[0070] based on Figure 3 A schematic diagram of a target compensation coefficient model is shown, and the target compensation coefficient can be determined based on the first grayscale value and the second grayscale value. First, linear interpolation is performed on REG and the y-axis direction, that is, the first sub-weight is determined by the difference, and the first sub-weight is (1-min / max), and the corresponding weight of non-compensation (that is, the target compensation coefficient is 1) is min / max. Therefore, the preliminary compensation coefficient that only considers the ratio under the influence of REG can be obtained by the following formula 1.
[0071]
[0072] Where gain1 is the preliminary compensation coefficient, (1-min / max) / 1 is the weight of REG, and (min / max) / 1 is the weight of 1 (no compensation). REG is the reference compensation coefficient, REG*(1-min / max) / 1 is the influence of the reference compensation coefficient on the preliminary compensation coefficient, and (min / max)*1 / 1 is the influence of 1 (no compensation) on the preliminary compensation coefficient.
[0073] Taking into account the influence of the grayscale value on REG through the preliminary compensation coefficient, the target compensation coefficient can be obtained through the following formula 2 based on formula 1.
[0074]
[0075] Among them, gain2 is the target compensation coefficient, gain1 is the preliminary compensation coefficient, (1023-max) / 1023 is 1-max / C, which is the influence of the grayscale value on REG, and max / 1023 is the weight of 1 (no compensation). In addition, the calculation order of formula 2 and formula 3 can be reversed, that is, the influence of the reference grayscale value on REG is considered first, and then the influence of the ratio on REG is considered.
[0076] Step 204, adjusting the first grayscale value and the second grayscale value according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0077] The target compensation coefficient is determined based on the color cast of the screen, the difference between the first grayscale value and the second grayscale value. The embodiment of the present application does not limit the method of adjusting the first grayscale value and the second grayscale value, for example, the adjustment can be performed by the following formula 3.
[0078] o_data=data_adj*gain2 (Formula 3)
[0079] Wherein, data_adj is the first grayscale value or the second grayscale value, gain2 is the target compensation coefficient, and o_data is the adjusted first grayscale value or the adjusted second grayscale value.
[0080] The display screen is driven by the adjusted first grayscale value and the adjusted second grayscale value to display according to the adjusted first grayscale value and the adjusted second grayscale value. In an embodiment of the present application, the display process may include converting the grayscale value into a voltage or current corresponding to the image displayed on the screen, so as to generate corresponding color and brightness on the screen.
[0081] In summary, the screen display control method provided by the embodiment of the present application compensates for the grayscale values of the same-color sub-pixels in any two adjacent pixels, which may cause color deviation of the image when the grayscale values of the same-color sub-pixels in any two adjacent pixels are large in difference and the grayscale values are small, thereby reducing the degree of color deviation of the image to be displayed. In addition, since the different degrees of influence of the difference value and the reference grayscale value on the reference compensation coefficient are considered respectively when determining the target compensation coefficient, the target compensation coefficient is more in line with the actual display situation, so that the grayscale value adjusted based on the determined target compensation coefficient is also more accurate, which improves the display effect of the image displayed based on the adjusted grayscale value.
[0082] See also Figure 4 , Figure 4 A schematic diagram of the structure of a screen display control device provided in an embodiment of the present application, wherein the screen display control device is applied to a display device, such as Figure 4As shown, the device includes a processing module 401, and the processing module 401 is configured to: detect image data, and record the same-color sub-pixels in any two adjacent pixels detected as the first sub-pixel and the second sub-pixel; obtain a first grayscale value and a second grayscale value, the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel; determine a target compensation coefficient based on the first grayscale value and the second grayscale value; adjust the first grayscale value and the second grayscale value according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to control the screen to display the image to be displayed according to the adjusted first grayscale value and the adjusted second grayscale value.
[0083] In a possible implementation, when determining the target compensation coefficient based on the first grayscale value and the second grayscale value, the processing module 401 is configured to: determine the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value; and determine the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0084] In one possible embodiment, when determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value, the processing module 401 is configured to: determine the gap between the first grayscale value and the second grayscale value, the gap is positively correlated with the target weight; determine the reference grayscale value based on the first grayscale value and the second grayscale value, the reference grayscale value is negatively correlated with the target weight; determine the target weight based on the gap and the reference grayscale value.
[0085] In a possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the gap between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen. For example, the first sub-weight is determined based on the gap according to the following formula: A=1-min / max, where A indicates the first sub-weight, max indicates the reference grayscale value, min indicates another grayscale value, the other grayscale value is a grayscale value other than the reference grayscale value in the first grayscale value and the second grayscale value, and min / max indicates the gap; the second sub-weight is determined based on the reference grayscale value according to the following formula: B=1-max / C, where B indicates the second sub-weight, and C indicates the grayscale value threshold of the screen.
[0086] In a possible implementation manner, the first sub-pixel and the second sub-pixel are both blue sub-pixels or red sub-pixels.
[0087] In a possible implementation manner, the value of the reference compensation coefficient is greater than 0 and less than 2.
[0088] In a possible implementation, the reference compensation coefficient is determined based on the color cast degree of the screen, and the value of the reference compensation coefficient is positively correlated with the color cast degree.
[0089] For ease of understanding, Figure 5 Taking the structural diagram of the processing module shown in FIG. 1 as an example, the screen display control device provided in the embodiment of the present application is illustrated. Figure 5 As shown, the processing module 401 includes a sub-pixel detection module, a sub-pixel rendering module and a low grayscale domain compensation module. Among them, the sub-pixel detection module is used to detect the same-color sub-pixels in any two adjacent pixels in the input data, and the input data is the grayscale values corresponding to multiple sub-pixels. For example, the grayscale values (i.e., the first grayscale value and the second grayscale value) of the same-color sub-pixels in any two left and right adjacent pixels are detected, the size of the first grayscale value and the second grayscale value is determined, and the smaller grayscale value is marked as min, and the larger grayscale value is marked as max. The low grayscale domain compensation module is used to receive the ratio min / max, the maximum value max, the peripheral register REG and some preset parameters (such as grayscale value threshold) from the sub-pixel detection module. Based on the input ratio min / max, the maximum value max and the preset parameters, the target compensation coefficient is determined to compensate the first grayscale value and the second grayscale value of the image.
[0090] The sub-pixel rendering module is used to process image data, for example, to process the grayscale value as a whole based on the overall brightness of the current screen. The compensation process is to use the target compensation coefficient to adjust the data (the first grayscale value and the second grayscale value) processed by the sub-pixel rendering module, output data (i.e., the adjusted first grayscale value and the adjusted second grayscale value), and complete the display.
[0091] It should be noted that the above Figure 4 The screen display control device provided in the embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual functions, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments.
[0092] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device includes a display screen 601 and a screen display control device 602, the screen display control device 602 is used to perform the above Figure 2 Screen display control method provided by method embodiment. Of course, the electronic device may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output, and the electronic device may also include other components for realizing device functions, which will not be described in detail here.
[0093] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor of an electronic device to enable the electronic device to implement any of the above-mentioned screen display control methods.
[0094] In a possible implementation, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc. Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium.
[0095] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs any of the above-mentioned screen display control methods.
[0096] It should be noted that the electronic device in this application may also be referred to as a display device. In addition, the information, data (including but not limited to image data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the grayscale values involved in this application are obtained with full authorization.
[0097] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0098] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A screen display control device, characterized in that: Applied to a display device, the apparatus comprises a processing module, and the processing module is configured to: Detecting the image data, and recording sub-pixels of the same color in any two adjacent pixels detected as a first sub-pixel and a second sub-pixel; Acquire a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel; determining a target compensation coefficient based on the first grayscale value and the second grayscale value; The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
2. The device according to claim 1, characterized in that When determining a target compensation coefficient based on the first grayscale value and the second grayscale value, the processing module is configured as follows: determining a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value; The target compensation coefficient is determined according to the target weight and the reference compensation coefficient.
3. The device according to claim 2, characterized in that When determining a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value, the processing module is configured to: Determine a difference between the first grayscale value and the second grayscale value, wherein the difference is positively correlated with the target weight; Determine a reference grayscale value based on the first grayscale value and the second grayscale value, wherein the reference grayscale value is negatively correlated with the target weight; The target weight is determined based on the gap and the reference grayscale value.
4. The device according to claim 3, characterized in that The target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
5. The device according to any one of claims 1 to 4, characterized in that: The first sub-pixel and the second sub-pixel are both blue sub-pixels or red sub-pixels.
6. The device according to any one of claims 1 to 4, characterized in that: The reference compensation coefficient is determined based on the color deviation degree of the screen, and the value of the reference compensation coefficient is positively correlated with the color deviation degree.
7. A screen display control method, characterized in that: The method comprises: Detecting the image data, and recording sub-pixels of the same color in any two adjacent pixels detected as a first sub-pixel and a second sub-pixel; Acquire a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel; determining a target compensation coefficient based on the first grayscale value and the second grayscale value; The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain an adjusted first grayscale value and an adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
8. The method according to claim 7, characterized in that The determining a target compensation coefficient based on the first grayscale value and the second grayscale value includes: determining a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value; The target compensation coefficient is determined according to the target weight and the reference compensation coefficient.
9. The method according to claim 8, characterized in that The determining a target weight of a reference compensation coefficient based on the first grayscale value and the second grayscale value comprises: Determine a difference between the first grayscale value and the second grayscale value, wherein the difference is positively correlated with the target weight; Determine a reference grayscale value based on the first grayscale value and the second grayscale value, wherein the reference grayscale value is negatively correlated with the target weight; The target weight is determined based on the gap and the reference grayscale value.
10. The method according to claim 9, characterized in that The target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
11. The method according to any one of claims 7 to 10, characterized in that: The first sub-pixel and the second sub-pixel are both blue sub-pixels or red sub-pixels.
12. The method according to any one of claims 7 to 10, characterized in that: The reference compensation coefficient is determined based on the color deviation degree of the screen, and the value of the reference compensation coefficient is positively correlated with the color deviation degree.
13. An electronic device, characterized in that: The electronic device comprises the screen display control device as described in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor of the electronic device, so that the electronic device implements the screen display control method as described in any one of claims 7 to 12.
Citation Information
Patent Citations
Gray scale compensation method, gray scale compensation device and display module
CN110364116A
Display substrate and driving method therefor, and display device
CN110914891A
Compensation method and device for display panel
CN111292701A
Compensation gray scale determination method, device and equipment
CN112530346A
Method and device for improving display PPI, equipment and medium
CN114420027A
Cited By
Method and system for solving low-gray-scale color cast of silicon-based OLED and storage medium
CN120783692A
Pixel rendering method and display device
WO2026179706A1