Socket
Socket
Sign inDemoInstall

ngx-face-api-js

Package Overview
Dependencies
337
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-face-api-js

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.


Version published
Maintainers
1
Created

Readme

Source

NgxFaceApiJs

Build Status codecov CodeFactor Maintainability BCH compliance FOSSA Status License: MIT npm version code style: prettier

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.

NPM

Description

Make face and emotion recognition features easy to use in Angular projects by using face-api.js.

  • Recognize faces, emotions and so on in Angular project.
  • Works in a Mobile.
  • No Script/Styles reqired, you only embed attribute to img/video tag.
  • Schematics Support, you can quickly set up a project using the ng add and ng update command.

How it works?

Overlay canvas on img tag with embedded attributes such as singleFace and allFaces by using Angular CDK Overlay.

How it works

And render the recognition result on canvas according to the content of the with attribute.

Background

Demo

Usage

Detect All Faces

<img allFaces [src]="imageSrc" width="300px" />

Detect faces

Detect Face With Expressions and Landmarks

<img
  singleFace
  [with]="['expressions', 'landmarks']"
  [src]="imageSrc"
  width="300px"
/>

Detected Face With Expressions and Landmarks

Installation

By ng-add Schematics

$ 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)

By Manual

See Wiki.

Update

By ng-update Schematics

$ ng update ngx-face-api-js
✅️ Added dependency: face-api.js@~0.20.0
✅️ Dependencies installed
UPDATE package.json (1440 bytes)

Documantation

License

This software is released under the MIT License, see LICENSE.

FOSSA Status

Author

kamiazya(Yuki Yamazaki)

ko-fi

Keywords

FAQs

Last updated on 08 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc