InputType Class Reference

Class defining the input type used in the ZED SDK. More...

Functions

None set_from_camera_id (self, uint id, BUS_TYPE bus_type=BUS_TYPE.AUTO)
 Set the input as the camera with specified id (for USB or GMSL cameras only). More...
 
None set_from_serial_number (self, uint serial_number, BUS_TYPE bus_type=BUS_TYPE.AUTO)
 Set the input as the camera with specified serial number (for USB or GMSL cameras). More...
 
None set_from_svo_file (self, str svo_input_filename)
 Set the input as the svo specified with the filename. More...
 
None set_from_stream (self, str sender_ip, port=30000)
 Set the input to stream with the specified ip and port. More...
 
INPUT_TYPE get_type (self)
 Returns the current input type.
 
str get_configuration (self)
 Returns the current input configuration as a string e.g: SVO name, serial number, streaming ip, etc.
 
bool is_init (self)
 Check whether the input is set.
 

Detailed Description

Class defining the input type used in the ZED SDK.

It can be used to select a specific camera with an id or serial number, or from a SVO file.

Functions

◆ set_from_camera_id()

None set_from_camera_id (   self,
uint  id,
BUS_TYPE   bus_type = BUS_TYPE.AUTO 
)

Set the input as the camera with specified id (for USB or GMSL cameras only).

Parameters
id: Id of the camera to open.
bus_type: Whether the camera is a USB or a GMSL camera.

◆ set_from_serial_number()

None set_from_serial_number (   self,
uint  serial_number,
BUS_TYPE   bus_type = BUS_TYPE.AUTO 
)

Set the input as the camera with specified serial number (for USB or GMSL cameras).

Parameters
camera_serial_number: Serial number of the camera to open.
bus_type: Whether the camera is a USB or a GMSL camera.

◆ set_from_svo_file()

None set_from_svo_file (   self,
str  svo_input_filename 
)

Set the input as the svo specified with the filename.

Parameters
svo_input_filename: The path to the desired SVO file

◆ set_from_stream()

None set_from_stream (   self,
str  sender_ip,
  port = 30000 
)

Set the input to stream with the specified ip and port.

Parameters
sender_ip: The IP address of the streaming sender
port: The port on which to listen. Default: 30000
Note
The protocol used for the streaming module is based on RTP/RTCP.
Warning
Port must be even number, since the port+1 is used for control data.