SDK Base Python bindings API

class metavision_sdk_base.GenericHeader
add_date(self: metavision_sdk_base.GenericHeader)None

Adds the current date and time to the header (in the format Y-m-d H:M:S).

note

The date is updated at each call to this method

empty(self: metavision_sdk_base.GenericHeader)bool

Returns if the header is empty.

return

True if the header is empty, false otherwise

get_date(self: metavision_sdk_base.GenericHeader)str

Gets the date and time at which the associated file was recorded.

return

The current date and time in string format if it is found, or an empty string otherwise.

get_field(self: metavision_sdk_base.GenericHeader, key: str)str

Gets the value associated to the input key.

return

The value associated to the input key if it exists, or an empty string otherwise

get_header_map(self: metavision_sdk_base.GenericHeader)dict
remove_date(self: metavision_sdk_base.GenericHeader)None

Removes the date if there was any in the header.

remove_field(self: metavision_sdk_base.GenericHeader, key: str)None

Remove the input field (if exists)

set_field(self: metavision_sdk_base.GenericHeader, key: str, value: str)None

Adds a new field in the header.

key

The key of the field in the header

value

The value of the field


class metavision_sdk_base.SoftwareInfo

Stores information about the version of the software.

get_vcs_branch(self: metavision_sdk_base.SoftwareInfo)str

Returns version control software (vcs) branch.

get_vcs_commit(self: metavision_sdk_base.SoftwareInfo)str

Returns version control software (vcs) commit.

get_vcs_date(self: metavision_sdk_base.SoftwareInfo)str

Returns version control software (vcs) commit’s date.

get_version(self: metavision_sdk_base.SoftwareInfo)str

Returns version as a string.

get_version_dev(self: metavision_sdk_base.SoftwareInfo)int

Returns version suffix type.

get_version_major(self: metavision_sdk_base.SoftwareInfo)int

Returns major version number.

get_version_minor(self: metavision_sdk_base.SoftwareInfo)int

Returns minor version number.

get_version_patch(self: metavision_sdk_base.SoftwareInfo)int

Returns patch version number.

get_version_suffix(self: metavision_sdk_base.SoftwareInfo)str

Returns version suffix string.


class metavision_sdk_base.EventCDBuffer
numpy(self: metavision_sdk_base.EventCDBuffer, copy: bool = False)numpy.ndarray[metavision_sdk_base._EventCD_decode]
Copy

if True, allocates new memory and returns a copy of the events. If False, use the same memory

metavision_sdk_base.EventCD
This is the numpy.dtype to represent numpy structured arrays of EventCD

class metavision_sdk_base.EventExtTriggerBuffer
numpy(self: metavision_sdk_base.EventExtTriggerBuffer, copy: bool = False)numpy.ndarray[Metavision::EventExtTrigger]
Copy

if True, allocates new memory and returns a copy of the events. If False, use the same memory

metavision_sdk_base.EventExtTrigger
This is the numpy.dtype to represent numpy structured arrays of EventExtTrigger