From 5f23873366848d55a4c904bc32de6e956776bf72 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 31 Mar 2023 12:37:52 -0700 Subject: [PATCH] videoanalysis: fix bug where motion sensor would stop on invalid condition --- plugins/objectdetector/package-lock.json | 4 ++-- plugins/objectdetector/package.json | 2 +- plugins/objectdetector/src/main.ts | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/objectdetector/package-lock.json b/plugins/objectdetector/package-lock.json index 75f214df0b..9b45eff080 100644 --- a/plugins/objectdetector/package-lock.json +++ b/plugins/objectdetector/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/objectdetector", - "version": "0.0.120", + "version": "0.0.121", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/objectdetector", - "version": "0.0.120", + "version": "0.0.121", "license": "Apache-2.0", "dependencies": { "@scrypted/common": "file:../../common", diff --git a/plugins/objectdetector/package.json b/plugins/objectdetector/package.json index 0dea31d534..f08d05ec5c 100644 --- a/plugins/objectdetector/package.json +++ b/plugins/objectdetector/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/objectdetector", - "version": "0.0.120", + "version": "0.0.121", "description": "Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/objectdetector/src/main.ts b/plugins/objectdetector/src/main.ts index 9382f05909..8f3f9c5e5e 100644 --- a/plugins/objectdetector/src/main.ts +++ b/plugins/objectdetector/src/main.ts @@ -201,7 +201,6 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase this.analyzeStop) { + if (!this.hasMotionType && Date.now() > this.analyzeStop) { break; }