DriftCapture · interface
SamPrompt
Explained in DriftCapture.
interface SamPromptimport type { SamPrompt } from '@driftengine/capture';Properties
| Name | Type | Description |
|---|---|---|
pointsreadonlyoptional | readonly (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. |
boxreadonlyoptional | readonly [number, number, number, number] | A box in the original image's pixels: left, top, right, bottom. |