JSFiddle - React, Tailwind, and code Playground

by morphcast

HTML

<!DOCTYPE html>
<html>
<head>
    <title>MorphCast Test Page</title>
</head>
<body>
<script src="https://sdk.morphcast.com/emotion-statistics/stage/script.js"></script>
<script>
  const sdk = new window.MorphCastStatistics.QuickSetup({
    token: "fds0uw2v2ut9732522694rrtuw96797r82r7302uwt780906",
    // TODO: FACE_AGE, FACE_GENDER vanno sempre inclusi (esplicitamente?) inoltre idem per il DATA_AGGREGATOR
    moduleNames: ["FACE_AROUSAL_VALENCE", "FACE_EMOTION", "FACE_ATTENTION", "FACE_AGE", "FACE_GENDER"],
    privacyPopupText: {
      title: "Allow us to use your camera",
      description: "This experience is designed to be viewed with your camera on. The next screen will ask your consent to access data from your camera.",
      url: "https://YOUR_DOMAIN/<YOUR_PRIVACY_POLICY>",
    },
    mphtools: true,
    sendDatainterval: 5000,
    tickInterval: 1000,
    stopAfter: 20000
  });

  sdk.start();
</script>
</body>
</html>