Video image display method, apparatus, and device
Patent Information
- Application Number
- CN202410152073.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2044-02-02
AI Technical Summary
[0005]本申请实施例的目的在于提供一种视频图像显示方法、装置以及设备,可以解决在上述动态对比度技术通过调整亮度曲线来调整图像后,图像的呈现效果降低的问题
[0018]In summary, the video image display method, apparatus, and device provided in this application embodiment derive the change curve between consecutive frames by using the first brightness curve of the previous frame image and the second brightness curve of the current frame image. Based on the change curve between consecutive frames, the saturation corresponding to each grayscale value of the current frame image is adjusted so that the color density changes accordingly when the brightness of the image changes, thereby improving the image presentation effect.
Smart Images

Figure CN120434341B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to a video image display method, apparatus, and device. Background Technology
[0002] With increasingly higher demands for media quality, video image contrast has become a crucial performance indicator for many electronic video devices. Dynamic contrast ratio is typically used to describe the degree of brightness variation in an image; high contrast indicates a larger difference in brightness, while low contrast indicates a smaller difference in brightness.
[0003] Dynamic contrast technology for video images was introduced to improve image quality and visual effects. Dynamic contrast refers to the ability of a video to automatically adjust the brightness levels of white and black areas in different scenes to enhance image contrast under specific conditions. It can automatically adjust brightness according to the image content, making dark areas darker and bright areas brighter, thereby improving image detail and clarity. This makes image details more vivid and enhances the viewing experience.
[0004] However, after adjusting the image using dynamic contrast technology, the image presentation quality is reduced. Summary of the Invention
[0005] The purpose of this application is to provide a video image display method, apparatus, and device that can solve the problem that the image presentation effect is reduced after the above-mentioned dynamic contrast technology adjusts the image by adjusting the brightness curve.
[0006] To achieve the above objectives, one aspect of this application provides a video image display method, comprising: acquiring a first brightness curve of a previous frame image, the first brightness curve being used to characterize the relationship between the brightness and grayscale value of the previous frame image; acquiring a second brightness curve of a current frame image, the second brightness curve being used to characterize the relationship between the brightness and grayscale value of the current frame image; deriving a frame-to-frame variation curve based on the first brightness curve and the second brightness curve, the frame-to-frame variation curve being used to characterize the relationship between the brightness change of the current frame image and the grayscale value of the previous frame image; adjusting the saturation corresponding to each grayscale value of the current frame image based on the frame-to-frame variation curve; the saturation corresponding to each grayscale value of the current frame image being used to characterize the relationship between the saturation and grayscale value of the current frame image.
[0007] Optionally, adjusting the saturation corresponding to each grayscale value of the current frame image according to the change curve of the previous and next frames includes: obtaining the saturation corresponding to each grayscale value of the current frame image; obtaining an adjustment relationship, wherein the adjustment relationship is used to characterize the correspondence between the brightness change amount and the adjustment value; and adjusting the saturation in the saturation corresponding to each grayscale value of the current frame image using the adjustment relationship.
[0008] Optionally, the adjustment relationship has multiple adjustment levels, which are divided according to grayscale value ranges. The adjustment level is used to characterize the correspondence between the brightness change and the adjustment value within the same grayscale value range.
[0009] The step of adjusting the saturation of each grayscale value in the current frame image using the adjustment relationship includes: determining the grayscale value range where the target grayscale value is located; determining the adjustment level corresponding to the grayscale value range where the target grayscale value is located; determining the brightness change of the target grayscale value based on the change curve of the previous and next frames; determining the adjustment value corresponding to the brightness change of the target grayscale value based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located; determining the saturation of the current frame image of the target grayscale value based on the saturation of each grayscale value in the current frame image; and adjusting the saturation of the current frame image of the target grayscale value using the adjustment value corresponding to the brightness change of the target grayscale value to obtain a new saturation of the current frame image of the target grayscale value.
[0010] Optionally, the grayscale values are divided into dark areas, intermediate areas, and bright areas in descending order of magnitude; the multiple adjustment levels include dark level, intermediate level, and bright level; the dark level is used to characterize the correspondence between the brightness change of the grayscale value in the dark area and the adjustment value; the intermediate level is used to characterize the correspondence between the brightness change of the grayscale value in the intermediate area and the adjustment value; the bright level is used to characterize the correspondence between the brightness change of the grayscale value in the bright area and the adjustment value; the absolute value of the adjustment value of the dark level is less than the absolute value of the adjustment value of the bright level, and the absolute value of the adjustment value of the bright level is less than the absolute value of the adjustment value of the intermediate level.
[0011] Optionally, each adjustment level includes multiple sub-adjustment zones, which are divided according to the magnitude of the brightness change, and the brightness change in the same sub-adjustment zone corresponds to the same adjustment value;
[0012] The step of determining the adjustment value corresponding to the brightness change of the target grayscale value based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located includes: determining the sub-adjustment area where the brightness change of the target grayscale value is located; and taking the adjustment value corresponding to the sub-adjustment area where the brightness change of the target grayscale value is located as the adjustment value corresponding to the brightness change of the target grayscale value.
[0013] Optionally, adjusting the saturation of each grayscale value in the current frame image using the adjustment relationship further includes: determining the brightness change of the target grayscale value based on the change curves of the previous and subsequent frames, wherein the brightness change includes brightening and darkening; and determining the sign of the adjustment value corresponding to the target grayscale value based on the brightness change of the current frame image.
[0014] Optionally, when the brightness change corresponding to the target grayscale value is brightening, the adjustment value corresponding to the target grayscale value is positive; when the brightness change corresponding to the target grayscale value is darkening, the adjustment value corresponding to the target grayscale value is negative.
[0015] To achieve the above objectives, another aspect of this application provides a video image processing apparatus, the apparatus comprising: an acquisition module, configured to acquire a first brightness curve of a previous frame image and a second brightness curve of a current frame image, wherein the first brightness curve characterizes the relationship between the brightness and grayscale value of the previous frame image, and the second brightness curve characterizes the relationship between the brightness and grayscale value of the current frame image; a processing module, configured to derive a frame-to-frame change curve based on the first brightness curve and the second brightness curve, wherein the frame-to-frame change curve characterizes the relationship between the brightness of the current frame image and the brightness change amount of the previous frame image and the grayscale value; the processing module is further configured to adjust the saturation corresponding to each grayscale value of the current frame image based on the frame-to-frame change curve; wherein the saturation corresponding to each grayscale value of the current frame image characterizes the relationship between the saturation and grayscale value of the current frame image.
[0016] To achieve the above objectives, another aspect of the embodiments of this application provides an electronic device, including a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described above.
[0017] To achieve the above objectives, another aspect of the embodiments of this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described above.
[0018] In summary, the video image display method, apparatus, and device provided in this application embodiment derive the change curve between consecutive frames by using the first brightness curve of the previous frame image and the second brightness curve of the current frame image. Based on the change curve between consecutive frames, the saturation corresponding to each grayscale value of the current frame image is adjusted so that the color density changes accordingly when the brightness of the image changes, thereby improving the image presentation effect. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating a video image display method provided in this application embodiment;
[0021] Figure 2 A first brightness curve and a second brightness curve are provided for embodiments of this application;
[0022] Figure 3 A graph showing the change between consecutive frames is provided in an embodiment of this application;
[0023] Figure 4 A schematic diagram of the video image processing apparatus provided in the embodiments of this application;
[0024] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] As described in the background section, related dynamic contrast technology may degrade the image's presentation quality after adjusting the contrast of a video image. The inventors of this application have found that this degraded presentation quality is due to the fact that dynamic contrast technology automatically adjusts brightness according to the image content, making dark areas darker and bright areas brighter, thereby improving image detail and clarity. Thus, adjusting the contrast inevitably alters the image's brightness. However, changes in image brightness affect the human eye's perception of color density, thereby impacting the image's presentation quality.
[0026] Therefore, the color density, or saturation, of an image can be changed when its brightness changes. The inventors of this application have discovered that the amount of change in saturation is related to the amount of change in brightness. In areas where the brightness change is large, the image saturation needs to be changed significantly to achieve a good presentation. In areas where the brightness change is small, the image saturation can be changed slightly to achieve a good balance between the two.
[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0028] Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0029] In image display, the CPU calculates the display content and submits it to the GPU. The GPU renders the display content, and the graphics card converts the digital-to-analog signals (the rendered display content) into image data signals and outputs them to the monitor. The monitor receives the image data signals and displays the image. The following text mentions that S100, S200, S300, and S400 can be implemented based on a GPU.
[0030] Figure 1 A flowchart illustrating a video image display method provided in an embodiment of this application. (See reference...) Figure 1 The video image display method provided in this application embodiment may include the following steps:
[0031] S100: Obtain the first brightness curve of the previous frame image; S200: Obtain the second brightness curve of the current frame image;
[0032] Specifically, image brightness refers to the size of image pixels. The larger the pixel value, the brighter the image at that pixel; conversely, the darker the image. An image histogram represents the distribution of pixel values (grayscale values) in an image, that is, the brightness distribution. The X-axis of the histogram represents the pixel value (grayscale value), and the Y-axis represents the number of pixels or brightness values with that pixel value in the image. The typical range of the X-axis is 0 to 255. Image histograms can be generated using OpenCV and NumPy functions, and plotted using Matplotlib and OpenCV functions.
[0033] Dynamic contrast technology adjusts the image histogram through methods such as linear transformation, histogram normalization, global histogram equalization, and contrast-limited adaptive histogram equalization to achieve the purpose of adjusting image contrast. The image histogram adjusted using existing contrast techniques is the brightness curve. Thus, the first brightness curve C1 of the previous frame and the second brightness curve C2 of the current frame can be obtained using the above methods.
[0034] The first brightness curve characterizes the relationship between the brightness and grayscale values of the previous frame image. In other words, the first brightness curve C1 is a curve showing the relationship between the brightness of different grayscale values in the previous frame image. The horizontal axis of this first brightness curve C1 can be the grayscale value, and the vertical axis can be the brightness of the previous frame image. Figure 2 In the image, the brightness of the previous frame corresponding to a grayscale value of 50 is 46. The second brightness curve C2 characterizes the relationship between the brightness and grayscale value of the current frame. That is, the second brightness curve C2 is the curve showing the relationship between the brightness of different grayscale values in the current frame. The horizontal axis of the first brightness curve C1 can be the grayscale value, and the vertical axis can be the brightness of the current frame. For example... Figure 2 In the image, the brightness of the current frame corresponds to a grayscale value of 50.
[0035] S300. Based on the first brightness curve and the second brightness curve, the change curve between the previous and next frames is obtained;
[0036] Among them, reference Figure 3 The frame-to-frame variation curve represents the relationship between the brightness change of the current frame and the previous frame, and the grayscale value. In other words, the frame-to-frame variation curve is a curve showing the relationship between the brightness changes corresponding to different grayscale values. The horizontal axis of this frame-to-frame variation curve can be the grayscale value, and the vertical axis can be the brightness change. This frame-to-frame variation curve, the first brightness curve C1, and the second brightness curve C2 can all have the same horizontal axis. Figure 3 In the example shown, the horizontal axis is expanded from 0 to 255.
[0037] Specifically, in the first brightness curve C1, the target grayscale value corresponds to the first brightness of the previous frame image; in the second brightness curve C2, the target grayscale value corresponds to the second brightness of the current frame image. The brightness change corresponding to the target grayscale value can be the difference, ratio, percentage, etc., between the first brightness of the previous frame image corresponding to the target grayscale value and the second brightness of the current frame image corresponding to the target grayscale value.
[0038] For example, Figure 2 In the image, the first brightness corresponding to the target grayscale value 50 is 46, and the second brightness corresponding to the target grayscale value 50 is 53. Figure 3 In the middle, the brightness change corresponding to the target grayscale value 50 is the difference between the second brightness and the first brightness, which is 7.
[0039] S400. Based on the change curves of previous and subsequent frames, adjust the saturation corresponding to each gray level value of the current frame image.
[0040] In this case, considering that different grayscale values correspond to different brightness changes in the frame transition curves, saturation needs to be adjusted according to the magnitude of the brightness change. For example, a large adjustment is made to the saturation in areas with large brightness changes, and a small adjustment is made in areas with small brightness changes.
[0041] Additionally, saturation can be adjusted using an adjustment value associated with the amount of brightness change. Specifically:
[0042] S410, Obtain the adjustment relationship;
[0043] Among them, the adjustment relationship can characterize the correspondence between the brightness change and the adjustment value.
[0044] The inventors of this application have discovered that the magnitude of grayscale values affects the human eye's sensitivity to saturation. For example, the human eye is sensitive to saturation at low grayscale value locations. That is, when the saturation is adjusted by the same amount at high and low grayscale value locations, the human eye will perceive a significant increase in saturation at the low grayscale value locations. In addition, the grayscale values of most areas in a video image are in the middle, meaning that intermediate grayscale values appear frequently and in large quantities.
[0045] Therefore, the adjustment relationship can have multiple adjustment levels, and these adjustment levels can be divided according to grayscale value ranges. An adjustment level represents the correspondence between the amount of brightness change and the adjustment value within the same grayscale value range. Different adjustment levels have different adjustment values.
[0046] Considering the human eye's sensitivity to saturation at low grayscale values and the frequent and abundant occurrence of intermediate grayscale values, grayscale values can be sequentially divided into dark areas, intermediate areas, and bright areas according to their magnitude. For example, Figure 3 In the dark area, the gray value range can be 0 to 75; the gray value range of the middle area can be 75 to 200; and the gray value range of the bright area can be 200 to 255.
[0047] The adjustment levels, from smallest to largest, can be categorized as dark, mid, and bright. Dark level represents the relationship between the brightness change of a grayscale value in a dark area and the adjustment value; mid level represents the relationship between the brightness change of a grayscale value in a mid-range area and the adjustment value; and bright level represents the relationship between the brightness change of a grayscale value in a bright area and the adjustment value. The absolute value of the adjustment value for dark level is smaller than that for bright level, and the absolute value of the adjustment value for bright level is smaller than that for mid-range level.
[0048] S420. Using the adjustment relationship, adjust the saturation corresponding to each gray level value of the image in this frame.
[0049] Specifically as follows:
[0050] S4201. Determine the grayscale value range where the target grayscale value is located; S4202. Determine the adjustment level corresponding to the grayscale value range where the target grayscale value is located; S4203. Determine the brightness change of the target grayscale value based on the change curves of the previous and next frames;
[0051] One example is, Figure 3 In the example, the target grayscale value 50 is in a dark area; a dark area corresponds to a dark level; the brightness change corresponding to the target grayscale value 50 is 7; another example is... Figure 3 In the example, the target grayscale value 150 is in the middle zone; the middle zone corresponds to the middle level; the brightness change corresponding to the target grayscale value 150 is 50; another example... Figure 3 In the image, the target grayscale value 220 is in the bright area; the bright area corresponds to the brightness level; the brightness change corresponding to the target grayscale value 220 is 10.
[0052] S4204. Determine the adjustment value corresponding to the brightness change of the target grayscale value based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located;
[0053] To simplify adjustments, each adjustment level can optionally include multiple sub-adjustment zones, which can be divided according to the magnitude of the brightness change. Furthermore, the brightness change within the same sub-adjustment zone corresponds to the same adjustment value.
[0054] Step S4204 may include: determining the sub-adjustment area where the brightness change of the target grayscale value is located; and using the adjustment value corresponding to the sub-adjustment area where the brightness change of the target grayscale value is located as the adjustment value corresponding to the brightness change of the target grayscale value.
[0055] For example, in the dark level, areas with a brightness change of less than 9 are divided into one sub-adjustment area with an adjustment value of 1; areas with a brightness change of not less than 9 are divided into another sub-adjustment area with an adjustment value of 2. In the intermediate level, areas with a brightness change of less than 30 are divided into one sub-adjustment area with an adjustment value of 5; areas with a brightness change of not less than 30 are divided into another sub-adjustment area with an adjustment value of 6. In the bright level, areas with a brightness change of less than 14 are divided into one sub-adjustment area with an adjustment value of 3; areas with a brightness change of not less than 14 are divided into another sub-adjustment area with an adjustment value of 4.
[0056] Step S420 may further include: S4205, adjusting the saturation of the current frame image corresponding to the target grayscale value using an adjustment value corresponding to the brightness change of the target grayscale value. The adjustment value may be saturation; or, the adjustment value may be a compensation value.
[0057] When the adjustment value is saturation, the adjustment value corresponding to the target grayscale obtained using the adjustment relationship is the saturation corresponding to that target grayscale. When the adjustment value is compensation, the adjustment value can be used to compensate for the original saturation of the current frame image. Specifically, S420 provided in this application embodiment may further include: S4206, determining the brightness change corresponding to the target grayscale value based on the change curves of previous and subsequent frames, where the brightness change includes brightening and darkening; S4207, determining the sign of the adjustment value corresponding to the target grayscale value based on the brightness change of the current frame image.
[0058] Specifically, when the brightness change corresponding to the target grayscale value is brightening, the adjustment value corresponding to the target grayscale value is positive; when the brightness change corresponding to the target grayscale value is darkening, the adjustment value corresponding to the target grayscale value is negative.
[0059] In one example, the saturation corresponding to the target grayscale value 50 is X1, the brightness change of the target grayscale value 50 is less than 9, its corresponding adjustment value is 1, the brightness change of the target grayscale value 50 is brighter, and the new saturation of the target grayscale value 50 is X1+1; in another example, the saturation corresponding to the target grayscale value 150 is X2, the brightness change of the target grayscale value 150 is not less than 30, its corresponding adjustment value is 6, the brightness change of the target grayscale value 150 is brighter, and the new saturation of the target grayscale value 150 is X2+6; yet another example… Figure 3 In the target grayscale value 220, the saturation is X3. The brightness change of the target grayscale value 220 is 10, which is less than 14. Its corresponding adjustment value is 3. The brightness change of the target grayscale value 220 is brightening. The new saturation of the target grayscale value 220 is X3+3.
[0060] In summary, the video image display method provided in this application obtains the change curve between the previous and current frames by using the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image. Based on the change curve between the previous and current frames, the saturation corresponding to each gray level value of the current frame image is adjusted so that the color concentration changes with the brightness of the image, thereby improving the image presentation effect.
[0061] refer to Figure 4 This application also provides a video image processing apparatus 1000, which may include an acquisition module 100 and a processing module 200. The acquisition module 100 acquires a first brightness curve C1 of a previous frame and a second brightness curve C2 of the current frame. The first brightness curve C1 represents the relationship between the brightness and grayscale value of the previous frame, and the second brightness curve C2 represents the relationship between the brightness and grayscale value of the current frame.
[0062] The processing module 200 can derive the frame-to-frame variation curve based on the first brightness curve C1 and the second brightness curve C2. The frame-to-frame variation curve characterizes the relationship between the brightness change of the current frame and the previous frame and the grayscale value. The processing module 200 can also adjust the saturation corresponding to each grayscale value of the current frame based on the frame-to-frame variation curve.
[0063] Optionally, the processing module 200 may adjust the saturation corresponding to each grayscale value of the current frame image according to the change curves of previous and subsequent frames, including:
[0064] The processing module 200 can obtain the saturation corresponding to each grayscale value of the current frame image, and can obtain the adjustment relationship. It can also use the adjustment relationship to adjust the saturation of each grayscale value of the current frame image. The adjustment relationship can characterize the correspondence between the brightness change and the adjustment value.
[0065] Optionally, the adjustment relationship can have multiple adjustment levels, which can be divided according to grayscale value ranges. The adjustment level can represent the correspondence between the brightness change and the adjustment value within the same grayscale value range.
[0066] The processing module 200 uses adjustment relationships to adjust the saturation of each grayscale value in the current frame image, which may include:
[0067] The processing module 200 can determine the grayscale value range where the target grayscale value is located, and can determine the adjustment level corresponding to the grayscale value range where the target grayscale value is located. It can also determine the brightness change of the target grayscale value based on the change curve of the previous and next frames, and can determine the adjustment value corresponding to the brightness change of the target grayscale value based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located. It can also adjust the saturation of the current frame image corresponding to the brightness change of the target grayscale value using the adjustment value corresponding to the brightness change of the target grayscale value.
[0068] Optionally, grayscale values can be divided into dark areas, mid-range areas, and bright areas according to their magnitude. Multiple adjustment levels are available, including dark, mid-range, and bright levels. The dark level represents the correspondence between the brightness change of a grayscale value in a dark area and the adjustment value; the mid-range level represents the correspondence between the brightness change of a grayscale value in a mid-range area and the adjustment value; and the bright level represents the correspondence between the brightness change of a grayscale value in a bright area and the adjustment value. The absolute value of the adjustment value at the dark level is less than the absolute value at the bright level, and the absolute value of the adjustment value at the bright level is less than the absolute value at the mid-range level.
[0069] Optionally, each adjustment level can include multiple sub-adjustment zones, which can be divided according to the magnitude of the brightness change. The brightness change within the same sub-adjustment zone can correspond to the same adjustment value.
[0070] The processing module 200 determines, based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located, the adjustment value corresponding to the brightness change of the target grayscale value, and may include:
[0071] The processing module 200 can determine the sub-adjustment area where the brightness change of the target grayscale value is located, and can use the adjustment value corresponding to the sub-adjustment area where the brightness change of the target grayscale value is located as the adjustment value corresponding to the brightness change of the target grayscale value.
[0072] Optionally, when adjusting the saturation of each grayscale value in the current frame image using the adjustment relationship, the processing module 200 may further include: the processing module 200 can determine the brightness change corresponding to the target grayscale value based on the change curves of previous and subsequent frames, and can determine the sign of the adjustment value corresponding to the target grayscale value based on the brightness change of the current frame image. The brightness change may include brightening or darkening.
[0073] Specifically, when the brightness change corresponding to the target grayscale value is brighter, the adjustment value corresponding to the target grayscale value is positive; when the brightness change corresponding to the target grayscale value is darker, the adjustment value corresponding to the target grayscale value is negative.
[0074] It should be noted that the video image processing apparatus 1000 provided in the above embodiments is only illustrated by the division of the above functional modules when executing the video image display method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the video image processing apparatus 1000 and the video image display method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0075] In summary, the video image processing apparatus 1000 provided in this application embodiment includes an acquisition module 100 and a processing module 200. The acquisition module 100 acquires the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image. The processing module 200 derives the change curve between the previous and current frames based on the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image acquired by the acquisition module, and adjusts the saturation corresponding to each gray level value of the current frame image according to the change curve between the previous and current frames, so that when the brightness of the image changes, the color density also changes accordingly, thereby improving the image presentation effect.
[0076] This application also provides an electronic device 2000, see reference. Figure 5The electronic device 2000 may include a processor 2100 and a memory 2200. The processor 2100 may store a computer program adapted to be loaded by the processor 2100 and executed as described above.
[0077] Specifically, the processor 2100 and memory 2200 can be connected via a bus. The processor 2100 is also connected to the input / output interface of the electronic device 2000 via the bus. The memory 2200 stores the PCB design program, and the input / output interface can be connected to a keyboard, external memory, monitor, etc. The PCB design can be displayed on a monitor or output via an output device such as a printer connected to the electronic device 2000.
[0078] This application also provides a computer-readable storage medium that stores computer-executable instructions. These instructions, when executed by a processor, are used to implement the above-described identification method. The specific execution process can be found in the detailed description above, and will not be repeated here.
[0079] In the above embodiments, the processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads instructions from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Additionally, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated units described above can be implemented in hardware or in the form of hardware plus software functional units.
Claims
1. A video image display method, characterized in that, include: Obtain the first brightness curve of the previous frame image, which is used to characterize the relationship between the brightness and grayscale value of the previous frame image. Obtain the second brightness curve of the current frame image, which is used to characterize the relationship between the brightness and grayscale value of the current frame image; Based on the first brightness curve and the second brightness curve, the frame change curve is obtained. The frame change curve is used to characterize the relationship between the brightness change and grayscale value of the current frame image and the previous frame image. Based on the change curves of the preceding and following frames, adjust the saturation corresponding to each grayscale value of the current frame image. The grayscale values are divided into dark areas, intermediate areas, and bright areas in descending order of magnitude; the adjustment level corresponding to the dark area is the dark level, the adjustment level corresponding to the intermediate area is the intermediate level, and the adjustment level corresponding to the bright area is the bright level; the absolute value of the adjustment value of the dark level is less than the absolute value of the adjustment value of the bright level, and the absolute value of the adjustment value of the bright level is less than the absolute value of the adjustment value of the intermediate level.
2. The method according to claim 1, characterized in that, The step of adjusting the saturation corresponding to each grayscale value of the current frame image based on the change curves of the preceding and following frames includes: Obtain the adjustment relationship, which is used to characterize the correspondence between the brightness change amount and the adjustment value; Using the aforementioned adjustment relationship, the saturation corresponding to each grayscale value of the current frame image is adjusted.
3. The method according to claim 2, characterized in that, The adjustment relationship has multiple adjustment levels, which are divided according to grayscale value ranges. The adjustment level is used to characterize the correspondence between the brightness change and the adjustment value within the same grayscale value range. The step of adjusting the saturation corresponding to each grayscale value of the current frame image using the adjustment relationship includes: Determine the grayscale value range in which the target grayscale value is located; Determine the adjustment level corresponding to the grayscale value range where the target grayscale value is located; Based on the change curves of the preceding and following frames, determine the amount of brightness change of the target grayscale value; Based on the adjustment level corresponding to the grayscale value range where the target grayscale value is located, determine the adjustment value corresponding to the brightness change of the target grayscale value; The saturation of the current frame image corresponding to the target grayscale value is adjusted using an adjustment value corresponding to the brightness change of the target grayscale value.
4. The method according to claim 3, characterized in that, Each adjustment level includes multiple sub-adjustment zones, which are divided according to the magnitude of the brightness change. The brightness change in the same sub-adjustment zone corresponds to the same adjustment value. The step of determining the adjustment value corresponding to the brightness change of the target grayscale value based on the adjustment level corresponding to the grayscale value range in which the target grayscale value is located includes: Determine the sub-adjustment area where the brightness change of the target grayscale value is located; The adjustment value corresponding to the sub-adjustment area where the brightness change of the target grayscale value is located is taken as the adjustment value corresponding to the brightness change of the target grayscale value.
5. The method according to any one of claims 2-4, characterized in that, The step of adjusting the saturation corresponding to each grayscale value of the current frame image using the adjustment relationship further includes: Based on the change curves of the preceding and following frames, determine the brightness change corresponding to the target grayscale value, where the brightness change includes brightening and darkening. Based on the changes in brightness of the current frame image, determine the sign of the adjustment value corresponding to the target grayscale value.
6. The method according to claim 5, characterized in that, When the brightness change corresponding to the target grayscale value is brightening, the adjustment value corresponding to the target grayscale value is positive; When the brightness change corresponding to the target grayscale value is darkening, the adjustment value corresponding to the target grayscale value is negative.
7. A video image processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire a first brightness curve of the previous frame image and a second brightness curve of the current frame image. The first brightness curve is used to characterize the relationship between the brightness and grayscale value of the previous frame image, and the second brightness curve is used to characterize the relationship between the brightness and grayscale value of the current frame image. The processing module is used to derive a frame-to-frame change curve based on the first brightness curve and the second brightness curve. The frame-to-frame change curve is used to characterize the relationship between the brightness change of the current frame image and the grayscale value of the previous frame image. The processing module is also used to adjust the saturation corresponding to each grayscale value of the current frame image based on the frame-to-frame change curve. The grayscale values are divided into dark areas, intermediate areas, and bright areas in descending order of magnitude; the adjustment level corresponding to the dark area is the dark level, the adjustment level corresponding to the intermediate area is the intermediate level, and the adjustment level corresponding to the bright area is the bright level; the absolute value of the adjustment value of the dark level is less than the absolute value of the adjustment value of the bright level, and the absolute value of the adjustment value of the bright level is less than the absolute value of the adjustment value of the intermediate level.
8. An electronic device, characterized in that, It includes a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method for video enhancement and apparatus thereof
CN101340510A
Image correction processing apparatus and program
JP2023078866A