Skip to main content

DetectionResizeOperation

Trait DetectionResizeOperation 

Source
pub trait DetectionResizeOperation {
    // Required method
    fn resize_with_scale(
        &self,
        images: Vec<DynamicImage>,
    ) -> Result<(Vec<DynamicImage>, Vec<ImageScaleInfo>), OCRError>;
}
Expand description

Trait for detection resize operations that return scale information.

Used for detection models that need to map predictions back to original coordinates.

Required Methods§

Source

fn resize_with_scale( &self, images: Vec<DynamicImage>, ) -> Result<(Vec<DynamicImage>, Vec<ImageScaleInfo>), OCRError>

Resizes a batch of images and returns scale information.

Implementors§