Method for enhancing screen display content and storage medium

CN122598575APending Publication Date: 2026-08-18ECARX (HUBEI) TECHCO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610904334.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-23
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0004]有鉴于此,本申请的目的在于提出一种屏幕显示内容的增强方法及存储介质,在保证硬件成本的同时与系统可靠性的同时,最大化提升感知对比度,有效解决强光下屏幕内容不可见的问题,并且,避免与硬件原始的背光控制逻辑冲突

Benefits of technology

[0011] As can be seen from the above, the screen display content enhancement method provided in this application obtains the current ambient illuminance and the current backlight brightness of the screen. In response to the current ambient illuminance being greater than a preset enhancement trigger threshold and the current backlight brightness being greater than a preset level threshold, the method determines the foreground and background pixels in the screen's display image. Based on the current ambient illuminance, it determines the foreground brightness transformation coefficient and the background brightness transformation coefficient. Then, it uses the foreground brightness transformation coefficient to adjust the brightness of the foreground pixels upward and uses the background brightness transformation coefficient to adjust the brightness of the background pixels downward, thereby increasing the brightness difference between the foreground and background and increasing the perceived contrast. This effectively solves the problem of screen content being invisible under strong light. This method does not require changes to the screen hardware configuration, has low implementation cost, and can ensure system reliability. In addition, this method triggers foreground and background brightness adjustment when the current ambient illuminance is greater than the preset enhancement trigger threshold and the current backlight brightness is already at full capacity. Through dual-condition triggering, it ensures that the original backlight control logic of the screen is prioritized in weak sunlight or when the backlight is not fully on, avoiding conflicts with the original backlight control logic. This avoids the simultaneous superposition of the original backlight control and foreground and background brightness adjustment, which would lead to overexposure of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122598575A_ABST
    Figure CN122598575A_ABST
Patent Text Reader

Abstract

The application provides a method for enhancing screen display content and a storage medium. The method obtains current ambient illumination and current backlight brightness of a screen. In response to the current ambient illumination being greater than a preset enhancement trigger threshold and the current backlight brightness being full, foreground pixels and background pixels in a display image of the screen are determined. Foreground brightness transformation coefficients and background brightness transformation coefficients are determined according to the current ambient illumination. The brightness of the foreground pixels is raised using the foreground brightness transformation coefficients, and the brightness of the background pixels is lowered using the background brightness transformation coefficients, so as to expand the brightness difference between the foreground and the background, increase the perceived contrast, effectively solve the problem that screen content is invisible under strong light, and avoid conflict with original backlight control logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to a method for enhancing screen display content and a storage medium. Background Technology

[0002] With the rapid development of smart cockpits, in-vehicle central control screens, instrument panel screens, and HUDs (Head-Up Displays) have become the core entry points for drivers to obtain critical driving data such as navigation guidance, vehicle speed information, and ADAS (Advanced Driver Assistance System) warnings. Screen readability is directly related to driving safety. Currently, the peak backlight brightness of mainstream in-vehicle screens is 1000-2000 cd / m², and they are generally equipped with ambient light sensors to achieve automatic adjustment of backlight brightness.

[0003] However, solutions that automatically adjust backlight using ambient light sensors increase backlight brightness in strong ambient light. However, due to hardware limitations in backlighting, this brightness cannot be increased further under strong sunlight, leading to a severe degradation in perceived contrast, making screen content almost invisible. Furthermore, reducing screen reflection through physical coatings like anti-glare or anti-reflective films only reduces reflectivity by 3%–5%, failing to fundamentally solve the problem. Upgrading the high-brightness backlight hardware requires higher-specification backlight components, which is extremely costly and generates significant heat, impacting system reliability. Summary of the Invention

[0004] In view of this, the purpose of this application is to propose a method and storage medium for enhancing screen display content, which maximizes the perceived contrast while ensuring hardware cost and system reliability, effectively solves the problem of screen content being invisible under strong light, and avoids conflict with the original backlight control logic of the hardware.

[0005] To achieve the above objectives, this application provides a method for enhancing screen display content, comprising:

[0006] Get the current ambient light level and the current backlight brightness of the screen;

[0007] In response to the current ambient illuminance being greater than a preset enhancement trigger threshold, and the current backlight brightness being fully utilized, the foreground pixels and background pixels in the displayed image on the screen are determined.

[0008] Determine the foreground brightness transformation coefficient and the background brightness transformation coefficient based on the current ambient illuminance;

[0009] The brightness of the foreground pixel is increased based on the foreground brightness transformation coefficient, and the brightness of the background pixel is decreased based on the background brightness transformation coefficient, so as to increase the perceived contrast of the displayed image.

[0010] For the same purpose, embodiments of this application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the screen display content enhancement method provided in any embodiment of this application.

[0011] As can be seen from the above, the screen display content enhancement method provided in this application obtains the current ambient illuminance and the current backlight brightness of the screen. In response to the current ambient illuminance being greater than a preset enhancement trigger threshold and the current backlight brightness being greater than a preset level threshold, the method determines the foreground and background pixels in the screen's display image. Based on the current ambient illuminance, it determines the foreground brightness transformation coefficient and the background brightness transformation coefficient. Then, it uses the foreground brightness transformation coefficient to adjust the brightness of the foreground pixels upward and uses the background brightness transformation coefficient to adjust the brightness of the background pixels downward, thereby increasing the brightness difference between the foreground and background and increasing the perceived contrast. This effectively solves the problem of screen content being invisible under strong light. This method does not require changes to the screen hardware configuration, has low implementation cost, and can ensure system reliability. In addition, this method triggers foreground and background brightness adjustment when the current ambient illuminance is greater than the preset enhancement trigger threshold and the current backlight brightness is already at full capacity. Through dual-condition triggering, it ensures that the original backlight control logic of the screen is prioritized in weak sunlight or when the backlight is not fully on, avoiding conflicts with the original backlight control logic. This avoids the simultaneous superposition of the original backlight control and foreground and background brightness adjustment, which would lead to overexposure of the image. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is an EPCR degradation curve under varying irradiance provided in this application embodiment;

