Frame Delay¶
Class: FrameDelayBlockV1
Source: inference.core.workflows.core_steps.fusion.frame_delay.v1.FrameDelayBlockV1
Reference a value produced on an earlier frame of the same video stream. Wire any
workflow output (detections, numbers, strings, images, ...) into this block, set a
negative offset, and the block returns that value as it was |offset| frames ago.
Only past (non-positive) offsets are supported. Genuine future look-ahead would require delaying the entire workflow output, which is not possible on synchronous runtimes (WebRTC/webexec, single-image HTTP), so it is intentionally not offered here.
How This Block Works¶
- Reads
video_metadatafrom the connectedimageto obtain thevideo_identifier(used to keep per-stream state isolated) and the monotonicframe_number(N). - Stores the incoming
datain a per-video ring buffer keyed by frame number. - Resolves
target_frame = N + offset(withoffset <= 0) and returnsdata[target_frame]when buffered, otherwisedefault_value. - Reports
is_available(whether the target frame was buffered) andreference_frame_number(always the current frameN).
Common Use Cases¶
- Compare the current frame to a past frame (
-1,-5) for change/trend detection. - Align a slow, delayed signal with the frame it belongs to.
- Remember what a value was N frames ago (e.g. the dominant color 10 frames earlier).
Requirements and Limitations¶
offsetmust be<= 0. Positive offsets are rejected.|offset|may not exceed 256. Each buffered frame is held in memory, so delaying an image stream by a large offset is costly (~6 MB per frame at 1080p, ~25 MB at 4K). Prefer delaying a small derived value over a full image where possible.- Past offsets work in every execution context; no output delay is introduced.
- State is kept in process memory keyed by
video_identifier; it degrades on stateless/multi-replica remote HTTP runtimes. - At most 16 streams are tracked concurrently; the least recently seen stream's buffer is discarded beyond that.
- A stream whose
frame_numberrestarts (e.g. on reconnect) has its buffer cleared. - State persists for the lifetime of the workflow and resets on restart.
- Values are unavailable (returning
default_value) until enough frames have been processed to reach the requested|offset|depth. - When
offsetis wired to a runtime selector, the buffer is sized to the largest|offset|seen so far on the stream, so alternating between shallow and deep offsets keeps the deep history available. Increasing the offset mid-stream makes deeper frames available only once enough new frames have been buffered.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/frame_delay@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
offset |
int |
Relative frame offset into the past. Must be <= 0: e.g. -1 is the previous frame, -10 is ten frames ago, 0 is the current frame. Limited to -256, since every buffered frame is held in memory.. | ✅ |
default_value |
Optional[bool, float, int, str] |
Value returned when the requested frame is not (yet) available in the buffer.. | ❌ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Runtime compatibility¶
-
soft— runtimehosted_serverless,dedicated_deployment; executionremote; inputvideo - 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.
-
soft— inputimage - 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.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Frame Delay in version v1.
- inputs:
Anthropic Claude,Image Slicer,Dynamic Crop,Mask Area Measurement,BoT-SORT Tracker,Cache Get,SIFT Comparison,Stitch Images,Stitch OCR Detections,Instance Segmentation Model,Stability AI Inpainting,Distance Measurement,EasyOCR,Llama 3.2 Vision,Track Class Lock,Florence-2 Model,Gaze Detection,YOLO-World Model,Dominant Color,Model Comparison Visualization,Detections Classes Replacement,Line Counter Visualization,Byte Tracker,PLC Reader,Clip Comparison,CogVLM,PP-OCR,Morphological Transformation,Detections List Roll-Up,Instance Segmentation Model,OpenAI,Time in Zone,Detections Stabilizer,Image Contours,SAM 3,Roboflow Visual Search Classifier,QR Code Generator,OpenAI-Compatible LLM,Polygon Zone Visualization,Roboflow Asset Library Attributes,Path Deviation,GeoTag Detection,Camera Focus,Inner Workflow,Llama 3.2 Vision,VLM As Detector,Instance Segmentation Model,MQTT Writer,Roboflow Dataset Upload,Local File Sink,Bounding Rectangle,Google Gemini,Semantic Segmentation Model,Event Writer,Depth Estimation,Seg Preview,Byte Tracker,Google Gemini,OpenAI,Twilio SMS Notification,Pixel Color Count,Object Detection Model,Webhook Sink,Halo Visualization,Buffer,Switch Case,Dot Visualization,Image Stack,OPC UA Writer Sink,Image Slicer,Time in Zone,Contrast Enhancement,Morphological Transformation,Per-Class Confidence Filter,Halo Visualization,Clip Comparison,Google Gemma,Qwen 3.5 API,Qwen3.5,Single-Label Classification Model,Motion Detection,Multi-Label Classification Model,Detections Consensus,Overlap Analysis,Image Blur,Segment Anything 2 Model,Grid Visualization,Blur Visualization,GLM-OCR,Anthropic Claude,Google Vision OCR,Polygon Visualization,Data Aggregator,SIFT,Qwen 3.6 API,Text Display,JSON Parser,Qwen3.5-VL,Roboflow Vision Events,Identify Changes,Keypoint Detection Model,PLC ModbusTCP,S3 Sink,Line Counter,Roboflow Dataset Upload,SAM 3,Image Preprocessing,Single-Label Classification Model,Time in Zone,CLIP Embedding Model,Bounding Box Visualization,Object Detection Model,Mask Edge Snap,First Non Empty Or Default,Path Deviation,QR Code Detection,Expression,Absolute Static Crop,OpenAI,Email Notification,Frame Delay,Cosine Similarity,Roboflow Custom Metadata,Dynamic Zone,Auto Rotate on Edges,Detections Transformation,Property Definition,Byte Tracker,Keypoint Detection Model,Continue If,Stability AI Outpainting,Slack Notification,Camera Calibration,Single-Label Classification Model,VLM As Detector,SORT Tracker,Camera Focus,Corner Visualization,Ellipse Visualization,Rate Limiter,Anthropic Claude,Roboflow Visual Search,Color Visualization,Triangle Visualization,Detection Event Log,Object Detection Model,SAM 3,Image Threshold,Barcode Detection,Detections Merge,Current Time,Qwen2.5-VL,Florence-2 Model,Semantic Segmentation Model,SmolVLM2,Stitch OCR Detections,Microsoft SQL Server Sink,Moondream2,VLM As Classifier,Image Convert Grayscale,Label Visualization,Detection Offset,Stability AI Image Generation,Perception Encoder Embedding Model,Line Counter,Identify Outliers,Cache Set,VLM As Classifier,Trace Visualization,SAM 3 Interactive,PLC EthernetIP,Detections Filter,LMM For Classification,Velocity,Mask Visualization,Template Matching,Pixelate Visualization,Twilio SMS/MMS Notification,Environment Secrets Store,MoonshotAI Kimi,Multi-Label Classification Model,Google Gemini,OC-SORT Tracker,Keypoint Visualization,Dimension Collapse,LMM,Detections Combine,PTZ Tracking (ONVIF),OCR Model,Circle Visualization,Relative Static Crop,SAM2 Video Tracker,ByteTrack Tracker,Email Notification,Cosmos 3,Polygon Visualization,Qwen-VL,PLC Writer,Crop Visualization,Model Monitoring Inference Aggregator,Qwen3-VL,Keypoint Detection Model,Size Measurement,Icon Visualization,Heatmap Visualization,Google Gemma API,Instance Segmentation Model,Delta Filter,CSV Formatter,SAM3 Video Tracker,Background Color Visualization,Detections Stitch,Reference Path Visualization,Classification Label Visualization,Perspective Correction,Background Subtraction,Contrast Equalization,MoonshotAI Kimi,OpenRouter,OpenAI,SIFT Comparison,Multi-Label Classification Model,Overlap Filter - outputs:
Anthropic Claude,Image Slicer,Dynamic Crop,Mask Area Measurement,BoT-SORT Tracker,Cache Get,SIFT Comparison,Stitch Images,Stitch OCR Detections,Instance Segmentation Model,Stability AI Inpainting,Distance Measurement,EasyOCR,Llama 3.2 Vision,Track Class Lock,Florence-2 Model,Gaze Detection,YOLO-World Model,Dominant Color,Model Comparison Visualization,Detections Classes Replacement,Line Counter Visualization,Byte Tracker,PLC Reader,Clip Comparison,CogVLM,PP-OCR,Morphological Transformation,Detections List Roll-Up,Instance Segmentation Model,OpenAI,Time in Zone,Detections Stabilizer,Image Contours,SAM 3,Roboflow Visual Search Classifier,QR Code Generator,OpenAI-Compatible LLM,Polygon Zone Visualization,Roboflow Asset Library Attributes,GeoTag Detection,Path Deviation,Camera Focus,Inner Workflow,Llama 3.2 Vision,VLM As Detector,Instance Segmentation Model,MQTT Writer,Roboflow Dataset Upload,Local File Sink,Bounding Rectangle,Semantic Segmentation Model,Event Writer,Google Gemini,Depth Estimation,Seg Preview,Byte Tracker,Google Gemini,OpenAI,Twilio SMS Notification,Pixel Color Count,Object Detection Model,Webhook Sink,Halo Visualization,Buffer,Switch Case,Dot Visualization,Image Stack,OPC UA Writer Sink,Image Slicer,Time in Zone,Contrast Enhancement,Morphological Transformation,Per-Class Confidence Filter,Halo Visualization,Clip Comparison,Google Gemma,Qwen 3.5 API,Qwen3.5,Single-Label Classification Model,Motion Detection,Multi-Label Classification Model,Detections Consensus,Overlap Analysis,Image Blur,Segment Anything 2 Model,Grid Visualization,Blur Visualization,GLM-OCR,Anthropic Claude,Google Vision OCR,Polygon Visualization,Data Aggregator,SIFT,Qwen 3.6 API,Text Display,JSON Parser,Qwen3.5-VL,Roboflow Vision Events,Identify Changes,Keypoint Detection Model,PLC ModbusTCP,S3 Sink,Line Counter,Roboflow Dataset Upload,SAM 3,Image Preprocessing,Single-Label Classification Model,Time in Zone,CLIP Embedding Model,Bounding Box Visualization,Object Detection Model,Mask Edge Snap,First Non Empty Or Default,Path Deviation,QR Code Detection,Expression,Absolute Static Crop,OpenAI,Email Notification,Frame Delay,Cosine Similarity,Roboflow Custom Metadata,Dynamic Zone,Auto Rotate on Edges,Keypoint Detection Model,Detections Transformation,Property Definition,Byte Tracker,Continue If,Stability AI Outpainting,Slack Notification,Camera Calibration,Single-Label Classification Model,VLM As Detector,SORT Tracker,Corner Visualization,Ellipse Visualization,Camera Focus,Rate Limiter,Anthropic Claude,Roboflow Visual Search,Color Visualization,Triangle Visualization,Detection Event Log,Object Detection Model,SAM 3,Image Threshold,Barcode Detection,Detections Merge,Current Time,Qwen2.5-VL,Florence-2 Model,Semantic Segmentation Model,SmolVLM2,Stitch OCR Detections,Microsoft SQL Server Sink,Moondream2,VLM As Classifier,Image Convert Grayscale,Label Visualization,Detection Offset,Stability AI Image Generation,Perception Encoder Embedding Model,Line Counter,Identify Outliers,Cache Set,VLM As Classifier,Trace Visualization,SAM 3 Interactive,PLC EthernetIP,Detections Filter,LMM For Classification,Velocity,Mask Visualization,Template Matching,Twilio SMS/MMS Notification,Pixelate Visualization,MoonshotAI Kimi,Multi-Label Classification Model,Google Gemini,OC-SORT Tracker,Keypoint Visualization,Dimension Collapse,LMM,Detections Combine,PTZ Tracking (ONVIF),OCR Model,Circle Visualization,Relative Static Crop,SAM2 Video Tracker,ByteTrack Tracker,Email Notification,Cosmos 3,Polygon Visualization,Qwen-VL,PLC Writer,Crop Visualization,Model Monitoring Inference Aggregator,Qwen3-VL,Keypoint Detection Model,Size Measurement,Heatmap Visualization,Icon Visualization,Google Gemma API,Instance Segmentation Model,CSV Formatter,Delta Filter,SAM3 Video Tracker,Background Color Visualization,Detections Stitch,Reference Path Visualization,Classification Label Visualization,Perspective Correction,Background Subtraction,Contrast Equalization,MoonshotAI Kimi,OpenRouter,OpenAI,SIFT Comparison,Multi-Label Classification Model,Overlap Filter
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Frame Delay in version v1 has.
Bindings
-
input
image(image): The image / video frame providing the video metadata (frame number and stream identifier) used to index the buffer..data(Union[image,list_of_values,keypoint_detection_prediction,*,instance_segmentation_prediction,object_detection_prediction]): The value to delay. Can be detections, numbers, strings, images, or any other workflow output..offset(integer): Relative frame offset into the past. Must be <= 0: e.g. -1 is the previous frame, -10 is ten frames ago, 0 is the current frame. Limited to -256, since every buffered frame is held in memory..
-
output
Example JSON definition of step Frame Delay in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/frame_delay@v1",
"image": "$inputs.image",
"data": "$steps.object_detection_model.predictions",
"offset": -1,
"default_value": null
}