SAM3 Video Tracker
Track concepts or visually prompted objects across video frames.
Run Segment Anything 3 on a live video stream frame by frame, keeping per-video temporal memory so object identities are preserved across frames.
Use concept mode to track text concepts. SAM3 detects matching objects on every frame and assigns tracker IDs to objects that enter the scene.
Use visual mode to track objects from points or boxes. The block reads the visual prompts according to prompt_mode, then keeps temporal state between prompts. Each re-prompt starts a new session and restarts tracker IDs.
The block multiplexes a single SAM3 streaming model across many video streams by keying state on video_metadata.video_identifier. The block uses sam3video for concept mode and sam3trackervideo for visual mode.
Intended for use with InferencePipeline, which delivers one frame at a time and tags each frame with video metadata.
Type identifier
Use the following identifier in step "type" field: roboflow_core/sam3_video@v1 to add the block as a step in your workflow.
Properties
Name
Type
Description
Refs
name
str
Enter a unique identifier for this step..
❌
tracking_mode
str
Use concept for text prompts. Use visual for point or box prompts..
❌
class_names
Optional[List[str], str]
Concepts to segment and track, as a list of phrases (or a single comma-separated string). Each emitted mask carries the concept it matched as its class name..
✅
points
List[Any]
Labeled points for one object. Positive points include regions. Negative points exclude regions..
✅
model_id
str
Streaming SAM3 model ID for concept tracking..
✅
visual_model_id
str
Streaming SAM3 model ID for visual tracking..
✅
prompt_mode
str
When visual mode reads its prompts. first_frame reads prompts once. every_n_frames reads them at the selected interval. every_frame reads them on each frame. Each re-prompt starts a new session and restarts tracker IDs..
❌
prompt_interval
int
The visual prompt interval for every_n_frames mode. A scheduled re-prompt starts a new session..
✅
threshold
float
Minimum confidence for emitted masks. Concept mode uses the SAM3 detection score. Visual mode uses prompt confidence..
✅
The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.
Runtime compatibility
soft - runtime hosted_serverless, dedicated_deployment; execution remote; input video : Block keeps per-video state in process memory (keyed by video_metadata.video_identifier). With remote step execution on stateless or multi-replica HTTP runtimes, successive requests may be served by different worker processes, so the state resets between calls and the output is meaningless for tracking / counting / aggregation. Use local step execution in an InferencePipeline for stable cross-frame results.
hard - runtime self_hosted_cpu; execution local : Requires a GPU; the streaming SAM3 video model needs CUDA.
soft - input image : Block depends on temporal context from video or repeated-frame workflows. With a still image/photo, there is no meaningful history to track, compare, aggregate, or visualize, so the block provides little or no benefit.
hard - execution remote : run() raises NotImplementedError under REMOTE step execution, on every runtime and for every input: the block keeps per-video state in its own instance and supports LOCAL step execution only.
Input and Output Bindings
The available connections depend on its binding kinds. Check what binding kinds SAM3 Video Tracker in version v1 has.
Last updated
Was this helpful?