[0014] Figure 2 This is a flowchart of a method for enhancing screen display content provided in an embodiment of this application;

[0015] Figure 3 This is a schematic diagram illustrating human eye-perceived contrast under different processing schemes provided in the embodiments of this application;

[0016] Figure 4 This is an architecture diagram of an enhanced screen display content system provided in an embodiment of this application;

[0017] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] Before providing a detailed explanation of the screen display content enhancement method provided in the embodiments of this application, the technical problem solved by this method will be explained first.

[0021] Existing technologies typically employ an ALS (Ambient Light Sensor) to collect real-time ambient light levels within the cabin, and the vehicle's main control chip dynamically adjusts the power of the screen's backlight LEDs based on the light intensity. This method can increase backlight brightness in strong outdoor light conditions and decrease it in weak outdoor light conditions.

[0022] However, in strong sunlight (indoor illuminance in a car can reach 80,000–120,000 lux on sunny days), due to the hardware limitations of backlighting, it is impossible to improve screen readability by increasing backlight brightness. The screen surface experiences specular reflection from ambient light, leading to a severe degradation of the Effective Perceptual Contrast Ratio (EPCR). EPCR represents the actual contrast between light and dark areas of the screen as perceived by the human eye and is a core indicator for measuring whether the human eye can clearly see the content on the car's infotainment screen under strong light. The calculation formula is as follows:

[0023] ;

[0024] In the formula, The native brightness of the brightest pixel on the screen (unit: cd / m²) 2 ), which is the brightness of the white highlight area output by the screen backlight itself, and the brightness of the white point of the screen when ambient light is off; The native black level brightness of the screen (unit: cd / m²) 2 This refers to the basic light leakage brightness when the LCD screen is completely black; Ambient illuminance (unit: lux) is the intensity of sunlight incident on the screen surface as measured by ALS. The reflectivity of the screen cover (dimensionless, 0~1) is the reflectivity of the vehicle's glass panel. For optical Lambert radiation conversion factor; Represents the equivalent brightness of ambient reflection (unit: cd / m²) 2 ).

[0025] For example, in a scenario with strong midday sunlight, Take 1500 cd / m 2 (Backlight fully loaded) Take 100,000 lux. Taking a value of 0.03, the equivalent ambient reflectivity can be calculated using the above formula: 100000 × 0.03 / 955cd / m 2 In the dark room (1500+0) / (1+0) 1500:1, under strong light (1500+955) / (1+955) 2.56:1. The human eye can perceive screen content at a contrast ratio of 3:1, but under strong light, the EPCR drops to 2.56:1, making the screen content almost invisible to the user.

[0026] Figure 1 This application provides an embodiment of an EPCR degradation curve under varying irradiance, demonstrating... Take 1500 cd / m 2 , The relationship between EPCR and ambient illuminance at 0.03 is shown. The horizontal axis represents ambient illuminance (in klux), and the vertical axis represents effective perceived contrast (EPCR). As can be seen from the figure, the contrast threshold for human eye recognition is 3:1. However, as ambient illuminance increases, effective perceived contrast decreases significantly. In particular, when the ambient illuminance reaches 78 klux, the contrast falls below the recognition threshold and becomes an unreadable area.

[0027] Therefore, in order to solve the above problems, this application provides a method for enhancing screen display content. When the current ambient illuminance is greater than a preset enhancement trigger threshold and the current backlight brightness is already at full capacity, the method triggers segmented bidirectional brightness transformation to increase the brightness of the foreground pixels, decrease the brightness of the background pixels, expand the brightness difference between the foreground and the background, improve the perceived contrast, and ensure the visibility of the screen content.

[0028] Figure 2 This is a flowchart illustrating a method for enhancing screen display content according to an embodiment of this application. This method can be executed by a device for enhancing screen display content, which can be integrated into an electronic device via hardware and / or software. Figure 2 As shown, the method provided in this application embodiment includes the following steps:

[0029] S110: Obtain the current ambient light level and the current backlight brightness of the screen.

[0030] The current ambient illuminance can be obtained in real time by an ambient light sensor; the range of the ambient light sensor can be between 0 and 150,000 lux, and the sampling rate is ≥ 10Hz.

[0031] The backlight brightness of a screen can be described using brightness levels, ranging from 0% to 100%, to reflect the backlight brightness. Dividing the backlight brightness by the screen's physical maximum brightness yields the brightness level. The current backlight brightness can be described using the screen backlight PWM (Pulse Width Modulation) level, obtained in real-time by the backlight detection unit, with a value ranging from 0% to 100%.

[0032] S120. In response to the current ambient illuminance being greater than a preset enhanced trigger threshold and the current backlight brightness being fully loaded, the foreground and background pixels in the displayed image on the screen are determined.

[0033] Specifically, this application embodiment sets up a dual-condition triggering logic. When the current ambient illuminance is greater than a preset enhancement trigger threshold and the current backlight brightness is already at full capacity, a segmented enhancement process is triggered to adjust the brightness of the foreground and background separately. The preset enhancement trigger threshold can be a pre-set critical value for the ambient illuminance used to trigger segmented enhancement, such as 10000 lux; the current backlight brightness being at full capacity can be defined as the screen backlight level exceeding a preset level threshold, which can be a pre-set critical value for the backlight level used to trigger segmented enhancement, such as 95%.

[0034] It should be noted that existing ALS solutions only use illuminance as a single trigger condition, increasing backlight brightness when ambient illuminance increases. Unlike existing solutions, this application's embodiment triggers a segmented enhancement process when both the backlight level and ambient illuminance exceed the threshold. This avoids directly performing segmented enhancement in low light or weak sunlight conditions, thus preventing overexposure and color distortion caused by superimposing with the original ALS backlight adjustment. Furthermore, it avoids performing segmented enhancement directly when the backlight is not fully turned on, prioritizing hardware-based backlight adjustment to avoid consuming image processing computing power and avoiding logical conflicts between the two brightness adjustment systems, thereby achieving the goal of optimizing power consumption and image quality balance.

