face-recognition.js is a Node.js wrapper around dlib’s face detection and recognition tools. It provides JavaScript and TypeScript APIs for loading images, locating faces, extracting face crops, and training labeled recognizers. Developers can compare unknown faces with stored examples and receive ranked predictions with distance values. The package also includes five-point and 68-point facial landmark predictors for alignment and analysis. Synchronous and Promise-based asynchronous methods support different application designs, while OpenCV integration enables additional image processing. OpenBLAS can improve CPU performance when the native dependency is compiled with it. The project is now considered obsolete by its author, who recommends face-api.js for equivalent browser and Node.js functionality.
Features
- Dlib-powered Node.js facial analysis
- Face localization and cropped face extraction
- Trainable labeled face recognizers
- Five-point and 68-point landmark prediction
- Synchronous and Promise-based asynchronous APIs
- TypeScript, OpenCV, and OpenBLAS integration