Background image updating method and device thereof
A background image and foreground image technology, applied in the field of image processing, can solve the problems of poor performance, unable to meet the needs of practical applications, large foreground interference, etc., and achieve the effect of high-quality update
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The embodiment of the present invention provides a method for updating the background image, such as figure 1 As shown, it includes: selecting at least one pixel in the current frame image, using each pixel in the at least one pixel as the current pixel respectively, and performing the following processing:
[0029] 110: Subtract the first pixel value of the current pixel from the second pixel value of the corresponding pixel of the current background image to obtain a first difference;
[0030] 120: Determine whether the absolute value of the first difference is smaller than the outer boundary of the background threshold of the current pixel;
[0031] 130: If the absolute value of the first difference is smaller than the outer boundary of the above-mentioned background threshold, perform weighted average calculation on the first pixel value and the second pixel value to obtain the first candidate pixel value, and compare the first pixel value and the second pixel value...
Embodiment 2
[0039] This embodiment further illustrates the method for updating the background image of the present invention on the basis of the first embodiment. see image 3 , the method of the embodiment of the present invention includes:
[0040] 301: Set any frame image before the current frame image as the initial background image, set the foreground image and the absorption image as empty, and initialize the background threshold and the foreground threshold.
[0041]The embodiments of the present invention can be applied to video sequences with multiple frames of images. Before the video sequence updates the background image for the first time, any frame image before the last frame image of the video sequence is set as the initial background image, the foreground image and the absorption image are set to null and the background threshold and the foreground threshold are initialized. Then, each frame of image following the initial background image is used as the current frame imag...
Embodiment 3
[0077] An embodiment of the present invention provides a device for updating a background image, such as Figure 4 shown, including:
[0078] The initialization module 401 is used to set the current frame image or any frame image before the current frame image as the initial background image before selecting at least one pixel in the current frame image, set the foreground image and the absorption image to be empty and initialize the background Threshold and Foreground Threshold.
[0079]The embodiments of the present invention can be applied to video sequences with multiple frames of images. Before the video sequence updates the background image for the first time, any frame image before the last frame image of the video sequence is set as the initial background image, the foreground image and the absorption image are set to null and the background threshold and the foreground threshold are initialized. Then, each frame of image following the initial background image is use...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 