[0035] Specifically, when the ambient illuminance exceeds the preset enhancement trigger threshold and the current backlight brightness is already at full capacity, a segmented enhancement process can be triggered. The core of this process is to raise the upper limit of the output brightness of bright pixels to increase the effective brightness of the bright areas of the image, while lowering the lower limit of the output brightness of dark pixels to reduce the effective brightness of the dark areas of the image. This achieves the goal of simultaneously expanding the difference between light and dark areas, improving the effective contrast for the human eye, and solving the problem of screens appearing washed out and difficult to see in strong light.

[0036] First, in the segmented enhancement process, it is necessary to determine the foreground pixels and background pixels in the displayed image on the screen. Foreground pixels can be understood as luminance pixels (or bright pixels) in the displayed image, and background pixels can be understood as dark pixels (or dark-colored pixels) in the displayed image.

[0037] For example, a pre-set foreground / background boundary value can be obtained, and pixels with brightness greater than the foreground / background boundary value can be determined as foreground pixels, while pixels with brightness less than or equal to the foreground / background boundary value can be determined as background pixels, so as to automatically divide the entire display image into foreground and background.

[0038] Considering that the proportion of bright and dark pixels varies in different types of display content, for example, navigation maps consist of a large area of ​​dark background and white road text, with a high proportion of dark areas, video media has a uniform distribution of light and dark, and instrument interfaces consist of a black background and bright icons, with a concentrated proportion of brightness, in order to avoid using fixed values ​​to divide the foreground and background, which would cause areas that should be brightened to be classified as dark areas, this application embodiment can dynamically determine the foreground and background boundary value used to divide the foreground and background according to the displayed image, ensuring that segmented enhancement can accurately match the screen content.

[0039] In some embodiments, determining foreground and background pixels in a displayed image on the screen includes the following steps:

[0040] Step A1: Determine the brightness histogram of the displayed image, and determine the foreground-background boundary value of the displayed image based on the brightness histogram;

[0041] Step A2: For the displayed image, pixels with brightness greater than the foreground-background boundary value are identified as foreground pixels, and pixels with brightness less than or equal to the foreground-background boundary value are identified as background pixels.

[0042] Specifically, in step A1, the pixel brightness of the displayed image can be normalized to discrete gray levels, such as [0, 255], for a total of 256 levels; then, the number of pixels corresponding to each gray value in the displayed image can be counted, as shown in the following formula:

[0043] ;

[0044] In the formula, To display the total number of pixels in the image, Let i be the number of pixels corresponding to the i-th grayscale value. The value range is [0, 255].

[0045] After obtaining the number of pixels corresponding to each grayscale value, the probability of each grayscale value occurring can be determined based on the number of pixels corresponding to each grayscale value and the total number of pixels in the displayed image, thereby obtaining the brightness histogram of the displayed image, as shown in the following formula:

[0046] ;

[0047] In the formula, Let be the probability of the i-th gray value appearing, satisfying .

[0048] Furthermore, the foreground-background boundary value used to separate the foreground and background can be determined using a brightness histogram.

[0049] Regarding step A1 above, in one specific implementation, determining the foreground-background boundary value of the displayed image based on the luminance histogram includes the following steps:

[0050] Step A11: Determine the probability of occurrence of the brightness value of each pixel based on the brightness histogram;

[0051] Step A12: Obtain each candidate boundary value. For each candidate boundary value, divide the displayed image into foreground and background based on the candidate boundary value, and determine the proportion of foreground pixels, the proportion of background pixels, the average brightness of foreground pixels, and the average brightness of background pixels based on the probability of occurrence of the brightness value of each pixel.

[0052] Step A13: Determine the inter-class variance between the foreground and background based on the foreground pixel ratio, background pixel ratio, average brightness of foreground pixels, and average brightness of background pixels;

[0053] Step A14: Among all candidate boundary values, the candidate boundary value with the largest inter-class variance is determined as the foreground / background boundary value.

[0054] In step A11, the probability of each gray value appearing in the brightness histogram can be used to linearly convert each gray value into physical brightness, thus obtaining the probability of each pixel's brightness value appearing.

[0055] Furthermore, in step A12, all predetermined candidate boundary values ​​can be obtained, and then each candidate boundary value can be traversed. For example, the candidate boundary values ​​can include all brightness values. In order to further reduce computing power, the search interval can be narrowed according to the brightness distribution of the displayed image.

[0056] Specifically, for each candidate boundary value, the displayed image can be segmented using the candidate boundary value to identify pixels whose brightness exceeds the candidate boundary value as foreground pixels. Then, the proportion of foreground pixels is obtained by accumulating the probabilities of all brightness values ​​exceeding the candidate boundary value, as shown in the following formula:

[0057] ;

[0058] In the formula, Candidate boundary value, For candidate boundary values The proportion of foreground pixels below Index of brightness value Represents brightness value The probability of its occurrence.

[0059] Furthermore, pixels whose brightness does not exceed the candidate threshold value are identified as background pixels. Then, the probability of occurrence of all brightness values ​​that do not exceed the candidate threshold value is accumulated to obtain the background pixel ratio, as shown in the following formula:

[0060] ;

[0061] In the formula, For candidate boundary values Background pixel percentage This is the maximum brightness value.

[0062] Furthermore, by combining the proportion of foreground pixels and the probability of occurrence of all brightness values ​​exceeding the candidate threshold, the brightness of all foreground pixels is averaged to obtain the average brightness of the foreground pixels; similarly, by combining the proportion of background pixels and the probability of occurrence of all brightness values ​​not exceeding the candidate threshold, the brightness of all background pixels is averaged to obtain the average brightness of the background pixels, as shown in the following formula:

[0063] , ;

[0064] In the formula, For candidate boundary values Average brightness of the foreground pixels below For candidate boundary values Average brightness of background pixels.

