Class DeepLearningFaceRecognizer
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 10
Provides the ability to recognize face based on previously registered face data.
C#Copypublic class DeepLearningFaceRecognizer : IDisposable
- Inheritance
-
System.ObjectDeepLearningFaceRecognizer
- Implements
-
System.IDisposable
Constructors
DeepLearningFaceRecognizer()
Initializes a new instance of the DeepLearningFaceRecognizer class.
Declaration
C#Copypublic DeepLearningFaceRecognizer()
Remarks
This class is different from FaceRecognizer in aspect of using internal machine learning algorithm.
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required features are not supported. |
API Level: 10
Feature: http://tizen.org/feature/vision.face_recognition
Methods
Declaration
C#Copypublic void Dispose()
API Level: 10
Dispose(Boolean)
Releases the unmanaged resources used by the DeepLearningFaceRecognizer.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 10
Declaration
C#Copyprotected void Finalize()
Recognize(MediaVisionSource)
Recognizes a face in by finding the closest match among the registered faces and returns the label of the found face.
Declaration
C#Copypublic DeepLearningFaceRecognitionResult Recognize(MediaVisionSource source)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The face data to recognize. |
Returns
Type | Description |
---|---|
DeepLearningFaceRecognitionResult | A label of recognized face. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The DeepLearningFaceRecognizer already has been disposed. |
System.ArgumentNullException |
|
System.InvalidOperationException | In case of any invalid operations. |
API Level: 10
Declaration
C#Copypublic void RegisterFace(MediaVisionSource source, string label)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The face data to register. |
System.String | label | The name of face data. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The DeepLearningFaceRecognizer already has been disposed. |
System.ArgumentNullException |
|
System.InvalidOperationException | In case of any invalid operations. |
API Level: 10
Declaration
C#Copypublic void UnregisterFace(string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The name of face data. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The DeepLearningFaceRecognizer already has been disposed. |
System.ArgumentNullException |
|
System.InvalidOperationException | In case of any invalid operations. |