deepof.utils.compute_animal_presence_mask

deepof.utils.compute_animal_presence_mask(quality: deepof_table_dict, threshold: float = 0.5) deepof_table_dict

Compute a mask of the animal presence in the video.

Parameters:
  • quality (table_dict) – Dictionary with the quality of the tracking for each body part and animal.

  • threshold (float) – Threshold for the quality of the tracking. If the quality is below this threshold, the animal is considered to be absent.

Returns:

Dictionary with the animal presence mask for each bodypart and animal.

Return type:

animal_presence_mask (table_dict)