Methods and systems of performing adaptive morphology operations in video analytics
First Claim
1. A method of performing content-adaptive morphology operations, the method comprising:
- performing a first erosion function on a foreground mask of a frame, wherein, subsequent to a background subtraction process, the foreground mask includes a binary image of foreground pixels, the first erosion function setting one or more foreground pixels of the foreground mask to one or more background pixels thereby removing the one or more foreground pixels from the foreground mask of the frame;
generating one or more connected components, wherein a connected component connects one or more neighboring foreground pixels of the foreground mask;
determining a complexity of the foreground mask, wherein the complexity of the foreground mask is based on comparing a number of connected components to a threshold number of connected components; and
determining whether to perform one or more additional erosion functions for the frame based on the determined complexity of the foreground mask.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques and systems are provided for processing video data. For example, techniques and systems are provided for performing content-adaptive morphology operations. A first erosion function can be performed on a foreground mask of a video frame, including setting one or more foreground pixels of the frame to one or more background pixels. A temporary foreground mask can be generated based on the first erosion function being performed on the foreground mask. One or more connected components can be generated for the frame by performing connected component analysis to connect one or more neighboring foreground pixels. A complexity of the frame (or of the foreground mask of the frame) can be determined by comparing a number of the one or more connected components to a threshold number. A second erosion function can be performed on the temporary foreground mask when the number of the one or more connected components is higher than the threshold number. The one or more connected components can be output for blob processing when the number of the one or more connected components is lower than the threshold number.
-
Citations
30 Claims
-
1. A method of performing content-adaptive morphology operations, the method comprising:
-
performing a first erosion function on a foreground mask of a frame, wherein, subsequent to a background subtraction process, the foreground mask includes a binary image of foreground pixels, the first erosion function setting one or more foreground pixels of the foreground mask to one or more background pixels thereby removing the one or more foreground pixels from the foreground mask of the frame; generating one or more connected components, wherein a connected component connects one or more neighboring foreground pixels of the foreground mask; determining a complexity of the foreground mask, wherein the complexity of the foreground mask is based on comparing a number of connected components to a threshold number of connected components; and determining whether to perform one or more additional erosion functions for the frame based on the determined complexity of the foreground mask. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. An apparatus comprising:
-
a memory configured to store video data; and a processor configured to; perform a first erosion function on a foreground mask of a frame, wherein, subsequent to a background subtraction process, the foreground mask includes a binary image of foreground pixels, the first erosion function setting one or more foreground pixels of the foreground mask to one or more background pixels thereby removing the one or more foreground pixels from the foreground mask of the frame; generate one or more connected components wherein a connected component connects one or more neighboring foreground pixels of the foreground mask; determine a complexity of the foreground mask, wherein the complexity of the foreground mask is based on comparing a number of connected components to a threshold number of connected components; and determine whether to perform one or more additional erosion functions for the frame based on the determined complexity of the foreground mask. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A non-transitory computer readable medium having stored thereon instructions that when executed by a processor cause the processor to perform operations including:
-
performing a first erosion function on a foreground mask of a frame, wherein, subsequent to a background subtraction process, the foreground mask includes a binary image of foreground pixels, the first erosion function setting one or more foreground pixels of the foreground mask to one or more background pixels thereby removing the one or more foreground pixels from the foreground mask of the frame; generating one or more connected components wherein a connected component connects one or more neighboring foreground pixels of the foreground mask; determining a complexity of the foreground mask, wherein the complexity of the foreground mask is based on comparing a number of connected components to a threshold number of connected components; and determining whether to perform one or more additional erosion functions for the frame based on the determined complexity of the foreground mask. - View Dependent Claims (26, 27, 28, 29, 30)
-
Specification