justadudewhohacks/face-recognition.js ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node.js library that can detect faces, find facial landmarks, and recognize people from photos.

I want a simple JavaScript API, with TypeScript support too, so I can load images from disk, detect all the faces in an image, crop them out, and then train a recognizer with labeled face examples. It should be able to return the best match or a list of similarity scores, and let me save a trained model to JSON and load it back later.

Also include support for facial landmarks with both a small point set and a fuller 68 point version, plus a basic image window helper for showing results and drawing face boxes and landmarks. If it needs native code or external models, set that up so install is as smooth as possible and it can build automatically. Add a few example scripts and tests, and if you need current docs online, look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab