{"id":26460249,"url":"https://github.com/faceplugin-ltd/facerecognition-android","last_synced_at":"2025-05-15T14:03:13.432Z","repository":{"id":224060030,"uuid":"761938903","full_name":"Faceplugin-ltd/FaceRecognition-Android","owner":"Faceplugin-ltd","description":"Face recognition SDK Android with 3D passive face liveness detection (Face Detection, Face Landmarks, Face Recognition, Face Liveness, Face Pose, Face Expression, Face attributes)","archived":false,"fork":false,"pushed_at":"2025-03-24T11:36:48.000Z","size":111904,"stargazers_count":447,"open_issues_count":0,"forks_count":216,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-02T03:02:29.432Z","etag":null,"topics":["age-estimation","anti-spoofing","biometric-authentication","deep-learning","ekyc","eye-detection","face-anti-spoofing","face-anti-spoofing-sdk","face-landmark-detection","face-liveness-detection","face-liveness-detection-sdk","face-recognition","face-recognition-sdk","fraud-detection","fraud-prevention","gender-recognition","identity-verification","liveness-detection","machine-learning","nist-database"],"latest_commit_sha":null,"homepage":"https://faceplugin.com/face-recognition/","language":"Java","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/Faceplugin-ltd.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":"2024-02-22T19:14:45.000Z","updated_at":"2025-04-01T16:52:16.000Z","dependencies_parsed_at":"2024-03-04T16:40:09.234Z","dependency_job_id":"09df659e-5c86-4832-9e05-5517ce2cf3bf","html_url":"https://github.com/Faceplugin-ltd/FaceRecognition-Android","commit_stats":null,"previous_names":["faceplugin-ltd/faceplugin-facesdk-android","faceplugin-ltd/facerecognition-livenessdetection-android","faceplugin-ltd/facerecognition-android"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faceplugin-ltd%2FFaceRecognition-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faceplugin-ltd%2FFaceRecognition-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faceplugin-ltd%2FFaceRecognition-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faceplugin-ltd%2FFaceRecognition-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Faceplugin-ltd","download_url":"https://codeload.github.com/Faceplugin-ltd/FaceRecognition-Android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980815,"owners_count":21027804,"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":["age-estimation","anti-spoofing","biometric-authentication","deep-learning","ekyc","eye-detection","face-anti-spoofing","face-anti-spoofing-sdk","face-landmark-detection","face-liveness-detection","face-liveness-detection-sdk","face-recognition","face-recognition-sdk","fraud-detection","fraud-prevention","gender-recognition","identity-verification","liveness-detection","machine-learning","nist-database"],"created_at":"2025-03-19T02:49:04.025Z","updated_at":"2025-04-09T05:01:30.787Z","avatar_url":"https://github.com/Faceplugin-ltd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"\" src=\"https://github.com/Faceplugin-ltd/FaceRecognition-Javascript/assets/160750757/657130a9-50f2-486d-b6d5-b78bcec5e6e2.png\" width=200/\u003e\n\u003c/div\u003e\n\n#### Hugging Face - [Here](https://huggingface.co/spaces/FacePlugin-Ltd/FaceRecognition-LivenessDetection-SDK) \u003cspan\u003e \u003cimg src=\"https://github.com/user-attachments/assets/303cda2b-a195-42c5-b481-6b2b796d2910\" style=\"margin: 4px; width: 36px; height: 20px\"\u003e \u003cspan/\u003e\n#### Documentation- [Here](https://doc.faceplugin.com)\n\n# Face Recognition SDK Android with 3D Passive Liveness Detection - Fully On Premise\n## Overview\nExplore `face recognition SDK` from [Faceplugin](https://faceplugin.com/) Top-ranked on NIST FRVT , coupled with an advanced `iBeta level 2 liveness detection` engine that effectively safeguards against **printed photos, video replay, 3D masks, and deepfake threats**, ensuring top-tier security.\n\u003cbr\u003eThis is `on-premise face recognition SDK` which means everything is processed in your phone and **NO** data leaves the device.\n\u003cbr\u003e\u003c/br\u003e\n\n## Try this APP on Google Play\n\u003ca href=\"https://play.google.com/store/apps/details?id=ai.faceplugin.recognition\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://user-images.githubusercontent.com/125717930/230804673-17c99e7d-6a21-4a64-8b9e-a465142da148.png\" height=80/\u003e\n\u003c/a\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n\u003cdiv align=\"left\"\u003e\n\u003cimg src=\"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\" alt=\"Awesome Badge\"/\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=%F0%9F%8C%9F\u0026message=If%20Useful\u0026style=style=flat\u0026color=BC4E99\" alt=\"Star Badge\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/issues/genderev/assassin\" alt=\"issue\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/issues-pr/genderev/assassin\" alt=\"pr\"/\u003e\n\u003c/div\u003e\n\n## Screenshots\n\u003cdiv align=\"left\"\u003e\n\u003cimg alt=\"\" src=\"https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Android/assets/160750757/5665b865-23fc-4c19-9663-5093a975fc66\" width=200/\u003e\n\u003cimg alt=\"\" src=\"https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Android/assets/160750757/250ac71d-0844-4c26-b4b6-8afa6952f60e\" width=200/\u003e\n\u003cimg alt=\"\" src=\"https://github.com/Faceplugin-ltd/FaceLivenessDetection-Android/assets/160750757/92f4113e-16b0-43e2-b6af-d5fa3c4e56c9\" width=200/\u003e\n\u003cimg alt=\"\" src=\"https://github.com/Faceplugin-ltd/FaceLivenessDetection-Android/assets/160750757/fc5f985c-cf40-41d7-9ff9-a5aab5898a33\" width=200/\u003e\n\u003c/div\u003e\n\n## On the Youtube\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=qVtdkwtGtqs\" target=\"_blank\"\u003e\n \u003cimg src=\"http://img.youtube.com/vi/qVtdkwtGtqs/maxresdefault.jpg\" alt=\"Watch the video\" width=\"960\" height=\"520\" border=\"10\" /\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n## Install License  \nThe code below shows how to use the license: https://github.com/Faceplugin-ltd/FaceRecognition-Android/blob/370ecadae564788eaa84f288e342da742fde0c1a/app/src/main/java/com/faceplugin/facerecognition/MainActivity.kt#L30-L45\n\nPlease [contact us](#contact) to get the license.\n\n## Documentation\n\u003cdetails\u003e\n\n\u003ca name=\"setup\"\u003e\u003ch3\u003eSetup\u003c/h3\u003e\u003c/a\u003e\nCopy the SDK (`libfacesdk` folder) to the `root` folder in your project.\n\nAdd SDK to the project in `settings.gradle`\n\n```\nrootProject.name = \"YourProjectName\"\ninclude ':app'\ninclude ':libfacesdk'\n```\nAdd dependency to your build.gradle\n\n```\nimplementation project(path: ':libfacesdk')\n```\n\n\u003ca name=\"api\"\u003e\u003ch3\u003eAPIs\u003c/h3\u003e\u003c/a\u003e\n\u003ch4\u003e Activate SDK using license \u003c/h4\u003e\n\n```java\npublic static native int setActivation(java.lang.String s);\n```\n\n\u003ch4\u003e Init model for face recognition and liveness detection \u003c/h4\u003e\n\n```java\npublic static native int init(AssetManager var0);\n```\n\u003ch4\u003e Convert camera frame in YUV to Bitmap \u003c/h4\u003e\n\n```java\npublic static native Bitmap yuv2Bitmap(byte[] var0, int var1, int var2, int var3);\n```\n\u003ch4\u003e Run face recognition and liveness detection \u003c/h4\u003e\n\n```java\npublic static native List\u003cFaceBox\u003e faceDetection(Bitmap var0, FaceDetectionParam var1);\n```\n\u003ch4\u003e Extract feature vector for the enrollment \u003c/h4\u003e\n\n```java\npublic static native byte[] templateExtraction(Bitmap var0, FaceBox var1);\n```\n\u003ch4\u003e Calculate cosine similarity for the matching \u003c/h4\u003e\n\n```java\npublic static native float similarityCalculation(byte[] var0, byte[] var1);\n```\n\n\u003ca name=\"sdk-code\"\u003e\u003ch3\u003eSDK Codes\u003c/h3\u003e\u003c/a\u003e\n  \n  | Code | Status |\n  |:------:|------|\n  |0|Activate SDK successfully|\n  |-1|Invalid License Key |\n  |-2|Invalid AppID |\n  |-3|Expired License Key|\n  |-4|Activation Failed|\n  |-5|SDK Failed|\n\n\u003ca name=\"classes\"\u003e\u003ch3\u003eClasses\u003c/h3\u003e\u003c/a\u003e\n\u003ch4\u003eFaceResult\u003c/h4\u003e\n\n  | Type      | Name      | Description |\n  |------------------|------------------|------------------|\n  | Rect         | rect        | Bounding box for face   |\n  | int          | liveness        | Liveness status: 0 for spoof, 1 for real, less than 0 for unknown    |\n  | int          | gender        | Gender classification result   |\n  | int          | mask        | Mask presence: 0 for no mask, 1 for mask    |\n  | int          | age        | Age estimation result    |\n  | float          | yaw        |  Yaw angle: -45 to 45 degrees  |\n  | float          | roll        | Roll angle: -45 to 45 degrees    |\n  | float          | pitch        | Pitch angle: -45 to 45 degrees    |\n  | byte[]          | feature        |  2056-byte facial feature data   |\n  | byte[]          | faceData        | Encrypted facial data     |\n  | int          | orient        | Face orientation: 1 for no rotation, 2 for 90° rotation, 3 for 270° rotation, 4 for 180° rotation     |\n  | int          | faceId        | Face ID in the tracking face mode    |\n\n```java\npublic class FaceResult {\n    public Rect rect;\n    public int liveness;\n    public int gender;\n    public int mask;\n    public int age;\n    public float yaw;\n    public float roll;\n    public float pitch;\n    public byte[] feature;\n    public byte[] faceData;\n    public int    orient;\n    public int faceId;\n    \n    public FaceResult() {\n    }\n}\n```\n\u003c/details\u003e\n\nHere's our official [document](https://doc.faceplugin.com/)\n\n## List of our Products\n\n* **[Face Recognition with Liveness Detection-Android (Java, Kotlin)](https://github.com/Faceplugin-ltd/FaceRecognition-Android)**\n* **[Face Recognition with Liveness Detection-iOS (Objective C, Swift)](https://github.com/Faceplugin-ltd/FaceRecognition-iOS)**\n* **[Face Recognition with Liveness Detection-React Native](https://github.com/Faceplugin-ltd/FaceRecognition-React-Native)**\n* **[Face Recognition with Liveness Detection-Flutter](https://github.com/Faceplugin-ltd/FaceRecognition-Flutter)**\n* **[Face Recognition with Liveness Detection-Ionic Cordova](https://github.com/Faceplugin-ltd/FaceRecognition-Ionic-Cordova)**\n* **[Face Recognition with Liveness Detection-.Net MAUI](https://github.com/Faceplugin-ltd/FaceRecognition-.Net)**\n* **[Face Recognition with Liveness Detection-.Net WPF](https://github.com/Faceplugin-ltd/FaceRecognition-WPF-.Net)**\n* **[Face Recognition with Liveness Detection-Javascript](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Javascript)**\n* **[Face Recognition with LivenessDetection-React](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-React)**\n* **[Face Recognition with LivenessDetection-Vue](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Vue)**\n* **[Face Liveness Detection-Android (Java, Kotlin)](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Android)**\n* **[Face Liveness Detection-iOS (Objective C, Swift)](https://github.com/Faceplugin-ltd/FaceLivenessDetection-iOS)**\n* **[Face Liveness Detection-Linux](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Linux)**\n* **[Face Liveness Detection-Docker](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Docker)**\n* **[Open Source Face Recognition SDK](https://github.com/Faceplugin-ltd/Open-Source-Face-Recognition-SDK)**\n* **[Face Recognition SDK](https://github.com/Faceplugin-ltd/Face-Recognition-SDK)**\n* **[Liveness Detection SDK](https://github.com/Faceplugin-ltd/Face-Liveness-Detection-SDK)**\n* **[Palm Recognition SDK](https://github.com/Faceplugin-ltd/Palm-Recognition)**\n* **[ID Card Recognition](https://github.com/Faceplugin-ltd/ID-Card-Recognition)**\n* **[ID Document Liveness Detection](https://github.com/Faceplugin-ltd/ID-Document-Liveness-Detection)**\n\n## Contact\n\u003cdiv align=\"left\"\u003e\n\u003ca target=\"_blank\" href=\"mailto:info@faceplugin.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/email-info@faceplugin.com-blue.svg?logo=gmail \" alt=\"faceplugin.com\"\u003e\u003c/a\u003e\u0026emsp;\n\u003ca target=\"_blank\" href=\"https://t.me/faceplugin\"\u003e\u003cimg src=\"https://img.shields.io/badge/telegram-@faceplugin-blue.svg?logo=telegram \" alt=\"faceplugin.com\"\u003e\u003c/a\u003e\u0026emsp;\n\u003ca target=\"_blank\" href=\"https://wa.me/+14422295661\"\u003e\u003cimg src=\"https://img.shields.io/badge/whatsapp-faceplugin-blue.svg?logo=whatsapp \" alt=\"faceplugin.com\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaceplugin-ltd%2Ffacerecognition-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaceplugin-ltd%2Ffacerecognition-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaceplugin-ltd%2Ffacerecognition-android/lists"}