Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

age-gender-recognition

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

age-gender-recognition

A JS library that detects the age and gender of a face image

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Face Age & Gender Detection

This a Node.js package that utilizes the FacialAge API to determine the gender and approximate age of a person's face from an image.

Installation

You can install the package via npm:

npm install age-gender-recognition

Usage

To use this package, follow these steps:

  1. Import the package into your Node.js application:
const genderage = require('age-gender-recognition');
  1. Call the genderage function with the ImageStream you want to analyze:
const imagestream = fs.createReadStream('your-image.jpg');
genderage(imagestream)
  .then(result => {
    console.log('Gender:', result.gender);
    console.log('Age:', result.age);
  })
  .catch(error => {
    console.error('Error:', error.message);
  });

Replace 'your-image.jpg' with the image you want to analyze.

  1. The function will return an object containing the detected gender and age of the face in the image.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 04 May 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc