sdk: add support for designating object is moving

This commit is contained in:
Koushik Dutta
2023-04-14 22:29:05 -07:00
parent 4c2de9e443
commit 0a6e4fda75
2 changed files with 2 additions and 12 deletions

View File

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

View File

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