OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.ObjdetectModule.QRCodeDetector Class Reference
Inheritance diagram for OpenCVForUnity.ObjdetectModule.QRCodeDetector:
OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

 QRCodeDetector ()
 
QRCodeDetector setEpsX (double epsX)
 sets the epsilon used during the horizontal scan of QR code stop marker detection.
 
QRCodeDetector setEpsY (double epsY)
 sets the epsilon used during the vertical scan of QR code stop marker detection.
 
QRCodeDetector setUseAlignmentMarkers (bool useAlignmentMarkers)
 use markers to improve the position of the corners of the QR code
 
string decodeCurved (Mat img, Mat points, Mat straight_qrcode)
 Decodes QR code on a curved surface in image once it's found by the detect() method.
 
string decodeCurved (Mat img, Mat points)
 Decodes QR code on a curved surface in image once it's found by the detect() method.
 
string detectAndDecodeCurved (Mat img, Mat points, Mat straight_qrcode)
 Both detects and decodes QR code on a curved surface.
 
string detectAndDecodeCurved (Mat img, Mat points)
 Both detects and decodes QR code on a curved surface.
 
string detectAndDecodeCurved (Mat img)
 Both detects and decodes QR code on a curved surface.
 
- Public Member Functions inherited from OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector
IntPtr getNativeObjAddr ()
 
bool detect (Mat img, Mat points)
 Detects graphical code in image and returns the quadrangle containing the code.
 
string decode (Mat img, Mat points, Mat straight_code)
 Decodes graphical code in image once it's found by the detect() method.
 
string decode (Mat img, Mat points)
 Decodes graphical code in image once it's found by the detect() method.
 
string detectAndDecode (Mat img, Mat points, Mat straight_code)
 Both detects and decodes graphical code.
 
string detectAndDecode (Mat img, Mat points)
 Both detects and decodes graphical code.
 
string detectAndDecode (Mat img)
 Both detects and decodes graphical code.
 
bool detectMulti (Mat img, Mat points)
 Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
 
bool decodeMulti (Mat img, Mat points, List< string > decoded_info, List< Mat > straight_code)
 Decodes graphical codes in image once it's found by the detect() method.
 
bool decodeMulti (Mat img, Mat points, List< string > decoded_info)
 Decodes graphical codes in image once it's found by the detect() method.
 
bool detectAndDecodeMulti (Mat img, List< string > decoded_info, Mat points, List< Mat > straight_code)
 Both detects and decodes graphical codes.
 
bool detectAndDecodeMulti (Mat img, List< string > decoded_info, Mat points)
 Both detects and decodes graphical codes.
 
bool detectAndDecodeMulti (Mat img, List< string > decoded_info)
 Both detects and decodes graphical codes.
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new QRCodeDetector __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector
static GraphicalCodeDetector __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Constructor & Destructor Documentation

◆ QRCodeDetector()

OpenCVForUnity.ObjdetectModule.QRCodeDetector.QRCodeDetector ( )

Member Function Documentation

◆ __fromPtr__()

static new QRCodeDetector OpenCVForUnity.ObjdetectModule.QRCodeDetector.__fromPtr__ ( IntPtr addr)
static

◆ decodeCurved() [1/2]

string OpenCVForUnity.ObjdetectModule.QRCodeDetector.decodeCurved ( Mat img,
Mat points )

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

◆ decodeCurved() [2/2]

string OpenCVForUnity.ObjdetectModule.QRCodeDetector.decodeCurved ( Mat img,
Mat points,
Mat 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
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() [1/3]

string OpenCVForUnity.ObjdetectModule.QRCodeDetector.detectAndDecodeCurved ( Mat img)

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

◆ detectAndDecodeCurved() [2/3]

string OpenCVForUnity.ObjdetectModule.QRCodeDetector.detectAndDecodeCurved ( Mat img,
Mat points )

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

◆ detectAndDecodeCurved() [3/3]

string OpenCVForUnity.ObjdetectModule.QRCodeDetector.detectAndDecodeCurved ( Mat img,
Mat points,
Mat straight_qrcode )

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

◆ Dispose()

override void OpenCVForUnity.ObjdetectModule.QRCodeDetector.Dispose ( bool disposing)
protectedvirtual

◆ setEpsX()

QRCodeDetector OpenCVForUnity.ObjdetectModule.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()

QRCodeDetector OpenCVForUnity.ObjdetectModule.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()

QRCodeDetector OpenCVForUnity.ObjdetectModule.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: