Skip to content

Commit

Permalink
videoanalysis: fix package detection area
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jan 3, 2025
1 parent ea63a96 commit 17c9440
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/objectdetector/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/objectdetector/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 4 additions & 2 deletions plugins/objectdetector/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 17c9440

Please sign in to comment.