FaceRecognizerSF class

Inheritance
Available extensions

Constructors

FaceRecognizerSF.fromFile(String model, String config, {int backendId = 0, int targetId = 0})
Creates an instance of this class with given parameters.
factory
FaceRecognizerSF.fromPointer(FaceRecognizerSFPtr ptr, [bool attach = true])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
no setterinherited
ptr Pointer<FaceRecognizerSF>
getter/setter pairinherited
ref → FaceRecognizerSF
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alignCrop(Mat srcImg, Mat faceBox) Mat
Aligns detected face with the source input image and crops it.
dispose() → void
feature(Mat alignedImg, {bool clone = false}) Mat
Extracts face feature from aligned image.
match(Mat faceFeature1, Mat faceFeature2, {int disType = FR_COSINE}) double
Calculates the distance between two face features.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

finalizer NativeFinalizer
final

Constants

DIS_TYPE_FR_NORM_L2 → const int
DIS_TYPR_FR_COSINE → const int
FR_COSINE → const int
Definition of distance used for calculating the distance between two face features.
FR_NORM_L2 → const int
Definition of distance used for calculating the distance between two face features.