in src/web-ui/src/utils/gateway.js [32:43]
postEngagement(detectedFace) {
const normalize = (x) => detectedFace.emotions[x] || 0;
return request(`/engagement`, "post", {
timeDetected: new Date().getTime(),
angry: normalize("ANGRY"),
calm: normalize("CALM"),
happy: normalize("HAPPY"),
sad: normalize("SAD"),
surprised: normalize("SURPRISED"),
});
},