Trait ci2::CameraModule

source ·
pub trait CameraModule: Send {
    type CameraType: Camera;
    type Guard;

    // Required methods
    fn name(&self) -> &str;
    fn camera_infos(&self) -> Result<Vec<Box<dyn CameraInfo>>>;
    fn camera(&mut self, name: &str) -> Result<Self::CameraType>;
    fn settings_file_extension(&self) -> &str;
    fn frame_info_extractor(&self) -> &'static dyn ExtractFrameInfo;
}
Expand description

A module for opening cameras (e.g. pylon).

Required Associated Types§

Required Methods§

source

fn name(&self) -> &str

source

fn camera_infos(&self) -> Result<Vec<Box<dyn CameraInfo>>>

source

fn camera(&mut self, name: &str) -> Result<Self::CameraType>

source

fn settings_file_extension(&self) -> &str

The file extension for node map settings.

The strings used in Camera::node_map_load and Camera::node_map_save would typically be stored in files with this extension.

source

fn frame_info_extractor(&self) -> &'static dyn ExtractFrameInfo

Implementors§