videoanalysis: fix package detection area

This commit is contained in:
Koushik Dutta
2025-01-03 09:15:57 -08:00
parent ea63a96444
commit 17c9440fd9
3 changed files with 7 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/objectdetector",
"version": "0.1.61",
"version": "0.1.62",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/objectdetector",
"version": "0.1.61",
"version": "0.1.62",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/objectdetector",
"version": "0.1.61",
"version": "0.1.62",
"description": "Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -868,8 +868,10 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase<VideoCamera & Camera
return this.storageSettings.putSetting(key, value);
}
if (value && this.model.settings?.find(s => s.key === key)?.multiple) {
vs = JSON.stringify(value);
if (value) {
const found = this.model.settings?.find(s => s.key === key);
if (found?.multiple || found?.type === 'clippath')
vs = JSON.stringify(value);
}
if (key === 'analyzeButton') {