pub trait WeChatQRCodeTrait: WeChatQRCodeTraitConst {
    fn as_raw_mut_WeChatQRCode(&mut self) -> *mut c_void;

    fn detect_and_decode(
        &mut self,
        img: &dyn ToInputArray,
        points: &mut dyn ToOutputArray
    ) -> Result<Vector<String>> { ... } }

Required Methods

Provided Methods

Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode

Parameters
  • img: supports grayscale or color (BGR) image.
  • points: optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
Returns

list of decoded string.

C++ default parameters
  • points: noArray()

Implementors