Back to results
US 11,107,237 B2Granted
Image foreground detection apparatus and method and electronic device
AssigneeFujitsu Limited
InventorsNan Zhang, Qi Wang
Life of this patent
Estimating the term…
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.
Claims12
An image foreground detection apparatus, comprising:
- a first detector configured to perform foreground detection on each pixel of an input image, the first detector including 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 memory that stores instructions;
- and
- a processor coupled to the memory and configured to execute the instructions to:
- replace, 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, 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,
- determine, 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, the pixel as a foreground pixel, and
- update the first threshold at a predetermined period according to formula (1), where radius denotes the first threshold, and clarity denotes the clarity of the input image:
- radius
- =
- {
- 5
- clarity
- <
- 10
- 3
- *
- clarity
- -
- 25
- 10
- ≤
- clarity
- <
- 35
- 35
- clarity
- ≥
- 35
- .
- (
- 1
- )
29 more elements
An image foreground detection method performed on each pixel of an input image, 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;
- 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;
- and
- updating the first threshold at a predetermined period according to formula (1), where radius denotes the first threshold, and clarity denotes the clarity of the input images:
- radius
- =
- {
- 5
- clarity
- <
- 10
- 3
- *
- clarity
- -
- 25
- 10
- ≤
- clarity
- <
- 35
- 35
- clarity
- ≥
- 35
- .
- (
- 1
- )
27 more elements
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;
- 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;
- and
- updating the first threshold at a predetermined period according to formula (1), where radius denotes the first threshold, and clarity denotes the clarity of the input image:
- radius
- =
- {
- 5
- clarity
- <
- 10
- 3
- *
- clarity
- -
- 25
- 10
- ≤
- clarity
- <
- 35
- 35
- clarity
- ≥
- 35
- .
- (
- 1
- )
31 more elements
Dependencies are inferred from the claim text.