Video static background synthesis method and device, electronic equipment and storage medium
A technology of static background and synthesis method, which is applied in the direction of TV, electrical components, color TV, etc., can solve the problem of difficulty in obtaining a complete static background, and achieve the effect of background synthesis quality assurance, flexible means and simple implementation method.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2020-08-21
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of computer image processing, in particular to a video static background synthesis method, device, electronic equipment and storage medium. Background technique
[0002] Static background synthesis is a common method in computer image processing, often serving for object extraction, so that objects of interest can be separated from static backgrounds. For this reason, the commonly used background synthesis technology does not emphasize the fidelity and integrity of the background, but only needs to support the target extraction of the region of interest. For applications such as digital twins and smart transportation, the complete extraction of the real background is an important condition for static scene modeling. Existing methods such as the mean method will inevitably leave afterimages of vehicles in the background, while methods based on inter-frame correlation such as adaptive background update cannot cope wi...
Examples
Embodiment 1
[0038] refer to figure 1 , the present embodiment provides a video static background synthesis method, the method includes the following steps:
[0039] Obtaining step S101, obtaining K frames of images with the same camera internal reference and external reference from the input video;
[0040] Specifically, in the traffic surveillance video of an intersection, since the pose of the surveillance camera remains static throughout the entire process, the internal and external camera parameters of all images in the video are consistent, and multiple frames of images can be arbitrarily selected in such a surveillance video. For the sake of simple operation, 1000 frames of continuous images at the beginning of the video are selected first.
[0041] Marking step S103, for each of the K frames of images, identify the region R occupied by unnecessary objects in the background synthesis, and give the image pixels belonging to the region R a removal mark;
[0042] Specifically, for th...
Embodiment 2
[0056] refer to Figure 5 , this embodiment provides a video static background synthesis device, the device is a virtual device corresponding to Embodiment 1, the device includes:
[0057] Obtaining module 901, is used for obtaining the same K frame image of camera internal reference and external reference from input video;
[0058] The marking module 903 is used to identify the region R occupied by unnecessary objects in the background synthesis for each frame of the K frame images, and give a removal mark to the image pixels belonging to the region R;
[0059] The first judging module 905 is used for each pixel position (u, v), if there are some pixels without removal marks at the pixel position (u, v) in the K frame image, then the colors of these pixels are synthesized, Get the color C, then the pixel color of the final output background composite image at the pixel position (u, v) is equal to the color C; if there is no pixel without a mark at the pixel position (u, v) i...
Embodiment 3
[0064] This embodiment also provides an electronic device, including:
[0065] one or more processors;
[0066] memory for storing one or more programs;
[0067] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in Embodiment 1.