[0065] Furthermore, in step A13, the inter-class variance between the foreground and background can be determined by the foreground pixel ratio, background pixel ratio, average brightness of foreground pixels, and average brightness of background pixels. This inter-class variance reflects the difference between foreground and background pixels. The larger the inter-class variance, the greater the brightness difference between bright and dark pixels, and the better the segmentation effect. For example, the inter-class variance is shown in the following formula:

[0066] ;

[0067] In the formula, Candidate boundary value Inter-class variance Candidate boundary value The proportion of foreground pixels below Candidate boundary value Background pixel percentage Candidate boundary value Average brightness of the foreground pixels below Candidate boundary value Average brightness of background pixels.

[0068] After iterating through each candidate boundary value and obtaining the inter-class variance under each candidate boundary value, in step A14, the candidate boundary value that maximizes the inter-class variance can be selected from all candidate boundary values, thereby obtaining the foreground-background boundary value.

[0069] Steps A11-A14 above involve iterating through each candidate boundary value and calculating the variance between the bright and dark groups of pixels after segmentation according to the candidate boundary value. The candidate boundary value corresponding to the maximum value of the inter-class variance is then taken as the foreground-background boundary value, which can accurately determine the foreground-background boundary value. This method has low computational overhead, can ensure the efficiency of dynamic foreground-background segmentation, and is suitable for real-time frame processing of vehicle systems.

[0070] After obtaining the foreground-background boundary value, in step A2, for each pixel in the displayed image, the brightness of the pixel can be compared with the foreground-background boundary value. If the brightness is greater than the foreground-background boundary value, the pixel is determined as a foreground pixel; if the brightness is less than or equal to the foreground-background boundary value, the pixel is determined as a background pixel.

[0071] Steps A1-A2 above dynamically determine the foreground-background boundary value by displaying the image, which avoids pulling down the brightness of areas that should be brightened and raising the brightness of areas that should be darkened, thus enabling segmented enhancement to accurately match the content of the image.

[0072] In addition to using pixel brightness values ​​as parameters to distinguish foreground and background, we can also introduce UI (User Interface) layer metadata tags (composites mark foreground or background semantics during the rendering stage) to determine foreground and background pixels. Alternatively, we can combine a lightweight semantic segmentation model (inference latency < 2ms) to determine foreground and background pixels.

[0073] S130. Determine the foreground brightness transformation coefficient and background brightness transformation coefficient based on the current ambient illuminance.

[0074] In the segmented enhancement process, in addition to determining the foreground and background pixels in the displayed image on the screen, it is also necessary to determine the brightness transformation coefficients corresponding to the foreground pixels, i.e., the foreground brightness transformation coefficients, and the brightness transformation coefficients corresponding to the background pixels, i.e., the background brightness transformation coefficients, so as to achieve segmented brightness transformation through the foreground brightness transformation coefficients and the background brightness transformation coefficients.

[0075] Specifically, the foreground brightness transformation coefficient and background brightness transformation coefficient can be dynamically determined by the current ambient illuminance. The higher the current ambient illuminance, the smaller the foreground brightness transformation coefficient, which means the foreground pixels are brighter. The larger the background brightness transformation coefficient, which means the background pixels are darker.

[0076] For example, the difference between the current ambient illuminance and the preset enhancement trigger threshold can be calculated, and then the foreground brightness transformation coefficient and the background brightness transformation coefficient can be determined based on the difference. The larger the difference, the smaller the foreground brightness transformation coefficient and the larger the background brightness transformation coefficient.

[0077] In one specific implementation, determining the foreground brightness transformation coefficient and the background brightness transformation coefficient based on the current ambient illuminance includes the following steps:

[0078] Step B1: Obtain the reference brightness coefficient, reference darkness coefficient, preset illuminance variation range, and maximum coefficient adjustment amount;

[0079] Step B2: Determine the illuminance difference between the current ambient illuminance and the preset enhanced trigger threshold, and determine the current coefficient adjustment amount based on the illuminance difference, the preset illuminance change range, and the maximum coefficient adjustment amount;

[0080] Step B3: Adjust the reference bright part coefficient according to the current coefficient adjustment amount to obtain the foreground brightness transformation coefficient; adjust the reference dark part coefficient according to the current coefficient adjustment amount to obtain the background brightness transformation coefficient.

[0081] In step B1, the reference brightness coefficient can be a pre-set reference Gamma coefficient for bright pixels, with an initial value in the absence of strong light, such as 1.0; the reference darkness coefficient can be a pre-set reference Gamma coefficient for dark pixels, with an initial value in the absence of strong light, such as 1.0. The preset illuminance variation range can be a pre-set illuminance variation adjustment range, such as a preset illuminance variation range of 90,000 lux for 10,000~100,000 lux. The maximum coefficient adjustment amount can be a pre-set maximum adjustment range of the Gamma coefficient.

[0082] Specifically, in step B2, the illuminance difference between the current ambient illuminance and the preset enhanced trigger threshold can be calculated, and then the ratio between the illuminance difference and the preset illuminance change range can be calculated. Combining the ratio with the maximum coefficient adjustment amount, the current coefficient adjustment amount can be determined.

[0083] After obtaining the current coefficient adjustment amount, in step B3, the current coefficient adjustment amount can be subtracted from the reference bright area coefficient to obtain the foreground brightness transformation coefficient, and the current coefficient adjustment amount can be superimposed on the reference dark area coefficient to obtain the background brightness transformation coefficient. As shown in the following formula:

[0084] ;

[0085] ;

[0086] In the formula, Foreground brightness transformation coefficient, This is the background brightness transformation coefficient; The maximum adjustment value can be set to 0.4; Given the current ambient light level, To preset the enhanced trigger threshold, Preset the illuminance variation range; , is a saturation clamping function, representing the clamping of the independent variable Limiting the parameter to the [0,1] range prevents it from exceeding the limit; here, it means... Restricted to the interval [0,1]; This represents the current coefficient adjustment amount; , These are the reference highlight coefficient and the reference shadow coefficient, respectively, which can be set to 1.0 here.

