Class: MediapipeHelper
Constructors
constructor
• new MediapipeHelper()
Methods
initialize
▸ initialize(config
): Promise
<void
>
Parameters
Name | Type |
---|---|
config | MediapipeConfig |
Returns
Promise
<void
>
close
▸ close(modelType?
): Promise
<void
>
Parameters
Name | Type |
---|---|
modelType? | MediaPipeModelType |
Returns
Promise
<void
>
send
▸ send(image
, modelType?
): Promise
<void
>
Parameters
Name | Type |
---|---|
image | ImageBitmap | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas |
modelType? | MediaPipeModelType |
Returns
Promise
<void
>
reset
▸ reset(modelType?
): void
Parameters
Name | Type |
---|---|
modelType? | MediaPipeModelType |
Returns
void