Node Face Detector
This is node module based on the use of face-recognition.js, written to cut faces from the images.
How to use
yarn add node-face-detector
Or
git clone https://github.com/YozhikM/node-face-detector.git
Then run two tasks, because the two Big Brothers (Nodemon and Babel) are watching you in two different folders
yarn build
yarn start
API
getCroppedFace
function accepts a url as a string and an optional scale.
: Promise<{ buffer: Buffer format: string }>
The src address can be either local or external - URL. You can not use the image format returned in promise, but I am not responsible for the consequences.
Example
;