DriftCapture · class

Sam21Tracker

Explained in DriftCapture.

class Sam21Tracker
import { Sam21Tracker } from '@driftengine/capture';

Constructor

new

constructor(config: Sam21Config, weights: Sam21Weights, run: GraphRun, video: Sam21Video)
ParameterTypeDescription
configSam21Config
weightsSam21Weights
runGraphRun
videoSam21Video

Methods

prompt

prompt(frame: number, prompts: ReadonlyMap<number, SamPrompt>): void

Prompts on frame, replacing each object's earlier ones there; the next step decodes them.

ParameterTypeDescription
framenumber
promptsReadonlyMap<number, SamPrompt>

step

step(frame: number, reverse?: boolean): Promise<Sam21Frame>

Every object on frame, as the upstream's forward over its session answers it.

ParameterTypeDescription
framenumber
reverse?boolean