[0087] As can be seen from the above formula, when the current ambient illuminance does not reach the preset enhancement trigger threshold, ,and then , , At this point, segmented enhancement degenerates into linear mapping, meaning no image enhancement is performed, and only native backlight dimming is used. If the current ambient illuminance exceeds the preset enhancement trigger threshold, and the current ambient illuminance is in the strong light range (e.g., 10000~100000 lux),... , It decreases as the current ambient illuminance increases, gradually decreasing from 1.0 to 1.0-0.4=0.6. It increases with the increase of the current ambient illuminance, gradually rising from 1.0 to 1.0 + 0.4 = 1.4. If the current ambient illuminance exceeds the preset enhancement trigger threshold, and if the current ambient illuminance is in the ultra-intense light range (greater than 100,000 lux), it will trigger the enhancement trigger. ,and then , , As the ambient light level increases, the foreground brightness transformation coefficient and the background brightness transformation coefficient no longer change, thus avoiding infinite parameter drift that could cause excessive image enhancement and color degradation.

[0088] Steps B1-B3 above determine the foreground brightness transformation coefficient and background brightness transformation coefficient by using the illuminance difference between the current ambient illuminance and the preset enhancement trigger threshold, the preset illuminance change range, and the maximum coefficient adjustment amount. This can increase the stretching of brightness and the compression of dark areas when the ambient illuminance is stronger, so as to maximize the contrast perceived by the human eye and adaptively match the degree of reflection degradation under different ambient illuminance to ensure the visibility of the image.

[0089] S140. Increase the brightness of the foreground pixels based on the foreground brightness transformation coefficient, and decrease the brightness of the background pixels based on the background brightness transformation coefficient to increase the perceived contrast of the displayed image.

[0090] Specifically, after determining the foreground and background pixels and obtaining the foreground and background brightness transformation coefficients, the segmented enhancement process can further implement segmented transformation based on these coefficients. Specifically, the brightness of the foreground pixels is adjusted by using the foreground brightness transformation coefficient (increasing the foreground pixel brightness), while the brightness of the background pixels is adjusted by using the background brightness transformation coefficient (decreasing the background pixel brightness), thereby widening the brightness difference between the foreground and background and enhancing the perceived contrast of the displayed image.

[0091] In one specific implementation, adjusting the brightness of the foreground pixel based on the foreground brightness transformation coefficient includes the following steps:

[0092] Step C1: Obtain the maximum screen brightness;

[0093] Step C2: Determine the original brightness of the foreground pixels in the displayed image, and determine the brightness ratio between the original brightness and the foreground-background boundary value;

[0094] Step C3: Determine the target brightness of the foreground pixel based on the brightness ratio, the foreground brightness transformation coefficient, and the upper limit of brightness, and adjust the foreground pixel to the target brightness.

[0095] In step C1, the upper limit of brightness can be the maximum physical brightness of the screen hardware (i.e., the maximum brightness when the backlight is fully loaded).

[0096] Specifically, in step C2, the original brightness of the foreground pixels in the displayed image can be obtained, and the brightness ratio between the original brightness and the foreground-background boundary value can be calculated. Further, in step C3, a power function can be calculated based on the brightness ratio and the foreground brightness transformation coefficient, and the result of the power function can be multiplied by the upper limit of brightness to obtain the target brightness of the foreground pixels. As shown in the following formula:

[0097] ;

[0098] In the formula, The target brightness of the foreground pixel. The original brightness of the foreground pixel. Foreground / background boundary value, Foreground brightness transformation coefficient, This represents the upper limit of brightness.

[0099] Through steps C1-C3 above, the brightness of pixels exceeding the foreground-background boundary can be increased upwards to approach the hardware's brightness limit, effectively improving the peak brightness of the image. This is to improve EPCR.

[0100] In one specific implementation, adjusting the brightness of background pixels based on a background brightness transformation coefficient includes the following steps:

[0101] Step D1: Obtain the lower limit of screen brightness and determine the difference between the foreground / background boundary value and the lower limit of brightness;

[0102] Step D2: Determine the original brightness of the background pixels in the displayed image, and determine the brightness ratio between the original brightness and the foreground-background boundary value;

[0103] Step D3: Determine the brightness increase based on the brightness ratio, background brightness transformation coefficient, and difference. Based on the brightness increase and the lower limit of brightness, determine the target brightness of the background pixels and adjust the background pixels down to the target brightness.

[0104] In step D1, the lower limit of brightness can be the minimum physical brightness of the screen hardware (i.e., the light leakage value of the liquid crystal when it is completely black). Specifically, the lower limit of brightness of the screen can be obtained, and the difference between the foreground / background boundary value and the lower limit of brightness can be calculated.

[0105] Furthermore, in step D2, the original brightness of the background pixels in the displayed image can be obtained, and the brightness ratio between the original brightness and the foreground-background boundary value can be calculated. Then, in step D3, a power function can be applied based on the background brightness transformation coefficient and the brightness ratio, and the brightness increase can be determined by multiplying the result of the power function with the difference. The brightness increase is then added to the lower brightness limit to obtain the target brightness of the background pixels, as shown in the following formula:

[0106] :

[0107] In the formula, The target brightness for the background pixels. This is the lower limit of brightness. Foreground / background boundary value, The original brightness of the background pixels. This is the background brightness transformation coefficient.

[0108] Steps D1-D3 above can reduce the brightness of pixels whose brightness does not exceed the foreground-background boundary value to approach the hardware brightness lower limit, effectively reducing the brightness of the black levels in the image. This achieves the goal of improving EPCR. It is worth mentioning that for pixels whose brightness is equal to the foreground-background boundary value, treating them as background pixels and using the above method to lower their brightness can ensure that the segmented enhancement is continuous at the foreground-background boundary value, guaranteeing that the output image has no step distortion and will not have any light and dark discontinuities.

