Skip to main content

CameraProperties

Struct CameraProperties 

Source
pub struct CameraProperties {
Show 19 fields pub camera_model_name: String, pub user_custom_id: String, pub camera_id: u32, pub max_width: u32, pub max_height: u32, pub bit_depth: u32, pub is_color_camera: bool, pub is_has_st_4_port: bool, pub is_has_cooler: bool, pub is_usb_3_speed: bool, pub bayer_pattern: BayerPattern, pub pixel_size: f64, pub serial_number: String, pub sensor_model_name: String, pub local_path: String, pub bins: Vec<u32>, pub img_formats: Vec<POAImgFormat>, pub is_support_hard_bin: bool, pub product_id: i32,
}

Fields§

§camera_model_name: String

the camera name

§user_custom_id: String

user custom name, it will be added after the camera name, max len 16 bytes,like:Mars-C [Juno], default is empty

§camera_id: u32§max_width: u32

max width of the camera

§max_height: u32

max height of the camera

§bit_depth: u32

ADC depth of CMOS sensor

§is_color_camera: bool

is a color camera or not

§is_has_st_4_port: bool

does the camera have ST4 port, if not, camera don’t support ST4 guide

§is_has_cooler: bool

does the camera have cooler assembly, generally, the cooled camera with cooler, window heater and fan

§is_usb_3_speed: bool

is usb3.0 speed connection

§bayer_pattern: BayerPattern

the bayer filter pattern of camera

§pixel_size: f64

camera pixel size(unit: um)

§serial_number: String

the serial number of camera, unique

§sensor_model_name: String

the sensor model name, eg: IMX462

§local_path: String

the path of the camera in the computer host

§bins: Vec<u32>

bins supported by the camera, 1 == bin1, 2 == bin2,…

§img_formats: Vec<POAImgFormat>

image data format supported by the camera

§is_support_hard_bin: bool

does the camera sensor support hardware bin

§product_id: i32

camera’s Product ID, note: the vID of PlayerOne is 0xA0A0

Trait Implementations§

Source§

impl Clone for CameraProperties

Source§

fn clone(&self) -> CameraProperties

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CameraProperties

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<_POACameraProperties> for CameraProperties

Source§

fn from(value: _POACameraProperties) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.