Video image display method, device and equipment

By calculating the brightness curve changes of the front and back frame images and adjusting the saturation of the image grayscale value, the problem of image presentation effect reduction caused by dynamic contrast technology is solved, and the color density matching is achieved when the brightness changes, improving the image display effect.

CN120434341APending Publication Date: 2025-08-05GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410152073.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

After dynamic contrast technology adjusts the image, the image rendering effect is reduced.

Method used

By obtaining the first brightness curve of the previous frame image and the second brightness curve of the present frame image, the change curve of the previous and next frames is calculated, and the saturation corresponding to the grayscale values of the image is adjusted according to the change curve to match the relationship between the brightness change amount and the color concentration.

Benefits of technology

When the image brightness changes, the color density changes accordingly, improving the image presentation effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120434341A_ABST
    Figure CN120434341A_ABST
Patent Text Reader

Abstract

The invention discloses a video image display method, device and equipment, and the method comprises the steps: obtaining a first brightness curve of a previous frame of image, and enabling the first brightness curve to be used for representing the relation between the brightness of the previous frame of image and a gray-scale value; obtaining a second brightness curve of the current frame image, wherein the second brightness curve is used for representing a relationship between the brightness of the current frame image and a gray-scale value; according to the first brightness curve and the second brightness curve, a front and back frame change curve is obtained, and the front and back frame change curve is used for representing the relationship between the brightness variation and the gray-scale value of the current frame image and the previous frame image; and adjusting the saturation corresponding to each gray-scale value of the frame image according to the change curve of the front frame and the rear frame. The video image display method, device and equipment provided by the invention have the advantage of improving the presentation effect of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and particularly to a video image display method, apparatus, and device. Background Art

[0002] Today, as people's requirements for media quality are getting higher and higher, the contrast of video images has become an important indicator of the performance of many electronic video devices. Among them, the dynamic contrast is usually used to describe the degree of light and dark changes in an image. A high contrast indicates a large brightness difference in the image, while a low contrast indicates a small brightness difference.

[0003] The dynamic contrast technology of video images is introduced to improve the quality and visual effect of images. Dynamic contrast refers to the ability of a video to automatically adjust the white and black brightness levels of an image in different scenarios to enhance the contrast of the image in specific situations. It can automatically adjust the brightness according to the image content, making the dark parts darker and the bright parts brighter, thereby improving the details and clarity of the image. This can make the details of the image more distinct and enhance the viewing experience.

[0004] However, after adjusting the image using the dynamic contrast technology, the presentation effect of the image is reduced. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a video image display method, apparatus, and device, which can solve the problem that the presentation effect of the image is reduced after the above dynamic contrast technology adjusts the image by adjusting the brightness curve.

[0006] To achieve the above purpose, on the one hand, the embodiments of the present application provide a video image display method, including: obtaining a first brightness curve of the previous frame image, where the first brightness curve is used to characterize the relationship between the brightness and the gray scale value of the previous frame image; obtaining a second brightness curve of the current frame image, where the second brightness curve is used to characterize the relationship between the brightness and the gray scale value of the current frame image; obtaining a change curve between the previous and current frames according to the first brightness curve and the second brightness curve, where the change curve between the previous and current frames is used to characterize the relationship between the brightness change amount of the current frame image and the previous frame image and the gray scale value; adjusting the saturation corresponding to each gray scale value of the current frame image according to the change curve between the previous and current frames; the saturation corresponding to each gray scale value of the current frame image is used to characterize the relationship between the saturation and the gray scale value of the current frame image.

[0007] Optionally, adjusting the saturation corresponding to each gray scale value of the current frame image according to the front and back frame change curve includes: obtaining the saturation corresponding to each gray scale value of the current frame image; obtaining an adjustment relationship, where the adjustment relationship is used to represent the corresponding relationship between the brightness change amount and the adjustment value; and adjusting the saturation in the saturation corresponding to each gray scale value of the current frame image by using the adjustment relationship.

[0008] Optionally, the adjustment relationship has multiple different adjustment levels, and the multiple adjustment levels are divided according to gray scale value intervals. The adjustment level is used to represent the corresponding relationship between the brightness change amount and the adjustment value in the same gray scale value interval.

