data package
Sample
Wrapper class for sample data, labels, and associated metadata.
Sample data should be contained in a file or file-like object, for example, as the return from open(..., "rb")
. The upload_samples()
function expects Sample objects as input.
Parameters
data: Union[io.BufferedIOBase, _io.StringIO, str]
filename: Optional[str] = None
category: Optional[Literal['training', 'testing', 'anomaly', 'split']] = 'split'
label: Optional[str] = None
bounding_boxes: Optional[List[dict]] = None
metadata: Optional[dict] = None
sample_id: Optional[int] = None
structured_labels: Optional[List[dict]] = None
Class variables
bounding_boxes: Optional[List[dict]]
category: Optional[Literal['training', 'testing', 'anomaly', 'split']]
data: Union[io.BufferedIOBase, _io.StringIO, str]
filename: Optional[str]
label: Optional[str]
metadata: Optional[dict]
sample_id: Optional[int]
structured_labels: Optional[List[dict]]