abhijeet3922 / faceemotion_id Goto Github PK
View Code? Open in Web Editor NEWDetects Face using Haarcascades and further detects emotion in bounded face (trained a CNN emotion detector model)
Detects Face using Haarcascades and further detects emotion in bounded face (trained a CNN emotion detector model)
only one face detected , i tried with multiple personnes but it only detects one face
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.
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.
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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.