Interface Result

Result interface definition for Human library

Contains all possible detection results

interface Result {
    body: BodyResult[];
    canvas?: null | AnyCanvas;
    error: null | string;
    face: FaceResult[];
    gesture: GestureResult[];
    hand: HandResult[];
    height: number;
    object: ObjectResult[];
    performance: Record<string, number>;
    persons: PersonResult[];
    timestamp: number;
    width: number;
}

Properties

body: BodyResult[]

BodyResult: detection & analysis results

canvas?: null | AnyCanvas

optional processed canvas that can be used to draw input on screen

error: null | string

Last known error message

face: FaceResult[]

FaceResult: detection & analysis results

gesture: GestureResult[]

GestureResult: detection & analysis results

hand: HandResult[]

HandResult: detection & analysis results

height: number

Resolution height

object: ObjectResult[]

ObjectResult: detection & analysis results

performance: Record<string, number>

global performance object with timing values for each operation

persons: PersonResult[]

getter property that returns unified persons object

timestamp: number

timestamp of detection representing the milliseconds elapsed since the UNIX epoch

width: number

Resolution width