[][src]Trait bardecoder::detect::Detect

pub trait Detect<PREPD> {
    fn detect(&self, prepared: &PREPD) -> Vec<Location>;
}

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

Required methods

fn detect(&self, prepared: &PREPD) -> Vec<Location>

Does the actual detecting

Loading content...

Implementors

impl Detect<ImageBuffer<Luma<u8>, Vec<u8>>> for LineScan[src]

Loading content...