[0009] Adjusting the saturation in the saturation corresponding to each gray scale value of the current frame image by using the adjustment relationship includes: determining the gray scale value interval where the target gray scale value is located; determining the adjustment level corresponding to the gray scale value interval where the target gray scale value is located; determining the brightness change amount of the target gray scale value according to the front and back frame change curve; determining the adjustment value corresponding to the brightness change amount of the target gray scale value according to the adjustment level corresponding to the gray scale value interval where the target gray scale value is located; determining the saturation of the current frame image of the target gray scale value according to the saturation corresponding to each gray scale value of the current frame image; and adjusting the saturation of the current frame image of the target gray scale value by using the adjustment value corresponding to the brightness change amount of the target gray scale value to obtain the new saturation of the current frame image of the target gray scale value.

[0010] Optionally, the gray scale values are sequentially divided into a dark area, a middle area, and a bright area according to size; the multiple adjustment levels include a dark level, a middle level, and a bright level; the dark level is used to represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the dark area; the middle level is used to represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the middle area; the bright level is used to represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the bright area; 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 middle level.

[0011] Optionally, each adjustment level includes multiple sub-adjustment areas, and the multiple sub-adjustment areas are divided according to the size of the brightness change amount. The brightness change amounts in the same sub-adjustment area correspond to the same adjustment value.

[0012] Determining an adjustment value corresponding to the luminance change amount of the target gray level value according to the adjustment level corresponding to the gray level value interval where the target gray level value is located includes: determining a sub-adjustment area where the luminance change amount of the target gray level value is located; using the adjustment value corresponding to the sub-adjustment area where the luminance change amount of the target gray level value is located as the adjustment value corresponding to the luminance change amount of the target gray level value.

[0013] Optionally, adjusting the saturation corresponding to each gray level value of the current frame image using the adjustment relationship further includes: judging the luminance change situation corresponding to the target gray level value according to the front-back frame change curve, where the luminance change situation includes getting brighter and getting darker; determining the positive or negative of the adjustment value corresponding to the target gray level value according to the luminance change situation of the current frame image.

[0014] Optionally, when the luminance change situation corresponding to the target gray level value is getting brighter, the adjustment value corresponding to the target gray level value is positive; when the luminance change situation corresponding to the target gray level value is getting darker, the adjustment value corresponding to the target gray level value is negative.

[0015] To achieve the above object, on the other hand, an embodiment of the present application further provides a video image processing device, including: an acquisition module, configured to acquire a first luminance curve of a previous frame image and a second luminance curve of the current frame image, where the first luminance curve is used to characterize the relationship between the luminance and gray level value of the previous frame image, and the second luminance curve is used to characterize the relationship between the luminance and gray level value of the current frame image; a processing module, configured to obtain a front-back frame change curve according to the first luminance curve and the second luminance curve, where the front-back frame change curve is used to characterize the relationship between the luminance change amount of the current frame image and the previous frame image and the gray level value; the processing module is further configured to adjust the saturation corresponding to each gray level value of the current frame image according to the front-back frame change curve; the saturation corresponding to each gray level value of the current frame image is used to characterize the relationship between the saturation of the current frame image and the gray level value.

[0016] To achieve the above object, on another aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the method as described above.

[0017] To achieve the above object, on yet another aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when the computer execution instruction is executed by a processor, it is used to implement the method as described above.

[0018] In summary, the video image display method, device, and equipment provided in the embodiments of the present application obtain the change curve between the previous and current frames from the first brightness curve of the previous frame image and the second brightness curve of the current frame image, and adjust the saturation corresponding to each gray scale 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 concentration will also change accordingly, improving the presentation effect of the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 It is a flowchart of a video image display method provided in an embodiment of the present application;

[0021] Figure 2 It is a first brightness curve and a second brightness curve provided in an embodiment of the present application;

[0022] Figure 3 It is a change curve graph between the previous and current frames provided in an embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of a video image processing device provided in an embodiment of the present application;

[0024] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0025] As described in the background art, after adjusting the contrast of a video image by the related dynamic contrast technology, the presentation effect of the image may be reduced. Through research by the inventors of the present application, the reason for the reduction of the presentation effect of the image is that the dynamic contrast technology can automatically adjust the brightness according to the image content, making the dark part darker and the bright part brighter, thereby enhancing the details and clarity of the image. Thus, adjusting the contrast will inevitably change the brightness of the image. However, the change in the brightness of the image will affect the human eye's perception of the color concentration of the image, and further affect the presentation effect of the image.

