OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::QRCodeDetector Class Reference

#include <opencv2/objdetect.hpp>

Collaboration diagram for cv::QRCodeDetector:

Public Member Functions

 QRCodeDetector ()
 
 ~QRCodeDetector ()
 
std::string decode (InputArray img, InputArray points, OutputArray straight_qrcode=noArray())
 Decodes QR code in image once it's found by the detect() method. More...
 
bool detect (InputArray img, OutputArray points) const
 Detects QR code in image and returns the quadrangle containing the code. More...
 
std::string detectAndDecode (InputArray img, OutputArray points=noArray(), OutputArray straight_qrcode=noArray())
 Both detects and decodes QR code. More...
 
void setEpsX (double epsX)
 sets the epsilon used during the horizontal scan of QR code stop marker detection. More...
 
void setEpsY (double epsY)
 sets the epsilon used during the vertical scan of QR code stop marker detection. More...
 

Protected Attributes

Ptr< Impl > p
 

Constructor & Destructor Documentation

◆ QRCodeDetector()

cv::QRCodeDetector::QRCodeDetector ( )

◆ ~QRCodeDetector()

cv::QRCodeDetector::~QRCodeDetector ( )

Member Function Documentation

◆ decode()

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

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
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

◆ detect()

bool cv::QRCodeDetector::detect ( InputArray  img,
OutputArray  points 
) const

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

Parameters
imggrayscale or color (BGR) image containing (or not) QR code.
pointsOutput vector of vertices of the minimum-area quadrangle containing the code.

◆ detectAndDecode()

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

Both detects and decodes QR code.

Parameters
imggrayscale or color (BGR) image containing QR code.
pointsopiotnal 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()

void 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()

void 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.

Member Data Documentation

◆ p

Ptr<Impl> cv::QRCodeDetector::p
protected

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