All models

Segment Anything 2 (Video)

Track a clicked subject through a clip and mask it every frame

Edit & Analyze Imagev1.0.07 inputsVIDEO

One click tracked and masked through every frame

Try it right here

Fill the inputs the node publishes and run it on your own account. The same ports, defaults and types the studio uses.

Inputs

VIDEO
TEXT
TEXT
TEXT
TEXT
TEXT
Annotation
1 – 60INT
Sign in to run

Running a model executes it on your account. Browsing the catalog stays free and needs no account.

Output

Fill in the inputs and run the node to see its output here.

Call it from your code

The same node, called by id from any surface. Every tab pins this node and passes the ports below.

import { BlitClient } from "@blitflow/sdk";

const { runNode } = new BlitClient({ apiKey: process.env.BLITFLOW_TOKEN });

const { outputs } = await runNode("sam-2-video", {
  video: { ref: "https://..." },
  clickCoordinates: { value: "example" },
  clickLabels: { value: "1" },
  clickFrames: { value: "0" },
  maskType: { value: "binary" },
  annotationType: { value: "mask" },
  framesPerSecond: { value: 30 },
});

Schema

Every port this node publishes, with its type, its hint and the default it runs with. sam-2-video is the id you call.

Inputs

video*VIDEO
clickCoordinates*TEXT
clickLabelsTEXT1
clickFramesTEXT0
maskTypeTEXT
binary · highlighted · greenscreen
binary
annotationTypeTEXT
Annotation
mask · box · both
mask
framesPerSecondINT30

Outputs

videoVIDEO

Chain it with the rest of the catalog

Open the studio