pub struct WebcamStreamConfig {
pub use_test_source: bool,
pub device_index: Option<u32>,
pub width: u32,
pub height: u32,
pub framerate: u32,
pub model_path: String,
pub score_threshold: f32,
pub texture_id: i64,
pub texture_library: Option<String>,
}Fields§
§use_test_source: boolvideotestsrc instead of a real camera (containers/CI have none).
device_index: Option<u32>Camera enumeration index; None = first available.
width: u32§height: u32§framerate: u32§model_path: String§score_threshold: f32§texture_id: i64Texture id from the native plugin’s create call; 0 = headless.
texture_library: Option<String>Override for the DLL exporting knt_push_frame.
Trait Implementations§
Source§impl IntoDart for WebcamStreamConfig
impl IntoDart for WebcamStreamConfig
Source§impl IntoIntoDart<WebcamStreamConfig> for WebcamStreamConfig
impl IntoIntoDart<WebcamStreamConfig> for WebcamStreamConfig
fn into_into_dart(self) -> WebcamStreamConfig
impl IntoDartExceptPrimitive for WebcamStreamConfig
Auto Trait Implementations§
impl Freeze for WebcamStreamConfig
impl RefUnwindSafe for WebcamStreamConfig
impl Send for WebcamStreamConfig
impl Sync for WebcamStreamConfig
impl Unpin for WebcamStreamConfig
impl UnwindSafe for WebcamStreamConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more