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

id-fer

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

id-fer

Takes an image or video/stream as input and returns detected faces and emotions.

  • 0.4.0
  • PyPI
  • Socket score

Maintainers
2

Facial Expression Recognizer

Give the function an input and it will return a dictionary of detected faces and expression predictions.


About

This is a python3 cli for Facial Expression Recognition (FER) using Keras and OpenCV.

This project uses the haarcascade xml for facial detection.

We recommend using our model for this application, but you may use your own as well. This project could be easily modified to do other types of object detection if you wish.

If you fork this project, please contribute back with any fixes or features the community may find useful. All PRs will go through a member of our Engineering team.

Please follow GitHub's template for bug reporting.


Install

Note this requires the installation of Tensorflow 2+

Using pip

$ pip3 install fer-capture

From source

$ git clone git@github.com:IntrospectData/id-fer-capture.git

$ python3 -m venv env

$ source env/bin/activate

(env) $ pip3 install id-fer-capture

  • To include tensorflow:
    • id-fer_capture[cpu] for cpu based tensorflow
    • id-fer_capture[gpu] for gpu based tensorflow

Use:

>>> from fer_capture.main import check_stream
>>> from fer_capture.main import check_image
>>> check_stream("/mnt/storage/face_test.mp4")
    [{'faces': {...}}, ...]
>>> check_image("/mnt/storage/face.jpeg")
    {'faces': {...}}

Append the argument show=True to either function to have a window display. You can press/hold any key for the frame to update in this mode.

Keywords

FAQs


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