Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ai-face-detection

alexsanteenodev194SEE LICENSE IN LICENSE1.0.10TypeScript support: included

This is simple face detection using face-api.js and tensorflow.js

face detection, computer vision, facial recognition, machine learning, deep learning, artificial intelligence, image analysis, face identification, face tracking, emotion detection, face features, age and gender estimation, real-time detection, webcam, video, image processing, JavaScript, TypeScript

readme

Face detection

This is simple face detection using face-api.js and tensorflow.js

Getting Started

npm install

Usage

import { detectFaces } from 'ai-face-detection'

// using remote image
const imageFromUrl = 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Elon_Musk_Royal_Society.jpg/640px-Elon_Musk_Royal_Society.jpg'

// using local image
const imageFromFile = './face/face1.jpeg'

faceDetect(imageFromUrl)
  .then((result) => {
        console.log(
        `Face detected gender: ${result?.gender} with probability ${result?.genderProbability}`
        )
        console.log(`Face detected age: ${result?.age}`)
        console.log(`Face detected expressions:`)
        console.log(result?.expressions.asSortedArray())
  })
  .catch((err) => {
    // console.log('err, ', err)
    logger.error('err, ', err)
  })

License

The MIT License (MIT). Please see License File for more information.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.10 (2023-02-18)

1.0.9 (2023-02-18)

1.0.8 (2023-02-18)

1.0.7 (2023-02-18)

1.0.6 (2023-02-18)

1.0.5 (2023-02-18)

1.0.4 (2023-02-18)

1.0.3 (2023-02-18)

1.0.2 (2023-02-18)

1.0.1 (2023-02-18)