[0026] In view of this, the color concentration of the image, that is, the saturation of the image, can be changed when the brightness of the image changes. Through research by the inventors of the present application, it is found that the change amount of the saturation is related to the change amount of the brightness. At positions where the change amount of the brightness is large, the saturation of the image needs to be changed significantly to achieve a better presentation effect. At positions where the change amount of the brightness is small, the saturation of the image can be changed slightly to well match the two.

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application.

[0028] All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application. Without conflict, the following embodiments and the features in the embodiments may be combined with each other.

[0029] In image display, the CPU can calculate the display content and submit it to the GPU. The GPU can render the display content. The graphics card can convert the digital-analog signal (the rendered display content) into an image data signal and output it to the display. The display receives the image data signal and displays the image. As mentioned below, S100, S200, S300, and S400 can be implemented based on the GPU.

[0030] Figure 1 It is a flowchart of the video image display method provided by the embodiments of this application. Refer to Figure 1 , the video image display method provided by the embodiments of this application 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, the brightness of an image refers to the size of the image pixels. The larger the pixel value, the brighter the image at that pixel point, otherwise it is darker. The image histogram is used to represent the distribution of the pixel values (gray values) of the image, that is, the brightness distribution of the image. The X-axis of the histogram is the pixel value (gray value), and the Y-axis of the histogram is the number of pixels or brightness with this pixel value in the image. Among them, the general range of the X-axis is 0-255. The image histogram can be statistically calculated using OpenCV functions and Numpy functions, and the image histogram can be drawn using Matplotlib functions and OpenCV functions.

[0033] The dynamic contrast technology can adjust the image histogram through linear transformation, histogram normalization, global histogram equalization, contrast-limited adaptive histogram equalization, etc. to achieve the purpose of adjusting the image contrast. The image histogram adjusted by using the existing contrast technology is the brightness curve. Thus, the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image can be obtained by using the above methods.

[0034] Among them, the first brightness curve can characterize the relationship between the brightness and the gray-scale value of the previous frame image. That is to say, the first brightness curve C1 is: in the previous frame image, the relationship curve of the brightness corresponding to different gray-scale values. The abscissa of the first brightness curve C1 can be the gray-scale value, and the ordinate can be the brightness of the previous frame image. For example Figure 2 in, the brightness of the previous frame image corresponding to the gray-scale value 50 is 46. The second brightness curve C2 can characterize the relationship between the brightness and the gray-scale value of this frame image. That is to say, the second brightness curve C2 is: in this frame image, the relationship curve of the brightness corresponding to different gray-scale values. The abscissa of the first brightness curve C1 can be the gray-scale value, and the ordinate can be the brightness of this frame image. For example Figure 2 in, the brightness of this frame image corresponding to the gray-scale value 50 is 53.

[0035] S300. Obtain the change curve between the previous and current frames according to the first brightness curve and the second brightness curve;

[0036] Among them, referring to Figure 3 , the change curve between the previous and current frames can characterize the relationship between the change amount of the brightness of this frame image and the previous frame image and the gray-scale value. That is to say, the change curve between the previous and current frames is: the relationship curve of the change amount of the brightness corresponding to different gray-scale values. The abscissa of the change curve between the previous and current frames can be the gray-scale value, and the ordinate can be the change amount of the brightness. The change curve between the previous and current frames, the first brightness curve C1 and the second brightness curve C2 can have the same abscissa expansion. Figure 3 in, it is shown by taking the abscissa expanded from 0 to 255 as an example.

[0037] Specifically, in the first brightness curve C1, the first brightness of the previous frame image corresponding to the target gray-scale value; in the second brightness curve C2, the second brightness of this frame image corresponding to the target gray-scale value. The change amount of the brightness corresponding to the target gray-scale value can be: the difference, ratio, percentage, etc. between the first brightness of the previous frame image corresponding to the target gray-scale value and the second brightness of this frame image corresponding to the target gray-scale value.

[0038] For example Figure 2 in, the first brightness corresponding to the target gray-scale value 50 is 46, and the second brightness corresponding to the target gray-scale value 50 is 53. Figure 3 in, the change amount of the brightness corresponding to the target gray-scale value 50 is the difference 7 between the second brightness and the first brightness.

[0039] S400. Adjust the saturation corresponding to each gray-scale value of this frame image according to the change curve between the previous and current frames.

[0040] Among them, considering that in the change curve of the front and rear frames, the brightness change amounts corresponding to different gray scale values are different. Therefore, it is necessary to adjust the saturation according to the magnitude of the brightness change amount. For example, at the position where the brightness change amount is large, the saturation is adjusted significantly. At the position where the brightness change amount is small, the saturation is adjusted slightly.

[0041] In addition, the saturation can be adjusted by using an adjustment value associated with the brightness change amount. Specifically as follows:

[0042] S410. Obtain an adjustment relationship;

[0043] Among them, the adjustment relationship can represent the corresponding relationship between the brightness change amount and the adjustment value.

[0044] The inventors of the present application found that the magnitude of the gray scale value will affect the sensitivity of the human eye to saturation. For example, the human eye is sensitive to the saturation at the position of low gray scale values. That is to say, when adjusting the same magnitude of saturation at the positions of high gray scale values and low gray scale values, the human eye will feel that the saturation at the position of low gray scale values is significantly improved. In addition, the gray scale values in most areas of the video image are in the middle, that is to say, the middle gray scale values appear frequently and in large numbers.

[0045] In view of this, the adjustment relationship can have multiple different adjustment levels, and the multiple adjustment levels can be divided according to the gray scale value intervals. The adjustment level can represent the corresponding relationship between the brightness change amount and the adjustment value in the same gray scale value interval. The adjustment values of different adjustment levels are different.

[0046] Considering that the human eye is sensitive to the saturation at the position of low gray scale values and the middle gray scale values appear frequently and in large numbers, the gray scale values can be successively divided into a dark area, a middle area and a bright area according to the magnitude of the gray scale values. Exemplarily, Figure 3 in, the gray scale value range of the dark area can be: 0 to 75; the gray scale value range of the middle area can be: 75 to 200; the gray scale value range of the bright area can be: 200 to 255.

[0047] The multiple adjustment levels can successively include a dark level, a middle level and a bright level from small to large. The dark level can represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the dark area; the middle level can represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the middle area; the bright level can represent the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the bright area. 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 middle level.

[0048] S420. Use the adjustment relationship to adjust the saturation corresponding to each gray scale value of the current frame image.

[0049] Specifically as follows:

[0050] S4201. Determine the gray-scale value interval in which the target gray-scale value is located; S4202. Determine the adjustment level corresponding to the gray-scale value interval in which the target gray-scale value is located; S4203. Determine the brightness change amount of the target gray-scale value according to the front and back frame change curves;

[0051] Exemplarily, Figure 3 Among them, the target gray-scale value 50 is in the dark area; the dark area corresponds to the dark level; the brightness change amount corresponding to the target gray-scale value 50 is 7; Another exemplarily, Figure 3 Among them, the target gray-scale value 150 is in the middle area; the middle area corresponds to the middle level; the brightness change amount corresponding to the target gray-scale value 150 is 50; Still another exemplarily, Figure 3 Among them, the target gray-scale value 220 is in the bright area; the bright area corresponds to the bright level; the brightness change amount corresponding to the target gray-scale value 220 is 10.

[0052] S4204. Determine the adjustment value corresponding to the brightness change amount of the target gray-scale value according to the adjustment level corresponding to the gray-scale value interval in which the target gray-scale value is located;

[0053] To simplify the adjustment, optionally, each adjustment level can include multiple sub-adjustment areas, and the multiple sub-adjustment areas can be divided according to the magnitude of the brightness change amount. And the brightness change amounts in the same sub-adjustment area correspond to the same adjustment value.

[0054] Among them, step S4204 can include: determining the sub-adjustment area in which the brightness change amount of the target gray-scale value is located; using the adjustment value corresponding to the sub-adjustment area in which the brightness change amount of the target gray-scale value is located as the adjustment value corresponding to the brightness change amount of the target gray-scale value.

[0055] Exemplarily, in the dark level, the brightness change amounts less than 9 are divided into one sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 1; the brightness change amounts not less than 9 are divided into another sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 2; in the middle level, the brightness change amounts less than 30 are divided into one sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 5; the brightness change amounts not less than 30 are divided into another sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 6; in the bright level, the brightness change amounts less than 14 are divided into one sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 3; the brightness change amounts not less than 14 are divided into another sub-adjustment area, and the adjustment value corresponding to this sub-adjustment area is 4.

[0056] Step S420 may further include: S4205. Use the adjustment value corresponding to the brightness change amount of the target gray-scale value to adjust the saturation of the current frame image corresponding to the target gray-scale value. The adjustment value can be the saturation; or, the adjustment value is a compensation value.

[0057] When the adjustment value is the saturation, the adjustment value corresponding to the target gray level obtained using the adjustment relationship is the saturation corresponding to the target gray level. When the adjustment value is the compensation value, the saturation of the original frame image can be compensated using the adjustment value. Specifically, S420 provided in the embodiments of the present application may further include: S4206. Determine the brightness change situation corresponding to the target gray level value according to the front and back frame change curves, where the brightness change situation includes getting brighter and getting darker; S4207. Determine the positive or negative of the adjustment value corresponding to the target gray level value according to the brightness change situation of the current frame image.

[0058] Specifically, when the brightness change situation corresponding to the target gray level value is getting brighter, the adjustment value corresponding to the target gray level value is positive; when the brightness change situation corresponding to the target gray level value is getting darker, the adjustment value corresponding to the target gray level value is negative.

[0059] One exemplary example is that the saturation corresponding to the target gray level value 50 is X1, the brightness change amount of the target gray level value 50 is 7 which is lower than 9, its corresponding adjustment value is 1, the brightness change situation corresponding to the target gray level value 50 is getting brighter, and the new saturation of the target gray level value 50 is X1 + 1; another exemplary example is that the saturation corresponding to the target gray level value 150 is X2, the brightness change amount of the target gray level value 150 is 50 which is not lower than 30, its corresponding adjustment value is 6, the brightness change situation corresponding to the target gray level value 150 is getting brighter, and the new saturation of the target gray level value 150 is X2 + 6; yet another exemplary example Figure 3 is that the saturation corresponding to the target gray level value 220 is X3, the brightness change amount of the target gray level value 220 is 10 which is lower than 14, its corresponding adjustment value is 3, the brightness change situation corresponding to the target gray level value 220 is getting brighter, and the new saturation of the target gray level value 220 is X3 + 3.

[0060] In summary, the video image display method provided in the embodiments of the present application obtains the front and back frame change curves from the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image, and adjusts the saturation corresponding to each gray level value of the current frame image according to the front and back frame change curves, so that when the brightness of the image changes, the color concentration will also change accordingly, improving the presentation effect of the image.

[0061] Reference Figure 4 In addition, the embodiments of the present application further provide a video image processing device 1000. The video image processing device 1000 may include an acquisition module 100 and a processing module 200. Among them, the acquisition module 100 can acquire the first brightness curve C1 of the previous frame image and the second brightness curve C2 of the current frame image. The first brightness curve C1 can represent the relationship between the brightness and the gray level value of the previous frame image, and the second brightness curve C2 can represent the relationship between the brightness and the gray level value of the current frame image.

[0062] The processing module 200 can obtain the change curve between the front and back frames according to the first brightness curve C1 and the second brightness curve C2. The change curve between the front and back frames can characterize the relationship between the brightness change amount of the current frame image and the previous frame image and the gray scale value. The processing module 200 can also adjust the saturation corresponding to each gray scale value of the current frame image according to the change curve between the front and back frames.

[0063] Optionally, the processing module 200 adjusting the saturation corresponding to each gray scale value of the current frame image according to the change curve between the front and back frames may include:

[0064] The processing module 200 can obtain the saturation corresponding to each gray scale value of the current frame image, can obtain the adjustment relationship, and can use the adjustment relationship to adjust the saturation in the saturation corresponding to each gray scale value of the current frame image. Among them, the adjustment relationship can characterize the corresponding relationship between the brightness change amount and the adjustment value.

[0065] Optionally, the adjustment relationship can have multiple different adjustment levels, and the multiple adjustment levels can be divided according to the gray scale value interval. The adjustment level can characterize the corresponding relationship between the brightness change amount and the adjustment value in the same gray scale value interval.

[0066] The processing module 200 using the adjustment relationship to adjust the saturation in the saturation corresponding to each gray scale value of the current frame image may include:

