fn pre_process(model_data: &Model, img: &DynamicImage) -> Result<DynamicImage>
Pre-processes an image for YOLO detection.