Crate generic_camera

Source
Expand description

§Generic Camera Interface

This crate provides a generic interface for controlling cameras.

§Features

  • server: Enables the generic camera server.
  • dummy: Enables the dummy camera implementation.

§Usage

To use the crate, add the following to your Cargo.toml:

[dependencies]
generic-camera = "0.0"

Re-exports§

pub use controls::GenCamCtrl;
pub use crate::property::Property;
pub use crate::property::PropertyError;
pub use crate::property::PropertyType;
pub use crate::property::PropertyValue;

Modules§

controls
Controls
dummydummy
Dummy camera driver
property
Property
serverserver
Generic Camera Server

Structs§

GenCamDescriptor
A structure to hold information about a camera device.
GenCamRoi
This structure defines a region of interest. The region of interest is defined in the binned pixel space.

Enums§

GenCamError
Errors returned by camera operations.
GenCamPixelBpp
Pixel bit depth.
GenCamState
Defines the state of the camera.
GenericImage
A serializable, generic image with metadata, backed by either a GenericImageRef or a GenericImageOwned.

Traits§

GenCam
Trait for controlling the camera. This trait is intended to be applied to a non-clonable object that is used to capture images and can not be shared across threads.
GenCamDriver
Trait for camera drivers. Provides functions to list available devices and connect to a device.
GenCamInfo
Trait for obtaining camera information and cancelling any ongoing image capture. This trait is intended to be exclusively applied to a clonable object that can be passed to other threads for housekeeping purposes.

Type Aliases§

AnyGenCam
A trait object for a camera unit.
AnyGenCamInfo
A trait object for a camera info.
GenCamResult
The version of the generic_cam crate.