offlinemot.background_subtraction.BG_subtractor.get_big_objects

BG_subtractor.get_big_objects(fg_mask, frame)[source]

Find the foreground objects based on the foreground image

Parameters
  • fg_mask (numpy array) – The forground as grayscale image

  • frame (numpy array) – The input image related to the foreground

Returns

A tuple of a new foreground image, and list of foreground objects.

Return type

(numpy array, list)