Angular directives for face detection and face recognition in the browser.
It is a wrapper for face-api.js, so it is not dependent on the browser implementation.
Make face and emotion recognition features easy to use in Angular projects by using face-api.js.
ng add
and ng update
command.Overlay canvas on img tag with embedded attributes such as singleFace and allFaces by using Angular CDK Overlay.
And render the recognition result on canvas according to the content of the with attribute.
html
<img allFaces [src]="imageSrc" width="300px" />
html
<img
singleFace
[with]="['expressions', 'landmarks']"
[src]="imageSrc"
width="300px"
/>
ng-add
Schematicsbash
$ ng add ngx-face-api-js
...
UPDATE package.json (1457 bytes)
UPDATE src/styles.css (126 bytes)
UPDATE src/app/app.module.ts (497 bytes)
See Wiki.
ng-update
Schematicsbash
$ ng update ngx-face-api-js
✅️ Added dependency: face-api.js@~0.20.0
✅️ Dependencies installed
UPDATE package.json (1440 bytes)
This software is released under the MIT License, see LICENSE.