Skip to content

Commit

Permalink
videoanalysis: fix settings order
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 17, 2024
1 parent 1c8fd23 commit 2fbc0c2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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.34",
"version": "0.1.35",
"description": "Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.",
"author": "Scrypted",
"license": "Apache-2.0",
Expand Down
24 changes: 12 additions & 12 deletions plugins/objectdetector/src/smart-motionsensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ export class SmartMotionSensor extends ScryptedDeviceBase implements Settings, R
type: 'number',
defaultValue: 0.7,
},
requireDetectionThumbnail: {
title: 'Require Detections with Images',
description: 'When enabled, this sensor will ignore detections results that do not have images.',
type: 'boolean',
defaultValue: false,
},
requireScryptedNvrDetections: {
title: 'Require Scrypted Detections',
description: 'When enabled, this sensor will ignore onboard camera detections.',
type: 'boolean',
defaultValue: false,
},
labels: {
group: 'Recognition',
title: 'Labels',
Expand All @@ -59,18 +71,6 @@ export class SmartMotionSensor extends ScryptedDeviceBase implements Settings, R
type: 'number',
defaultValue: 2,
},
requireDetectionThumbnail: {
title: 'Require Detections with Images',
description: 'When enabled, this sensor will ignore detections results that do not have images.',
type: 'boolean',
defaultValue: false,
},
requireScryptedNvrDetections: {
title: 'Require Scrypted Detections',
description: 'When enabled, this sensor will ignore onboard camera detections.',
type: 'boolean',
defaultValue: false,
},
});

listener: EventListenerRegister;
Expand Down

0 comments on commit 2fbc0c2

Please sign in to comment.