pub type PPDocLayoutPreprocessConfig = ScaleAwareDetectorPreprocessConfig;Expand description
Preprocessing configuration for PP-DocLayout model.
This is a type alias for the generic configuration with PP-DocLayout defaults.
Aliased Type§
pub struct PPDocLayoutPreprocessConfig {
pub image_shape: (u32, u32),
pub keep_ratio: bool,
pub limit_side_len: u32,
pub scale: f32,
pub mean: Vec<f32>,
pub std: Vec<f32>,
pub resize_filter: FilterType,
pub color_order: ColorOrder,
}Fields§
§image_shape: (u32, u32)Target image shape (height, width)
keep_ratio: boolWhether to keep aspect ratio when resizing
limit_side_len: u32Limit side length
scale: f32Normalization scale factor
mean: Vec<f32>Normalization mean values (RGB)
std: Vec<f32>Normalization std values (RGB)
resize_filter: FilterTypeInterpolation filter for resizing
color_order: ColorOrderExpected output color order for the model