Trait bardecoder::detect::Detect
source · pub trait Detect<PREPD> {
// Required method
fn detect(&self, prepared: &PREPD) -> Vec<Location>;
}
Expand description
Detect barcode in a prepared image
PREPD type should be the type if the image returned from the Prepare
implementation
Pre-implemented Extracts provided by this library that are included in the default Detect
:
Example
use bardecoder::detect::Detect;
struct MyDetector {}
impl Detect<GrayImage> for MyDetector {
fn detect(&self, prepared: &GrayImage) -> Vec<Location> {
// detect codes here
}
}
with the corresponding impl Detect being the Example here