Skip to content

Uses face recognition to centralize all portrait pictures in selected folder

License

Notifications You must be signed in to change notification settings

lucianourgal/centralize-portraits

Repository files navigation

buy_me_a_coffee_badge

centralize-portraits

  • Centralize all portrait pictures in choosed folder by using face recognition (face-recognition.js) and image cropping (Jimp library)
  • The main point of this project is when you have a folder with lots of uncentralized portraits and wants to generate new centralized pictures from it

Used links for this project

https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/
https://medium.com/@muehler.v/node-js-face-recognition-js-simple-and-robust-face-recognition-using-deep-learning-ea5ba8e852
https://www.npmjs.com/package/face-recognition#boosting-performance

Other links

https://www.npmjs.com/package/faced
https://github.com/justadudewhohacks/face-api.js
https://medium.com/github-all-stars/github-all-stars-2-face-api-js-f3d6f135f4f7
https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07

Notes

  • face-recognition.js package doesn't work in node >= 12. Try NodeJS version 10 (use nvm to have multiple NodeJS installs)
  • Make sure you have CMake and Visual Studio 2017 installed
  • npm install can be tricky since face-recognition library has lots of depedencies
  • Avoid using too large files like 5k+ width, since they can crash face-recognition library
  • Special ponctuation characters can't be read and will be skipped

Usage

  • Update folder variable at index.js
  • Update changeArray variable according to example for automated renaming
  • nvm use 10.17.0
  • npm install
  • node index.js

About

Uses face recognition to centralize all portrait pictures in selected folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published