diff --git a/samples/faceDetection/index.js b/samples/faceDetection/index.js index 13ccf04..3dd0435 100644 --- a/samples/faceDetection/index.js +++ b/samples/faceDetection/index.js @@ -173,7 +173,6 @@ function initUI() { }); enableThreads(); - } // Event listener for dowscale parameter. let downscaleLevelInput = document.getElementById('downscaleLevel'); diff --git a/samples/filters/index.html b/samples/filters/index.html index 70ab355..b58d142 100644 --- a/samples/filters/index.html +++ b/samples/filters/index.html @@ -191,6 +191,11 @@ + + diff --git a/samples/filters/js/ui.js b/samples/filters/js/ui.js index 455dcb1..90d603e 100644 --- a/samples/filters/js/ui.js +++ b/samples/filters/js/ui.js @@ -120,6 +120,8 @@ function initUI() { utils.stopCamera(); utils.startCamera(videoConstraint, 'videoInput', startVideoProcessing); }); + + enableThreads(); } function setFilter(filter) { diff --git a/samples/funnyHats/js/ui.js b/samples/funnyHats/js/ui.js index c8d339f..5472a63 100644 --- a/samples/funnyHats/js/ui.js +++ b/samples/funnyHats/js/ui.js @@ -137,7 +137,6 @@ function initUI() { }); enableThreads(); - } // Event listener for dowscale parameter. let downscaleLevelInput = document.getElementById('downscaleLevel'); diff --git a/utils/utils.js b/utils/utils.js index 6ac55c1..78e16ee 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -380,7 +380,6 @@ function addButtonToCameraBar(id, text, maxItems) { function enableThreads() { if (!isMobileDevice()) { - // Init threads number. let threadsControl = document.getElementsByClassName('threads-control')[0]; threadsControl.classList.remove('hidden'); let threadsNumLabel = document.getElementById('threadsNumLabel');