ValidBboxesDataset#

class ethology.io.annotations.validate.ValidBboxesDataset(dataset)[source]#

Bases: object

Class for valid ethology bounding box annotations datasets.

It checks that the input dataset has:

  • image_id, space, id as dimensions

  • position and shape as data variables

dataset#

The xarray dataset to validate.

Type:

xarray.Dataset

Raises:
  • TypeError – If the input is not an xarray Dataset.

  • ValueError – If the dataset is missing required data variables or dimensions.

Notes

The dataset can have other data variables and dimensions, but only the required ones are checked.