Skip to main content

Project Description

Facial Emotion Recognition using Tensorflow.

It creates a bounding box around the face of the person present in the picture and put a text
at the top of the bounding box representing the recognised emotion.

Install

pip install tensorflow-fer

Requirements

tensorflow-gpu>=2.0.0

opencv-python

numpy>=1.18.1

Usage:

from tensorflow_fer.emotion_recognition import EmotionRecognition

import cv2 as cv

er = EmotionRecognition()

cam = cv.VideoCapture(0)

success, frame = cam.read()

frame = er.recognise(frame, return_type='BGR')

cv.imshow('frame', frame)

cv.waitkey(0)

Arguments

frame = er.recognise_emotion(frame, return_type='BGR')

return_type='BGR' or 'RGB'

References

  1. "Challenges in Representation Learning: A report on three machine learning contests." I Goodfellow, D Erhan, PL Carrier, A Courville, M Mirza, B Hamner, W Cukierski, Y Tang, DH Lee, Y Zhou, C Ramaiah, F Feng, R Li, X Wang, D Athanasakis, J Shawe-Taylor, M Milakov, J Park, R Ionescu, M Popescu, C Grozea, J Bergstra, J Xie, L Romaszko, B Xu, Z Chuang, and Y. Bengio. arXiv 2013.

Metadata

Release files for tensorflow-fer 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tensorflow-fer 0.0.3
File Size Uploaded Provenance Actions
tensorflow_fer-0.0.3.tar.gz 26.5 MB Without provenance Details for tensorflow_fer-0.0.3.tar.gz

Release files / tensorflow_fer-0.0.3.tar.gz

Download URL tensorflow_fer-0.0.3.tar.gz
Size 26.5 MB
Tags Source
SHA-256 checksum
How to use checksums
8354949e59a1d2dd9e38ac26a734acf04b6065f9df2ce17be0018e08fda9af39
BLAKE2b-256 checksum
How to use checksums
8998cedb15e3089db9e2a6060c1fb6507e1df8a108edfbeda9aa529ce9bcfd83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

Security for tensorflow-fer 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page