Trait opencv::objdetect::QRCodeDetectorTrait[][src]

pub trait QRCodeDetectorTrait: QRCodeDetectorTraitConst {
    fn as_raw_mut_QRCodeDetector(&mut self) -> *mut c_void;

    fn set_eps_x(&mut self, eps_x: f64) -> Result<()> { ... }
fn set_eps_y(&mut self, eps_y: f64) -> Result<()> { ... }
fn decode(
        &mut self,
        img: &dyn ToInputArray,
        points: &dyn ToInputArray,
        straight_qrcode: &mut dyn ToOutputArray
    ) -> Result<String> { ... }
fn decode_curved(
        &mut self,
        img: &dyn ToInputArray,
        points: &dyn ToInputArray,
        straight_qrcode: &mut dyn ToOutputArray
    ) -> Result<String> { ... }
fn detect_and_decode(
        &mut self,
        img: &dyn ToInputArray,
        points: &mut dyn ToOutputArray,
        straight_qrcode: &mut dyn ToOutputArray
    ) -> Result<String> { ... }
fn detect_and_decode_curved(
        &mut self,
        img: &dyn ToInputArray,
        points: &mut dyn ToOutputArray,
        straight_qrcode: &mut dyn ToOutputArray
    ) -> Result<String> { ... } }

Required methods

Provided methods

sets the epsilon used during the horizontal scan of QR code stop marker detection.

Parameters
  • epsX: Epsilon neighborhood, which allows you to determine the horizontal pattern of the scheme 1:1:3:1:1 according to QR code standard.

sets the epsilon used during the vertical scan of QR code stop marker detection.

Parameters
  • epsY: Epsilon neighborhood, which allows you to determine the vertical pattern of the scheme 1:1:3:1:1 according to QR code standard.

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

Returns UTF8-encoded output string or empty string if the code cannot be decoded.

Parameters
  • img: grayscale or color (BGR) image containing QR code.
  • points: Quadrangle vertices found by detect() method (or some other algorithm).
  • straight_qrcode: The optional output image containing rectified and binarized QR code
C++ default parameters
  • straight_qrcode: noArray()

Decodes QR code on a curved surface in image once it’s found by the detect() method.

Returns UTF8-encoded output string or empty string if the code cannot be decoded.

Parameters
  • img: grayscale or color (BGR) image containing QR code.
  • points: Quadrangle vertices found by detect() method (or some other algorithm).
  • straight_qrcode: The optional output image containing rectified and binarized QR code
C++ default parameters
  • straight_qrcode: noArray()

Both detects and decodes QR code

Parameters
  • img: grayscale or color (BGR) image containing QR code.
  • points: optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
  • straight_qrcode: The optional output image containing rectified and binarized QR code
C++ default parameters
  • points: noArray()
  • straight_qrcode: noArray()

Both detects and decodes QR code on a curved surface

Parameters
  • img: grayscale or color (BGR) image containing QR code.
  • points: optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
  • straight_qrcode: The optional output image containing rectified and binarized QR code
C++ default parameters
  • points: noArray()
  • straight_qrcode: noArray()

Implementors