This is a simple Android application that demonstrates how to use ML Kit Face Detection with Jetpack Compose.
This project showcases the integration of ML Kit Face Detection in an Android application built with Kotlin and Jetpack Compose. It allows you to capture an image from the camera and detect faces in real-time using ML Kit's Face Detection API. Detected faces are highlighted on the camera preview.
- CameraX integration for capturing images
- Jetpack Compose for building the UI
- ML Kit Face Detection API for real-time face detection
- Highlighting detected faces on the camera preview
Before running this application, make sure you have the following:
- Android Studio installed
- An Android device or emulator with camera support
-
Clone this repository to your local machine
-
Open the project in Android Studio.
-
Connect your Android device or start an emulator.
-
Build and run the application.
-
Upon launching the app, grant the necessary camera permissions if prompted.
-
Point the camera towards yourself or another person.
-
The application will detect faces in real-time and highlight them on the camera preview.
-
You can take a picture by tapping on the camera button.
-
The captured image with highlighted faces will be displayed on the screen.
- Kotlin
- Jetpack Compose
- CameraX
- ML Kit Face Detection
Contributions are welcome! Feel free to open issues or pull requests for any improvements or features you'd like to add.
This project is licensed under the MIT License.