L’attrezzatura
CY.loader()
.licenseKey(“sk00f9058036d4e6ca0ffaab90e4ab3a7699166b4025e4”)
.addModule(CY.modules().FACE_AROUSAL_VALENCE.name, {smoothness: 0.70})
.addModule(CY.modules().FACE_EMOTION.name, {smoothness: 0.40})
.addModule(CY.modules().FACE_ATTENTION.name, {smoothness: 0.83})
.addModule(CY.modules().DATA_AGGREGATOR.name, {initialWaitMs: 2000, periodMs: 1000})
.load()
.then(({ start, stop }) => start());
window.addEventListener(CY.modules().EVENT_BARRIER.eventName, (evt) => {
console.log(‘EVENT_BARRIER result’, evt.detail);
});
window.addEventListener(CY.modules().DATA_AGGREGATOR.eventName, (evt) => {
console.log(‘DATA_AGGREGATOR result’, evt.detail);
});
MphTools.CameraPrivacyPopup.setText({
“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/”
});