Class cv::QRCodeDetector#

QR code detector.

Collaboration diagram for cv::QRCodeDetector:

Public Member Functions#

Public Member Functions inherited from cv::GraphicalCodeDetector

Additional Inherited Members#

Protected Attributes inherited from cv::GraphicalCodeDetector

Return

Name

Description

Ptr< Impl >

p

Detailed Description#

QR code detector.

Constructor & Destructor Documentation#

QRCodeDetector()#

cv::QRCodeDetector::QRCodeDetector()

Python:

Member Function Documentation#

decodeCurved()#

cv::String cv::QRCodeDetector::decodeCurved(
InputArray img,
InputArray points,
OutputArray straight_qrcode = noArray() )

Python:

cv.QRCodeDetector.decodeCurved(img, points[, straight_qrcode]) -> retval, straight_qrcode

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

Here is the call graph for this function:

cv::QRCodeDetector::decodeCurved Node1 cv::QRCodeDetector ::decodeCurved Node2 cv::noArray Node1->Node2

cv::QRCodeDetector::decodeCurved Node1 cv::QRCodeDetector ::decodeCurved Node2 cv::noArray Node1->Node2

detectAndDecodeCurved()#

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

Python:

cv.QRCodeDetector.detectAndDecodeCurved(img[, points[, straight_qrcode]]) -> retval, points, straight_qrcode

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

Here is the call graph for this function:

cv::QRCodeDetector::detectAndDecodeCurved Node1 cv::QRCodeDetector ::detectAndDecodeCurved Node2 cv::noArray Node1->Node2

cv::QRCodeDetector::detectAndDecodeCurved Node1 cv::QRCodeDetector ::detectAndDecodeCurved Node2 cv::noArray Node1->Node2

getEncoding()#

QRCodeEncoder::ECIEncodings cv::QRCodeDetector::getEncoding(int codeIdx = 0)

Python:

cv.QRCodeDetector.getEncoding([, codeIdx]) -> retval

Returns a kind of encoding for the decoded info from the latest decode or detectAndDecode call.

Parameters

setEpsX()#

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

Python:

cv.QRCodeDetector.setEpsX(epsX) -> retval

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.

setEpsY()#

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

Python:

cv.QRCodeDetector.setEpsY(epsY) -> retval

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.

setUseAlignmentMarkers()#

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

Python:

cv.QRCodeDetector.setUseAlignmentMarkers(useAlignmentMarkers) -> retval

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

alignmentMarkers using by default

Source file#

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