Disclosure of Invention
The invention mainly aims to solve the technical problems that the prior art can not reduce the display brightness of the OSD and ensure the visual comfort when a user watches a video program containing the OSD on the premise of keeping the image display brightness except the OSD in the video signal unchanged.
In order to achieve the above object, the present invention provides a method for reducing OSD brightness in a video image, where the method for reducing OSD brightness in a video image includes:
judging whether an image frame containing OSD exists in the video signal;
when an image frame containing OSD exists in the video signal, determining the position and the brightness value corresponding to the OSD in the image frame; and
and reducing the display brightness of the OSD in the image frame when the video signal is reproduced according to the position and the brightness value corresponding to the OSD in the image frame.
Preferably, the reducing the display brightness of the OSD in the image frame when the video signal is reproduced according to the position and the brightness value corresponding to the OSD in the image frame specifically includes:
before the video signal is reproduced, determining each pixel point corresponding to the OSD in the image frame according to the position corresponding to the OSD in the image frame, and reducing the brightness value of each pixel point to realize the reduction of the display brightness of the OSD in the image frame when the video signal is reproduced.
Preferably, the reducing the display brightness of the OSD when the image frame is reproduced according to the position and the brightness value corresponding to the OSD in the image frame specifically includes:
determining the corresponding position of the OSD in the image frame in a display backlight module according to the position of the OSD in the image frame;
determining the LED backlight brightness value of the corresponding position in a display backlight module according to the OSD brightness value in the image frame;
and when the video signal is reproduced, adjusting the LED backlight brightness of the position corresponding to the OSD in the display backlight module according to the LED backlight brightness value, so as to reduce the display brightness of the OSD in the image frame when the video signal is reproduced.
Preferably, the determining whether an image frame containing an OSD exists in the video signal specifically includes:
judging whether the video signal has the same image content and image brightness value, and reproducing the multi-frame images connected in time sequence;
and if so, determining that the multi-frame image with the same image content and image brightness value is an image frame containing OSD.
Preferably, the determining the position and the brightness value corresponding to the OSD in the image frame specifically includes:
calculating the brightness value of each pixel point in each frame of the image frame; comparing the brightness value of each pixel point with the brightness value of the pixel point at the corresponding position of the adjacent image frame;
determining pixel points with brightness difference equal to zero as OSD corresponding pixel points;
acquiring coordinate values and brightness values of pixel points corresponding to each OSD in each frame of the image frame;
and determining the position and the brightness value corresponding to the OSD in each frame of the image frame according to the coordinate value and the brightness value.
In order to achieve the above object, the present invention further provides an apparatus for reducing OSD brightness in a video image, including:
the judging module is used for judging whether an image frame containing OSD exists in the video signal;
the determining module is used for determining the position and the brightness value corresponding to OSD in the image frame when the image frame containing OSD exists in the video signal;
and the brightness control module is used for reducing the display brightness of the OSD in the image frame when the video signal is reproduced according to the position and the brightness value corresponding to the OSD in the image frame.
Preferably, the luminance control module includes:
and the brightness control unit is used for determining each pixel point corresponding to the OSD in the image frame according to the position corresponding to the OSD in the image frame before the video signal is reproduced, reducing the brightness value of each pixel point and realizing the reduction of the display brightness of the OSD in the image frame when the video signal is reproduced.
Preferably, the luminance control module includes:
the first brightness control unit is used for determining the corresponding position of the OSD in the image frame in a display backlight module according to the position of the OSD in the image frame; determining the LED backlight brightness value of the corresponding position in a display backlight module according to the OSD brightness value in the image frame; and when the video signal is reproduced, adjusting the LED backlight brightness of the position corresponding to the OSD in the display backlight module according to the LED backlight brightness value, so as to reduce the display brightness of the OSD in the image frame when the video signal is reproduced.
Preferably, the determining module is specifically configured to determine whether there are multiple frames of images in the video signal, where the image content and the image brightness value are the same, and the multiple frames of images are displayed in a time sequence; and if so, determining that the multi-frame image with the same image content and image brightness value is an image frame containing OSD.
Preferably, the determining module is specifically configured to calculate a brightness value of each pixel point in each frame of the image frame; comparing the brightness value of each pixel point with the brightness value of the pixel point at the corresponding position of the adjacent image frame; determining pixel points with brightness difference equal to zero as OSD corresponding pixel points; acquiring coordinate values and brightness values of pixel points corresponding to each OSD in each frame of the image frame; and determining the position and the brightness value corresponding to the OSD in each frame of the image frame according to the coordinate value and the brightness value.
The method and the device for reducing the OSD brightness in the video image provided by the invention judge whether the video signal has the image frame containing the OSD; when an image frame containing OSD exists in the video signal, determining the position and the brightness value corresponding to the OSD in the image frame; according to the position and the brightness value corresponding to the OSD in the image frame, the display brightness of the OSD in the image frame is reduced when the video signal is reproduced, the display brightness of the OSD can be reduced on the premise that the display brightness of the image except the OSD in the video signal is kept unchanged, the visual comfort degree of a user when the user watches the video program containing the OSD is ensured, and the visual experience effect of the user is improved.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The invention provides a method for reducing OSD brightness in a video image. Referring to fig. 1, fig. 1 is a flowchart illustrating a method for reducing OSD brightness in a video image according to an embodiment of the present invention. In this embodiment, the method for reducing the OSD brightness in the video image includes:
step S10, determining whether an image frame containing OSD exists in the video signal.
The step S10 is specifically performed as follows: judging whether a plurality of frames of images which have the same image content and image brightness value and are connected in a time sequence are present in the video signal; and if so, determining that the multi-frame image with the same image content and image brightness value is an image frame containing OSD.
Generally, if a certain video signal contains an OSD, the image content and the brightness value of the position where the OSD is located in a multi-frame image containing the OSD are kept consistent; and the plurality of frames of images are sequentially connected in the reproduction time. Therefore, in this embodiment, by calculating the brightness difference of the corresponding pixel point in the adjacent image frames, if the brightness difference of the pixel point at the corresponding position in the sequentially adjacent multi-frame image frames is always zero, it can be determined that all the adjacent multi-frame image frames contain OSD, i.e., the video signal contains OSD content. Wherein the multi-frame image may be a few frames of images, or a dozen frames of images, or even dozens of frames of images.
Step S20, when there is an image frame containing OSD in the video signal, determining a position and a brightness value corresponding to the OSD in the image frame.
This step S20 specifically includes the following processing: calculating the brightness value of each pixel point in each frame of the image frame; comparing the brightness value of each pixel point with the brightness value of the pixel point at the corresponding position of the adjacent image frame; determining pixel points with brightness difference equal to zero as OSD corresponding pixel points; acquiring coordinate values and brightness values of pixel points corresponding to each OSD in each frame of the image frame; and determining the position and the brightness value corresponding to the OSD in each frame of the image frame according to the coordinate value and the brightness value.
And step S30, reducing the display brightness of the OSD in the image frame when the video signal is reproduced according to the position and the brightness value corresponding to the OSD in the image frame.
The step S30 in the present invention includes the following two processing manners:
the first processing mode is as follows: before the video signal is reproduced, determining each pixel point corresponding to the OSD in the image frame according to the position corresponding to the OSD in the image frame, and reducing the brightness value of each pixel point to realize the reduction of the display brightness of the OSD in the image frame when the video signal is reproduced.
Aiming at the first processing mode, an OSD brightness threshold value is preset; the reducing of the brightness value of each pixel point specifically comprises: and reducing the brightness value of each pixel point to be equal to the OSD brightness threshold value. The preset OSD brightness threshold value can be set according to the actual needs of a user, and the aim is that human eyes feel comfortable after the image frames are reproduced.
The second processing mode is as follows: referring to fig. 2, fig. 2 is a detailed flowchart of step S30 in fig. 1. The step S30 specifically includes:
step S31, determining a corresponding position of the OSD in the image frame in the display backlight module according to the position of the OSD in the image frame.
Step S32, determining the LED backlight brightness value at the corresponding position in the display backlight module according to the OSD brightness value in the image frame.
Generally, when the brightness value of the OSD in the image frame is too large, if the brightness value of the LED backlight at the position of the display backlight module corresponding to the OSD in the corresponding image frame is reduced when the video signal is reproduced, the display brightness of the OSD in the corresponding image frame can be reduced. In step S32, the LED backlight brightness value at the corresponding position in the display backlight module needs to be determined according to the brightness value of the OSD in the image frame. Generally, the larger the OSD brightness value is, the larger the brightness value that the LED backlight at the corresponding position in the display backlight module needs to be reduced, and vice versa.
And step S33, when the video signal is reproduced, adjusting the LED backlight brightness of the position corresponding to the OSD in the display backlight module according to the LED backlight brightness value, so as to reduce the display brightness of the OSD in the image frame when the video signal is reproduced.
The method for adjusting the LED backlight brightness of the position corresponding to the OSD in the display backlight module comprises the following steps: reducing the magnitude of the drive current of the LED or changing the duty cycle of the drive current.
In the present invention, the step S30 may adopt the first mode or the second mode, or may adopt both modes.
The OSD in the above embodiment includes: OSD characters and OSD graphics.
The method for reducing the OSD brightness in the video image provided by the above embodiment determines whether the video signal has an image frame containing OSD; when an image frame containing OSD exists in the video signal, determining the position and the brightness value corresponding to the OSD in the image frame; according to the position and the brightness value corresponding to the OSD in the image frame, the display brightness of the OSD in the image frame is reduced when the video signal is reproduced, the display brightness of the OSD can be reduced on the premise that the display brightness of the image except the OSD in the video signal is kept unchanged, the visual comfort degree of a user when the user watches the video program containing the OSD is ensured, and the visual experience effect of the user is improved.
The invention further provides a device for reducing OSD brightness in video images. Referring to fig. 3, fig. 3 is a functional block diagram of an embodiment of an apparatus for reducing OSD brightness in a video image according to the present invention. In this embodiment, the apparatus 100 for reducing OSD brightness in a video image comprises: a judging module 110, a determining module 120 and a brightness control module 130. Wherein,
a determining module 110, configured to determine whether an image frame containing an OSD exists in the video signal;
a determining module 120, configured to determine, when an image frame containing an OSD exists in the video signal, a position and a brightness value corresponding to the OSD in the image frame;
the brightness control module 130 is configured to reduce the display brightness of the OSD in the image frame when the video signal is reproduced according to the position and the brightness value corresponding to the OSD in the image frame.
In the above embodiment, the determining module 110 is specifically configured to determine whether the video signal has multiple frames of images with the same image content and image brightness values, and reproduce the multiple frames of images sequentially connected in time; and if so, determining that the multi-frame image with the same image content and image brightness value is an image frame containing OSD.
Generally, if a certain video signal contains an OSD, the image content and brightness value of the position where the OSD is located in a multi-frame image containing the OSD are kept consistent; and the plurality of frames of images are sequentially connected in the reproduction time. Therefore, in this embodiment, by calculating the brightness difference of the corresponding pixel point in the adjacent image frames, if the brightness difference of the pixel point at the corresponding position in the sequentially adjacent multi-frame image frames is always zero, it can be determined that all the adjacent multi-frame image frames contain OSD, i.e., the video signal contains OSD content. Wherein the multi-frame image may be a few frames of images, or a dozen frames of images, or even dozens of frames of images.
In the above embodiment, the determining module 120 is specifically configured to calculate a brightness value of each pixel point in each frame of the image frame; comparing the brightness value of each pixel point with the brightness value of the pixel point at the corresponding position of the adjacent image frame; determining pixel points with brightness difference equal to zero as OSD corresponding pixel points; acquiring coordinate values and brightness values of pixel points corresponding to each OSD in each frame of the image frame; and determining the position and the brightness value corresponding to the OSD in each frame of the image frame according to the coordinate value and the brightness value.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a detailed functional block of the brightness control module 130 in fig. 3. In the above embodiment, the brightness control module 130 includes a brightness control unit 131, and the brightness control unit 131 determines each pixel point corresponding to the OSD in the image frame according to the position corresponding to the OSD in the image frame before the video signal is reproduced, and reduces the brightness value of each pixel point, so as to reduce the display brightness of the OSD in the image frame when the video signal is reproduced.
The embodiment is preset with an OSD brightness threshold value; the reducing of the brightness value of each pixel by the brightness control unit 131 is specifically: and reducing the brightness value of each pixel point to be equal to the OSD brightness threshold value. The preset OSD brightness threshold value can be set according to the actual needs of a user, and the aim is that human eyes feel comfortable after the image frames are reproduced.
Another embodiment of the present invention provides another apparatus for reducing OSD brightness in a video image, which is adjusted based on the above embodiments, and referring to fig. 5, fig. 5 is a schematic diagram of another detailed functional module of the brightness control module in fig. 3. The adjustment is as follows: the brightness control module 130 includes a first brightness control unit 132. Namely, the first luminance controlling unit 132 replaces the luminance controlling unit 131.
The first brightness control unit 32 is configured to determine, according to a position of an OSD in the image frame, a corresponding position of the OSD in the image frame in a display backlight module; determining the LED backlight brightness value of the corresponding position in a display backlight module according to the OSD brightness value in the image frame; and when the video signal is reproduced, adjusting the LED backlight brightness of the position corresponding to the OSD in the display backlight module according to the LED backlight brightness value, so as to reduce the display brightness of the OSD in the image frame when the video signal is reproduced.
Generally, when the brightness value of the OSD in the image frame is too large, if the LED backlight brightness of the display backlight module corresponding to the OSD in the corresponding image frame is reduced when the video signal is reproduced, the display brightness of the OSD in the corresponding image frame can be reduced. In this embodiment, the LED backlight brightness value at the corresponding position in the display backlight module needs to be determined according to the brightness value of the OSD in the image frame. Generally, the larger the OSD brightness value is, the larger the brightness value that the LED backlight at the corresponding position in the display backlight module needs to be reduced, and vice versa.
In this embodiment, the method for adjusting the LED backlight brightness at the position corresponding to the OSD opposite white in the display backlight module by the first brightness control unit 32 is as follows: reducing the magnitude of the drive current of the LED or changing the duty cycle of the drive current.
Another embodiment of the present invention provides another apparatus for reducing OSD brightness in a video image, which is adjusted based on the above embodiment, and referring to fig. 6, fig. 6 is a schematic diagram of another specific detailed functional module of the brightness control module in fig. 3. The adjustment is as follows: in this embodiment, the brightness control module 130 includes: a brightness control unit 131 and a first brightness control unit 132. The brightness control unit 131 and the first brightness control unit 132 of the present embodiment are the brightness control unit 131 and the first brightness control unit 132 described in the above embodiments, respectively, and detailed description thereof is omitted here.
The OSD in the above embodiments includes: OSD characters and OSD graphics.
The apparatus 100 for reducing OSD brightness in a video image provided in the above embodiments determines whether an image frame containing OSD exists in a video signal; when an image frame containing OSD exists in the video signal, determining the position and the brightness value corresponding to the OSD in the image frame; according to the position and the brightness value corresponding to the OSD in the image frame, the display brightness of the OSD in the image frame is reduced when the video signal is reproduced, the display brightness of the OSD can be reduced on the premise that the display brightness of the image except the OSD in the video signal is kept unchanged, the visual comfort degree of a user when the user watches the video program containing the OSD is ensured, and the visual experience effect of the user is improved.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.