Class containing the options used to initialize the sl.CameraOne object. More...
Functions | |
| RESOLUTION | camera_resolution (self) |
| Default constructor. More... | |
| int | camera_fps (self) |
| Requested camera frame rate. More... | |
| bool | svo_real_time_mode (self) |
| Defines if sl.Camera object return the frame in real time mode. More... | |
| UNIT | coordinate_units (self) |
| Unit of spatial data (depth, point cloud, tracking, mesh, etc.) for retrieval. More... | |
| COORDINATE_SYSTEM | coordinate_system (self) |
| sl.COORDINATE_SYSTEM to be used as reference for positional tracking, mesh, point clouds, etc. More... | |
| int | sdk_verbose (self) |
| Enable the ZED SDK verbose mode. More... | |
| str | sdk_verbose_log_file (self) |
| File path to store the ZED SDK logs (if sdk_verbose is enabled). More... | |
| str | optional_settings_path (self) |
| Optional path where the ZED SDK has to search for the settings file (SN<XXXX>.conf file). More... | |
| bool | async_grab_camera_recovery (self) |
| Define the behavior of the automatic camera recovery during sl.Camera.grab() method call. More... | |
| bool | enable_hdr (self) |
| Activates HDR support for the current resolution/mode. More... | |
| None | set_from_camera_id (self, uint, cam_id, BUS_TYPE bus_type=BUS_TYPE.AUTO) |
| Defines the input source with a camera id to initialize and open an sl.CameraOne object from. More... | |
| None | set_from_serial_number (self, uint, serial_number) |
| Defines the input source with a serial number to initialize and open an sl.CameraOne object from. More... | |
| None | set_from_svo_file (self, str, svo_input_filename) |
| Defines the input source with an SVO file to initialize and open an sl.CameraOne object from. More... | |
| None | set_from_stream (self, str, sender_ip, int, port=30000) |
| Defines the input source from a stream to initialize and open an sl.CameraOne object from. More... | |
Class containing the options used to initialize the sl.CameraOne object.
This class allows you to select multiple parameters for the sl.Camera such as the selected camera, resolution, depth mode, coordinate system, and units of measurement.
Once filled with the desired options, it should be passed to the sl.Camera.open() method.
With its default values, it opens the camera in live mode at sl.RESOLUTION.HD720
You can customize it to fit your application.
| RESOLUTION camera_resolution | ( | self | ) |
Default constructor.
All the parameters are set to their default and optimized values.
| camera_resolution | : Chosen camera_resolution |
| camera_fps | : Chosen camera_fps |
| svo_real_time_mode | : Activates svo_real_time_mode |
| coordinate_units | : Chosen coordinate_units |
| coordinate_system | : Chosen coordinate_system |
| sdk_verbose | : Sets sdk_verbose |
| sdk_verbose_log_file | : Chosen sdk_verbose_log_file |
| input_t | : Chosen input_t (InputType ) |
| optional_settings_path | : Chosen optional_settings_path |
| sensors_required | : Activates sensors_required |
| optional_opencv_calibration_file | : Sets optional_opencv_calibration_file |
| async_grab_camera_recovery | : Sets async_grab_camera_recovery |
| enable_hdr | : Sets enable_hdr |
| grab_compute_capping_fps | : Sets grab_compute_capping_fps |
| enable_image_validity_check | : Sets enable_image_validity_check |
Desired camera resolution.
Default:
| int camera_fps | ( | self | ) |
Requested camera frame rate.
If set to 0, the highest FPS of the specified camera_resolution will be used.
Default: 0
See sl.RESOLUTION for a list of supported frame rates.
Referenced by CameraConfiguration.fps(), and CameraOneConfiguration.fps().
| bool svo_real_time_mode | ( | self | ) |
Defines if sl.Camera object return the frame in real time mode.
When playing back an SVO file, each call to sl.Camera.grab() will extract a new frame and use it.
However, it ignores the real capture rate of the images saved in the SVO file.
Enabling this parameter will bring the SDK closer to a real simulation when playing back a file by using the images' timestamps.
Default: False
| UNIT coordinate_units | ( | self | ) |
Unit of spatial data (depth, point cloud, tracking, mesh, etc.) for retrieval.
Default: sl.UNIT.MILLIMETER
| COORDINATE_SYSTEM coordinate_system | ( | self | ) |
sl.COORDINATE_SYSTEM to be used as reference for positional tracking, mesh, point clouds, etc.
This parameter allows you to select the sl.COORDINATE_SYSTEM used by the sl.Camera object to return its measures.
This defines the order and the direction of the axis of the coordinate system.
Default: sl.COORDINATE_SYSTEM.IMAGE
| int sdk_verbose | ( | self | ) |
Enable the ZED SDK verbose mode.
This parameter allows you to enable the verbosity of the ZED SDK to get a variety of runtime information in the console.
When developing an application, enabling verbose (sdk_verbose >= 1) mode can help you understand the current ZED SDK behavior.
However, this might not be desirable in a shipped version.
Default: 0 (no verbose message)
| str sdk_verbose_log_file | ( | self | ) |
File path to store the ZED SDK logs (if sdk_verbose is enabled).
The file will be created if it does not exist.
Default: ""
| str optional_settings_path | ( | self | ) |
Optional path where the ZED SDK has to search for the settings file (SN<XXXX>.conf file).
This file contains the calibration information of the camera.
Default: ""
| bool async_grab_camera_recovery | ( | self | ) |
Define the behavior of the automatic camera recovery during sl.Camera.grab() method call.
When async is enabled and there's an issue with the communication with the sl.Camera object, sl.Camera.grab() will exit after a short period and return the sl.ERROR_CODE.CAMERA_REBOOTING warning.
The recovery will run in the background until the correct communication is restored.
When async_grab_camera_recovery is false, the sl.Camera.grab() method is blocking and will return only once the camera communication is restored or the timeout is reached.
Default: False
| bool enable_hdr | ( | self | ) |
Activates HDR support for the current resolution/mode.
Only active if the camera supports HDR for this resolution
Default: False
| None set_from_camera_id | ( | self, | |
| uint, | |||
| cam_id, | |||
| BUS_TYPE | bus_type = BUS_TYPE.AUTO |
||
| ) |
Defines the input source with a camera id to initialize and open an sl.CameraOne object from.
| id | : Id of the desired camera to open. |
| bus_type | : sl.BUS_TYPE of the desired camera to open. |
| None set_from_serial_number | ( | self, | |
| uint, | |||
| serial_number | |||
| ) |
Defines the input source with a serial number to initialize and open an sl.CameraOne object from.
| serial_number | : Serial number of the desired camera to open. |
| None set_from_svo_file | ( | self, | |
| str, | |||
| svo_input_filename | |||
| ) |
Defines the input source with an SVO file to initialize and open an sl.CameraOne object from.
| svo_input_filename | : Path to the desired SVO file to open. |
| None set_from_stream | ( | self, | |
| str, | |||
| sender_ip, | |||
| int, | |||
port = 30000 |
|||
| ) |
Defines the input source from a stream to initialize and open an sl.CameraOne object from.
| sender_ip | : IP address of the streaming sender. |
| port | : Port on which to listen. Default: 30000 |