pub trait Detector {
// Required method
fn detect(&self, image: &GrayImage) -> Result<ScanResult>;
}Required Methods§
Sourcefn detect(&self, image: &GrayImage) -> Result<ScanResult>
fn detect(&self, image: &GrayImage) -> Result<ScanResult>
Detects the exam area in the image and returns the result.
image is the grayscale version of the input.