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

@@ -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') {