sdk: improve moving object metadata

This commit is contained in:
Koushik Dutta
2023-04-15 20:14:05 -07:00
parent c0ff857a1b
commit 45f672883a
6 changed files with 11 additions and 8 deletions

4
sdk/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/sdk",
"version": "0.2.89",
"version": "0.2.96",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/sdk",
"version": "0.2.89",
"version": "0.2.96",
"license": "ISC",
"dependencies": {
"@babel/preset-typescript": "^7.18.6",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.2.89",
"version": "0.2.96",
"description": "",
"main": "dist/src/index.js",
"exports": {

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/types",
"version": "0.2.81",
"version": "0.2.86",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/types",
"version": "0.2.81",
"version": "0.2.86",
"license": "ISC",
"devDependencies": {
"@types/rimraf": "^3.0.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.2.81",
"version": "0.2.86",
"description": "",
"main": "dist/index.js",
"author": "",

View File

@@ -251,7 +251,7 @@ class ObjectDetectionResult(TypedDict):
className: str
history: ObjectDetectionHistory
id: str
moving: bool
movement: Any
name: str
resources: VideoResource
score: float

View File

@@ -1255,7 +1255,10 @@ export interface ObjectDetectionResult extends BoundingBoxResult {
name?: string;
score: number;
resources?: VideoResource;
moving?: boolean;
/**
* Movement history will track the first/last time this object was moving.
*/
movement?: ObjectDetectionHistory & { moving?: boolean; };
}
export interface ObjectsDetected {
detections?: ObjectDetectionResult[];