GithubHelp home page GithubHelp logo

abhijeet3922 / faceemotion_id Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 60.0 2.29 MB

Detects Face using Haarcascades and further detects emotion in bounded face (trained a CNN emotion detector model)

Home Page: https://appliedmachinelearning.blog/2018/11/28/demonstration-of-facial-emotion-recognition-on-real-time-video-using-cnn-python-keras/

Python 100.00%

faceemotion_id's People

Contributors

abhijeet3922 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

faceemotion_id's Issues

only one face detected

only one face detected , i tried with multiple personnes but it only detects one face

Issues in real_time_video.py

Hi, i have run the train_emotion_classifier.py data but with shorter data of fer_2013 where i only took 10 datasets for each emotions and each usage. it trains normally but when i try to run the real_time_video.py, it kept on giving this error:

Traceback (most recent call last):
File "real_time_video.py", line 49, in
for (i, (emotion, prob)) in enumerate(zip(EMOTIONS, preds)):
NameError: name 'preds' is not defined
[ WARN:1] terminating async callback

Can u help me with this issue? Your help is very much appreciated, thanks.

scipy.misc.imsave error in csv_to_images.py

In csv_to_images.py file, an issue occurs:
"AttributeError: module 'scipy.misc' has no attribute 'imsave'"
To run correctly and avoid error
"scipy.misc.imsave(image_file, stacked_image)"
can be changed to
"imageio.imwrite(image_file, stacked_image)"
and
"import imageio"
must be added.

Thats it, it works properly now.

Typo on indentation in real_time_video.py

Howdy!

Line #48 in real_time_video.py:
for (i, (emotion, prob)) in enumerate(zip(EMOTIONS, preds)):
Should be indented 3 tabs, not just 2. This fixes a NameError: name 'preds' is not defined error that is thrown otherwise. After this fix, file runs flawlessly! Good work!

Very good code

This code is worked in fer2013.csv perfectly;
Just for somebody who does not know how to use this code:

you should save this cod as a file and run it by command bellow:

python Convert-csv-to-jpg.py --f fer2013.csv --o 11

here the first option is the name of CSV file and 11 on my PC was the folder that I wanted the images save on;

Thank you abhijeet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.