Video

class scenebox.models.assets.Video(id=None, path=None, url=None, uri=None, bytes=None, sensor=None, timestamp=None, session_uid=None, aux_metadata=None, annotations=None, tags=None, start_timestamp=None)

Create a SceneBox Video asset.

Parameters:
  • id – Optional, string. An identifier that is unique for the video asset throughout SceneBox.

  • path – String. The local path to the video to upload. If not None, url, uri, and bytes should all be None.

  • url – String. The URL of the video to upload. Videos must be publicly available. If not None, url, uri, and path should all be None.

  • uri – String. The URI of the video to upload. Can be from a private source. If not None, url, path, and bytes should all be None.

  • bytes – io.BytesIO or bytes, string. The video bytes to upload. If not None, path, url, and uri should all be None.

  • sensor – Optional, string. The sensor associated with the video.

  • timestamp – Optional, either a string or a datetime. The time at which the video was taken.

  • session_uid – Optional, string. The session associated with the video.

  • aux_metadata – Optional, dict. Auxiliary metadata associated with the video.

  • annotations – Optional, list of scenebox Annotation objects. Annotations associated with the video. Each item in the passed list must be of an object of the scenebox.models.annotation classes

  • tags – Optional, list of strings. Labels associated with the video. Allows for easy video search.

  • start_timestamp – Optional, either a string or a datetime. The time at which the video recording began.