Skip to content

Commit

Permalink
sdk: add embedding field
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 3, 2024
1 parent 32868c6 commit faa667f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class ObjectDetectionResult(TypedDict):
clipPaths: list[ClipPath] # The detection clip paths that outlines various features or segments, like traced facial features.
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.
label: str # The label of the object, if it was recognized as a familiar object (person, pet, etc).
Expand Down
4 changes: 4 additions & 0 deletions sdk/types/src/types.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,10 @@ export interface ObjectDetectionResult extends BoundingBoxResult {
* The detection class of the object.
*/
className: ObjectDetectionClass;
/**
* Base64 encoded embedding float32 vector.
*/
embedding?: string;
/**
* The label of the object, if it was recognized as a familiar object (person, pet, etc).
*/
Expand Down

0 comments on commit faa667f

Please sign in to comment.