Face detection and alignment
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public Performance improvement Aug 10, 2018
.gitignore Initial commit Oct 1, 2017
LICENSE Initial commit Oct 1, 2017
README.md Performance improvement Aug 10, 2018
detect.js Version 1.0 Oct 1, 2017
face.png Version 1.0 Oct 1, 2017
haar_convert.js Added converter from OpenCV haar cascades Aug 10, 2018
input.png Version 1.0 Oct 1, 2017
out.png Version 1.0 Oct 1, 2017
package.json Performance improvement Aug 10, 2018
server.js Version 1.0 Oct 1, 2017

README.md

face-alignment

Copyright (C) 2017 Anton Skshidlevsky, MIT

The algorithm of face detection and alignment on JavaScript.

Prepare system for Debian/Ubuntu:

apt install nodejs libopencv-dev

Starting in node:

node detect.js input.png face.png out.png

{ face: { x: 96, y: 50, width: 160, height: 160 },
  eyes: { left: { x: 141, y: 115 }, right: { x: 206, y: 106 } },
  distance: 65.62011886609167,
  angle: -7.8831393167297295 }

input.png out.png out.png

Starting in browser (available at http://localhost:3000):

npm start

See this video: https://youtu.be/UtkOd42F5-E