diff --git a/applications/emocam/index.html b/applications/emocam/index.html
index ff2b646..963235b 100644
--- a/applications/emocam/index.html
+++ b/applications/emocam/index.html
@@ -4,7 +4,7 @@
Created by George Deac, October 21st, 2023.
Copyright 2023 George Deac.
Copyright 2023 The MediaPipe Authors.
- Copyright 2023, Overte e.V.
+ Copyright 2024, Overte e.V.
Overte Application for Mediapipe face tracking in Desktop mode.
@@ -267,6 +267,15 @@
+
+ Show preview window:
+ |
+
+
+ |
@@ -274,7 +283,7 @@
|
-
+
@@ -662,6 +671,7 @@
const {FaceLandmarker, FilesetResolver, DrawingUtils} = vision;
const demosSection = document.getElementById("demos");
const videoBlendShapes = document.getElementById("video-blend-shapes");
+ const enableWebcamDisplaySwitch = document.querySelector('#enable_webcam_display')
let faceLandmarker;
let runningMode = "IMAGE";
let enableWebcamButton;
@@ -696,6 +706,11 @@
runDemo();
+ enableWebcamDisplaySwitch.addEventListener('change', (event) => {
+ let enabled = event.target.checked;
+ preview_camera_area.style.display = enabled ? "block" : "none";
+ })
+
const video = document.getElementById("webcam");
const canvasElement = document.getElementById("output_canvas");
const canvasCtx = canvasElement.getContext("2d");