DriftCapture · interface

SamPrompt

Explained in DriftCapture.

interface SamPrompt
import type { SamPrompt } from '@driftengine/capture';

Properties

NameTypeDescription
pointsreadonlyoptionalreadonly (readonly [x: number, y: number, label: 0 | 1])[]Points in the original image's pixels, each labelled 1 on the object and 0 off it.
boxreadonlyoptionalreadonly [number, number, number, number]A box in the original image's pixels: left, top, right, bottom.