Portrait Video Frame Fusion for Gradual Hiding Effects
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video generation technologies lack the ability to effectively hide portraits in videos, making the generated videos less interesting.
Innovation Solution
A method and apparatus that perform portrait segmentation, adjust transparency of pixels, process background images, and fuse adjusted portrait and background images to create a target video, enhancing the hiding effect of portraits.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If portrait segmentation and transparency adjustment are applied to hide portraits in videos, then the interest and engagement of generated videos are improved, but the processing complexity and computational requirements increase
Solution Approach 1:
The video processing system segments the video into individual frames, then further segments each frame to identify and separate portrait regions from background regions. This segmentation enables selective transparency adjustment on portrait pixels while preserving background integrity, creating the hiding effect that enhances video interest without requiring complete reprocessing of entire video sequences
Solution Approach 2:
The system applies transparency adjustment locally to portrait region pixels rather than uniformly across entire frames. By identifying portrait pixels through segmentation and applying transparency modifications only to these specific regions, the system achieves the desired hiding effect while minimizing unnecessary processing of background areas, thus balancing video interest enhancement with processing efficiency
2Adaptability or versatility
If portrait transparency is adjusted to create hiding effects, then the viewing engagement is improved, but the processing time for each video frame increases
Solution Approach 1:
The system performs portrait segmentation and region identification as preliminary actions before transparency adjustment. By pre-identifying portrait regions in each frame through segmentation, the system prepares the necessary information in advance, allowing transparency adjustments to be applied efficiently without requiring repeated analysis during the actual hiding effect generation, thus reducing overall processing time while maintaining engagement quality
Data Source
AI summary
Embodiments of the present disclosure disclose a video generation method and apparatus, a device, and a storage medium. The method includes: obtaining a video frame contained in a video to be processed, where the video to be processed contains a portrait; performing portrait segmentation on the video frame to obtain a portrait image and a background image; adjusting transparency of pixels that meet a defined condition in the portrait image to obtain the adjusted portrait image; processing the background image to obtain an entire background image; fusing the adjusted portrait image and the entire background image to obtain a portrait video frame; and stitching a plurality of portrait video frames to obtain a target video.

