videoanalysis: add anayze mode hint

This commit is contained in:
Koushik Dutta
2023-06-30 11:42:40 -07:00
parent 6a4126191b
commit e6ece3aa3e
3 changed files with 7 additions and 4 deletions

View File

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

View File

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

View File

@@ -405,7 +405,10 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase<VideoCamera & Camera
await sdk.connectRPCObject(
await this.objectDetection.generateObjectDetections(
await this.createFrameGenerator(signal, options, updatePipelineStatus), {
settings: this.getCurrentSettings(),
settings: {
...this.getCurrentSettings(),
analyzeMode: !!this.analyzeStop,
},
sourceId: this.id,
zones,
}))) {