Post

PsychOnline

Welcome to my project, Psych Online. A website that analyzes the user’s expression, returns quotes and GIFs based on the emotion, and has a place to store your favorite quotes.

Features

  • Analyze User Expression using face-api.js
  • Get 3 top gifs using GIPHY api based on emotion
  • Get qoute based on emotion
  • Ability to add/delete qoutes
  • View all qoutes

Contributors Forks Stargazers Issues LinkedIn


Open GitHub Repo »

View Demo · Report Bug · Request Feature

Built With

  • NodeJS
  • JavaScript
  • HTML
  • CSS

Some of the logic in the project

1
2
3
4
5
6
7
8
9
10
function ifFloat(emotions) {
  newEmotionArr = [];
  for (i = 0; i < emotions.length; i++) {
    let numStr = String(emotions[i]);
    if (numStr.indexOf("e") === -1) {
      newEmotionArr.push(emotions[i]);
    }
  }
  return newEmotionArr;
}
This post is licensed under CC BY 4.0 by the author.