Class cv::QRCodeDetector#
QR code detector.
#include <opencv2/objdetect.hpp>Collaboration diagram for cv::QRCodeDetector:
Public Member Functions#
Public Member Functions inherited from cv::GraphicalCodeDetector
Return |
Name |
Description |
|---|---|---|
|
|
Decodes graphical code in image once it’s found by the detect() method. |
|
Decodes graphical codes in image once it’s found by the detect() method. |
|
|
Detects graphical code in image and returns the quadrangle containing the code. |
|
|
Both detects and decodes graphical code. |
|
|
Both detects and decodes graphical codes. |
|
|
Detects graphical codes in image and returns the vector of the quadrangles containing the codes. |
|
Additional Inherited Members#
Protected Attributes inherited from cv::GraphicalCodeDetector
Detailed Description#
QR code detector.
Constructor & Destructor Documentation#
QRCodeDetector()#
cv::QRCodeDetector::QRCodeDetector()
Python:
cv.QRCodeDetector() -> <QRCodeDetector object>
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:
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:
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
codeIdx— an index of the previously decoded QR code. When decode or detectAndDecode is used, valid value is zero. For decodeMulti or detectAndDecodeMulti use indices corresponding to the output order.
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:
opencv2/objdetect.hpp