DNN-based face recognizer.
More...
◆ __fromPtr__()
static FaceRecognizerSF OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.__fromPtr__ |
( |
IntPtr |
addr | ) |
|
|
static |
◆ alignCrop()
void OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.alignCrop |
( |
Mat |
src_img, |
|
|
Mat |
face_box, |
|
|
Mat |
aligned_img |
|
) |
| |
Aligning image to put face on the standard position.
- Parameters
-
src_img | input image |
face_box | the detection result used for indicate face in input image |
aligned_img | output aligned image |
◆ create() [1/3]
static FaceRecognizerSF OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.create |
( |
string |
model, |
|
|
string |
config, |
|
|
int |
backend_id, |
|
|
int |
target_id |
|
) |
| |
|
static |
Creates an instance of this class with given parameters.
- Parameters
-
model | the path of the onnx model used for face recognition |
config | the path to the config file for compability, which is not requested for ONNX models |
backend_id | the id of backend |
target_id | the id of target device |
◆ create() [2/3]
static FaceRecognizerSF OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.create |
( |
string |
model, |
|
|
string |
config, |
|
|
int |
backend_id |
|
) |
| |
|
static |
Creates an instance of this class with given parameters.
- Parameters
-
model | the path of the onnx model used for face recognition |
config | the path to the config file for compability, which is not requested for ONNX models |
backend_id | the id of backend |
target_id | the id of target device |
◆ create() [3/3]
static FaceRecognizerSF OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.create |
( |
string |
model, |
|
|
string |
config |
|
) |
| |
|
static |
Creates an instance of this class with given parameters.
- Parameters
-
model | the path of the onnx model used for face recognition |
config | the path to the config file for compability, which is not requested for ONNX models |
backend_id | the id of backend |
target_id | the id of target device |
◆ Dispose()
override void OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
◆ feature()
void OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.feature |
( |
Mat |
aligned_img, |
|
|
Mat |
face_feature |
|
) |
| |
Extracting face feature from aligned image.
- Parameters
-
aligned_img | input aligned image |
face_feature | output face feature |
◆ getNativeObjAddr()
IntPtr OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.getNativeObjAddr |
( |
| ) |
|
◆ match() [1/2]
double OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.match |
( |
Mat |
face_feature1, |
|
|
Mat |
face_feature2, |
|
|
int |
dis_type |
|
) |
| |
Calculating the distance between two face features.
- Parameters
-
face_feature1 | the first input feature |
face_feature2 | the second input feature of the same size and the same type as face_feature1 |
dis_type | defining the similarity with optional values "FR_OSINE" or "FR_NORM_L2" |
◆ match() [2/2]
double OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.match |
( |
Mat |
face_feature1, |
|
|
Mat |
face_feature2 |
|
) |
| |
Calculating the distance between two face features.
- Parameters
-
face_feature1 | the first input feature |
face_feature2 | the second input feature of the same size and the same type as face_feature1 |
dis_type | defining the similarity with optional values "FR_OSINE" or "FR_NORM_L2" |
◆ FR_COSINE
const int OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.FR_COSINE = 0 |
◆ FR_NORM_L2
const int OpenCVForUnity.ObjdetectModule.FaceRecognizerSF.FR_NORM_L2 = 1 |
The documentation for this class was generated from the following file: