rmhsawyer / ec601-final-project-mapping_user_face_to_emoji Goto Github PK
View Code? Open in Web Editor NEWProject Description: an App that translates user's expression into emoji based on Android
License: Apache License 2.0
Project Description: an App that translates user's expression into emoji based on Android
License: Apache License 2.0
https://github.com/rmhsawyer/EC601-Final-Project/blob/master/live-plotting.py#L11
This function could use a comment or two describing what it does.
This could use a comment to explain what is going on with faces and why the values used were chosen
Lines 38-55 contains a lot of code that is not commented. A lot of numbers are hard coded here without any explanation/reason for the numbers.
Tested program (on 11/12/2017) and found that starting the program properly initialized the webcam and worked fine. However, after hitting stop and then start again, webcam would not reappear. Reset button only helped some of the time, but did not always fix this issue.
Tested on Windows 10, Firefox 57.0 (64-bit).
I am getting the following error when I try to run your code:
cv2.error: /opt/conda/conda-bld/opencv_1491943970124/work/opencv-3.1.0/modules/imgproc/src/color.cpp:7456: error: (-215) scn == 3 || scn == 4 in function ipp_cvtColor
Is it maybe because you need to give a time delay between when you start the videocapture and when you call the while loop? Or you can also try this:
if ret is True:
img_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
else:
continue
Please comment about this line why you have chosen this particular scaling factor? The same question stands for the next 2 lines as well
Some comments could be placed on this line to explain why the values for X, Y , C were choosen
You can delete this line . Its declared and not returned
Should list which version of android this is programmed for.
The initialization of these variables could all be on the same line.
Hi in your process.py file the start up script may have an improvement in your start up scripts by having single_face and useMean set to true outside the if statements.
In the Emoji file if the .png files are imported from some where and you did not make them yourself you may want to credit where the artwork came from.
I am glad to see that you have resolved most of the issues that I had bought up previously. There are still a few issues that I found that needs to be rectified.
Overall, I think your project is very interesting and you have done a very good job in carrying it out. I am looking forward to see your finished project during the poster presentation. Good luck!
This project uses the Jaffe dataset, however it does not link to this set nor mentions any licensing/usage terms for this dataset. Could be problematic depending on their usage terms.
This H and W values can be declared outside the IF Else to save space (2 less lines of code)
This loop could use a description of what the code is trying to accomplish
I am happy to see that most of the problems I raised last time were fixed and the python code you now have is very clean.
I was unable to get your app to run in andriod studio so I did not focus on that as there are no directions saying how I would go about that (maybe you could put some if you would like feel back on that.
As the issues I raised individually state the problems in your code are limited this time around
1 https://github.com/rmhsawyer/EC601-Final-Project/blob/master/live-plotting.py#L11
This function could use a comment or two describing what it does so its not as hard to understand
2 in the Emoji.py file You can delete line 72. Its declared and not returned. It looks like it was going to be used but was commented out.
3 In the realtime.py file the faces varible could use a comment to explain what is going on with faces and why the values used were chosen
Overall this is a very neatly organized program with good code and you guys did a really good job at making a fun program for communicating with friends.
Can you explain as a comment why you are using the value threshold of 0.8 here?
Tried to run real-time.py but could not figure out which combinations of packages were needed to run it. Should list in README.md which versions of Python, Keras, OpenCV, etc. are required to run.
In landmarkrecognition.py, line 77
face_name = []
This line is intending to empty the list declared in line 61. This actually declares a new empty list and binds it to variable face_name. Might be better to use:
face_name[:] = []
This will empty the list of values without creating a new empty list.
Well done. Your project looks great. However, I found some isuues which needs some improvement.
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.