Interface: PersonSegmentationFrameKernel
Defined in: core/types.ts:72
The per-frame entry points of a segmentation session as standalone worklet functions.
Use this instead of the session methods when frames are processed on another JS runtime
(for example a camera thread): capture the kernel once and call its functions with
kernel.state.
Properties​
state​
readonlystate:PersonSegmentationKernelState
Defined in: core/types.ts:73
Methods​
latest()​
latest(
state,renderTimestampUs):null|PersonMask
Defined in: core/types.ts:75
Parameters​
| Parameter | Type |
|---|---|
state | PersonSegmentationKernelState |
renderTimestampUs | number |
Returns​
null | PersonMask
offer()​
offer(
state,input):void
Defined in: core/types.ts:74
Parameters​
| Parameter | Type |
|---|---|
state | PersonSegmentationKernelState |
input | SegmentationInput |
Returns​
void
reset()​
reset(
state):void
Defined in: core/types.ts:79
Parameters​
| Parameter | Type |
|---|---|
state | PersonSegmentationKernelState |
Returns​
void