OpenCV for Unity 2.6.4
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.
|
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] |
|
static |
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.
img | grayscale or color (BGR) image containing graphical code. |
points | Quadrangle vertices found by detect() method (or some other algorithm). |
straight_code | The optional output image containing binarized code, will be empty if not found. |
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.
img | grayscale or color (BGR) image containing graphical code. |
points | Quadrangle vertices found by detect() method (or some other algorithm). |
straight_code | The optional output image containing binarized code, will be empty if not found. |
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.
img | grayscale or color (BGR) image containing graphical codes. |
decoded_info | UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. |
points | vector of Quadrangle vertices found by detect() method (or some other algorithm). |
straight_code | The optional output vector of images containing binarized codes |
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.
img | grayscale or color (BGR) image containing graphical codes. |
decoded_info | UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. |
points | vector of Quadrangle vertices found by detect() method (or some other algorithm). |
straight_code | The optional output vector of images containing binarized codes |
Detects graphical code in image and returns the quadrangle containing the code.
img | grayscale or color (BGR) image containing (or not) graphical code. |
points | Output vector of vertices of the minimum-area quadrangle containing the code. |
string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecode | ( | Mat | img | ) |
Both detects and decodes graphical code.
img | grayscale or color (BGR) image containing graphical code. |
points | optional output array of vertices of the found graphical code quadrangle, will be empty if not found. |
straight_code | The optional output image containing binarized code |
Both detects and decodes graphical code.
img | grayscale or color (BGR) image containing graphical code. |
points | optional output array of vertices of the found graphical code quadrangle, will be empty if not found. |
straight_code | The optional output image containing binarized code |
string OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecode | ( | Mat | img, |
Mat | points, | ||
Mat | straight_code ) |
Both detects and decodes graphical code.
img | grayscale or color (BGR) image containing graphical code. |
points | optional output array of vertices of the found graphical code quadrangle, will be empty if not found. |
straight_code | The optional output image containing binarized code |
bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti | ( | Mat | img, |
List< string > | decoded_info ) |
Both detects and decodes graphical codes.
img | grayscale or color (BGR) image containing graphical codes. |
decoded_info | UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. |
points | optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found. |
straight_code | The optional vector of images containing binarized codes |
bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti | ( | Mat | img, |
List< string > | decoded_info, | ||
Mat | points ) |
Both detects and decodes graphical codes.
img | grayscale or color (BGR) image containing graphical codes. |
decoded_info | UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. |
points | optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found. |
straight_code | The optional vector of images containing binarized codes |
bool OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.detectAndDecodeMulti | ( | Mat | img, |
List< string > | decoded_info, | ||
Mat | points, | ||
List< Mat > | straight_code ) |
Both detects and decodes graphical codes.
img | grayscale or color (BGR) image containing graphical codes. |
decoded_info | UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. |
points | optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found. |
straight_code | The optional vector of images containing binarized codes |
Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
img | grayscale or color (BGR) image containing (or not) graphical codes. |
points | Output vector of vector of vertices of the minimum-area quadrangle containing the codes. |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableOpenCVObject.
Reimplemented in OpenCVForUnity.ObjdetectModule.QRCodeDetector, and OpenCVForUnity.ObjdetectModule.QRCodeDetectorAruco.
IntPtr OpenCVForUnity.ObjdetectModule.GraphicalCodeDetector.getNativeObjAddr | ( | ) |