[0067] The processing module 200 can determine the gray scale value interval where the target gray scale value is located, can determine the adjustment level corresponding to the gray scale value interval where the target gray scale value is located, can determine the brightness change amount of the target gray scale value according to the change curve between the front and back frames, can determine the adjustment value corresponding to the brightness change amount of the target gray scale value according to the adjustment level corresponding to the gray scale value interval where the target gray scale value is located, and can use the adjustment value corresponding to the brightness change amount of the target gray scale value to adjust the saturation of the current frame image corresponding to the target gray scale value.

[0068] Optionally, the gray scale values can be sequentially divided into a dark area, a middle area, and a bright area according to their magnitudes. The multiple adjustment levels include a dark level, a middle level, and a bright level. The dark level is used to characterize the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the dark area; the middle level is used to characterize the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the middle area; the bright level is used to characterize the corresponding relationship between the brightness change amount and the adjustment value when the gray scale value is in the bright area. 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 middle level.

[0069] Optionally, each adjustment level can include multiple sub-adjustment areas, and the multiple sub-adjustment areas can be divided according to the magnitude of the brightness change amount. The brightness change amounts in the same sub-adjustment area can correspond to the same adjustment value.

[0070] The processing module 200 determines an adjustment value corresponding to the brightness change amount of the target gray scale value according to an adjustment level corresponding to the gray scale value interval in which the target gray scale value is located, which may include:

[0071] The processing module 200 may determine a sub-adjustment area in which the brightness change amount of the target gray scale value is located, and may use an adjustment value corresponding to the sub-adjustment area in which the brightness change amount of the target gray scale value is located as the adjustment value corresponding to the brightness change amount of the target gray scale value.

[0072] Optionally, when the processing module 200 adjusts the saturation in the saturation corresponding to each gray scale value of the current frame image by using an adjustment relationship, it may further include: The processing module 200 may judge the brightness change situation corresponding to the target gray scale value according to the front and back frame change curves, and may determine the positive or negative of the adjustment value corresponding to the target gray scale value according to the brightness change situation of the current frame image. Among them, the brightness change situation may include getting brighter and getting darker.

[0073] Among them, when the brightness change situation corresponding to the target gray scale value is getting brighter, the adjustment value corresponding to the target gray scale value is positive; when the brightness change situation corresponding to the target gray scale value is getting darker, the adjustment value corresponding to the target gray scale value is negative.

[0074] It should be noted that when the video image processing device 1000 provided in the above embodiment executes the video image display method, only the above-mentioned division of each functional module is used for illustration. In practical applications, the above functions may be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the video image processing device 1000 provided in the above embodiment and the video image display method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0075] In summary, the video image processing device 1000 provided in the embodiment of the present application 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 obtains the front and back frame change curves according to 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 scale value of the current frame image according to the front and back frame change curves, so that when the brightness of the image changes, the color concentration will also change accordingly, improving the presentation effect of the image.

[0076] The embodiment of the present application also provides an electronic device 2000, refer to Figure 5, the electronic device 2000 may include a processor 2100 and a memory 2200. The processor 2100; wherein, the memory 2200 may store a computer program, and the computer program is adapted to be loaded and executed by the processor 2100 to implement the identification method mentioned above.

[0077] Specifically, the processor 2100 and the memory 2200 may be connected through a bus. At the same time, the processor 2100 is also connected to the input / output interface of the electronic device 2000 through the bus. The memory 2200 stores a PCB design program, and the input / output interface may be connected to a keyboard, an external memory, a display, etc. The design diagram of the PCB can be displayed on the display or output through an output device such as a printer connected to the electronic device 2000.

[0078] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium may store computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the above identification method. The specific execution process can be referred to the above specific description and will not be elaborated here.

[0079] In the above embodiments, the processor may 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, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read-only memory or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the instructions in the memory and combines its hardware to complete the steps of the above method.

[0080] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

Claims

1. A video image display method, characterized in that: include: Acquire a first brightness curve of a previous frame image, where the first brightness curve is used to represent a relationship between brightness and grayscale values of the previous frame image; Acquire a second brightness curve of the current frame image, where the second brightness curve is used to represent the relationship between the brightness and grayscale value of the current frame image; deriving a previous-and-next-frame change curve based on the first brightness curve and the second brightness curve, wherein the previous-and-next-frame change curve is used to characterize a relationship between a brightness change amount and a grayscale value between the current frame image and the previous frame image; According to the previous and next frame change curves, the saturation corresponding to each grayscale value of the current frame image is adjusted.

