Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/media/FaceDetector.Face#constants) \| [Methods](https://developer.android.com/reference/android/media/FaceDetector.Face#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/FaceDetector.Face#inhmethods)

# FaceDetector.Face

*** ** * ** ***

` public class FaceDetector.Face `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.FaceDetector.Face |

<br />

*** ** * ** ***

A Face contains all the information identifying the location of a face in a bitmap.

## Summary

| ### Constants ||
|---|---|
| `float` | `https://developer.android.com/reference/android/media/FaceDetector.Face#CONFIDENCE_THRESHOLD` The minimum confidence factor of good face recognition |
| `int` | `https://developer.android.com/reference/android/media/FaceDetector.Face#EULER_X` The x-axis Euler angle of a face. |
| `int` | `https://developer.android.com/reference/android/media/FaceDetector.Face#EULER_Y` The y-axis Euler angle of a face. |
| `int` | `https://developer.android.com/reference/android/media/FaceDetector.Face#EULER_Z` The z-axis Euler angle of a face. |

| ### Public methods ||
|---|---|
| ` float` | ` https://developer.android.com/reference/android/media/FaceDetector.Face#confidence()() ` Returns a confidence factor between 0 and 1. |
| ` float` | ` https://developer.android.com/reference/android/media/FaceDetector.Face#eyesDistance()() ` Returns the distance between the eyes. |
| ` void` | ` https://developer.android.com/reference/android/media/FaceDetector.Face#getMidPoint(android.graphics.PointF)(https://developer.android.com/reference/android/graphics/PointF point) ` Sets the position of the mid-point between the eyes. |
| ` float` | ` https://developer.android.com/reference/android/media/FaceDetector.Face#pose(int)(int euler) ` Returns the face's pose. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### CONFIDENCE_THRESHOLD

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final float CONFIDENCE_THRESHOLD
```

The minimum confidence factor of good face recognition

<br />

Constant Value: 0.4

### EULER_X

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EULER_X
```

The x-axis Euler angle of a face.

<br />

Constant Value: 0 (0x00000000)

### EULER_Y

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EULER_Y
```

The y-axis Euler angle of a face.

<br />

Constant Value: 1 (0x00000001)

### EULER_Z

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EULER_Z
```

The z-axis Euler angle of a face.

<br />

Constant Value: 2 (0x00000002)

## Public methods

### confidence

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float confidence ()
```

Returns a confidence factor between 0 and 1. This indicates how certain what has been found is actually a face. A confidence factor above 0.3 is usually good enough.

<br />

| Returns ||
|---|---|
| `float` | <br /> |

### eyesDistance

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float eyesDistance ()
```

Returns the distance between the eyes.

<br />

| Returns ||
|---|---|
| `float` | <br /> |

### getMidPoint

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void getMidPoint (PointF point)
```

Sets the position of the mid-point between the eyes.

<br />

| Parameters ||
|---|---|
| `point` | `PointF`: the PointF coordinates (float values) of the face's mid-point <br /> |

### pose

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float pose (int euler)
```

Returns the face's pose. That is, the rotations around either the X, Y or Z axis (the positions in 3-dimensional Euclidean space).

<br />

| Parameters ||
|---|---|
| `euler` | `int`: the Euler axis to retrieve an angle from (<var translate="no">EULER_X</var>, <var translate="no">EULER_Y</var> or <var translate="no">EULER_Z</var>) <br /> |

| Returns ||
|---|---|
| `float` | the Euler angle of the of the face, for the given axis <br /> |