Skip to main content

preprocess

Function preprocess 

Source
pub fn preprocess(img: &DynamicImage) -> Tensor<f32>
Expand description

Preprocess an image for the captcha model.

Model expects: [1, 3, 80, 215] (NCHW format)