Class FaceEncoding
Represents a feature data of face. This class cannot be inherited.
Implements
System.IDisposable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
[Serializable]
public sealed class FaceEncoding : DisposableObject, IDisposable, ISerializable
Properties
| Improve this Doc View SourceSize
Gets the size of feature data.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | This object is disposed. |
Methods
| Improve this Doc View SourceDisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
GetRawEncoding()
Gets a feature data of face as raw format.
Declaration
public double[] GetRawEncoding()
Returns
Type | Description |
---|---|
System.Double[] | A System.Double array that represents a feature data. |
Remarks
FaceEncoding class supports serialization. This method is for interoperability between FaceRecognitionDotNet and dlib.
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | This object is disposed. |
Implements
System.IDisposable
System.Runtime.Serialization.ISerializable