videoanalysis: fix settings order

This commit is contained in:
Koushik Dutta
2024-04-17 08:31:23 -07:00
parent 1c8fd2399d
commit 2fbc0c2573
3 changed files with 15 additions and 15 deletions

View File

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

View File

@@ -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",

View File

@@ -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',
@@ -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;