EstervQrCode 1.1.1
Library for qr code manipulation
Public Member Functions | List of all members
cv::QRCodeDetector Class Reference

#include <objdetect.hpp>

Inheritance diagram for cv::QRCodeDetector:
cv::GraphicalCodeDetector

Public Member Functions

CV_WRAP QRCodeDetector ()
 
CV_WRAP QRCodeDetectorsetEpsX (double epsX)
 sets the epsilon used during the horizontal scan of QR code stop marker detection. More...
 
CV_WRAP QRCodeDetectorsetEpsY (double epsY)
 sets the epsilon used during the vertical scan of QR code stop marker detection. More...
 
CV_WRAP QRCodeDetectorsetUseAlignmentMarkers (bool useAlignmentMarkers)
 use markers to improve the position of the corners of the QR code More...
 
CV_WRAP cv::String decodeCurved (InputArray img, InputArray points, OutputArray straight_qrcode=noArray())
 Decodes QR code on a curved surface in image once it's found by the detect() method. More...
 
CV_WRAP std::string detectAndDecodeCurved (InputArray img, OutputArray points=noArray(), OutputArray straight_qrcode=noArray())
 Both detects and decodes QR code on a curved surface. More...
 
- Public Member Functions inherited from cv::GraphicalCodeDetector
CV_DEPRECATED_EXTERNAL GraphicalCodeDetector ()
 
 GraphicalCodeDetector (const GraphicalCodeDetector &)=default
 
 GraphicalCodeDetector (GraphicalCodeDetector &&)=default
 
GraphicalCodeDetectoroperator= (const GraphicalCodeDetector &)=default
 
GraphicalCodeDetectoroperator= (GraphicalCodeDetector &&)=default
 
CV_WRAP bool detect (InputArray img, OutputArray points) const
 Detects graphical code in image and returns the quadrangle containing the code. More...
 
CV_WRAP std::string decode (InputArray img, InputArray points, OutputArray straight_code=noArray()) const
 Decodes graphical code in image once it's found by the detect() method. More...
 
CV_WRAP std::string detectAndDecode (InputArray img, OutputArray points=noArray(), OutputArray straight_code=noArray()) const
 Both detects and decodes graphical code. More...
 
CV_WRAP bool detectMulti (InputArray img, OutputArray points) const
 Detects graphical codes in image and returns the vector of the quadrangles containing the codes. More...
 
CV_WRAP bool decodeMulti (InputArray img, InputArray points, CV_OUT std::vector< std::string > &decoded_info, OutputArrayOfArrays straight_code=noArray()) const
 Decodes graphical codes in image once it's found by the detect() method. More...
 
CV_WRAP bool detectAndDecodeMulti (InputArray img, CV_OUT std::vector< std::string > &decoded_info, OutputArray points=noArray(), OutputArrayOfArrays straight_code=noArray()) const
 Both detects and decodes graphical codes. More...
 

Additional Inherited Members

- Protected Attributes inherited from cv::GraphicalCodeDetector
Ptr< Impl > p
 

Constructor & Destructor Documentation

◆ QRCodeDetector()

CV_WRAP cv::QRCodeDetector::QRCodeDetector ( )

Member Function Documentation

◆ decodeCurved()

CV_WRAP cv::String cv::QRCodeDetector::decodeCurved ( InputArray  img,
InputArray  points,
OutputArray  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
imggrayscale or color (BGR) image containing QR code.
pointsQuadrangle vertices found by detect() method (or some other algorithm).
straight_qrcodeThe optional output image containing rectified and binarized QR code

◆ detectAndDecodeCurved()

CV_WRAP std::string cv::QRCodeDetector::detectAndDecodeCurved ( InputArray  img,
OutputArray  points = noArray(),
OutputArray  straight_qrcode = noArray() 
)

Both detects and decodes QR code on a curved surface.

Parameters
imggrayscale or color (BGR) image containing QR code.
pointsoptional output array of vertices of the found QR code quadrangle. Will be empty if not found.
straight_qrcodeThe optional output image containing rectified and binarized QR code

◆ setEpsX()

CV_WRAP QRCodeDetector& cv::QRCodeDetector::setEpsX ( double  epsX)

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

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

◆ setEpsY()

CV_WRAP QRCodeDetector& cv::QRCodeDetector::setEpsY ( double  epsY)

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

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

◆ setUseAlignmentMarkers()

CV_WRAP QRCodeDetector& cv::QRCodeDetector::setUseAlignmentMarkers ( bool  useAlignmentMarkers)

use markers to improve the position of the corners of the QR code

alignmentMarkers using by default


The documentation for this class was generated from the following file: