Facetracking with crop and device position verification. This Apache Cordova Application uses tracking.js (https://trackingjs.com/) for face detecting .
http://web2face.com/facetracking/tutorial.html
-
Install nodejs:
https://nodejs.org/en/download/
... or alternatively via package manager(linux):
sudo apt-get install -y nodejs
-
Install cordova:
npm install -g cordova
-
Download the project:
git clone https://github.com/acarlos/facetracking.git
-
Navigate to project's root folder, provided with this repo:
cd facetracking
-
Add platforms before you run emulator/build:
cordova platform add android
orcordova platform add ios
-
Navigate to project's root folder.
cd facetracking
-
Build native app & run it on mobile device:
cordova run android
orcordova run ios