Struct opencv::barcode::BarcodeDetector
source · pub struct BarcodeDetector { /* private fields */ }Implementations§
source§impl BarcodeDetector
impl BarcodeDetector
sourcepub fn new(prototxt_path: &str, model_path: &str) -> Result<BarcodeDetector>
pub fn new(prototxt_path: &str, model_path: &str) -> Result<BarcodeDetector>
Initialize the BarcodeDetector.
Parameters
- prototxt_path: prototxt file path for the super resolution model
- model_path: model file path for the super resolution model
C++ default parameters
- prototxt_path: “”
- model_path: “”
Trait Implementations§
source§impl BarcodeDetectorTrait for BarcodeDetector
impl BarcodeDetectorTrait for BarcodeDetector
fn as_raw_mut_BarcodeDetector(&mut self) -> *mut c_void
source§impl BarcodeDetectorTraitConst for BarcodeDetector
impl BarcodeDetectorTraitConst for BarcodeDetector
fn as_raw_BarcodeDetector(&self) -> *const c_void
source§fn detect(
&self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray
) -> Result<bool>
fn detect( &self, img: &dyn ToInputArray, points: &mut dyn ToOutputArray ) -> Result<bool>
Detects Barcode in image and returns the rectangle(s) containing the code. Read more
source§fn decode(
&self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
decoded_info: &mut Vector<String>,
decoded_type: &mut Vector<BarcodeType>
) -> Result<bool>
fn decode( &self, img: &dyn ToInputArray, points: &dyn ToInputArray, decoded_info: &mut Vector<String>, decoded_type: &mut Vector<BarcodeType> ) -> Result<bool>
Decodes barcode in image once it’s found by the detect() method. Read more
source§fn detect_and_decode(
&self,
img: &dyn ToInputArray,
decoded_info: &mut Vector<String>,
decoded_type: &mut Vector<BarcodeType>,
points: &mut dyn ToOutputArray
) -> Result<bool>
fn detect_and_decode( &self, img: &dyn ToInputArray, decoded_info: &mut Vector<String>, decoded_type: &mut Vector<BarcodeType>, points: &mut dyn ToOutputArray ) -> Result<bool>
Both detects and decodes barcode Read more
source§impl Boxed for BarcodeDetector
impl Boxed for BarcodeDetector
source§impl Drop for BarcodeDetector
impl Drop for BarcodeDetector
impl Send for BarcodeDetector
Auto Trait Implementations§
impl RefUnwindSafe for BarcodeDetector
impl !Sync for BarcodeDetector
impl Unpin for BarcodeDetector
impl UnwindSafe for BarcodeDetector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more