pub fn preprocess(img: &DynamicImage) -> Tensor<f32>Expand description
Preprocess an image for the captcha model.
Model expects: [1, 3, 80, 215] (NCHW format)
pub fn preprocess(img: &DynamicImage) -> Tensor<f32>Preprocess an image for the captcha model.
Model expects: [1, 3, 80, 215] (NCHW format)