Method and device for processing video
AssigneeBeijing Dajia Internet Information Technology Co., Ltd.
InventorsPeihong Hou, Yibing Ma
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and device for processing a video. The method includes: determining a special effect video frame of a video, where a target feature area of the special effect video frame includes a preset special effect map; and modifying a display effect of the special effect map upon determining that a shielded area exists in the target feature area.
Claims18
A device for processing a video, comprising a memory and at least one processor, wherein the at least one processor is configured to read and execute instructions stored in the memory to:
- determine a special effect video frame of the video, wherein a target feature area of the special effect video frame comprises a preset special effect map;
- extract a mask corresponding to the special effect video frame;
- determine a weight value of the special effect video frame based on topological relation information corresponding to the special effect video frame, the mask and a preset legal key point upon determining that the shielded area exists in the target feature area of the mask;
- generate a replacing video frame based on the special effect video frame and the weight value;
- and
- replace the special effect video frame with the replacing video frame.
A non-transitory computer readable storage medium, wherein the computer readable storage medium is stored with instructions thereon, and the instructions are executed by a processor to:
- determine a special effect video frame of the video, wherein a target feature area of the special effect video frame comprises a preset special effect map;
- extract a mask corresponding to the special effect video frame;
- determine a weight value of the special effect video frame based on topological relation information corresponding to the special effect video frame, the mask and a preset legal key point upon determining that the shielded area exists in the target feature area of the mask;
- generate a replacing video frame based on the special effect video frame and the weight value;
- and
- replace the special effect video frame with the replacing video frame.
Dependencies are inferred from the claim text.