Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
ai-face-detection
Advanced tools
This is simple face detection using face-api.js and tensorflow.js
This is simple face detection using face-api.js and tensorflow.js
npm install
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)
})
The MIT License (MIT). Please see License File for more information.
FAQs
This is simple face detection using face-api.js and tensorflow.js
The npm package ai-face-detection receives a total of 17 weekly downloads. As such, ai-face-detection popularity was classified as not popular.
We found that ai-face-detection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.