IMAGE FOREGROUND DETECTION APPARATUS AND METHOD AND ELECTRONIC DEVICE
First Claim
Patent Images
1. An image foreground detection apparatus, comprising:
- a first detector configured to perform foreground detection on each pixel of an input image, the first detector comprising;
a first calculator configured to calculate a first difference between a pixel value of the pixel and sample values in a background model corresponding to a position where the pixel is located;
a first updating unit configured to, when the number of sample values in the background model of the first difference less than or equal to a first threshold is greater than or equal to a second threshold, replace a pixel value of a sample value in the background model of which the first difference is maximum with the pixel value of the pixel by a predetermined probability, to update the background model of the position where the pixel is located; and
a first determining unit configured to, when the number of sample values in the background model of the first difference less than or equal to the first threshold is less than the second threshold, determine the pixel as a foreground pixel.
1 Assignment
0 Petitions
Accused Products
Abstract
An image foreground detection apparatus and method and an electronic device. In the apparatus and method, in updating the background model, a pixel value of a sample value of which the pixel value difference is maximum is replaced with a predetermined probability, which may efficiently improve accuracy of the background model, and relatively large number of integral foreground image blocks which are accurate may be quickly obtained.
-
Citations
16 Claims
-
1. An image foreground detection apparatus, comprising:
a first detector configured to perform foreground detection on each pixel of an input image, the first detector comprising; a first calculator configured to calculate a first difference between a pixel value of the pixel and sample values in a background model corresponding to a position where the pixel is located; a first updating unit configured to, when the number of sample values in the background model of the first difference less than or equal to a first threshold is greater than or equal to a second threshold, replace a pixel value of a sample value in the background model of which the first difference is maximum with the pixel value of the pixel by a predetermined probability, to update the background model of the position where the pixel is located; and a first determining unit configured to, when the number of sample values in the background model of the first difference less than or equal to the first threshold is less than the second threshold, determine the pixel as a foreground pixel. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. An image foreground detection method, comprising:
performing foreground detection on each pixel of an input image the performing foreground detection on each pixel comprising; calculating a first difference between a pixel value of the pixel and sample values in a background model corresponding to a position where the pixel is located; when the number of sample values in the background model of the first difference less than or equal to a first threshold is greater than or equal to a second threshold, replacing a pixel value of a sample value in the background model of which the first difference is maximum with the pixel value of the pixel by a predetermined probability, to update the background model of the position where the pixel is located; and when the number of sample values in the background model of the first difference less than or equal to the first threshold is less than the second threshold, determining the pixel as a foreground pixel. - View Dependent Claims (10, 11, 15, 12, 13, 14)
-
16. A detection apparatus comprising:
-
a memory; and a processor coupled to the memory and configured to perform a process, including; receiving an input image containing a plurality of pixels; calculating, for each pixel, a first difference between a pixel value of the pixel and sample values in a background model corresponding to a position where the pixel is located; when the number of sample values in the background model of the first difference is less than or equal to a first threshold which is greater than or equal to a second threshold, replacing a pixel value of a sample value in the background model of which the first difference is maximum with the pixel value of the pixel by a predetermined probability, to update the background model of the positon where the pixel is located; and when the number of sample values in the background model of the first difference is less than or equal to the first threshold which is less than the second threshold, determining the pixel as a foreground pixel. the background model of the position where the pixel is located.
-
Specification