2. The method according to claim 1, characterized in that The adjusting the saturation corresponding to each grayscale value of the current frame image according to the previous and next frame change curves includes: Acquire an adjustment relationship, where the adjustment relationship is used to represent a correspondence between the brightness change amount and the adjustment value; The saturation corresponding to each grayscale value of the current frame image is adjusted using the adjustment relationship.

3. The method according to claim 2, characterized in that The adjustment relationship has multiple different adjustment levels, the multiple adjustment levels are divided according to grayscale value intervals, and the adjustment levels are used to represent the corresponding relationship between the brightness change amount and the adjustment value in the same grayscale value interval; The adjusting the saturation corresponding to each grayscale value of the current frame image by using the adjustment relationship includes: Determining the grayscale value interval of the target grayscale value; determining an adjustment level corresponding to the grayscale value interval in which the target grayscale value is located; Determining a brightness change of the target grayscale value according to the preceding and following frame change curves; determining an adjustment value corresponding to a brightness change of the target grayscale value according to an adjustment level corresponding to a grayscale value interval in which the target grayscale value is located; The saturation of the current frame image corresponding to the target grayscale value is adjusted using the adjustment value corresponding to the brightness change of the target grayscale value.

4. The method according to claim 3, characterized in that The grayscale values are divided into dark area, middle area and bright area according to their size; The multiple adjustment levels include a dark level, an intermediate level, and a bright level; the dark level is used to represent the corresponding relationship between the brightness change amount and the adjustment value when the grayscale value is in the dark area; The intermediate level is used to represent the corresponding relationship between the brightness change and the adjustment value when the grayscale value is in the intermediate area; the bright level is used to represent the corresponding relationship between the brightness change and the adjustment value when the grayscale value is in the bright area; The absolute value of the dark level adjustment value is smaller than the absolute value of the bright level adjustment value, and the absolute value of the bright level adjustment value is smaller than the absolute value of the middle level adjustment value.

5. The method according to claim 3, characterized in that Each of the adjustment levels includes a plurality of sub-adjustment areas, and the plurality of sub-adjustment areas are divided according to the magnitude of the brightness variation, and the brightness variation in the same sub-adjustment area corresponds to the same adjustment value; Determining the adjustment value corresponding to the brightness variation of the target grayscale value according to the adjustment level corresponding to the grayscale value interval in which the target grayscale value is located includes: Determining the sub-adjustment area where the brightness variation of the target grayscale value is located; The adjustment value corresponding to the sub-adjustment area where the brightness variation of the target grayscale value is located is used as the adjustment value corresponding to the brightness variation of the target grayscale value.

6. The method according to any one of claims 2 to 5, characterized in that: The adjusting the saturation corresponding to each grayscale value of the current frame image by using the adjustment relationship further includes: Determining a brightness change corresponding to a target grayscale value based on the preceding and following frame change curves, wherein the brightness change includes brightening and darkening; The positive or negative value of the adjustment value corresponding to the target grayscale value is determined according to the change in the brightness of the current frame image.

7. The method according to claim 6, 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 dimming, the adjustment value corresponding to the target grayscale value is negative.

8. A video image processing device, characterized in that: The device comprises: 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 is used to represent the relationship between the brightness and the grayscale value of the previous frame image, and the second brightness curve is used to represent the relationship between the brightness and the grayscale value of the current frame image; A processing module is used to obtain a previous and next frame change curve based on the first brightness curve and the second brightness curve, and the previous and next frame change curve is used to characterize the relationship between the brightness change and the grayscale value of the current frame image and the previous frame image; the processing module is also used to adjust the saturation corresponding to each grayscale value of the current frame image according to the previous and next frame change curve.

9. An electronic device, characterized in that: The method comprises a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Method for video enhancement and apparatus thereof

    CN101340510A

  • Image correction processing apparatus and program

    JP2023078866A

  • Caller's location automatic notification system and its control method

    KR102291347B1

  • Method for adjusting saturation and contrast of an area of an image and apparatus thereof

    TW200816790A