from tdw.container_data.containment_event import ContainmentEvent
Data describing a containment event i.e. when a container shape overlaps with one or more objects.
-
container_idThe ID of the container. -
object_idsThe IDs of the contained objects as a numpy array -
tagA semanticContainerTagdescribing the semantic nature of the event.
ContainmentEvent(container_id, object_ids, tag)
| Parameter | Type | Default | Description |
|---|---|---|---|
| container_id | int | The ID of the container. | |
| object_ids | np.ndarray | The IDs of the contained objects as a numpy array. | |
| tag | ContainerTag | A semantic ContainerTag describing the semantic nature of the event. |