[0109] For example, Figure 3 This is a schematic diagram illustrating human eye perception of contrast under different processing schemes provided in the embodiments of this application, such as... Figure 3 As shown, assuming ambient light is 100,000 lux, and the vertical axis represents perceived contrast, the perceived contrast ratio can reach 1500:1 in a dark room without sunlight. However, in strong sunlight without processing, the perceived contrast ratio is only 2.56:1. In strong sunlight, a uniform transformation coefficient is used to perform a global darkness transformation (i.e., global dimming). , Under normal conditions, the perceived contrast ratio can only reach 2.30:1. However, under strong sunlight and using the segmented Gamma enhancement method provided in this application, the perceived contrast ratio can be increased to 4.10:1, which meets the human eye recognition threshold (3:1).

[0110] It should be noted that, in this embodiment, the adjustment of the brightness of the foreground and background pixels based on the foreground brightness transformation coefficient and the background brightness transformation coefficient, respectively, needs to be performed in the linear optical domain. Specifically, the display image can be transformed from sRGB to the linear optical domain, segmented enhancement can be performed within the linear optical domain, and after the segmented enhancement, it can be re-encoded and transformed back to sRGB to avoid color distortion caused by directly enhancing under non-linear RGB.

[0111] In this embodiment, considering that the color saturation perceived by the human eye spontaneously decreases as ambient illuminance increases, even if the pixel color parameters of the vehicle screen remain unchanged under strong light, the driver will perceive colors as grayish and color differentiation as reduced, thus affecting the driver's recognition of icons or navigation color schemes. Therefore, when the current ambient illuminance is greater than a preset enhancement trigger threshold and the current backlight brightness is already at full capacity, in addition to the aforementioned segmented enhancement, saturation gain compensation can also be performed to offset the color degradation caused by human eye physiology.

[0112] In some implementations, the method provided in this application further includes the following steps:

[0113] Step E1: Obtain the preset reference illuminance and preset saturation compensation coefficient;

[0114] Step E2: Determine the illuminance ratio between the current ambient illuminance and the preset reference illuminance;

[0115] Step E3: Adjust the saturation of each pixel in the displayed image based on the illuminance ratio and the preset saturation compensation coefficient.

[0116] In step E1, the preset reference illuminance can be a pre-set indoor reference illuminance, such as 1000 lux; the preset saturation compensation coefficient can be a pre-set saturation compensation gain coefficient, such as 0.15~0.25.

[0117] Specifically, in step E2, the illuminance ratio between the current ambient illuminance and the preset reference illuminance can be calculated; then, in step E3, the logarithm of this illuminance ratio is calculated, and the logarithm is multiplied by a preset saturation compensation coefficient. The result of this multiplication is then combined with the original saturation of the pixels to adjust the saturation of each pixel in the displayed image. As shown in the following formula:

[0118] ;

[0119] In the formula, The adjusted saturation. The original saturation of the pixel. The preset saturation compensation coefficient is used. Given the current ambient light level, This is the preset reference illuminance.

[0120] Based on the above formula, it is possible to achieve this in low-light indoor conditions (such as...). ), calculated , Without saturation compensation, colors retain their original effect, avoiding oversaturation and excessive vibrancy in low light. Furthermore, it can maintain its color accuracy even under normal daylight conditions (such as...). lux, 0.2), , Saturation increased by 20%. And, it can withstand strong sunlight (such as...). lux, 0.2), , The saturation was increased by 40%.

[0121] Therefore, in the above implementation, the higher the current ambient illuminance, the larger the logarithm, and the saturation compensation amplitude increases accordingly, which can accurately match the saturation decay law and offset the color degradation caused by human eye physiology.

[0122] In the embodiments of this application, an anti-flicker hysteresis mechanism can also be designed to avoid frequent start-stop of segmented enhancement, thereby solving the problem of screen flicker caused by slight fluctuations in ambient illuminance.

[0123] In some implementations, after adjusting the brightness of the foreground pixels based on the foreground brightness transformation coefficient and adjusting the brightness of the background pixels based on the background brightness transformation coefficient, the following steps are further included:

[0124] Step F1: Reacquire the current ambient illuminance;

[0125] Step F2: In response to the new current ambient illuminance being lower than the preset enhancement exit threshold, each pixel in the displayed image is adjusted to its corresponding original brightness; wherein, the preset enhancement exit threshold is less than the preset enhancement trigger threshold.

[0126] The preset enhancement exit threshold can be a pre-set ambient illuminance threshold used to trigger the segmented enhancement shutdown. It should be noted that this preset enhancement exit threshold is less than the preset enhancement trigger threshold; that is, this preset enhancement exit threshold is an asymmetric hysteresis threshold.

[0127] For example, the preset enhancement trigger threshold can be 10000 lux, the preset enhancement exit threshold is less than the preset enhancement trigger threshold, and the difference between the two is maintained between 1000 and 3000 lux. Based on this difference, the value range of the preset enhancement exit threshold can be determined to be 7000 to 9000 lux.

[0128] Specifically, in step F1, after adjusting the brightness of the foreground and background pixels using the foreground brightness transformation coefficient and the background brightness transformation coefficient respectively, the current ambient illuminance can continue to be acquired. Specifically, in step F2, if a new current ambient illuminance is detected to be lower than a preset enhancement exit threshold, segmented enhancement is triggered to adjust each pixel in the displayed image to its corresponding original brightness.

[0129] It should be noted that if the new current ambient illuminance is greater than the preset enhancement exit threshold and less than the preset enhancement trigger threshold, that is, it is between the preset enhancement exit threshold and the preset enhancement trigger threshold, the current enhancement process can be maintained. This avoids repeated start and stop of segmented enhancement due to small fluctuations in illuminance, and avoids frequent illuminance fluctuations and screen flickering caused by vehicle shadows, tree shadows, and cloud cover.

[0130] Of course, if the new current ambient illuminance is between the preset enhancement exit threshold and the preset enhancement trigger threshold, a time-domain low-pass filter can be used to make a smooth transition, so that the foreground brightness transformation coefficient and the background brightness transformation coefficient can smoothly transition with the change of illumination, avoiding screen flickering caused by sudden changes in ambient illumination.

