Skip to content

costanzavolpini/EmotionsAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FACE TO FACE

EPFL | Media & Design Lab | Experience Design
Project realized in context of the master course CS-489 Experience Design at EPFL (Fall Semester 2018/2019).
Professor: Jeffrey Huang
Assistant: Immanuel Koh

Abstract

Art is watching you!

Reverse your perspective: for once the artwork will look at you like you’re a work of art. The paintings have eyes. Create your own path following your emotions, making your experience in the museum unique. Be the curator of your own emotions!

We intend to analyse and record feelings and emotions in visitors in front of various paintings and investigate the way they look at artworks. The aim is to set a specific path, museum design and succession of depictions based on a precise sequence of feelings that the viewer or even the organiser of the exhibition wants to evoke.

Liu Bolin

For our research we have chosen one particular exhibition (Liu Bolin - Le Théâtre des apparences) because his work is not too well known to interfere with the recording of visitors’ impressions and it’s at the same time various (in terms of atmosphere of the work curious for most of the visitors and unconventional).

Watch our project video on youtube!

Links for technical report, final presentation, posters

Procedure

We have realized a website in order to record feelings and emotions of a person in front of a random sequence of paintings. We record 4 pictures of the user for every artwork (one every 1.5 seconds) to analyse how feelings evolve in front of it. At the end of the experiment the user is able to put their emotion in front of an artwork in comparison with our previously recorded samples (and at the same time they will improve our dataset). Every artwork is then mapped to a category (happiness, anger... etc.), so we can create an algorithm of how the paintings sequence should be according to the swing of emotions we want to reach. A feeling path is also suggested: it is computed from a set emotion values given by the user which is compared to the emotion values of all of the art pieces. A time value can also be fed to the algorithm to decide what number of artwork will be visited on the path.

Installation

All the following commands must be executed from the root of the project.

Setup

Install all the requirements (requirements.txt file) using pip.
pip install -r requirements.txt (Mac and Linux)
py -m pip install -r requirements.txt (Windows)

If you have problems during the installation try to use: python3 -mpip install -r requirements.txt (Mac and Linux)

In case you are missing module cv2: sudo pip3 install opencv-python

Run the server:

export FLASK_APP=flaskr && export FLASK_ENV=development && flask run (Mac and Linux)
set FLASK_APP=flaskr && set FLASK_ENV=development && flask run (Windows)

Initialize database

If you want to initialize the database, delete flaskr.sqlite inside instance folder, and after: flask init-db

Key Azure

Important: The key named subscription_key used in the file /flaskr/experiment.py expired every 7 days. To run the experiment, substitute it with a new one.

Structure of the code

Folders:

  • /flaskr Files related to the frontend and backend of the website. A description of the file is provided inside every one.
  • /instance Current instance of the database of the website.
  • /graphics-deliverables Files for the final presentation.
  • /PCA Containing Jupyther that shows code and result for PCA.

Flaskr folder:

  • /map Images used to generated the path.
  • /static Css, fonts, images, js, scss files
  • /templates index.html Backend files for the server (Python) and schema.sql

Graphics deliverables folder:

  • /images Images used for the README.md
  • /technical_report Latex technical report Final A2 posters, midterm presentation, final presentation, dwg and skp files, renderings, technical report.

Website (Screenshots)

Homepage

Procedure
It is possible to analyze the feeling of a person directly from the website: the button "Try the experiment" opens a modal that will show a sequence of paintings.
Experiment
For each painting the webcamera will capture 4 pictures.
Experiment Run
All the results are then analyzed by Microsoft Azure; a chart for each artwork containing his/her emotionsis is then returned to the user.
Results
For each painting we analyse anger, fear, disgust, contempt, happiness, sadness, and surprise.
Become the curator of yourself, just generating a feeling path that best fits your feelings.
Path
In case you are interested in the collected data, you can visualize the corresponding charts for each artwork.
Chart

Team

About

Project realized in context of the master course CS-489 Experience Design at EPFL (Fall Semester 2018/2019).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published