From 0a6e4fda75d4bfaef6c95ec64107dfb4e601cd37 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 14 Apr 2023 22:29:05 -0700 Subject: [PATCH] sdk: add support for designating object is moving --- sdk/types/scrypted_python/scrypted_sdk/types.py | 3 +-- sdk/types/src/types.input.ts | 11 +---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/sdk/types/scrypted_python/scrypted_sdk/types.py b/sdk/types/scrypted_python/scrypted_sdk/types.py index 4ec822fe9..a9e4cbfa0 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/types.py +++ b/sdk/types/scrypted_python/scrypted_sdk/types.py @@ -251,6 +251,7 @@ class ObjectDetectionResult(TypedDict): className: str history: ObjectDetectionHistory id: str + moving: bool name: str resources: VideoResource score: float @@ -520,10 +521,8 @@ class ObjectDetectionTypes(TypedDict): class ObjectsDetected(TypedDict): detectionId: str detections: list[ObjectDetectionResult] - eventId: Any inputDimensions: tuple[float, float] resources: VideoResource - running: bool timestamp: float pass diff --git a/sdk/types/src/types.input.ts b/sdk/types/src/types.input.ts index 1d878348d..8ae3016fd 100644 --- a/sdk/types/src/types.input.ts +++ b/sdk/types/src/types.input.ts @@ -1255,23 +1255,14 @@ export interface ObjectDetectionResult extends BoundingBoxResult { name?: string; score: number; resources?: VideoResource; + moving?: boolean; } export interface ObjectsDetected { - /** - * Object detection session state. Will be true if processing video, until - * the video ends or is timed out. - */ - running?: boolean; detections?: ObjectDetectionResult[]; /** * The id for the detection session. */ detectionId?: string; - /** - * The id for this specific event/frame within a detection video session. - * Will be undefined for single image detections. - */ - eventId?: any; inputDimensions?: [number, number], timestamp: number; resources?: VideoResource;