[0131] In one specific implementation, after reacquiring the current ambient illuminance, the following steps are also included:

[0132] Step F3: In response to the new current ambient illuminance being higher than the preset enhancement exit threshold and lower than the preset enhancement trigger threshold, redetermine the foreground brightness transformation coefficient and background brightness transformation coefficient based on the new current ambient illuminance.

[0133] Step F4: Based on the foreground brightness transformation coefficient and background brightness transformation coefficient of the previous time step, smooth the newly determined foreground brightness transformation coefficient and background brightness transformation coefficient respectively.

[0134] Step F5: Use the smoothed foreground brightness transformation coefficient and background brightness transformation coefficient to adjust the brightness of the foreground and background pixels respectively.

[0135] Specifically, in step F3, if the newly acquired current ambient illuminance is between the preset enhancement exit threshold and the preset enhancement trigger threshold, the foreground brightness transformation coefficient and the background brightness transformation coefficient can be recalculated based on the new current ambient illuminance. The calculation method can refer to the above process.

[0136] Furthermore, in step F4, the foreground brightness transformation coefficient from the previous time step can be used to smooth the newly determined foreground brightness transformation coefficient, and the background brightness transformation coefficient from the previous time step can be used to smooth the newly determined background brightness transformation coefficient. This is illustrated in the following equation:

[0137] ;

[0138] In the formula, These are the foreground brightness transformation coefficients or background brightness transformation coefficients after smoothing. These are the foreground or background brightness transformation coefficients from the previous moment, i.e., the transformation coefficients that have already taken effect. For the newly determined foreground brightness transformation coefficient or background brightness transformation coefficient, The preset smoothing coefficient can be set to 0.1 to 0.3. The smaller the value, the stronger the smoothing effect, and the slower the coefficient changes.

[0139] Furthermore, in step F5, the brightness of the foreground pixel can be adjusted using the smoothed foreground brightness transformation coefficient, and the brightness of the background pixel can be adjusted using the smoothed background brightness transformation coefficient.

[0140] Steps F3-F5 above, by weighted retention of the transformation coefficients already in effect from the previous frame and slight absorption of new transformation coefficients, ensure that even if there are instantaneous changes in the ambient light, the transformation coefficients change gradually, preventing single-frame jumps and guaranteeing a smooth, flicker-free transition in screen brightness. For scenarios with rapid illumination fluctuations, such as vehicles passing through trees or entering / exiting tunnels, this method ensures a smooth transition in screen brightness, eliminates flicker, and improves driving eye comfort.

[0141] The screen display content enhancement method provided in this application embodiment obtains the current ambient illuminance and the current backlight brightness of the screen. In response to the current ambient illuminance being greater than a preset enhancement trigger threshold and the current backlight brightness being fully utilized, the method determines the foreground and background pixels in the displayed image of the screen, and determines the foreground brightness transformation coefficient and the background brightness transformation coefficient based on the current ambient illuminance. Then, the brightness of the foreground pixels is increased using the foreground brightness transformation coefficient, and the brightness of the background pixels is decreased using the background brightness transformation coefficient, so as to expand the brightness difference between the foreground and the background, thereby increasing the perceived contrast and effectively solving the problem of screen content being invisible under strong light. This method does not require changes to the screen hardware configuration, has low implementation cost, and can ensure system reliability. In addition, this method triggers foreground and background brightness adjustment when the current ambient illuminance is greater than the preset enhancement trigger threshold and the current backlight brightness is fully utilized. Through dual-condition triggering, it ensures that the original backlight control logic of the screen is activated first when there is weak sunlight or the backlight is not fully utilized, avoiding conflicts with the original backlight control logic, thereby avoiding the simultaneous superposition of the original backlight control and foreground and background brightness adjustment, which would lead to overexposure of the image.

[0142] This application also provides a system for enhancing screen display content. Figure 4 This is an architecture diagram of an enhanced screen display content system provided in an embodiment of this application, such as... Figure 4As shown, the system consists of a sensing layer, a decision control layer, a content enhancement processing layer, and a display output layer.

[0143] The sensing layer includes an ambient light sensor and a backlight status detection unit. The ambient light sensor is used to collect ambient illuminance in real time, and the backlight status detection unit is used to obtain the screen's backlight level in real time. The sensing layer may also include a DMS (Driver Monitoring System) camera to obtain the driver's actual line of sight.

[0144] In this embodiment, considering that changes in the driver's line of sight can lead to different screen reflections (e.g., stronger reflections when looking at the screen at an angle), and that localized strong light can cause uneven perception (e.g., sunlight shining obliquely from a side window only illuminates a localized area of ​​the screen), and that the driver's head shading can also affect the perceived brightness (e.g., a sun hat or visor blocking some light), this embodiment can further combine the actual line of sight, the direction of sunlight, and whether a sunshade is worn with the ambient light level detected by an ambient light sensor to construct a more accurate driver-perceived brightness model. This model uses the driver's perceived brightness and backlight level as trigger conditions for segmented enhancement.

[0145] exist Figure 4 The decision control layer can include a dual-condition triggering module, which triggers segmented enhancement when the following dual conditions are met: 1) ambient illuminance is greater than or equal to the corresponding threshold; 2) backlight level is greater than or equal to the corresponding threshold. The content enhancement processing layer includes a histogram analysis module, a transformation parameter calculation module, and a color compensation module. The histogram analysis module determines the foreground-background boundary value through histogram analysis, the transformation parameter calculation module determines the foreground brightness transformation coefficient and the background brightness transformation coefficient, and the color compensation module corrects the saturation perception decrease caused by the Hunt effect. The display output layer includes a segmented processing unit, implemented through a GPU shader. Specifically, it applies the foreground brightness transformation coefficient to foreground pixels, increasing their brightness, and applies the background brightness transformation coefficient to background pixels, decreasing their brightness. The segmented processing unit processes each pixel in parallel within the GPU shader, with a processing latency of no more than 16ms (meeting the 60fps real-time display requirement). Finally, the enhanced image data can be directly sent to the display driver output, transparent to the upper application layer, requiring no APP adaptation.

