Skip to content

Commit

Permalink
sdk: update detection properties
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Feb 4, 2025
1 parent 76ac260 commit 07baddc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.3.110",
"version": "0.3.111",
"description": "",
"main": "dist/src/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.3.102",
"version": "0.3.103",
"description": "",
"main": "dist/index.js",
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ class ObjectDetectionResult(TypedDict):
boundingBox: tuple[float, float, float, float] # x, y, width, height
className: str # The detection class of the object.
clipPaths: list[ClipPath] # The detection clip paths that outlines various features or segments, like traced facial features.
clipped: bool # Flag that indicates whether the detection was clipped by the detection input and may not be a full bounding box.
cost: float # The certainty that this is correct tracked object.
descriptor: str # A base64 encoded Float32Array that represents the vector descriptor of the detection. Can be used to compute euclidian distance to determine similarity.
embedding: str # Base64 encoded embedding float32 vector.
history: ObjectDetectionHistory
id: str # The id of the tracked object.
Expand Down Expand Up @@ -956,7 +956,7 @@ class TamperState(TypedDict):
pass


TYPES_VERSION = "0.3.102"
TYPES_VERSION = "0.3.103"


class AirPurifier:
Expand Down
9 changes: 4 additions & 5 deletions sdk/types/src/types.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,10 @@ export interface ObjectDetectionResult extends BoundingBoxResult {
* The certainty that this is correct tracked object.
*/
cost?: number;
/**
* Flag that indicates whether the detection was clipped by the detection input and may not be a full bounding box.
*/
clipped?: boolean;
/**
* The detection class of the object.
*/
Expand All @@ -1574,11 +1578,6 @@ export interface ObjectDetectionResult extends BoundingBoxResult {
* The score of the label.
*/
labelScore?: number;
/**
* A base64 encoded Float32Array that represents the vector descriptor of the detection.
* Can be used to compute euclidian distance to determine similarity.
*/
descriptor?: string;
/**
* The detection landmarks, like key points in a face landmarks.
*/
Expand Down

0 comments on commit 07baddc

Please sign in to comment.