[−][src]Trait opencv::prelude::QRCodeDetectorTrait
Required methods
pub fn as_raw_QRCodeDetector(&self) -> *const c_void
[src]
pub fn as_raw_mut_QRCodeDetector(&mut self) -> *mut c_void
[src]
Provided methods
pub fn set_eps_x(&mut self, eps_x: f64) -> Result<()>
[src]
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.
pub fn set_eps_y(&mut self, eps_y: f64) -> Result<()>
[src]
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.
pub fn detect(
&self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray
) -> Result<bool>
[src]
&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.
pub fn decode(
&mut self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
[src]
&mut self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
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()
pub fn decode_curved(
&mut self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
[src]
&mut self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
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()
pub fn detect_and_decode(
&mut self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
[src]
&mut self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
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()
pub fn detect_and_decode_curved(
&mut self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
[src]
&mut self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<String>
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()
pub fn detect_multi(
&self,
img: &dyn ToInputArray,
points: &mut dyn ToOutputArray
) -> Result<bool>
[src]
&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.
pub fn decode_multi(
&self,
img: &dyn ToInputArray,
points: &dyn ToInputArray,
decoded_info: &mut Vector<String>,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<bool>
[src]
&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()
pub fn detect_and_decode_multi(
&self,
img: &dyn ToInputArray,
decoded_info: &mut Vector<String>,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<bool>
[src]
&self,
img: &dyn ToInputArray,
decoded_info: &mut Vector<String>,
points: &mut dyn ToOutputArray,
straight_qrcode: &mut dyn ToOutputArray
) -> Result<bool>
Both detects and decodes QR codes
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: optional output vector of vertices of the found QR code quadrangles. Will be empty if not found.
- straight_qrcode: The optional output vector of images containing rectified and binarized QR codes
C++ default parameters
- points: noArray()
- straight_qrcode: noArray()