OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OpenCVForUnity.ObjdetectModule.QRCodeEncoder Class Reference

Groups the object candidate rectangles. rectList Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.) weights Input/output vector of weights of rectangles. Output vector includes weights of retained and grouped rectangles. (The Python list is not modified in place.) groupThreshold Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it. eps Relative difference between sides of the rectangles to merge them into a group. More...

Inheritance diagram for OpenCVForUnity.ObjdetectModule.QRCodeEncoder:
OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

IntPtr getNativeObjAddr ()
 
void encode (string encoded_info, Mat qrcode)
 Generates QR code from input string. More...
 
void encodeStructuredAppend (string encoded_info, List< Mat > qrcodes)
 Generates QR code from input string in Structured Append mode. The encoded message is splitting over a number of QR codes. More...
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static QRCodeEncoder __fromPtr__ (IntPtr addr)
 
static QRCodeEncoder create (QRCodeEncoder_Params parameters)
 Constructor. More...
 
static QRCodeEncoder create ()
 Constructor. More...
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

const int CORRECT_LEVEL_L = 0
 
const int CORRECT_LEVEL_M = 1
 
const int CORRECT_LEVEL_Q = 2
 
const int CORRECT_LEVEL_H = 3
 
const int ECI_UTF8 = 26
 
const int MODE_AUTO = -1
 
const int MODE_NUMERIC = 1
 
const int MODE_ALPHANUMERIC = 2
 
const int MODE_BYTE = 4
 
const int MODE_ECI = 7
 
const int MODE_KANJI = 8
 
const int MODE_STRUCTURED_APPEND = 3
 

Protected Member Functions

override void Dispose (bool disposing)
 
- 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

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

Detailed Description

Groups the object candidate rectangles. rectList Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.) weights Input/output vector of weights of rectangles. Output vector includes weights of retained and grouped rectangles. (The Python list is not modified in place.) groupThreshold Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it. eps Relative difference between sides of the rectangles to merge them into a group.

Member Function Documentation

◆ __fromPtr__()

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

◆ create() [1/2]

static QRCodeEncoder OpenCVForUnity.ObjdetectModule.QRCodeEncoder.create ( QRCodeEncoder_Params  parameters)
static

Constructor.

Parameters
parametersQR code encoder parameters QRCodeEncoder::Params

◆ create() [2/2]

static QRCodeEncoder OpenCVForUnity.ObjdetectModule.QRCodeEncoder.create ( )
static

Constructor.

Parameters
parametersQR code encoder parameters QRCodeEncoder::Params

◆ Dispose()

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

◆ encode()

void OpenCVForUnity.ObjdetectModule.QRCodeEncoder.encode ( string  encoded_info,
Mat  qrcode 
)

Generates QR code from input string.

Parameters
encoded_infoInput string to encode.
qrcodeGenerated QR code.

◆ encodeStructuredAppend()

void OpenCVForUnity.ObjdetectModule.QRCodeEncoder.encodeStructuredAppend ( string  encoded_info,
List< Mat qrcodes 
)

Generates QR code from input string in Structured Append mode. The encoded message is splitting over a number of QR codes.

Parameters
encoded_infoInput string to encode.
qrcodesVector of generated QR codes.

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.ObjdetectModule.QRCodeEncoder.getNativeObjAddr ( )

Member Data Documentation

◆ CORRECT_LEVEL_H

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.CORRECT_LEVEL_H = 3

◆ CORRECT_LEVEL_L

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.CORRECT_LEVEL_L = 0

◆ CORRECT_LEVEL_M

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.CORRECT_LEVEL_M = 1

◆ CORRECT_LEVEL_Q

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.CORRECT_LEVEL_Q = 2

◆ ECI_UTF8

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.ECI_UTF8 = 26

◆ MODE_ALPHANUMERIC

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_ALPHANUMERIC = 2

◆ MODE_AUTO

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_AUTO = -1

◆ MODE_BYTE

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_BYTE = 4

◆ MODE_ECI

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_ECI = 7

◆ MODE_KANJI

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_KANJI = 8

◆ MODE_NUMERIC

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_NUMERIC = 1

◆ MODE_STRUCTURED_APPEND

const int OpenCVForUnity.ObjdetectModule.QRCodeEncoder.MODE_STRUCTURED_APPEND = 3

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