From 8b76a7e575970d0c64f642616015b16266c07dfe Mon Sep 17 00:00:00 2001 From: Norman Koch Date: Wed, 28 Aug 2024 12:38:49 +0200 Subject: [PATCH] auto restart webcam --- model.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/model.js b/model.js index f3f6e3b240..480d9a1faf 100644 --- a/model.js +++ b/model.js @@ -1009,6 +1009,12 @@ async function create_model (old_model, fake_model_structure, force) { if(!fake_model_structure) { dbg("[create_model] " + language[lang]["model_compiled_successfully"]); + + if(currently_predicting_webcam) { + currently_predicting_webcam = false; + + restart_webcams(); + } } if(old_model) {