pub fn preprocess_for_det(
img: &DynamicImage,
params: &NormalizeParams,
) -> ArrayBase<OwnedRepr<f32>, Dim<[usize; 4]>>Expand description
Convert image to detection model input tensor
Output format: [1, 3, H, W] (NCHW)
pub fn preprocess_for_det(
img: &DynamicImage,
params: &NormalizeParams,
) -> ArrayBase<OwnedRepr<f32>, Dim<[usize; 4]>>Convert image to detection model input tensor
Output format: [1, 3, H, W] (NCHW)