A method for reducing water ripples in vehicle-mounted full liquid crystal instrument display
Through the GPU identifying and processing the gradient color junction area of the vehicle-mounted full LCD instrument, color statistics and color mixing processing are carried out, the problem of water ripples generated when the vehicle-mounted full LCD instrument displays gradient color is solved, achieving better display effect and GPU performance.
Patent Information
- Application Number
- CN202111469993.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-03
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2041-12-03
Smart Images

Figure CN114119782B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of liquid crystal instrument display, and in particular relates to a display method for reducing water ripples of a vehicle-mounted full liquid crystal instrument. Background Art
[0002] At present, in the automotive electronics industry, in order to achieve a more beautiful effect, designers use complex angle gradient colors when designing. When it involves large-scale color level changes, the automotive-grade LCD screen will produce a water ripple effect, affecting the user experience. At present, most solutions are to use design software to modify the image itself to reduce the change of color level, but this will cause the color of the entire design to be cast, greatly reducing the design quality effect; or adjust the color of the entire progress bar to a darker tone. After testing, dark colors are not easy for the human eye to recognize the water ripple effect, but usually such colors are not acceptable to customers.
[0003] Especially for the following two situations, only the color format of BMP565 can be used to make the water ripple interface display more obvious.
[0004] 1. The static images used when the Android native system is booted can only be in BMP565 format.
[0005] 2. Due to hardware limitations of some platforms, only the BMP565 background can be used.
[0006] Therefore, the problem of water ripple display on vehicle-mounted full LCD instruments is a difficult problem in the industry, and there has been no good solution. Summary of the invention
[0007] The present invention aims to solve the problem that current automotive-grade liquid crystal screens generate water ripples when displaying gradient colors.
[0008] A method for reducing water ripples on a vehicle-mounted full liquid crystal instrument display comprises the following steps:
[0009] S1, the GPU identifies the range of the gradient color boundary area in the current image to be displayed and processed, and performs statistical analysis on the colors in this range; when performing statistical analysis on the colors in the area, a color threshold is set, and the number of colors within the same threshold is counted;
[0010] S2, extracting the color values with the largest number of occurrences and the gradient color boundary line trajectories;
[0011] S3, performing color mixing processing on the extracted multiple color values, where the color mixing processing includes filling color mixing and multiple pixel point color mixing;
[0012] Fill color mixing: add the extracted color values and divide by the quantity to get the average color;
[0013] Pixel color mixing: On the basis of the average color, add upper floating color and lower floating color, and use the upper floating color and lower floating color as multiple mixed colors;
[0014] S4, fill a certain area with the average color along the trajectory of the gradient color intersection;
[0015] The certain area is the area corresponding to the range of n pixels on both sides of the track of the gradient color boundary;
[0016] S5, filling mixed color pixels along the area corresponding to the n pixel ranges on both sides of the gradient color boundary track;
[0017] S6. Use GPU to calculate the fill color of the area and the mixed color pixels of the track fill on the image to be processed, and finally generate a display effect.
[0018] Furthermore, the statistical analysis of colors within the region described in S1 is performed based on the HSB space.
[0019] Furthermore, the gradient color boundary area is an area within the floating range of the S and B values.
[0020] Furthermore, the floating range of the S and B values is 3 to 40, that is, the floating range of S and B is between 3 and 40.
[0021] Furthermore, when setting the threshold of each color, H is set to a fixed value, and the upper and lower floating thresholds of S and B are set to 10.
[0022] Furthermore, the upper floating color is a color whose S and B values are increased by 1 to m on the basis of the average color, and the lower floating color is a color whose S and B values are reduced by 1 to m on the basis of the average color.
[0023] Furthermore, m=5.
[0024] Furthermore, the certain area in S4 is an area corresponding to 10 pixels on both sides of the track of the gradient color boundary.
[0025] Furthermore, in S5, the area corresponding to the n pixel ranges on both sides of the gradient color boundary track is filled with mixed color pixels in a manner of filling a mixed color pixel every other pixel.
[0026] Furthermore, the process of filling the mixed color pixel points in the area corresponding to the n pixel ranges on both sides of the gradient color boundary track in S5 is as follows:
[0027] For the first row of pixels within the n pixel range on both sides of the gradient color boundary track, the first row 1,3,5,7,9,... is filled with upper floating color 1, and the second row 2,4,6,8,10,... is filled with lower floating color m; the third row 1,3,5,7,9,... is filled with upper floating color 2, and the fourth row 2,4,6,8,10,... is filled with lower floating color m-2; the fifth row 1,3,5,7,9,... is filled with upper floating color 3, and the sixth row 2,4,6,8,10,... is filled with lower floating color m-3; and so on, filling to 2m-1 rows 1,3,5,7,9,... with upper floating color m, and the 2mth row 2,4,6,8,10,... is filled with lower floating color 1;
[0028] The 2m+1th row is filled in the same way as the 1st row, the 2m+2th row is filled in the same way as the 2nd row, and so on.
[0029] Beneficial effects of the present invention:
[0030] In response to the problem that the LCD display effect is not ideal and the water ripple effect is very strong as reported by users, the present invention proposes a display method for reducing the water ripples of the vehicle-mounted full LCD instrument. Through repeated tests, the present invention adjusts the area calculated by the software and the mixed color method to improve the display of water ripples of the vehicle-mounted full LCD instrument. At the same time, the present invention is implemented through software code, without additional cost expenditure, and it has been verified that the present invention has no serious consumption of GPU performance: when the GPU data is printed on the device, when the operation of the present invention is not adopted, the operation of the GPU of the displayed picture is about 46%, and when the present invention is used to light up for 24 hours, the operation of the GPU is about 47%. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of the present invention;
[0032] Figure 2 Schematic diagram of determining S and B regions for fixed H;
[0033] FIG. 3( a ) is an original image before using the present invention, and FIG. 3( b ) is an effect image after using the present invention. DETAILED DESCRIPTION
[0034] Specific implementation method 1: Combination Figure 1 To explain this embodiment,
[0035] A method for reducing the display of water ripples on a vehicle-mounted full liquid crystal instrument, the specific steps are as follows:
[0036] S1, the GPU identifies the range of the gradient color boundary area in the image that needs to be displayed and processed, and performs statistical analysis on the colors in this range;
[0037] The areas in the image can be divided into static areas and dynamic areas.
[0038] The static area is the range given by the designer during design, such as a rectangular area consisting of the coordinates (X, Y) as the origin, N pixels on the right, and M pixels on the bottom. The range is usually defined by the static area. In the static area, the color change of the pixel fluctuates within a certain range of S and B in the HSB space, for example, S and B fluctuate between 3 and 40. If so, the area is a gradient color area.
[0039] The dynamic area is determined based on the range of screen pixels: for example, for a 1920*720 pixel LCD screen, a total of 100 points are extracted, 10 points horizontally with a spacing of 192 pixels, and 10 points vertically with a spacing of 72 pixels, 10*10=100 points. Based on these 100 points, the color changes of the 20 adjacent pixels of each point, that is, 40*40=1600 pixels, are calculated to see whether they float within a certain range of S and B in the HSB space, for example, the fluctuation of S and B is between 3 and 40. If so, the area is a gradient color area.
[0040] Based on HSB, when statistically analyzing the colors within the area, the threshold is set to 10, and the number of colors within the same threshold is counted; the selected area value is explained by the HSB value, and the threshold is set to 10. Figure 2 For example, H is a fixed value, S is a range of 56 to 76, and B is a range of 69 to 89.
[0041] The threshold can be adjusted according to the specific situation. For example, if the color tone of the overall design is relatively consistent, a normal threshold can be defined. If the color tone of the overall design uses multiple colors or complex lighting effects, the threshold needs to be increased. The hardware capabilities must also be considered when counting the number of colors. For example, N color values are randomly selected in the area, and the upper and lower 10 color values of the S and B channels are used as the thresholds. When the hardware capabilities are weak, N=5, and when the hardware capabilities are strong, N=10.
[0042] This implementation is based on the processing of HSB values, which is actually the same as RGB, similar to each RGB channel being distinguished by 10 "levels" of brightness, but the HSB code is better.
[0043] S2, extracting the color values with the largest number of occurrences and the gradient color boundary line trajectories;
[0044] S3, performing color mixing processing on the extracted multiple color values, where the color mixing processing includes filling color mixing and multiple pixel point color mixing;
[0045] Fill color mixing: add the extracted color values and divide by the quantity to get the average color;
[0046] Pixel color mixing: On the basis of the average color, add upper floating color and lower floating color, and use the upper floating color and lower floating color as multiple mixed colors;
[0047] In this implementation, the upward floating color is when S and B increase by 1 to 5; the downward floating color is when S and B decrease by 1 to 5; the range of the upward and downward floating will also increase according to the capability of the hardware platform.
[0048] S4, fill a certain area with the average color along the trajectory of the gradient color intersection;
[0049] In this implementation, the certain area refers to the area corresponding to the range of n pixels on both sides of the track of the gradient color boundary. In fact, the specific value of the number of pixels on both sides of the track needs to be adjusted according to the resolution of the LCD screen; since the shape of the gradient color area is relatively complex, it is difficult to extract the corresponding gradient color boundary area. After repeated research and experiments in the present invention, the certain area is finally determined to be the area corresponding to 10 pixels on both sides of the track of the gradient color boundary.
[0050] S5, filling the area corresponding to the n pixel range on both sides of the gradient color boundary track (including the track line) with mixed color pixels, and the filling rule is to fill one mixed color pixel every other pixel, and the filling is arranged in a circular order;
[0051] Arrange in sequence in a cycle: based on the upper floating color and the lower floating color, for example, the threshold of the upper and lower floating colors is defined as 5. To simplify the explanation, assume that the threshold of the upper and lower floating colors is 3, that is, 6 pixels are mixed. Fill them according to this rule. The first row 1, 3, 5, 7, 9, ... are filled with upper floating color 1, the second row 2, 4, 6, 8, 10, ... are filled with lower floating color 3, the third row 1, 3, 5, 7, 9, ... are filled with upper floating color 2, the fourth row 2, 4, 6, 8, 10, ... are filled with lower floating color 2, the fifth row 1, 3, 5, 7, 9, ... are filled with upper floating color 3, the sixth row 2, 4, 6, 8, 10, ... are filled with lower floating color 1, the seventh row is the same as the first row, the eighth row is the same as the second row, and so on.
[0052] S6. The filling color (average color) of the area and the mixed color pixel points of the track filling are calculated by GPU on the image to be processed, and finally a display effect is generated. Compared with the effect before processing, the water ripple display on the vehicle-mounted full LCD instrument will be significantly weakened, as shown in Figure 3(a) and Figure 3(b), where Figure 3(a) is the original image without using the present invention, and Figure 3(b) is the effect image after using the present invention.
[0053] In response to the problem that the LCD display effect is not ideal and the water ripple effect is very strong as reported by users, the present invention proposes a display method for reducing the water ripples of the vehicle-mounted full LCD instrument. Through repeated tests, the present invention adjusts the area calculated by the software and the mixed color method to improve the display of water ripples of the vehicle-mounted full LCD instrument. At the same time, the present invention is implemented through software code, without additional cost expenditure, and it has been verified that the present invention has no serious consumption of GPU performance: when the GPU data is printed on the device, when the operation of the present invention is not adopted, the operation of the GPU of the displayed picture is about 46%, and when the present invention is used to light up for 24 hours, the operation of the GPU is about 47%.
Claims
1. A method for reducing the water ripples of a vehicle-mounted full liquid crystal instrument display, characterized in that: The following steps are involved: S1, the GPU identifies the range of the gradient color boundary area in the current image to be displayed and processed, and performs statistical analysis on the colors in this range; when performing statistical analysis on the colors in the area, a color threshold is set, and the number of colors within the same threshold is counted; S2, extracting the color values with the largest number of occurrences and the gradient color boundary line trajectories; S3, performing color mixing processing on the extracted multiple color values, where the color mixing processing includes filling color mixing and multiple pixel point color mixing; Fill color mixing: add the extracted color values and divide by the quantity to get the average color; Pixel color mixing: On the basis of the average color, add upper floating color and lower floating color, and use the upper floating color and lower floating color as multiple mixed colors; S4, fill a certain area with the average color along the trajectory of the gradient color intersection; The certain area is the area corresponding to the range of n pixels on both sides of the track of the gradient color boundary; S5, filling mixed color pixels along the area corresponding to the n pixel ranges on both sides of the gradient color boundary track; S6. Use GPU to calculate the fill color of the area and the mixed color pixels of the track fill on the image to be processed, and finally generate a display effect.
2. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 1, characterized in that: The statistical analysis of colors within the region described in S1 is performed based on the HSB space.
3. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 2, characterized in that: The gradient color boundary area is an area within the range where the S and B values float.
4. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 3, characterized in that: The floating range of the S and B values is 3 to 40, that is, the floating range of S and B is 3 to 40.
5. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 4, characterized in that: When setting the threshold for each color, set H to a fixed value and set the upper and lower floating thresholds of S and B to 10.
6. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 5, characterized in that: The upper floating color is a color in which the values of S and B are increased by 1 to m based on the average color, and the lower floating color is a color in which the values of S and B are reduced by 1 to m based on the average color.
7. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 6, characterized in that: m=5。 8. The method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 7, characterized in that: The certain area in S4 is an area corresponding to 10 pixels on both sides of the track of the gradient color boundary.
9. A method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 6, 7 or 8, characterized in that: The method of filling the mixed color pixel points in the area corresponding to the n pixel ranges on both sides of the gradient color boundary track in S5 is to fill a mixed color pixel point every other pixel.
10. A method for reducing water ripples in a vehicle-mounted full liquid crystal instrument display according to claim 9, characterized in that: The process of filling the mixed color pixel points in the area corresponding to the n pixel ranges on both sides of the gradient color boundary track in S5 is as follows: For the first row of pixels within the n pixel range on both sides of the gradient color boundary track, the first row 1,3,5,7,9,... is filled with upper floating color 1, and the second row 2,4,6,8,10,... is filled with lower floating color m; the third row 1,3,5,7,9,... is filled with upper floating color 2, and the fourth row 2,4,6,8,10,... is filled with lower floating color m-2; the fifth row 1,3,5,7,9,... is filled with upper floating color 3, and the sixth row 2,4,6,8,10,... is filled with lower floating color m-3; and so on, filling to 2m-1 rows 1,3,5,7,9,... with upper floating color m, and the 2mth row 2,4,6,8,10,... is filled with lower floating color 1; The 2m+1th row is filled in the same way as the 1st row, the 2m+2th row is filled in the same way as the 2nd row, and so on.
Citation Information
Patent Citations
Method for improving atomic quality of force microscope images
CN105608682A
GPU-based color gradual change linear map symbol drafting method
CN105719230A