deepof.annotation_utils.look_around

deepof.annotation_utils.look_around(speed_dframe: DataFrame, likelihood_dframe: DataFrame, tol_speed: float, tol_likelihood: float, center_name: str = 'Center', animal_id: str = '')

Return true when the mouse is looking around using simple rules.

Parameters:
  • speed_dframe (pandas.DataFrame) – speed of body parts over time

  • likelihood_dframe (pandas.DataFrame) – likelihood of body part tracker over time, as directly obtained from DeepLabCut

  • tol_speed (float) – Maximum tolerated speed for the center of the mouse

  • tol_likelihood (float) – Maximum tolerated likelihood for the nose.

  • center_name (str) – Body part to center coordinates on. “Center” by default.

  • animal_id (str) – ID of the current animal.

Returns:

True if the animal is standing still and looking around, False otherwise

Return type:

lookaround (np.array)