This is a sample app that uses AWS Amplify UI for liveness detection using Amazon Rekognition Face Liveness. AWS Amplify UI provides a set of accessible, themeable, and performant components that can be used to build cloud-connected applications.
For more information on how to get started with AWS Amplify UI, you can refer to the following tutorials:
- Real-time Face Detection: Instantly detects faces in real-time.
- Liveness Detection: Verifies the authenticity of the face to ensure it is live.
- User-friendly Interface: Designed with a focus on ease of use and accessibility.
- iOS 15 or later: Compatible with devices running iOS 15 and above.
- Xcode 16.0 or later: Requires Xcode version 16.0 or higher for development.
- AWS Account: Necessary for backend services and integrations.
- Clone the Repository: Download the project files from the repository.
git clone https://github.com/MaciejGad/FaceLivenessTest.git
- Open the Project in Xcode: Navigate to the project directory and open it in Xcode.
cd FaceLivenessTest/ open FaceLivenessTest.xcodeproj - Build and Run: Compile the project and run it on your device or simulator.
- Start screen
- In progress
- Success
The backend infrastructure provides essential APIs to facilitate the liveness detection features of the iOS app. It processes incoming data from the app and returns the necessary results.
- Python 3.8 or later: Requires Python version 3.8 or higher.
- Flask 1.1.2 or later: Requires Flask version 1.1.2 or higher.
- Clone the Repository: Download the backend project files from the repository.
git clone https://github.com/MaciejGad/FaceLivenessTest.git
- Navigate to the Backend Directory: Change to the backend directory.
cd FaceLivenessTest/backend - Install Dependencies: Install the necessary Python packages.
/usr/bin/python3 -m pip install -r requirements.txt
- Run the Server Locally: Start the backend server with the required environment variables.
FACE_AUTH_USER=user FACE_AUTH_PASS=pass /usr/bin/python3 app.py --local
GET /create_liveness_session: Initiates a new liveness session.GET /get_liveness_result/<session_id>: Retrieves the results of a liveness check.GET /details/<session_id>: Provides detailed information about a specific session.GET /: Lists all liveness checks.GET /login: Displays the login page.
All requests must be authenticated using basic authentication or by setting a cookie with the username and password.


