diff --git a/sdk/types.d.ts b/sdk/types.d.ts index f8a260bde..400334f24 100644 --- a/sdk/types.d.ts +++ b/sdk/types.d.ts @@ -532,13 +532,22 @@ export interface Position { latitude?: number; longitude?: number; } +export interface ObjectDetectionResult { + className: string; + score: number; + boundingBox?: [number, number, number, number]; +} +export interface FaceRecognition { + id: string; + label: string; + score: number; + boundingBox?: [number, number, number, number]; +} export interface ObjectDetection { - detections: { - className: string; - score: number; - boundingBox?: number[]; - }[]; + detections?: ObjectDetectionResult[]; + people?: FaceRecognition[]; detectionId?: any; + inputDimensions?: [number, number]; timestamp: number; } export interface ObjectDetector { diff --git a/sdk/types.ts b/sdk/types.ts index ea116adf1..3c6bd61aa 100644 --- a/sdk/types.ts +++ b/sdk/types.ts @@ -584,18 +584,20 @@ export interface Position { latitude?: number; longitude?: number; } +export interface ObjectDetectionResult { + className: string; + score: number; + boundingBox?: [number, number, number, number], +} +export interface FaceRecognition { + id: string; + label: string; + score: number, + boundingBox?: [number, number, number, number]; +} export interface ObjectDetection { - detections?: { - className: string; - score: number; - boundingBox?: [number, number, number, number], - }[]; - people?: { - id: string; - label: string; - score: number, - boundingBox?: [number, number, number, number], - }[]; + detections?: ObjectDetectionResult[]; + people?: FaceRecognition[]; detectionId?: any; inputDimensions?: [number, number], timestamp: number;