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.
|
Minimum Average Correlation Energy Filter useful for authentication with (cancellable) biometrical features. (does not need many positives to train (10-50), and no negatives at all, also robust to noise/salting) More...
Public Member Functions | |
void | salt (string passphrase) |
optionally encrypt images with random convolution | |
bool | same (Mat query) |
correlate query img and threshold to min class value | |
void | train (List< Mat > images) |
train it on positive features compute the mace filter: h = D(-1) * X * (X(+) * D(-1) * X)(-1) * C also calculate a minimal threshold for this class, the smallest self-similarity from the train images | |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
virtual void | clear () |
Clears the algorithm state. | |
virtual bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
virtual string | getDefaultName () |
IntPtr | getNativeObjAddr () |
void | save (string filename) |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new MACE | __fromPtr__ (IntPtr addr) |
static MACE | create () |
constructor | |
static MACE | create (int IMGSIZE) |
constructor | |
static MACE | load (string filename) |
constructor | |
static MACE | load (string filename, string objname) |
constructor | |
Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
static Algorithm | __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.CoreModule.Algorithm | |
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 Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Minimum Average Correlation Energy Filter useful for authentication with (cancellable) biometrical features. (does not need many positives to train (10-50), and no negatives at all, also robust to noise/salting)
see also: [Savvides04]
this implementation is largely based on: https://code.google.com/archive/p/pam-face-authentication (GSOC 2009)
use it like:
you can also use two-factor authentication, with an additional passphrase:
save/load your model:
|
static |
|
static |
constructor
IMGSIZE | images will get resized to this (should be an even number) |
|
static |
constructor
IMGSIZE | images will get resized to this (should be an even number) |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
|
static |
constructor
filename | build a new MACE instance from a pre-serialized FileStorage |
objname | (optional) top-level node in the FileStorage |
|
static |
constructor
filename | build a new MACE instance from a pre-serialized FileStorage |
objname | (optional) top-level node in the FileStorage |
void OpenCVForUnity.FaceModule.MACE.salt | ( | string | passphrase | ) |
optionally encrypt images with random convolution
passphrase | a crc64 random seed will get generated from this |
bool OpenCVForUnity.FaceModule.MACE.same | ( | Mat | query | ) |
correlate query img and threshold to min class value
query | a Mat with query image |
void OpenCVForUnity.FaceModule.MACE.train | ( | List< Mat > | images | ) |
train it on positive features compute the mace filter: h = D(-1) * X * (X(+) * D(-1) * X)(-1) * C
also calculate a minimal threshold for this class, the smallest self-similarity from the train images
images | a vector<Mat> with the train images |