Video enhancement method and device
First Claim
1. A video enhancement method, comprising:
- sequentially acquiring, by a video enhancement device, each frame in a video;
for each current frame, determining, by the video enhancement device, attribute information, which reflects a moving state or luminance, of the current frame, searching a preset mapping relationship between attribute information and a control parameter to obtain a control parameter of the current frame, and executing a video enhancement operation on the current frame by using the control parameter of the current frame;
or,for each current frame, dividing, by the video enhancement device, the current frame into multiple regions, determining attribute information, which reflects a moving state or luminance, of each region, searching a preset mapping relationship between attribute information and control parameter to obtain a control parameter of each region, and executing a video enhancement operation on the current frame by using the control parameters of all the regions in the current frame;
wherein the determining the attribute information, which reflects the moving state or the luminance, of the current frame and searching the preset mapping relationship between the attribute information and the control parameter to obtain the control parameter of the current frame comprises;
calculating a Quantization Parameter (QP) of the current frame, and searching a preset mapping relationship between a QP and a control parameter to obtain a control parameter corresponding to the QP;
or, determining a scenario type of the current frame, and searching a preset mapping relationship between a scenario type and a control parameter to obtain a control parameter corresponding to the scenario type;
or, calculating a luminance value of the current frame, and searching a preset mapping relationship between a luminance value and a control parameter to obtain a control parameter corresponding to the luminance value;
orwherein the determining the attribute information, which reflects the moving state or the luminance, of each region and searching the preset mapping relationship between the attribute information and the control parameter to obtain the control parameter of each region comprises;
calculating a QP of each region, and searching a preset mapping relationship between a QP and a control parameter to obtain the control parameter of each region;
or, determining a scenario type of each region, and searching a preset mapping relationship between a scenario type and a control parameter to obtain the control parameter of each region;
or, calculating a luminance value of each region, and searching a preset mapping relationship between a luminance value and a control parameter to obtain the control parameter of each region,wherein the control parameter comprises at least one of;
a contrast control parameter, a definition control parameter or a noise reduction control parameter;
wherein the scenario type at least comprises a still scenario and a moving scenario;
the still scenario comprises;
a desktop or document sharing scenario and/or a still person scenario; and
the moving scenario comprises;
at least one of a slight moving scenario, an ordinary moving scenario, a large moving scenario and a strenuous moving scenario.
1 Assignment
0 Petitions
Accused Products
Abstract
The disclosure discloses a video enhancement method and device, and belongs to the field of image processing. The method includes that: each frame in a video is sequentially acquired; and for each current frame, attribute information reflecting a moving state or luminance is determined, a preset mapping relationship is searched to obtain a control parameter corresponding to the attribute information, and video enhancement operation is executed on the current frame by using the control parameter. The device includes: an acquisition module and an enhancement module. By the disclosure, the problem of processing inflexibility caused by execution of the same enhancement over each frame in the video is solved, each frame in the video may be differentially enhanced, frame-based video enhancement is implemented, a video enhancement effect is effectively improved, and quality of the video is improved.
-
Citations
14 Claims
-
1. A video enhancement method, comprising:
-
sequentially acquiring, by a video enhancement device, each frame in a video; for each current frame, determining, by the video enhancement device, attribute information, which reflects a moving state or luminance, of the current frame, searching a preset mapping relationship between attribute information and a control parameter to obtain a control parameter of the current frame, and executing a video enhancement operation on the current frame by using the control parameter of the current frame;
or,for each current frame, dividing, by the video enhancement device, the current frame into multiple regions, determining attribute information, which reflects a moving state or luminance, of each region, searching a preset mapping relationship between attribute information and control parameter to obtain a control parameter of each region, and executing a video enhancement operation on the current frame by using the control parameters of all the regions in the current frame; wherein the determining the attribute information, which reflects the moving state or the luminance, of the current frame and searching the preset mapping relationship between the attribute information and the control parameter to obtain the control parameter of the current frame comprises;
calculating a Quantization Parameter (QP) of the current frame, and searching a preset mapping relationship between a QP and a control parameter to obtain a control parameter corresponding to the QP;
or, determining a scenario type of the current frame, and searching a preset mapping relationship between a scenario type and a control parameter to obtain a control parameter corresponding to the scenario type;
or, calculating a luminance value of the current frame, and searching a preset mapping relationship between a luminance value and a control parameter to obtain a control parameter corresponding to the luminance value;
orwherein the determining the attribute information, which reflects the moving state or the luminance, of each region and searching the preset mapping relationship between the attribute information and the control parameter to obtain the control parameter of each region comprises;
calculating a QP of each region, and searching a preset mapping relationship between a QP and a control parameter to obtain the control parameter of each region;
or, determining a scenario type of each region, and searching a preset mapping relationship between a scenario type and a control parameter to obtain the control parameter of each region;
or, calculating a luminance value of each region, and searching a preset mapping relationship between a luminance value and a control parameter to obtain the control parameter of each region,wherein the control parameter comprises at least one of;
a contrast control parameter, a definition control parameter or a noise reduction control parameter;wherein the scenario type at least comprises a still scenario and a moving scenario;
the still scenario comprises;
a desktop or document sharing scenario and/or a still person scenario; and
the moving scenario comprises;
at least one of a slight moving scenario, an ordinary moving scenario, a large moving scenario and a strenuous moving scenario. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A video enhancement device, comprising:
- a processor and a memory, a set of program codes being stored in the memory and the processor executing the program codes stored in the memory to implement the following operation;
sequentially acquiring each frame in a video; for each current frame, determining attribute information, which reflects a moving state or luminance, of the current frame, searching a preset mapping relationship between attribute information and a control parameter to obtain a control parameter of the current frame, and executing a video enhancement operation on the current frame by using the control parameter of the current frame;
or,for each current frame, dividing the current frame into multiple regions, determining attribute information, which reflects a moving state or luminance, of each region, searching a preset mapping relationship between the attribute information and the control parameter to obtain a control parameter of each region, and executing a video enhancement operation on the current frame by using the control parameters of all the regions in the current frame; wherein the processor executes the program codes stored in the memory to implement the following operation;
for each current frame, calculating a Quantization Parameter (QP) of the current frame, searching a preset mapping relationship between a QP and a control parameter to obtain a control parameter corresponding to the QP, and executing a video enhancement operation on the current frame by using the control parameter;
or, for each current frame, determining a scenario type of the current frame, searching a preset mapping relationship between a scenario type and a control parameter to obtain a control parameter corresponding to the scenario type, and executing a video enhancement operation on the current frame by using the control parameter;
or, for each current frame, calculating a luminance value of the current frame, searching a preset mapping relationship between a luminance value and a control parameter to obtain a control parameter corresponding to the luminance value, and executing a video enhancement operation on the current frame by using the control parameter, orwherein the processor executes the program codes stored in the memory to implement the following operation;
for each current frame, dividing the current frame into multiple regions, calculating a QP of each region, searching the preset mapping relationship between the QP and the control parameter to obtain the control parameter of each region, and executing a video enhancement operation on the current frame by using the control parameters of all the regions in the current frame;
or, for each current frame, dividing the current frame into multiple regions, determining a scenario type of each region, search the preset mapping relationship between the scenario type and the control parameter to obtain the control parameter of each region, and executing a video enhancement operation on the current frame by using the control parameters of all the regions in the current frame;
or, for each current frame, dividing the current frame into multiple regions, calculating a luminance value of each region, searching the preset mapping relationship between the luminance value and the control parameter to obtain the control parameter of each region, and executing video a enhancement operation on the current frame by using the control parameters of all the regions in the current frame,wherein the control parameter comprises at least one of;
a contrast control parameter, a definition control parameter or a noise reduction control parameter;wherein the processor executes the program codes stored in the memory to implement the following operation that;
the scenario type at least comprises a still scenario and a moving scenario;
the still scenario comprises;
a desktop or document sharing scenario and/or a still person scenario; and
the moving scenario comprises;
at least one of a slight moving scenario, an ordinary moving scenario, a large moving scenario and an strenuous moving scenario. - View Dependent Claims (9, 10, 11, 12, 13, 14)
- a processor and a memory, a set of program codes being stored in the memory and the processor executing the program codes stored in the memory to implement the following operation;
Specification