---
title: FaceDetector
description: A library that uses Google Mobile Vision to detect faces on images.
sourceCodeUrl: https://github.com/expo/expo/tree/sdk-51/packages/expo-face-detector
packageName: expo-face-detector
platforms: ["android*", "ios*"]
---
> **warning** **Deprecated:** This library will no longer be available from SDK 51. We recommend [`react-native-vision-camera`](https://github.com/mrousavy/react-native-vision-camera) if you require this functionality.
`expo-face-detector` lets you use the power of the [Google's ML Kit](https://developers.google.com/ml-kit/vision/face-detection) framework to detect faces on images.
#### Known issues 
Face detector does not recognize faces that aren't aligned with the interface (top of the interface matches top of the head).
## Installation
This module is **not** available in the [Expo Go app](https://expo.dev/go) because it has dependencies that break builds for iOS Simulators.
You can create a [development build](/develop/development-builds/create-a-build/) to work with this package.
## Usage
### Settings
To configure detector's behavior modules pass a [`DetectionOptions`](#detectionoptions) object which is then interpreted by this module.
### Example
You can use the following snippet to detect faces in a fast mode without detecting landmarks or whether a face is smiling.
```jsx
const App = () => (
);
const handleFacesDetected = ({ faces }) => {
console.log(faces);
};
```
## API
```js
```