Skip to content

Commit

Permalink
auto restart webcam
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Aug 28, 2024
1 parent c5976e7 commit 8b76a7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8b76a7e

Please sign in to comment.