Properties
draw
draw
: { all
: (inCanvas
: HTMLCanvasElement, result
: Result, drawOptions
?: DrawOptions) => Promise<void>; body
: (inCanvas
: HTMLCanvasElement, result
: Body[], drawOptions
?: DrawOptions) => Promise<void>; canvas
: (inCanvas
: HTMLCanvasElement, outCanvas
: HTMLCanvasElement) => Promise<void>; face
: (inCanvas
: HTMLCanvasElement, result
: Face[], drawOptions
?: DrawOptions) => Promise<void>; gesture
: (inCanvas
: HTMLCanvasElement, result
: Gesture[], drawOptions
?: DrawOptions) => Promise<void>; hand
: (inCanvas
: HTMLCanvasElement, result
: Hand[], drawOptions
?: DrawOptions) => Promise<void>; options
: DrawOptions }
Type declaration
-
all: (inCanvas: HTMLCanvasElement, result: Result, drawOptions?: DrawOptions) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, result: Result, drawOptions?: DrawOptions): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
-
Returns Promise<void>
-
body: (inCanvas: HTMLCanvasElement, result: Body[], drawOptions?: DrawOptions) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, result: Body[], drawOptions?: DrawOptions): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
result: Body[]
-
Returns Promise<void>
-
canvas: (inCanvas: HTMLCanvasElement, outCanvas: HTMLCanvasElement) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, outCanvas: HTMLCanvasElement): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
outCanvas: HTMLCanvasElement
Returns Promise<void>
-
face: (inCanvas: HTMLCanvasElement, result: Face[], drawOptions?: DrawOptions) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, result: Face[], drawOptions?: DrawOptions): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
result: Face[]
-
Returns Promise<void>
-
gesture: (inCanvas: HTMLCanvasElement, result: Gesture[], drawOptions?: DrawOptions) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, result: Gesture[], drawOptions?: DrawOptions): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
-
Returns Promise<void>
-
hand: (inCanvas: HTMLCanvasElement, result: Hand[], drawOptions?: DrawOptions) => Promise<void>
-
- (inCanvas: HTMLCanvasElement, result: Hand[], drawOptions?: DrawOptions): Promise<void>
-
Parameters
-
inCanvas: HTMLCanvasElement
-
result: Hand[]
-
Returns Promise<void>
-
faceTriangulation
faceTriangulation: number[]
faceUVMap
faceUVMap: number[][]
image
image: { canvas: null | HTMLCanvasElement | OffscreenCanvas; tensor: null | Tensor<Rank> }
Type declaration
-
canvas: null | HTMLCanvasElement | OffscreenCanvas
-
tensor: null | Tensor<Rank>
models
models: { age: null | GraphModel; blazepose: null | GraphModel; centernet: null | GraphModel; efficientpose: null | GraphModel; embedding: null | GraphModel; emotion: null | GraphModel; face: null | [unknown, null | GraphModel, null | GraphModel]; faceres: null | GraphModel; gender: null | GraphModel; handpose: null | [null | GraphModel, null | GraphModel]; movenet: null | GraphModel; nanodet: null | GraphModel; posenet: null | GraphModel; segmentation: null | GraphModel }
Type declaration
-
age: null | GraphModel
-
blazepose: null | GraphModel
-
centernet: null | GraphModel
-
efficientpose: null | GraphModel
-
embedding: null | GraphModel
-
emotion: null | GraphModel
-
face: null | [unknown, null | GraphModel, null | GraphModel]
-
faceres: null | GraphModel
-
gender: null | GraphModel
-
handpose: null | [null | GraphModel, null | GraphModel]
-
movenet: null | GraphModel
-
nanodet: null | GraphModel
-
posenet: null | GraphModel
-
segmentation: null | GraphModel
performance
performance: Record<string, number>
sysinfo
sysinfo: { agent: string; platform: string }
Type declaration
-
agent: string
-
platform: string
Human library main class
All methods and properties are available only as members of Human class
Config