Class FaceRecognizer

Definition

Namespace:
Tizen.Multimedia.Vision
Assembly:
Tizen.Multimedia.Vision.dll
API Level:
4

Provides the ability to recognize faces, face expressions, and eye condition on image sources.

C#
Copy
public static class FaceRecognizer
Inheritance
System.Object
FaceRecognizer

Methods

View Source

RecognizeAsync(MediaVisionSource, FaceRecognitionModel)

Performs face recognition on the source with FaceRecognitionModel.

Declaration
C#
Copy
public static Task<FaceRecognitionResult> RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel)
Parameters
Type Name Description
MediaVisionSource source

The MediaVisionSource of the media to recognize faces for.

FaceRecognitionModel recognitionModel

The FaceRecognitionConfiguration to be used for recognition.

Returns
Type Description
System.Threading.Tasks.Task<FaceRecognitionResult>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.
-or-
recognitionModel is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source has already been disposed of.

System.InvalidOperationException

recognitionModel is untrained model.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeAsync(MediaVisionSource, FaceRecognitionModel, Rectangle)

Performs face recognition on the source with FaceRecognitionModel and a bounding box.

Declaration
C#
Copy
public static Task<FaceRecognitionResult> RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, Rectangle bound)
Parameters
Type Name Description
MediaVisionSource source

The MediaVisionSource of the media to recognize faces for.

FaceRecognitionModel recognitionModel

The FaceRecognitionModel to be used for recognition.

Rectangle bound

Rectangular box bounding face image on the source.

Returns
Type Description
System.Threading.Tasks.Task<FaceRecognitionResult>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.
-or-
recognitionModel is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source has already been disposed of.

System.InvalidOperationException

recognitionModel is untrained model.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeAsync(MediaVisionSource, FaceRecognitionModel, Rectangle, FaceRecognitionConfiguration)

Performs face recognition on the source with FaceRecognitionModel, FaceRecognitionConfiguration and a bounding box.

Declaration
C#
Copy
public static Task<FaceRecognitionResult> RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, Rectangle bound, FaceRecognitionConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The MediaVisionSource of the media to recognize faces for.

FaceRecognitionModel recognitionModel

The FaceRecognitionModel to be used for recognition.

Rectangle bound

Rectangular box bounding face image on the source.

FaceRecognitionConfiguration config

The FaceRecognitionConfiguration used for recognition. This value can be null.

Returns
Type Description
System.Threading.Tasks.Task<FaceRecognitionResult>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.
-or-
recognitionModel is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source has already been disposed of.
-or-
config has already been disposed of.

System.InvalidOperationException

recognitionModel is untrained model.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeAsync(MediaVisionSource, FaceRecognitionModel, FaceRecognitionConfiguration)

Performs face recognition on the source with FaceRecognitionModel and FaceRecognitionConfiguration.

Declaration
C#
Copy
public static Task<FaceRecognitionResult> RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, FaceRecognitionConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The MediaVisionSource of the media to recognize faces for.

FaceRecognitionModel recognitionModel

The FaceRecognitionModel to be used for recognition.

FaceRecognitionConfiguration config

The configuration used for recognition. This value can be null.

Returns
Type Description
System.Threading.Tasks.Task<FaceRecognitionResult>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.
-or-
recognitionModel is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source has already been disposed of.
-or-
config has already been disposed of.

System.InvalidOperationException

recognitionModel is untrained model.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeEyeConditionAsync(MediaVisionSource, Rectangle)

Determines eye-blink condition on media source.

Declaration
C#
Copy
public static Task<EyeCondition> RecognizeEyeConditionAsync(MediaVisionSource source, Rectangle bound)
Parameters
Type Name Description
MediaVisionSource source

The source of the media to recognize eye-blink condition for.

Rectangle bound

The bounding the face at the source.

Returns
Type Description
System.Threading.Tasks.Task<EyeCondition>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

ObjectDisposedException

source has already been disposed of.

System.NotSupportedException

The feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeEyeConditionAsync(MediaVisionSource, Rectangle, FaceRecognitionConfiguration)

Determines eye-blink condition on the media source.

Declaration
C#
Copy
public static Task<EyeCondition> RecognizeEyeConditionAsync(MediaVisionSource source, Rectangle bound, FaceRecognitionConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The source of the media to recognize eye-blink condition for.

Rectangle bound

The bounding the face at the source.

FaceRecognitionConfiguration config

The configuration used for eye-blink condition recognition. This value can be null.

Returns
Type Description
System.Threading.Tasks.Task<EyeCondition>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

ObjectDisposedException

source has already been disposed of.
-or-
config has already been disposed of.

System.NotSupportedException

The feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeFacialExpressionAsync(MediaVisionSource, Rectangle)

Determines facial expression on media source.

Declaration
C#
Copy
public static Task<FacialExpression> RecognizeFacialExpressionAsync(MediaVisionSource source, Rectangle bound)
Parameters
Type Name Description
MediaVisionSource source

The source of the media to recognize facial expression for.

Rectangle bound

The location bounding the face at the source.

Returns
Type Description
System.Threading.Tasks.Task<FacialExpression>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

ObjectDisposedException

source has already been disposed of.

System.NotSupportedException

The feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition
View Source

RecognizeFacialExpressionAsync(MediaVisionSource, Rectangle, FaceRecognitionConfiguration)

Determines facial expression on media source.

Declaration
C#
Copy
public static Task<FacialExpression> RecognizeFacialExpressionAsync(MediaVisionSource source, Rectangle bound, FaceRecognitionConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The source of the media to recognize facial expression for.

Rectangle bound

The location bounding the face at the source.

FaceRecognitionConfiguration config

The configuration used for expression recognition. This value can be null.

Returns
Type Description
System.Threading.Tasks.Task<FacialExpression>

A task that represents the asynchronous recognition operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

ObjectDisposedException

source has already been disposed of.
-or-
config has already been disposed of.

System.NotSupportedException

The feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/vision.face_recognition