Method and apparatus for processing video, and display device
AssigneeBoe Technology Group Co., Ltd.
InventorsFeng HOU, Dan ZHU, Guannan CHEN, Yanhong WU
Life of this patent
Estimating the term…
Abstract
Provided is a method for processing a video. The method for processing the video can segment an initial video into a plurality of video clips, and calculate color temperatures of the plurality of video clips. For each target video clip in the plurality of video clips, the method can determine a color temperature adjustment coefficient of the target video clip based on a color temperature of the target video clip and a color balance correction coefficient thereof, and adjust a color temperature of at least one video frame in the target video clip by using the color temperature adjustment coefficient.
Claims20
A method for processing a video, comprising:
- segmenting a plurality of video frames in an initial video into a plurality of video clips, wherein each of the plurality of video clips comprises one or more video frames, and the plurality of video frames is consecutive;
- determining, for each of the plurality of video clips, a color temperature of the video clip based on a color temperature of at least one video frame in the video clip;
- determining, for each target video clip in the plurality of video clips, a color temperature adjustment coefficient of the target video clip based on a color temperature of the target video clip and a color balance correction coefficient of the target video clip, wherein the color temperature adjustment coefficient is positively correlated with both the color temperature and the color balance correction coefficient of the target video clip, and a number of the target video clips in the initial video is less than or equal to a number of the plurality of video clips;
- adjusting, for each target video clip, a color temperature of each video frame in the target video clip by using the color temperature adjustment coefficient of the target video clip;
- and
- acquiring a target video by splicing at least one target video clip with the color temperature adjusted and a video clip other than the at least one target video clip according to a playing order.
An apparatus for processing a video, comprising:
- a processor;
- and
- a memory configured to store one or more instructions executable by the processor;
- wherein the processor, when loading and executing the one or more instructions, is caused to perform:
- segmenting a plurality of video frames in an initial video into a plurality of video clips, wherein each of the plurality of video clips comprises one or more video frames, and the plurality of video frames is consecutive;
- determining, for each of the plurality of video clips, a color temperature of the video clip based on a color temperature of at least one video frame in the video clip;
- determining, for each target video clip in the plurality of video clips, a color temperature adjustment coefficient of the target video clip based on a color temperature of the target video clip and a color balance correction coefficient of the target video clip, wherein the color temperature adjustment coefficient is positively correlated with both the color temperature and the color balance correction coefficient of the target video clip, and a number of the target video clips in the initial video is less than or equal to a number of the plurality of video clips;
- adjusting, for each target video clip, a color temperature of each video frame in the target video clip by using the color temperature adjustment coefficient of the target video clip;
- and
- acquiring a target video by splicing at least one target video clip with the color temperature adjusted and a video clip other than the at least one target video clip according to a playing order.
A display device, comprising:
- a display screen, a processor, and a memory storing at least one instruction, wherein the at least one instruction, when loaded and executed by the processor, causes the processor to perform:
- segmenting a plurality of video frames in an initial video into a plurality of video clips, wherein each of the plurality of video clips comprises one or more video frames, and the plurality of video frames is consecutive;
- determining, for each of the plurality of video clips, a color temperature of the video clip based on a color temperature of at least one video frame in the video clip;
- determining, for each target video clip in the plurality of video clips, a color temperature adjustment coefficient of the target video clip based on a color temperature of the target video clip and a color balance correction coefficient of the target video clip, wherein the color temperature adjustment coefficient is positively correlated with both the color temperature and the color balance correction coefficient of the target video clip, and a number of the target video clips in the initial video is less than or equal to a number of the plurality of video clips;
- adjusting, for each target video clip, a color temperature of each video frame in the target video clip by using the color temperature adjustment coefficient of the target video clip;
- and
- acquiring a target video by splicing at least one target video clip with the color temperature adjusted and a video clip other than the at least one target video clip according to a playing order.
Dependencies are inferred from the claim text.