to_COCO_file#

ethology.annotations.io.save_bboxes.to_COCO_file(df, output_filepath)[source]#

Write bounding boxes annotations to a COCO JSON file.

Parameters:
  • df (pd.DataFrame) – Bounding boxes annotations dataframe.

  • output_filepath (str or Path) – Output file path.

Returns:

output_filepath – Output file path.

Return type:

str