Roboflow Vision Events¶
Class: RoboflowVisionEventsBlockV1
Source: inference.core.workflows.core_steps.sinks.roboflow.vision_events.v1.RoboflowVisionEventsBlockV1
Send images, model predictions, and event metadata to the Roboflow Vision Events API for monitoring, quality control, safety alerting, and custom event tracking.
How This Block Works¶
This block uploads workflow images and model predictions to the Roboflow Vision Events API, creating structured events that can be queried, filtered, and visualized in the Roboflow dashboard.
- Optionally uploads an input image and/or output image (visualization) to the Vision Events image storage via the public API
- Converts model predictions (object detection, classification, instance segmentation, or keypoint detection) into the Vision Events annotation format and attaches them to the input image
- Creates a vision event with the specified event type, use case, event data, and custom metadata
- Supports fire-and-forget mode for non-blocking execution
Deployment Modes¶
By default this block sends events to the Roboflow Vision Events API (cloud / Serverless API), uploading images and posting the event over the public API.
For edge deployments, enable Write to Local Event Store to send events to a
local Event Ingestion Service instead. In this mode images are embedded directly
in the request (no upload step) and the event is posted to <event store URL>/v2/events.
The event store URL defaults to http://localhost:8001 and can be overridden. No
Roboflow API key is required in this mode; if the local service requires
authentication, set the EVENT_INGESTION_API_KEY environment variable on the
inference server.
Event Types¶
- quality_check: Manufacturing/inspection QA with pass/fail result and optional confidence
- inventory_count: Inventory tracking with location, item count, and item type
- safety_alert: Safety violations with alert type, severity (low/medium/high), and description
- custom: User-defined events with a free-form value string
- operator_feedback: Operator review/correction of previous events (correct/incorrect/inconclusive)
Requirements¶
The default (cloud) mode requires a valid Roboflow API key with vision-events:write
scope, configured in your environment or workflow configuration. No Roboflow API key is
needed when Write to Local Event Store is enabled (see Deployment Modes above).
Common Use Cases¶
- Quality Control: Automatically log inspection results with images and detection overlays
- Safety Monitoring: Send safety alerts when violations are detected in video streams
- Production Analytics: Track inventory counts and production metrics with visual evidence
- Active Monitoring: Fire-and-forget event logging from real-time video processing workflows
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/roboflow_vision_events@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
event_type |
str |
The type of vision event to create.. | ✅ |
solution |
str |
The use case to associate the event with. Events are namespaced by use case within a workspace.. | ✅ |
external_id |
str |
External identifier for correlation with other systems (max 1000 chars).. | ✅ |
qc_result |
str |
Quality check result: pass or fail.. | ✅ |
location |
str |
Location identifier for inventory count.. | ✅ |
item_count |
int |
Number of items counted.. | ✅ |
item_type |
str |
Type of item being counted.. | ✅ |
alert_type |
str |
Alert type identifier (e.g. no_hardhat, spill_detected).. | ✅ |
severity |
str |
Severity level for the safety alert.. | ✅ |
alert_description |
str |
Description of the safety alert.. | ✅ |
custom_value |
str |
Arbitrary value for custom events.. | ✅ |
related_event_id |
str |
The event ID of the event being reviewed.. | ✅ |
feedback |
str |
Operator feedback on the related event.. | ✅ |
custom_metadata |
Dict[str, Union[bool, float, int, str]] |
Flat key-value metadata to attach to the event. Keys must match pattern [a-zA-Z0-9_ -]+ (max 100 chars). String values max 1000 chars.. | ✅ |
fire_and_forget |
bool |
If True, the event is sent asynchronously and the workflow continues without waiting. If False, the block waits for the API response.. | ✅ |
disable_sink |
bool |
If True, the block is disabled and no events are sent.. | ✅ |
write_to_event_store |
bool |
If True, send the event to a local Event Ingestion Service (edge deployment) instead of the Roboflow Vision Events API (cloud). Images are embedded in the request and the event is posted to <Event Store URL>/v2/events. No Roboflow API key is required in this mode.. |
✅ |
event_store_url |
str |
Base URL of the local Event Ingestion Service. Only used when Write to Local Event Store is enabled.. |
✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Roboflow Vision Events in version v1.
- inputs:
Image Preprocessing,Detections Transformation,Object Detection Model,Time in Zone,Text Display,Template Matching,Image Threshold,Keypoint Detection Model,Time in Zone,OpenAI,Crop Visualization,Cosine Similarity,Florence-2 Model,Roboflow Dataset Upload,Qwen3.5-VL,Roboflow Vision Events,Polygon Zone Visualization,Qwen2.5-VL,Polygon Visualization,Absolute Static Crop,S3 Sink,QR Code Generator,SIFT Comparison,Cache Get,Stitch OCR Detections,OCR Model,Color Visualization,Gaze Detection,OpenAI-Compatible LLM,Line Counter Visualization,Image Blur,Stability AI Inpainting,Blur Visualization,SAM 3,Detection Offset,Anthropic Claude,MQTT Writer,Image Slicer,SAM 3,Detections Consensus,Ellipse Visualization,Detections Stitch,Google Gemma API,PLC ModbusTCP,Overlap Analysis,Rate Limiter,Image Stack,Google Gemini,Delta Filter,Cache Set,Keypoint Detection Model,Stitch OCR Detections,Camera Focus,CSV Formatter,Keypoint Detection Model,Perception Encoder Embedding Model,Image Convert Grayscale,Roboflow Asset Library Attributes,Overlap Filter,Seg Preview,Multi-Label Classification Model,Buffer,Icon Visualization,Triangle Visualization,VLM As Classifier,Qwen 3.5 API,Dominant Color,Instance Segmentation Model,Distance Measurement,Qwen3-VL,Background Color Visualization,Byte Tracker,Clip Comparison,Corner Visualization,Image Slicer,Single-Label Classification Model,Dynamic Crop,Stability AI Outpainting,Detection Event Log,VLM As Detector,Anthropic Claude,Clip Comparison,SORT Tracker,OpenAI,ByteTrack Tracker,Detections Combine,Camera Calibration,Trace Visualization,PTZ Tracking (ONVIF),Email Notification,Camera Focus,Background Subtraction,SAM2 Video Tracker,GLM-OCR,Qwen3.5,VLM As Detector,Llama 3.2 Vision,Property Definition,Stitch Images,Mask Visualization,Microsoft SQL Server Sink,Data Aggregator,Detections Classes Replacement,Morphological Transformation,Email Notification,VLM As Classifier,Halo Visualization,Morphological Transformation,Pixel Color Count,BoT-SORT Tracker,Model Monitoring Inference Aggregator,Pixelate Visualization,Qwen-VL,CogVLM,SAM 3,Dot Visualization,Detections Merge,Google Vision OCR,Detections List Roll-Up,PLC EthernetIP,Dimension Collapse,Mask Edge Snap,SIFT Comparison,Twilio SMS/MMS Notification,Contrast Enhancement,Per-Class Confidence Filter,Single-Label Classification Model,Dynamic Zone,Detections Filter,Byte Tracker,Roboflow Dataset Upload,Bounding Rectangle,Roboflow Custom Metadata,Environment Secrets Store,Detections Stabilizer,LMM For Classification,Object Detection Model,Path Deviation,Current Time,Perspective Correction,Keypoint Visualization,Byte Tracker,MoonshotAI Kimi,Google Gemini,Identify Changes,Depth Estimation,Object Detection Model,Slack Notification,Identify Outliers,Time in Zone,Inner Workflow,Bounding Box Visualization,Label Visualization,Size Measurement,Multi-Label Classification Model,OpenAI,SIFT,Anthropic Claude,OC-SORT Tracker,Moondream2,CLIP Embedding Model,Florence-2 Model,EasyOCR,YOLO-World Model,Segment Anything 2 Model,Twilio SMS Notification,Local File Sink,Single-Label Classification Model,Mask Area Measurement,Path Deviation,JSON Parser,OpenRouter,Instance Segmentation Model,OpenAI,MoonshotAI Kimi,Continue If,Google Gemini,Grid Visualization,Semantic Segmentation Model,Reference Path Visualization,SmolVLM2,Line Counter,Halo Visualization,First Non Empty Or Default,Webhook Sink,Instance Segmentation Model,Relative Static Crop,Multi-Label Classification Model,Expression,Llama 3.2 Vision,Barcode Detection,Velocity,Motion Detection,Model Comparison Visualization,Google Gemma,Line Counter,OPC UA Writer Sink,QR Code Detection,Circle Visualization,LMM,Event Writer,Instance Segmentation Model,Contrast Equalization,Heatmap Visualization,Image Contours,Qwen 3.6 API,Classification Label Visualization,Stability AI Image Generation,Semantic Segmentation Model,Polygon Visualization - outputs:
Detections Classes Replacement,Morphological Transformation,Image Preprocessing,Email Notification,Halo Visualization,Morphological Transformation,Object Detection Model,Time in Zone,BoT-SORT Tracker,Text Display,Template Matching,Pixel Color Count,Image Threshold,Model Monitoring Inference Aggregator,Pixelate Visualization,Keypoint Detection Model,Time in Zone,Qwen-VL,OpenAI,CogVLM,Crop Visualization,SAM 3,Dot Visualization,Google Vision OCR,Florence-2 Model,Roboflow Dataset Upload,Qwen3.5-VL,Roboflow Vision Events,Polygon Zone Visualization,Polygon Visualization,S3 Sink,Twilio SMS/MMS Notification,QR Code Generator,SIFT Comparison,Single-Label Classification Model,Cache Get,Stitch OCR Detections,Dynamic Zone,Color Visualization,Roboflow Dataset Upload,Gaze Detection,Roboflow Custom Metadata,LMM For Classification,OpenAI-Compatible LLM,Line Counter Visualization,Stability AI Inpainting,Image Blur,Object Detection Model,Blur Visualization,Path Deviation,Current Time,SAM 3,Perspective Correction,Keypoint Visualization,Anthropic Claude,MQTT Writer,MoonshotAI Kimi,Google Gemini,SAM 3,Depth Estimation,Detections Consensus,Ellipse Visualization,Detections Stitch,Google Gemma API,Object Detection Model,Slack Notification,Time in Zone,Image Stack,Google Gemini,Cache Set,Bounding Box Visualization,Label Visualization,Keypoint Detection Model,Stitch OCR Detections,Size Measurement,Keypoint Detection Model,Multi-Label Classification Model,OpenAI,Perception Encoder Embedding Model,Anthropic Claude,Roboflow Asset Library Attributes,Moondream2,CLIP Embedding Model,Florence-2 Model,Seg Preview,YOLO-World Model,Multi-Label Classification Model,Segment Anything 2 Model,Twilio SMS Notification,Local File Sink,Single-Label Classification Model,Triangle Visualization,Icon Visualization,Qwen 3.5 API,Path Deviation,OpenRouter,Instance Segmentation Model,Distance Measurement,Instance Segmentation Model,OpenAI,Background Color Visualization,MoonshotAI Kimi,Google Gemini,Corner Visualization,Reference Path Visualization,Single-Label Classification Model,Line Counter,Halo Visualization,Webhook Sink,Dynamic Crop,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,Multi-Label Classification Model,Clip Comparison,OpenAI,Llama 3.2 Vision,Motion Detection,PTZ Tracking (ONVIF),Camera Calibration,Model Comparison Visualization,Trace Visualization,Google Gemma,OPC UA Writer Sink,Line Counter,Circle Visualization,Email Notification,LMM,Event Writer,Instance Segmentation Model,Heatmap Visualization,Contrast Equalization,GLM-OCR,Qwen 3.6 API,Classification Label Visualization,Llama 3.2 Vision,Mask Visualization,Microsoft SQL Server Sink,Stability AI Image Generation,Semantic Segmentation Model,Polygon Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Roboflow Vision Events in version v1 has.
Bindings
-
input
input_image(image): The original input image. Uploaded to the Vision Events API and used as the base image for detection annotations..output_image(image): An optional output/visualized image (e.g., from a visualization block). Displayed as the primary image in the Vision Events dashboard..predictions(Union[object_detection_prediction,instance_segmentation_prediction,keypoint_detection_prediction,classification_prediction]): Optional model predictions to include as detection annotations on the input image. Supports object detection, instance segmentation, keypoint detection, and classification predictions..event_type(string): The type of vision event to create..solution(Union[string,roboflow_solution]): The use case to associate the event with. Events are namespaced by use case within a workspace..external_id(string): External identifier for correlation with other systems (max 1000 chars)..qc_result(string): Quality check result: pass or fail..location(string): Location identifier for inventory count..item_count(integer): Number of items counted..item_type(string): Type of item being counted..alert_type(string): Alert type identifier (e.g. no_hardhat, spill_detected)..severity(string): Severity level for the safety alert..alert_description(string): Description of the safety alert..custom_value(string): Arbitrary value for custom events..related_event_id(string): The event ID of the event being reviewed..feedback(string): Operator feedback on the related event..custom_metadata(*): Flat key-value metadata to attach to the event. Keys must match pattern [a-zA-Z0-9_ -]+ (max 100 chars). String values max 1000 chars..fire_and_forget(boolean): If True, the event is sent asynchronously and the workflow continues without waiting. If False, the block waits for the API response..disable_sink(boolean): If True, the block is disabled and no events are sent..write_to_event_store(boolean): If True, send the event to a local Event Ingestion Service (edge deployment) instead of the Roboflow Vision Events API (cloud). Images are embedded in the request and the event is posted to<Event Store URL>/v2/events. No Roboflow API key is required in this mode..event_store_url(string): Base URL of the local Event Ingestion Service. Only used whenWrite to Local Event Storeis enabled..
-
output
Example JSON definition of step Roboflow Vision Events in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_vision_events@v1",
"input_image": "$inputs.image",
"output_image": "$steps.visualization.image",
"predictions": "$steps.object_detection_model.predictions",
"event_type": "quality_check",
"solution": "my-use-case",
"external_id": "batch-2025-001",
"qc_result": "pass",
"location": "warehouse-A",
"item_count": 42,
"item_type": "widget",
"alert_type": "no_hardhat",
"severity": "high",
"alert_description": "Worker detected without hardhat in zone B",
"custom_value": "anomaly detected at 14:32",
"related_event_id": "evt_abc123",
"feedback": "correct",
"custom_metadata": {
"camera_id": "cam_01",
"location": "$inputs.location"
},
"fire_and_forget": true,
"disable_sink": false,
"write_to_event_store": false,
"event_store_url": "http://localhost:8001"
}