Skip to content
/ Inkblot Public

A facial sentiment analysis tool for therapists. Winner of HackPrinceton 2019!

Notifications You must be signed in to change notification settings

dnelw/Inkblot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inkblot

A digital tool for therapists

Description

Learn more about our project at our devpost

Requirements

  • NodeJS
  • NPM
  • Angular CLI
  • Python3

How to Run

Front End / UI

If you dont have Angular CLI installed, first run (you might need sudo)

npm install -g @angular/cli

Under Inkblot/front_end/ run the command

npm install && ng serve

You can now access the page at http:https://localhost:4200/

Back End / Flask Server (API)

Make sure to install all the python requirements.

Under Inkblot/server/ run the command

pip install -r requirements.txt

To start the API locally run

python3 app.py

The server will by default run on port 80 and you may need sudo permissions.

sudo python3 app.py

IMPORTANT NOTE

Pointing the WebApp to the correct API endpoint

The API is meant to be run on a GCP Compute Instance. To direct the front-end to the correct API to use, change

url = "http:https://35.221.34.118/process/";

To where your API is being hosted. If running it locally, change it to

url = "http:https://127.0.00.1/process/";

This is located in Inkblot/front_end/src/app/services/getdata.service.ts

Pointing the API to a Bucket

Under /Users/daniwang/PRMHackPrinceton/server/capture.py the API expects 2 things

  • It needs a path to a video, which by default is included in this repo.
  • It also needs the name to a google bucket to push the extracted .wav file to

video_path = '../FACIAL_EXPR.mp4'

google_bucket = 'audio-hackprinceton19'

Caveats to Running Locally

About

A facial sentiment analysis tool for therapists. Winner of HackPrinceton 2019!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published