Class FaceDetector

Definition

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

Provides the ability to detect faces on image sources.

C#
Copy
public static class FaceDetector
Inheritance
FaceDetector

Methods

View Source

DetectAsync(MediaVisionSource)

Detects faces on the source.
Each time when DetectAsync is called, a set of the detected faces at the media source are received asynchronously.

Declaration
C#
Copy
public static Task<Rectangle[]> DetectAsync(MediaVisionSource source)
Parameters
Type Name Description
MediaVisionSource source

The source of the media where faces will be detected.

Returns
Type Description
System.Threading.Tasks.Task<Rectangle[]>

A task that represents the asynchronous detect operation.

Exceptions
Type Condition
ArgumentNullException

source is null.

System.NotSupportedException

The feature is not supported.
-or-
The format of source is not supported.

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

DetectAsync(MediaVisionSource, FaceDetectionConfiguration)

Detects faces on the source.
Each time when DetectAsync is called, a set of the detected faces at the media source are received asynchronously.

Declaration
C#
Copy
public static Task<Rectangle[]> DetectAsync(MediaVisionSource source, FaceDetectionConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The source of the media where faces will be detected.

FaceDetectionConfiguration config

The configuration of engine will be used for detecting. This value can be null.

Returns
Type Description
System.Threading.Tasks.Task<Rectangle[]>

A task that represents the asynchronous detect operation.

Exceptions
Type Condition
ArgumentNullException

source is null.

System.NotSupportedException

The feature is not supported.

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