Skip to content

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@v1to 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.

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

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
}