pub trait QRCodeDetectorTraitConst {
    // Required method
    fn as_raw_QRCodeDetector(&self) -> *const c_void;

    // Provided methods
    fn detect(
        &self,
        img: &dyn ToInputArray,
        points: &mut dyn ToOutputArray
    ) -> Result<bool> { ... }
    fn detect_multi(
        &self,
        img: &dyn ToInputArray,
        points: &mut dyn ToOutputArray
    ) -> Result<bool> { ... }
    fn decode_multi(
        &self,
        img: &dyn ToInputArray,
        points: &dyn ToInputArray,
        decoded_info: &mut Vector<String>,
        straight_qrcode: &mut dyn ToOutputArray
    ) -> Result<bool> { ... }
}
Expand description

Constant methods for crate::objdetect::QRCodeDetector

Required Methods§

Provided Methods§

source

fn detect( &self, img: &dyn ToInputArray, points: &mut dyn ToOutputArray ) -> Result<bool>

Detects QR code in image and returns the quadrangle containing the code.

Parameters
  • img: grayscale or color (BGR) image containing (or not) QR code.
  • points: Output vector of vertices of the minimum-area quadrangle containing the code.
source

fn detect_multi( &self, img: &dyn ToInputArray, points: &mut dyn ToOutputArray ) -> Result<bool>

Detects QR codes in image and returns the vector of the quadrangles containing the codes.

Parameters
  • img: grayscale or color (BGR) image containing (or not) QR codes.
  • points: Output vector of vector of vertices of the minimum-area quadrangle containing the codes.
source

fn decode_multi( &self, img: &dyn ToInputArray, points: &dyn ToInputArray, decoded_info: &mut Vector<String>, straight_qrcode: &mut dyn ToOutputArray ) -> Result<bool>

Decodes QR codes in image once it’s found by the detect() method.

Parameters
  • img: grayscale or color (BGR) image containing QR codes.
  • decoded_info: UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
  • points: vector of Quadrangle vertices found by detect() method (or some other algorithm).
  • straight_qrcode: The optional output vector of images containing rectified and binarized QR codes
C++ default parameters
  • straight_qrcode: noArray()

Implementors§