Background Video Frame Rotation Without Blank Canvas Areas
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video editing applications face challenges in synchronously rotating background content with video content without creating blank areas and preserving the original background content.
Innovation Solution
An image processing method that involves acquiring a rotation instruction, calculating a scaling parameter based on the rotation angle, and cutting out a target background video frame from a candidate frame to fill a background canvas area, ensuring that two diagonal vertices of the target frame are on the edge or inside the candidate frame to preserve the original background content.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Stability of the object's composition
If background content is rotated synchronously with video content, then the background effect is improved, but blank areas appear in the background canvas
Solution Approach 1:
The patent performs preliminary scaling of the background video frame before rotation by calculating a scaling parameter based on the rotation angle. This pre-scaling ensures that when rotation occurs, the background content expands to fill the canvas area completely, preventing blank areas from appearing while maintaining synchronous rotation consistency between video and background content.
2Area of stationary object
If background content is scaled to fill blank areas, then the background canvas is filled completely, but the original background content is distorted or lost
Solution Approach 1:
The patent changes the scaling parameter dynamically based on the rotation angle to optimize both canvas coverage and content preservation. By calculating the scaling parameter as a function of the rotation angle, the system adjusts the scaling factor to ensure that the background video frame expands sufficiently to fill the canvas while maintaining the integrity and quality of the original background content, avoiding excessive scaling that would cause distortion.
3Area of stationary object
If the background video frame is scaled up to fill the canvas, then blank areas are eliminated, but the quality of the background content decreases
Solution Approach 1:
The patent optimizes the scaling parameter based on the rotation angle to achieve the minimum necessary scaling that fills the canvas without excessive enlargement. This controlled parameter adjustment ensures that the background video frame is scaled just enough to eliminate blank areas while maintaining acceptable content quality, preventing the degradation that would result from overly aggressive scaling.
Data Source
Figure 1~2a
Figure 2b
Figure 3
AI summary
The present disclosure relates to an image processing method and apparatus, and a readable storage medium. The method comprises: obtaining a rotating command inputted by user for the current video frame, the rotating command comprising a rotating angle; obtaining a scaling parameter according to the rotating angle, and scaling an original background video frame corresponding to the current video frame according to the scaling parameter to obtain a candidate video frame; and capturing a target background video frame from the candidate video frame, and filling the target background video frame in a background canvas area. In the present solution, two first vertices on one of diagonals of the captured target background video frame are located on the edge of the candidate video frame, and two first vertices on the other diagonal are located inside the candidate video frame.