As a user
I want to learn to smile more
so that I feel more happy
Description
Acceptance Criteria:
The users can use the tool "Smile Trainer" inside the mood tracker app.
The Smile Trainer let the user smile for 15 seconds, according to scientific research this also uplifts the mood of the user.
The user sees a countdown of 15 seconds, this is the time how long the user has to keep smiling.
The smile is detected through the users camera and the face-api.js library.
If the camera signal is lost there is a message showing the user that there is no face-detection possible.
The strength of the smile is visual adjusted by the strength of the smile.
Tasks:
create a branch called feature/smile-trainer
integrate the face-api.js library
npm i face-api.js
import the face-detection models into the /models folder
create the page "smiletrainer.js" inside the pages folder
*create a component "FaceDetection"
implement the face-detection code inside its component
render the FaceDetection component on the page "smiletrainer.js"
declare a const happy with the happy value of the faceDetection data
use the happy value to see if a person is smiling give out a visual feedback.
Value Proposition:
As a user I want to learn to smile more so that I feel more happy
Description
Acceptance Criteria:
The users can use the tool "Smile Trainer" inside the mood tracker app. The Smile Trainer let the user smile for 15 seconds, according to scientific research this also uplifts the mood of the user. The user sees a countdown of 15 seconds, this is the time how long the user has to keep smiling. The smile is detected through the users camera and the face-api.js library. If the camera signal is lost there is a message showing the user that there is no face-detection possible. The strength of the smile is visual adjusted by the strength of the smile.
Tasks: