{"id":25990059,"url":"https://github.com/maciejgad/facelivenesstest","last_synced_at":"2026-04-07T20:31:20.460Z","repository":{"id":280803413,"uuid":"943209181","full_name":"MaciejGad/FaceLivenessTest","owner":"MaciejGad","description":"This is a sample app that uses AWS Amplify UI for liveness detection using Amazon Rekognition Face Liveness.","archived":false,"fork":false,"pushed_at":"2025-03-05T11:45:25.000Z","size":14858,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T12:22:26.699Z","etag":null,"topics":["amplify","aws","flask","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://maciejgad.github.io/FaceLivenessTest/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaciejGad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-05T10:38:35.000Z","updated_at":"2025-03-05T12:10:24.000Z","dependencies_parsed_at":"2025-03-05T12:32:29.289Z","dependency_job_id":null,"html_url":"https://github.com/MaciejGad/FaceLivenessTest","commit_stats":null,"previous_names":["maciejgad/facelivenesstest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciejGad%2FFaceLivenessTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciejGad%2FFaceLivenessTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciejGad%2FFaceLivenessTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciejGad%2FFaceLivenessTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaciejGad","download_url":"https://codeload.github.com/MaciejGad/FaceLivenessTest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242032658,"owners_count":20060832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amplify","aws","flask","swift","swiftui"],"created_at":"2025-03-05T13:24:23.350Z","updated_at":"2025-12-31T01:02:23.913Z","avatar_url":"https://github.com/MaciejGad.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Liveness Test\n\u003cimg src=\"icon.png\" alt=\"Face Liveness Test Icon\" width=\"200px\"\u003e\n\n## iOS App\nThis is a sample app that uses [AWS Amplify UI](https://docs.amplify.aws/ui) for liveness detection using [Amazon Rekognition Face Liveness](https://aws.amazon.com/rekognition/). AWS Amplify UI provides a set of accessible, themeable, and performant components that can be used to build cloud-connected applications. \n\nFor more information on how to get started with AWS Amplify UI, you can refer to the following tutorials:\n- [Getting Started with AWS Amplify UI](https://docs.amplify.aws/swift/start/quickstart/)\n- [Amplify UI Face Liveness](https://ui.docs.amplify.aws/swift/connected-components/liveness)\n- [Amplify Documentation for Swift](https://docs.amplify.aws/swift/)\n\n### Features\n- **Real-time Face Detection**: Instantly detects faces in real-time.\n- **Liveness Detection**: Verifies the authenticity of the face to ensure it is live.\n- **User-friendly Interface**: Designed with a focus on ease of use and accessibility.\n\n### Requirements\n- **iOS 15 or later**: Compatible with devices running iOS 15 and above.\n- **Xcode 16.0 or later**: Requires Xcode version 16.0 or higher for development.\n- **AWS Account**: Necessary for backend services and integrations.\n\n### Installation\n1. **Clone the Repository**: Download the project files from the repository.\n    ```sh\n    git clone https://github.com/MaciejGad/FaceLivenessTest.git\n    ```\n2. **Open the Project in Xcode**: Navigate to the project directory and open it in Xcode.\n    ```sh\n    cd FaceLivenessTest/\n    open FaceLivenessTest.xcodeproj\n    ```\n3. **Build and Run**: Compile the project and run it on your device or simulator.\n\n### Screenshots\n\n1. Start screen\n\n\u003cimg src=\"screenshots/start.png\" width=\"200px\"\u003e\n\n2. In progress\n\n\u003cimg src=\"screenshots/in_progress.png\" width=\"200px\"\u003e\n\n3. Success\n\n\u003cimg src=\"screenshots/success.png\" width=\"200px\"\u003e\n\n## Backend\n\nThe 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.\n\n### Requirements\n- **Python 3.8 or later**: Requires Python version 3.8 or higher.\n- **Flask 1.1.2 or later**: Requires Flask version 1.1.2 or higher.\n\n### Installation\n1. **Clone the Repository**: Download the backend project files from the repository.\n    ```sh\n    git clone https://github.com/MaciejGad/FaceLivenessTest.git\n    ```\n2. **Navigate to the Backend Directory**: Change to the backend directory.\n    ```sh\n    cd FaceLivenessTest/backend\n    ```\n3. **Install Dependencies**: Install the necessary Python packages.\n    ```sh\n    /usr/bin/python3 -m pip install -r requirements.txt\n    ```\n4. **Run the Server Locally**: Start the backend server with the required environment variables.\n    ```sh\n    FACE_AUTH_USER=user FACE_AUTH_PASS=pass /usr/bin/python3 app.py --local\n    ```\n\n### API Endpoints / Pages\n- `GET /create_liveness_session`: Initiates a new liveness session.\n- `GET /get_liveness_result/\u003csession_id\u003e`: Retrieves the results of a liveness check.\n- `GET /details/\u003csession_id\u003e`: Provides detailed information about a specific session.\n- `GET /`: Lists all liveness checks.\n- `GET /login`: Displays the login page.\n\n### Authorization\n\nAll requests must be authenticated using basic authentication or by setting a cookie with the username and password.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciejgad%2Ffacelivenesstest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaciejgad%2Ffacelivenesstest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaciejgad%2Ffacelivenesstest/lists"}