mirror of
https://github.com/koush/scrypted.git
synced 2026-07-03 14:20:31 +01:00
sdk: add support for designating object is moving
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user