Skip to main content

scan_core/
detector.rs

1use image::GrayImage;
2use crate::ScanResult;
3use anyhow::Result;
4
5pub trait Detector {
6    /// Detects the exam area in the image and returns the result.
7    /// `image` is the grayscale version of the input.
8    fn detect(&self, image: &GrayImage) -> Result<ScanResult>;
9}