[0146] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0147] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0148] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the screen display content enhancement method described in any of the above embodiments.

[0149] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 A specific hardware structure of an electronic device is shown, which may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0150] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0151] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0152] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0153] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0154] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0155] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0156] The electronic devices described above are used to implement the corresponding screen display content enhancement methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0157] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the screen display content enhancement method as described in any of the above embodiments.

[0158] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0159] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the screen display content enhancement method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0160] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0161] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0162] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0163] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for enhancing screen display content, characterized in that, include: Get the current ambient light level and the current backlight brightness of the screen; In response to the current ambient illuminance being greater than a preset enhancement trigger threshold, and the current backlight brightness being fully utilized, the foreground pixels and background pixels in the displayed image on the screen are determined. Determine the foreground brightness transformation coefficient and the background brightness transformation coefficient based on the current ambient illuminance; The brightness of the foreground pixel is increased based on the foreground brightness transformation coefficient, and the brightness of the background pixel is decreased based on the background brightness transformation coefficient, so as to increase the perceived contrast of the displayed image.

2. The method for enhancing screen display content according to claim 1, characterized in that, Determining the foreground and background pixels in the displayed image of the screen includes: Determine the brightness histogram of the displayed image, and determine the foreground-background boundary value of the displayed image based on the brightness histogram; For the displayed image, pixels with brightness greater than the foreground-background boundary value are determined as foreground pixels, and pixels with brightness less than or equal to the foreground-background boundary value are determined as background pixels.

3. The method for enhancing screen display content according to claim 2, characterized in that, Determining the foreground-background boundary value of the displayed image based on the brightness histogram includes: The probability of occurrence of the brightness value of each pixel is determined based on the brightness histogram; Obtain each pre-set candidate boundary value, and for each candidate boundary value, divide the displayed image into foreground and background based on the candidate boundary value, and determine the foreground pixel ratio, background pixel ratio, average brightness of foreground pixels and average brightness of background pixels based on the occurrence probability of the brightness value of each pixel. The inter-class variance between the foreground and background is determined based on the foreground pixel ratio, the background pixel ratio, the average brightness of the foreground pixels, and the average brightness of the background pixels. Among all candidate boundary values, the candidate boundary value with the largest inter-class variance is determined as the foreground / background boundary value.

4. The method for enhancing screen display content according to claim 1, characterized in that, Determining the foreground brightness transformation coefficient and background brightness transformation coefficient based on the current ambient illuminance includes: Obtain the reference brightness coefficient, reference darkness coefficient, preset illuminance variation range, and maximum coefficient adjustment amount; Determine the illuminance difference between the current ambient illuminance and the preset enhancement trigger threshold, and determine the current coefficient adjustment amount based on the illuminance difference, the preset illuminance change range, and the maximum coefficient adjustment amount; Adjust the reference bright part coefficient according to the current coefficient adjustment amount to obtain the foreground brightness transformation coefficient; Adjust the reference dark area coefficient according to the current coefficient adjustment amount to obtain the background brightness transformation coefficient.

5. The method for enhancing screen display content according to claim 2, characterized in that, Increasing the brightness of the foreground pixel based on the foreground brightness transformation coefficient includes: Obtain the upper limit of the screen's brightness; Determine the original brightness of the foreground pixel in the displayed image, and determine the brightness ratio between the original brightness and the foreground-background boundary value; Based on the brightness ratio, the foreground brightness transformation coefficient, and the brightness upper limit, the target brightness of the foreground pixel is determined, and the foreground pixel is adjusted up to the target brightness.

6. The method for enhancing screen display content according to claim 2, characterized in that, Adjusting the brightness of the background pixels based on the background brightness transformation coefficient includes: Obtain the lower limit of the screen's brightness, and determine the difference between the foreground / background boundary value and the lower limit of brightness; Determine the original brightness of the background pixels in the displayed image, and determine the brightness ratio between the original brightness and the foreground-background boundary value; Based on the brightness ratio, the background brightness transformation coefficient, and the difference, the brightness increase is determined, and based on the brightness increase and the brightness lower limit, the target brightness of the background pixel is determined, and the background pixel is adjusted down to the target brightness.

7. The method for enhancing screen display content according to claim 1, characterized in that, The method further includes: Obtain the preset reference illuminance and preset saturation compensation coefficient; Determine the illuminance ratio between the current ambient illuminance and the preset reference illuminance; Based on the illuminance ratio and the preset saturation compensation coefficient, the saturation of each pixel in the displayed image is adjusted.

8. The method for enhancing screen display content according to claim 1, characterized in that, After increasing the brightness of the foreground pixel based on the foreground brightness transformation coefficient and decreasing the brightness of the background pixel based on the background brightness transformation coefficient, the method further includes: Reacquire the current ambient illuminance; In response to a new current ambient illuminance being lower than a preset enhancement exit threshold, each pixel in the displayed image is adjusted to its corresponding original brightness. Wherein, the preset enhancement exit threshold is less than the preset enhancement trigger threshold.

9. The method for enhancing screen display content according to claim 8, characterized in that, After reacquiring the current ambient illuminance, the following is also included: In response to a new current ambient illuminance that is higher than the preset enhancement exit threshold and lower than the preset enhancement trigger threshold, the foreground brightness transformation coefficient and background brightness transformation coefficient are re-determined based on the new current ambient illuminance. Based on the foreground brightness transformation coefficient and background brightness transformation coefficient of the previous moment, the newly determined foreground brightness transformation coefficient and background brightness transformation coefficient are smoothed respectively. The brightness of the foreground pixel and the background pixel are adjusted using the smoothed foreground brightness transformation coefficient and the background brightness transformation coefficient, respectively.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to execute the method for enhancing the screen display content as described in any one of claims 1 to 9.