Buffer¶
Returns an array of the last length
values passed to it. The newest
elements are added to the beginning of the array.
Useful for keeping a sliding window of images or detections for later processing, visualization, or comparison.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/buffer@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
length |
int |
The number of elements to keep in the buffer. Older elements will be removed.. | ❌ |
pad |
bool |
If True, the end of the buffer will be padded with None values so its size is always exactly length .. |
❌ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow
runtime. See Bindings for more info.
Available Connections¶
Check what blocks you can connect to Buffer
in version v1
.
- inputs:
Multi-Label Classification Model
,Line Counter
,Reference Path Visualization
,Data Aggregator
,OpenAI
,Single-Label Classification Model
,LMM For Classification
,OCR Model
,Roboflow Dataset Upload
,Stability AI Inpainting
,Absolute Static Crop
,Trace Visualization
,Path Deviation
,Byte Tracker
,Halo Visualization
,Instance Segmentation Model
,SIFT
,SIFT Comparison
,Email Notification
,Anthropic Claude
,Pixelate Visualization
,Path Deviation
,Classification Label Visualization
,Mask Visualization
,Background Color Visualization
,Crop Visualization
,Relative Static Crop
,VLM as Classifier
,Google Gemini
,Image Contours
,JSON Parser
,Detections Filter
,Gaze Detection
,Byte Tracker
,Image Threshold
,Roboflow Custom Metadata
,Cache Set
,Keypoint Detection Model
,Multi-Label Classification Model
,YOLO-World Model
,Template Matching
,Byte Tracker
,Instance Segmentation Model
,Distance Measurement
,Florence-2 Model
,CogVLM
,LMM
,Size Measurement
,Stitch OCR Detections
,Object Detection Model
,Roboflow Dataset Upload
,Camera Focus
,Identify Changes
,Continue If
,Keypoint Visualization
,Label Visualization
,Cache Get
,Polygon Zone Visualization
,Model Monitoring Inference Aggregator
,Pixel Color Count
,Dynamic Zone
,Object Detection Model
,Triangle Visualization
,Local File Sink
,Barcode Detection
,Single-Label Classification Model
,Clip Comparison
,Ellipse Visualization
,Detections Stitch
,Identify Outliers
,First Non Empty Or Default
,Detections Classes Replacement
,Slack Notification
,Clip Comparison
,Image Blur
,Twilio SMS Notification
,Detections Transformation
,Dot Visualization
,Model Comparison Visualization
,VLM as Detector
,SIFT Comparison
,Dynamic Crop
,Rate Limiter
,Cosine Similarity
,Environment Secrets Store
,Property Definition
,VLM as Classifier
,Image Slicer
,Perspective Correction
,Line Counter Visualization
,Grid Visualization
,Detections Consensus
,Time in Zone
,Webhook Sink
,Google Vision OCR
,Buffer
,Image Convert Grayscale
,Time in Zone
,Stitch Images
,Blur Visualization
,Bounding Rectangle
,Florence-2 Model
,CSV Formatter
,Keypoint Detection Model
,Color Visualization
,Delta Filter
,Image Preprocessing
,Dominant Color
,QR Code Detection
,CLIP Embedding Model
,Expression
,Dimension Collapse
,VLM as Detector
,Polygon Visualization
,Detections Stabilizer
,Segment Anything 2 Model
,Detection Offset
,OpenAI
,Circle Visualization
,Line Counter
,Bounding Box Visualization
,Corner Visualization
- outputs:
Reference Path Visualization
,Line Counter
,Polygon Zone Visualization
,LMM For Classification
,Object Detection Model
,Triangle Visualization
,Trace Visualization
,Path Deviation
,Halo Visualization
,Clip Comparison
,Instance Segmentation Model
,Ellipse Visualization
,Email Notification
,Anthropic Claude
,Clip Comparison
,Dot Visualization
,Path Deviation
,VLM as Detector
,Classification Label Visualization
,Mask Visualization
,VLM as Classifier
,Perspective Correction
,Crop Visualization
,Grid Visualization
,VLM as Classifier
,Time in Zone
,Google Gemini
,Detections Consensus
,Line Counter Visualization
,Time in Zone
,Buffer
,Webhook Sink
,Florence-2 Model
,Keypoint Detection Model
,Color Visualization
,Bounding Box Visualization
,Cache Set
,Keypoint Detection Model
,YOLO-World Model
,Instance Segmentation Model
,VLM as Detector
,Polygon Visualization
,Florence-2 Model
,Object Detection Model
,Size Measurement
,OpenAI
,Circle Visualization
,Line Counter
,Label Visualization
,Corner Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Buffer
in version v1
has.
Bindings
-
input
data
(Union[list_of_values
,*
,image
]): Reference to step outputs at depth level n to be concatenated and moved into level n-1..
-
output
output
(list_of_values
): List of values of any type.
Example JSON definition of step Buffer
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/buffer@v1",
"data": "$steps.visualization",
"length": 5,
"pad": true
}