From dc15bda88006baf6ff6fa599a12c9d8b87bf3aad Mon Sep 17 00:00:00 2001 From: Constantine Linnick Date: Tue, 23 Mar 2021 04:22:56 +0700 Subject: [PATCH 1/3] Demo for aac with tts --- www/colors.html | 285 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 285 insertions(+) create mode 100644 www/colors.html diff --git a/www/colors.html b/www/colors.html new file mode 100644 index 000000000..23230dab9 --- /dev/null +++ b/www/colors.html @@ -0,0 +1,285 @@ + + + + + + + WebGazer Demo + + + + + + + + + + + Пробел запускает калибровку по 9 синим точкам. + Перемещайте точку взглядом и удерживайте в центре круга в течении 1 секунды, + когда точка в круге изменит цвет на красный смотрите на неё. + + + Press space to start calibration. Stare at 9 blue dots one by one. + Move pointer to a circle and try to hold it in area for 1 sec. + Press spate to recalibrate. + + + + + + + + + \ No newline at end of file From 6b3829f7ac186361b1da96349484e475ccba8635 Mon Sep 17 00:00:00 2001 From: Constantine Linnick Date: Tue, 23 Mar 2021 04:27:42 +0700 Subject: [PATCH 2/3] Smooth gazeDot movement --- src/index.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.mjs b/src/index.mjs index 37c11163d..b83aa30f4 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -328,6 +328,7 @@ async function loop() { if (webgazer.params.showGazeDot) { gazeDot.style.display = 'block'; } + gazeDot.style.transition = 'all 0.1s ease-in-out'; gazeDot.style.transform = 'translate3d(' + pred.x + 'px,' + pred.y + 'px,0)'; } else { gazeDot.style.display = 'none'; From f82e5288e24d60f082c3055a95475795e8fed308 Mon Sep 17 00:00:00 2001 From: Constantine Linnick Date: Tue, 23 Mar 2021 04:28:14 +0700 Subject: [PATCH 3/3] Update versions --- package.json | 2 +- www/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9338e9b2a..77257aed0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ ], "dependencies": { "@tensorflow-models/facemesh": "0.0.3", - "@tensorflow/tfjs": "2.0.1", + "@tensorflow/tfjs": "2.7.0", "localforage": "1.7.3", "numeric": "1.2.6", "regression": "2.0.1" diff --git a/www/package.json b/www/package.json index 6f3eff87a..ecbb63267 100644 --- a/www/package.json +++ b/www/package.json @@ -14,6 +14,7 @@ "d3": "^5.16.0", "jquery": "^3.5.0", "popper.js": "^1.16.1", - "sweetalert": "^2.1.2" + "sweetalert": "^2.1.2", + "webgazer.js": "2.0.1" } }