Skip to main content
Glama
facedetector.md1.49 kB
--- 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 ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaksm/expo-docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server