#[repr(C)]pub struct EfPreprocessSpec {
pub width: u32,
pub height: u32,
pub fit: u32,
pub placement: u32,
pub pad_space: u32,
pub pad: [f32; 3],
pub mean: [f32; 3],
pub std: [f32; 3],
pub interpolation: u32,
}Expand description
A model’s input preprocessing as plain values. C ef_preprocess_spec in
detect.h, produced by the decoder library and consumed by the image
library.
Fields§
§width: u32Model input width in pixels, 0 when unknown.
height: u32Model input height in pixels, 0 when unknown.
fit: u32An EF_FIT_* code.
placement: u32An EF_LETTERBOX_PLACEMENT_* code; ignored by a stretch.
pad_space: u32An EF_PAD_SPACE_* code for pad.
pad: [f32; 3]Letterbox pad per RGB channel.
mean: [f32; 3]Normalization mean per RGB channel, on 0-255 values.
std: [f32; 3]Normalization standard deviation per RGB channel, on 0-255 values.
interpolation: u32An EF_INTERPOLATION_* code.
Trait Implementations§
Source§impl Clone for EfPreprocessSpec
impl Clone for EfPreprocessSpec
impl Copy for EfPreprocessSpec
Source§impl Debug for EfPreprocessSpec
impl Debug for EfPreprocessSpec
Source§impl Default for EfPreprocessSpec
impl Default for EfPreprocessSpec
Source§impl PartialEq for EfPreprocessSpec
impl PartialEq for EfPreprocessSpec
impl StructuralPartialEq for EfPreprocessSpec
Auto Trait Implementations§
impl Freeze for EfPreprocessSpec
impl RefUnwindSafe for EfPreprocessSpec
impl Send for EfPreprocessSpec
impl Sync for EfPreprocessSpec
impl Unpin for EfPreprocessSpec
impl UnsafeUnpin for EfPreprocessSpec
impl UnwindSafe for EfPreprocessSpec
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