Class FaceRecognitionModel
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Represents the face recognition model interface.
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public class FaceRecognitionModel : IDisposable
- Inheritance
-
objectFace
Recognition Model
- Implements
-
System.
IDisposable
Constructors
View SourceFaceRecognitionModel()
Initializes a new instance of the Face
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public FaceRecognitionModel()
Exceptions
Type | Condition |
---|---|
System. |
The feature is not supported. |
FaceRecognitionModel(string)
Initializes a new instance of the Face
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public FaceRecognitionModel(string modelPath)
Parameters
Type | Name | Description |
---|---|---|
string | modelPath | Path to the model to load. |
Remarks
Models saved by Save(string) can be loaded.
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
System. |
The feature is not supported. |
System. |
No permission to access the specified file. |
See Also
Properties
View SourceLabels
Gets labels that had been learned by the model.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public int[] Labels { get; }
Property Value
Type | Description |
---|---|
int[] |
Exceptions
Type | Condition |
---|---|
System. |
The Face |
Methods
View SourceAdd(MediaVisionSource, int, Rectangle)
Adds the face image example to be used for face recognition model learning.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Add(MediaVisionSource source, int label, Rectangle area)
Parameters
Type | Name | Description |
---|---|---|
Media |
source | The Media |
int | label | The label that identifies face for which example is adding. Specify the same labels for the face images of a single person when calling this method. Has to be unique for each face. |
Rectangle | area | The rectangular region of the face image at the source image. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
The Face |
See Also
View SourceAdd(MediaVisionSource, int)
Adds the face image example to be used for face recognition model learning.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Add(MediaVisionSource source, int label)
Parameters
Type | Name | Description |
---|---|---|
Media |
source | The Media |
int | label | The label that identifies face for which example is adding. Specify the same labels for the face images of a single person when calling this method. Has to be unique for each face. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
The Face |
See Also
View SourceDispose()
Releases all the resources used by the Face
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Dispose()
Dispose(bool)
Releases the resources used by the Face
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. |
~FaceRecognitionModel()
Finalizes an instance of the FaceRecognitionModel class.
Declaration
protected ~FaceRecognitionModel()
Learn()
Learns the face recognition model.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Learn()
Remarks
Before you start the learning process, face recognition models have to be filled with the training data - face image examples.
These examples have to be provided by Add(Media
Exceptions
Type | Condition |
---|---|
System. |
The Face |
System. |
No examples added. |
See Also
View SourceLearn(FaceRecognitionConfiguration)
Learns the face recognition model with Face
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Learn(FaceRecognitionConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
Face |
config | The configuration used for learning of the recognition models. This value can be null. |
Remarks
Before you start the learning process, face recognition models have to be filled with the training data - face image examples.
These examples have to be provided by Add(Media
Exceptions
Type | Condition |
---|---|
System. |
The Face |
System. |
No examples added. |
See Also
View SourceRemove(int)
Removes all face examples added with the specified label.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public bool Remove(int label)
Parameters
Type | Name | Description |
---|---|---|
int | label | The label that identifies face for which examples will be removed. |
Returns
Type | Description |
---|---|
bool | true if the examples are successfully removed; otherwise, false if there is no example labeled with the specified label. |
Exceptions
Type | Condition |
---|---|
System. |
The Face |
See Also
View SourceReset()
Removes all face examples.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Reset()
Exceptions
Type | Condition |
---|---|
System. |
The Face |
Save(string)
Saves the recognition model to the file.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API15.")]
public void Save(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | Path to the file to save the model. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
No permission to write to the specified path. |
System. |
The Face |
System. |
The directory for |