Class FaceDetectionConfiguration

Definition

Namespace:
Tizen.Multimedia.Vision
Assembly:
Tizen.Multimedia.Vision.dll

Represents a configuration of FaceDetector instances.

C#
Copy
public class FaceDetectionConfiguration : EngineConfiguration, IDisposable
Inheritance
object
FaceDetectionConfiguration
Implements
System.IDisposable

Constructors

View Source

FaceDetectionConfiguration()

Initializes a new instance of the FaceDetectionConfiguration class.

Declaration
C#
Copy
public FaceDetectionConfiguration()
Exceptions
Type Condition
System.NotSupportedException

The feature is not supported.

Properties

View Source

MinHeight

Gets or sets the minimum height of a face which will be detected.

Declaration
C#
Copy
public int? MinHeight { get; set; }
Property Value
Type Description
int?
Remarks

Default value is null (all detected faces will be applied), which can be changed to specify the minimum face height.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

value is less than zero.

View Source

MinWidth

Gets or sets the minimum width of a face which will be detected.

Declaration
C#
Copy
public int? MinWidth { get; set; }
Property Value
Type Description
int?
Remarks

Default value is null (all detected faces will be applied), which can be changed to specify the minimum face width.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

value is less than zero.

View Source

ModelFilePath

Gets or sets the face detection haarcascade xml file for face detection.

Declaration
C#
Copy
public string ModelFilePath { get; set; }
Property Value
Type Description
string
Exceptions
Type Condition
System.ArgumentNullException

value is null.

View Source

Roi

Gets or sets the roi of the face detection.

Declaration
C#
Copy
public Rectangle? Roi { get; set; }
Property Value
Type Description
Rectangle?
Remarks

Default value is null (the roi will be a full image), which can be changed to specify the roi for face detection.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

The width of value is less than or equal to zero.
-or-
The height of value is less than or equal to zero.
-or-
The x position of value is less than zero.
-or-
The y position of value is less than zero.

Implements

System.IDisposable