Dynamic adjustment method and system for contrast ratio of display screen
By identifying the trust in scene classification of the display content and adjusting the contrast based on the preset curve, the problem that contrast adjustment in the prior art depends on subjective experience, realizing dynamic adjustment of contrast in intelligent driving, improving display effect and cost-effectiveness.
Patent Information
- Application Number
- CN202411452162.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2024-12-10
AI Technical Summary
The contrast adjustment of existing car cockpit displays mainly depends on subjective experience, making it difficult to achieve dynamic contrast enhancement effect, and the debugging is complicated, making it difficult to meet the display effect of different light and functional needs.
By determining the scene classification trust of the current content of the display screen, dynamically adjust the contrast based on the preset scene contrast mapping curve, and using the NPU hardware and classification model in intelligent driving to achieve frame-by-frame adjustment of contrast.
It realizes dynamic adjustment of display contrast, improves the real-time and quality of display effects, simplifies the development process, reduces costs, and has obvious cost advantages.
Smart Images

Figure CN119107892A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display screens, and in particular to a method and system for dynamically adjusting the contrast of a display screen. Background Art
[0002] With the development of the smart car industry, users have an increasing demand for smart cockpits, and the cockpit display is an extremely important component of the smart cockpit. On the one hand, it can display the status of the car, such as driving speed, fuel consumption, temperature inside the car, etc. On the other hand, it can also meet users' needs for infotainment, etc. At present, the cockpit display is developing towards large screens and multi-functions.
[0003] During the driving process of the car, the lighting and other conditions inside the car may change at any time. In addition, the display effects required by the cockpit display screen are also different for different functional requirements. In order to achieve better display effects and user experience, the contrast of the cockpit display screen can be dynamically adjusted. However, the display of existing car cockpit display screens is mostly based on traditional image enhancement methods, and the display contrast effect is mainly adjusted based on subjective experience. This makes the debuggers may set different contrast enhancement schemes according to different test streams and pictures, and finally meet the corresponding needs by seeking a balance point, but it is difficult to achieve dynamic contrast enhancement effects. Summary of the invention
[0004] In view of some or all of the problems in the prior art, the present invention provides a method for dynamically adjusting the contrast of a display screen in a first aspect, comprising:
[0005] Determine the scene classification confidence of the content currently displayed on the display screen;
[0006] Determining a contrast adjustment value of the content according to the scene classification confidence and based on a preset scene contrast mapping curve; and
[0007] The contrast is adjusted according to the contrast adjustment value.
[0008] Furthermore, if the content currently displayed on the display screen is a video, the scene classification confidence of each frame of the picture is determined frame by frame.
[0009] Furthermore, determining the scene classification trust of the content currently displayed on the display screen includes:
[0010] The content is identified through a scene-based classification model, and scores of the content corresponding to N preset scenes are determined based on the identification results as scene classification confidence levels of the content.
[0011] Furthermore, the sum of the scores of the content corresponding to the preset N scenarios is 100.
[0012] Furthermore, the value of N is 10, and the N scenes include: distant views of natural scenery, close views of natural scenery, urban buildings, street vehicles, close-ups of people, animals, fruits and vegetables, cartoon images, instrument displays, and industrial films.
[0013] Furthermore, the contrast mapping curve is obtained based on historical experience and is preset in the system.
[0014] Furthermore, the contrast mapping curve is drawn based on contrast mapping values of M anchor points, wherein the contrast mapping value refers to brightness processing performed on Y after color space conversion from RGB to YUV.
[0015] Furthermore, the value of M is 21.
[0016] Further, determining the contrast adjustment value of the content includes:
[0017] The scene classification confidence level is used as a weight to perform weighted processing on the contrast mapping curve of the preset scene.
[0018] A second aspect of the present invention provides a system for dynamically adjusting the contrast of a display screen, comprising:
[0019] an identification module, which is used to determine the scene classification confidence of the content currently displayed on the display screen; and
[0020] The contrast adjustment module is used to determine the contrast adjustment value of the content according to the scene classification trust and based on a preset scene contrast mapping curve.
[0021] The present invention provides a method and system for dynamically adjusting the contrast of a display screen, which dynamically adjusts the contrast enhancement effect based on the content of the currently displayed picture to achieve the best contrast experience. The method has strong real-time performance and can effectively improve the display effect of the display screen. Moreover, it can be implemented directly using existing hardware in intelligent driving without the need to design additional hardware modules, which reduces the development difficulty and has obvious cost advantages. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.
[0023] Figure 1 A schematic flow chart of a method for dynamically adjusting display screen contrast according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0024] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that the various embodiments can be implemented without one or more specific details or with other replacement and / or additional methods or components. In other cases, well-known structures or operations are not shown or described in detail to avoid blurring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of the embodiments of the present invention. However, the present invention is not limited to these specific details. In addition, it should be understood that the various embodiments shown in the drawings are illustrative representations and are not necessarily drawn in correct proportions.
[0025] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.
[0026] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.
[0027] In the present invention, each module of the system according to the present invention can be implemented using software, hardware, firmware or a combination thereof. When the module is implemented using software, the function of the module can be implemented by a computer program flow, for example, the module can be implemented by a code segment (such as a code segment of a language such as C, C++) stored in a storage device (such as a hard disk, a memory, etc.), wherein the corresponding function of the module can be implemented when the code segment is executed by a processor. When the module is implemented using hardware, the function of the module can be implemented by setting a corresponding hardware structure, for example, the function of the module can be implemented by hardware programming a programmable device such as a field programmable gate array (FPGA), or the function of the module can be implemented by designing an application-specific integrated circuit (ASIC) including electronic devices such as a plurality of transistors, resistors and capacitors. When the module is implemented using firmware, the function of the module can be written into a read-only memory such as an EPROM or EEPROM of the device in the form of a program code, and the corresponding function of the module can be implemented when the program code is executed by a processor. In addition, some functions of the module may need to be implemented by separate hardware or by collaboration with the hardware, for example, the detection function is implemented by corresponding sensors (such as proximity sensors, acceleration sensors, gyroscopes, etc.), the signal transmission function is implemented by corresponding communication devices (such as Bluetooth devices, infrared communication devices, baseband communication devices, Wi-Fi communication devices, etc.), the output function is implemented by corresponding output devices (such as displays, speakers, etc.), and so on.
[0028] In order to dynamically adjust the contrast enhancement effect and thus achieve better display effects, the present invention provides a method and system for dynamically adjusting the contrast of a display screen, which is implemented based on the existing embedded neural network processor NPU hardware and classification model in intelligent driving without the need for additional hardware modules, thereby simplifying the overall structure of the intelligent driving system and having obvious cost advantages.
[0029] The scheme of the present invention is further described below in conjunction with the accompanying drawings of the embodiments.
[0030] Figure 1 FIG. 1 is a flow chart showing a method for dynamically adjusting the contrast of a display screen according to an embodiment of the present invention. Figure 1 As shown, a method for dynamically adjusting the contrast of a display screen includes:
[0031] First, in step 101, scene recognition. The scene of the content currently displayed on the display screen is determined for recognition, and its scene classification confidence is determined. In one embodiment of the present invention, the scene classification confidence of the content currently displayed on the display screen is determined mainly by identifying the content through a scene-based classification model, and determining the score of the content corresponding to the preset N scenes based on the recognition result as the scene classification confidence of the content. In order to facilitate subsequent calculations, in one embodiment of the present invention, the sum of the scores of the content corresponding to the preset N scenes is 100. In one embodiment of the present invention, the N scenes may include, for example, 10 scenes such as: distant views of natural scenery, close views of natural scenery, urban buildings, street vehicles, close-ups of people, animals, fruits and vegetables, cartoon images, instrument displays, and industrial movies. In one embodiment of the present invention, the scene-based classification model directly uses the existing NPU hardware and classification model in intelligent driving, specifically a model based on TensorFlowRT, to identify the current scene situation. In one embodiment of the present invention, the scene classification trust w[0], w[1], ....., w[9] is converted according to the reasoning output result of the NPU, and the reasoning output result of the NPU is a one-dimensional vector, in which each item corresponds to the possibility value of a scene. Taking the 10 scenes mentioned above as an example, if the inference output result is [0.91, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01], it can be converted into the trust of the 10 scenes as 91, 1, 1, 1, 1, 1, 1, 1, 1, that is, the trust of the scene classification of the content corresponding to the distant view of natural scenery, the close view of natural scenery, urban buildings, street vehicles, close-ups of people, animals, fruits and vegetables, cartoon images, instrument displays, and industrial movies is 91, 1, 1, 1, 1, 1, 1, 1, 1, 1, respectively. It can be seen that its trust as the distant view of natural scenery is the largest and exceeds 90. In one embodiment of the present invention, the current display content of the display screen may be a picture or a video. If it is a picture, scene recognition is directly performed. If it is a video, the scene classification trust of each frame of the picture is determined frame by frame;
[0032] Next, in step 102, the contrast adjustment value is determined. According to the scene classification confidence, based on the contrast mapping curve of the preset scene, the contrast adjustment value of the content is determined. In one embodiment of the present invention, the contrast mapping curve is drawn based on the contrast mapping values of M anchor points, wherein the contrast mapping value refers to the brightness processing performed on Y after the color space conversion from RGB to YUV. The value of M may be 21, for example. In one embodiment of the present invention, the contrast mapping curve is obtained based on historical experience, specifically, it is the result of obtaining the highest score through subjective and objective evaluation based on the best display effect adjusted by the expert system according to the scene, and is set as curve data, and the contrast mapping curve is preset in the system. In one embodiment of the present invention, the contrast adjustment value of the content is determined mainly by taking the scene classification confidence as the weight and performing weighted processing on the contrast mapping curve of the preset scene. Taking the above-mentioned 10 scenes as an example, the 10 preset contrast mapping curves are defined as Sy1, Sy2, ..., Sy10 in sequence, and the anchor points on each curve are defined as Sy1[0]Sy1[1] ...Sy1[M-1], Sy2[0]Sy2[1] ...Sy2[M-1], ..., Sy10[0]Sy10[1] ...Sy10[M-1], then the contrast adjustment value of the content is determined by using the scene classification confidence obtained in the above steps as a weight to obtain a weighted average value as the current point position:
[0033] Sy[0]=(w[0]*Sy1[0]+w[1]*Sy2[0]+.....+w[9]*Sy10[0]) / 100,
[0034] After the M points are calculated in sequence, a contrast mapping curve corresponding to the content can be obtained, that is, a contrast adjustment value of the content currently displayed on the display screen can be obtained; and
[0035] Finally, in step 103, the contrast is adjusted. The image is processed according to the contrast mapping curve, for example, the contrast is adjusted, and finally displayed. In one embodiment of the present invention, the image is processed by an interpolation processing method, that is, the pixel value is determined in the X-axis direction between two anchor points by the contrast mapping curve, and then a new Y-axis value is obtained by a bilinear interpolation method and output.
[0036] In order to realize the dynamic adjustment method as described above, the present invention also provides a system for dynamically adjusting the contrast of a display screen, which includes an identification module and a contrast adjustment module, wherein the identification module is used to determine the scene classification trust of the content currently displayed on the display screen; and the contrast adjustment module is used to determine the contrast adjustment value of the content based on the contrast mapping curve of the preset scene according to the scene classification trust, and obtain the contrast mapping curve. As mentioned above, the identification module can directly adopt the existing NPU hardware and classification model in intelligent driving. The contrast adjustment module is pre-set with contrast mapping curves of N different scenes, and the contrast mapping curve is obtained based on historical experience. Specifically, it is the best display effect adjusted by the expert system according to the scene, and the highest score is obtained through subjective and objective evaluation, and is set as curve data. In one embodiment of the present invention, the system also includes a post-processing module, which processes the current display content based on the contrast mapping curve and outputs it to the display screen.
[0037] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.
Claims
1. A method for dynamically adjusting the contrast of a display screen, characterized in that: Includes steps: Determine the scene classification confidence of the content currently displayed on the display screen; Determining a contrast adjustment value of the content according to the scene classification confidence and based on a preset scene contrast mapping curve; as well as The contrast is adjusted according to the contrast adjustment value.
2. The dynamic adjustment method according to claim 1, characterized in that: If the content currently displayed on the display screen is a video, the scene classification confidence of each frame of the picture is determined frame by frame.
3. The dynamic adjustment method according to claim 1, characterized in that: Determining the scene classification confidence of the content currently displayed on the display includes the steps of: The content is identified through a scene-based classification model, scores of the content corresponding to preset N scenes are determined based on the identification results, and the scores are used as scene classification confidence levels of the content.
4. The dynamic adjustment method according to claim 3, characterized in that: The total score of the content corresponding to the preset N scenarios is 100.
5. The dynamic adjustment method according to claim 3, characterized in that: The value of N is 10, and the N scenes include: distant views of natural scenery, close views of natural scenery, urban buildings, street vehicles, close-ups of people, animals, fruits and vegetables, cartoon images, instrument displays, and industrial films.
6. The dynamic adjustment method according to claim 1, characterized in that: The contrast mapping curve is obtained based on historical experience and is preset in the system.
7. The dynamic adjustment method according to claim 1, characterized in that: The contrast mapping curve is determined based on the contrast mapping values of the M anchor points, wherein the contrast mapping value refers to the brightness processing performed on Y after the color space conversion from RGB to YUV.
8. The dynamic adjustment method according to claim 7, characterized in that: The value of M is 21.
9. The dynamic adjustment method according to claim 1, characterized in that: Determining the contrast adjustment value of the content comprises the steps of: The scene classification confidence level is used as a weight to perform weighted processing on the contrast mapping curve of the preset scene.
10. A system for dynamically adjusting the contrast of a display screen, characterized in that: The display screen contrast is adjusted according to the dynamic adjustment method according to any one of claims 1 to 9, and the system comprises: an identification module configured to determine a scene classification confidence level of content currently displayed on the display screen; and The contrast adjustment module is configured to determine the contrast adjustment value of the content according to the scene classification confidence and based on a preset scene contrast mapping curve.
