FaceRecognition - Ionic-Cordova

This demo demonstrates face recognition and face liveness detection by mitigating biometric fraud based on Ionic Cordova framework for both Android and iOS.

This demo demonstrates both Face Liveness Detection and Face Recognition with Ionic Cordova framwork for biometric authentication system.

It stands for face recognition Ionic, facial recognition Ionic, face liveness check Ionic, face spoofing prevention Ionic, face matching Ionic, face comparison Ionic, face search engine Ionic, face identification Ionic, etc.

Github

Google Play

App Store

YouTube

How to Run

1. Prerequisites

Make sure you have Node.js and npm installed.

Download and install Node.js from official websites, and then make sure it's installed or not by running the following commands.

node -v
npm -v

Install Ionic CLI globally with npm:

npm install -g @ionic/cli

Install Cordova framework globally as well.

npm install -g cordova

2. Running the Android App

2.1. Add FacePlugin To The Project

Run the following command to add the FacePlugin to the Ionic Cordova project.

ionic cordova plugin add ./FacePlugin  

2.2. Build Android App

ionic cordova build android

2.3. Add Camera Permission App

Add camera permission on AndroidManifest.xml placed at platforms/android/app/src/main.

<uses-permission android:name="android.permission.CAMERA" />

Once the camera permission is allowed and app is built, the app can be run on Android device with the following command.

ionic cordova run android

3. Running the iOS App

3.1. Add FacePlugin To The Project

Run the following command to add the FacePlugin to the Ionic Cordova project.

ionic cordova plugin add ./FacePlugin

3.2. Add iOS Platform To The Project

ionic cordova platform add ios

3.3. PrepareiOS Project

ionic cordova prepare ios

3.4. AddCamera Permission To Info.plist

Open iOS workspace in Xcode.

open platforms/ios/face-recognition.xcworkspace

Then navigate to the file Info.plist in Xcode, and add the following entry to request camera permission.

<key>NSCameraUsageDescription</key>
<string>We need access to your camera for face recognition.</string>

Build app finally with Xcode and run it on a real device, not simulator

Last updated