OpenCV for Unity 2.6.5
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.GraphicalCodeDetector Class Reference

Public Member Functions

string decode (Mat img, Mat points)
 Decodes graphical code in image once it's found by the detect() method.
 
string decode (Mat img, Mat points, Mat straight_code)
 Decodes graphical code 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 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 detect (Mat img, Mat points)
 Detects graphical code in image and returns the quadrangle containing the code.
 
string detectAndDecode (Mat img)
 Both detects and decodes graphical code.
 
string detectAndDecode (Mat img, Mat points)
 Both detects and decodes graphical code.
 
string detectAndDecode (Mat img, Mat points, Mat straight_code)
 Both detects and decodes graphical code.
 
bool detectAndDecodeMulti (Mat img, List< string > decoded_info)
 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, Mat points, List< Mat > straight_code)
 Both detects and decodes graphical codes.
 
bool detectMulti (Mat img, Mat points)
 Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
 
IntPtr getNativeObjAddr ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

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.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

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

Member Function Documentation

◆ __fromPtr__()

static GraphicalCodeDetector OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.__fromPtr__ ( IntPtr addr)
static

◆ decode() [1/2]

string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.decode ( Mat img,
Mat points )

Decodes graphical 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 graphical code.
pointsQuadrangle vertices found by detect() method (or some other algorithm).
straight_codeThe optional output image containing binarized code, will be empty if not found.

◆ decode() [2/2]

string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.decode ( Mat img,
Mat points,
Mat straight_code )

Decodes graphical 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 graphical code.
pointsQuadrangle vertices found by detect() method (or some other algorithm).
straight_codeThe optional output image containing binarized code, will be empty if not found.

◆ decodeMulti() [1/2]

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.decodeMulti ( Mat img,
Mat points,
List< string > decoded_info )

Decodes graphical codes in image once it's found by the detect() method.

Parameters
imggrayscale or color (BGR) image containing graphical codes.
decoded_infoUTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
pointsvector of Quadrangle vertices found by detect() method (or some other algorithm).
straight_codeThe optional output vector of images containing binarized codes

◆ decodeMulti() [2/2]

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.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.

Parameters
imggrayscale or color (BGR) image containing graphical codes.
decoded_infoUTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
pointsvector of Quadrangle vertices found by detect() method (or some other algorithm).
straight_codeThe optional output vector of images containing binarized codes

◆ detect()

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detect ( Mat img,
Mat points )

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

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

◆ detectAndDecode() [1/3]

string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecode ( Mat img)

Both detects and decodes graphical code.

Parameters
imggrayscale or color (BGR) image containing graphical code.
pointsoptional output array of vertices of the found graphical code quadrangle, will be empty if not found.
straight_codeThe optional output image containing binarized code

◆ detectAndDecode() [2/3]

string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecode ( Mat img,
Mat points )

Both detects and decodes graphical code.

Parameters
imggrayscale or color (BGR) image containing graphical code.
pointsoptional output array of vertices of the found graphical code quadrangle, will be empty if not found.
straight_codeThe optional output image containing binarized code

◆ detectAndDecode() [3/3]

string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecode ( Mat img,
Mat points,
Mat straight_code )

Both detects and decodes graphical code.

Parameters
imggrayscale or color (BGR) image containing graphical code.
pointsoptional output array of vertices of the found graphical code quadrangle, will be empty if not found.
straight_codeThe optional output image containing binarized code

◆ detectAndDecodeMulti() [1/3]

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti ( Mat img,
List< string > decoded_info )

Both detects and decodes graphical codes.

Parameters
imggrayscale or color (BGR) image containing graphical codes.
decoded_infoUTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
pointsoptional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.
straight_codeThe optional vector of images containing binarized codes
  • If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.

◆ detectAndDecodeMulti() [2/3]

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti ( Mat img,
List< string > decoded_info,
Mat points )

Both detects and decodes graphical codes.

Parameters
imggrayscale or color (BGR) image containing graphical codes.
decoded_infoUTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
pointsoptional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.
straight_codeThe optional vector of images containing binarized codes
  • If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.

◆ detectAndDecodeMulti() [3/3]

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti ( Mat img,
List< string > decoded_info,
Mat points,
List< Mat > straight_code )

Both detects and decodes graphical codes.

Parameters
imggrayscale or color (BGR) image containing graphical codes.
decoded_infoUTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
pointsoptional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.
straight_codeThe optional vector of images containing binarized codes
  • If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.

◆ detectMulti()

bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectMulti ( Mat img,
Mat points )

Detects graphical codes in image and returns the vector of the quadrangles containing the codes.

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

◆ Dispose()

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

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.getNativeObjAddr ( )

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