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 Stack,Anthropic Claude,Per-Class Confidence Filter,Color Visualization,Single-Label Classification Model,Perspective Correction,Corner Visualization,Roboflow Custom Metadata,Halo Visualization,Dynamic Zone,Keypoint Detection Model,Qwen-VL,JSON Parser,Email Notification,Object Detection Model,Background Color Visualization,Email Notification,Text Display,Image Preprocessing,Template Matching,Relative Static Crop,VLM As Detector,Florence-2 Model,OCR Model,OpenAI,Blur Visualization,Depth Estimation,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,PLC EthernetIP,Buffer,Webhook Sink,Byte Tracker,Contrast Equalization,Mask Edge Snap,Moondream2,VLM As Detector,Line Counter,Google Gemini,Triangle Visualization,Overlap Filter,Time in Zone,Inner Workflow,First Non Empty Or Default,Detections Stabilizer,VLM As Classifier,Keypoint Detection Model,Roboflow Asset Library Attributes,Polygon Zone Visualization,Contrast Enhancement,Google Gemma API,Image Threshold,Line Counter Visualization,Distance Measurement,Camera Calibration,Detection Offset,ByteTrack Tracker,Expression,S3 Sink,Microsoft SQL Server Sink,Twilio SMS Notification,Detections Combine,Morphological Transformation,Camera Focus,Delta Filter,Size Measurement,Stability AI Inpainting,PTZ Tracking (ONVIF),Classification Label Visualization,Stitch OCR Detections,Event Writer,Mask Visualization,Byte Tracker,Switch Case,Dominant Color,Rate Limiter,Reference Path Visualization,Image Slicer,Identify Outliers,Byte Tracker,OPC UA Writer Sink,Dot Visualization,Cache Set,Identify Changes,Dynamic Crop,Path Deviation,Llama 3.2 Vision,BoT-SORT Tracker,Gaze Detection,Segment Anything 2 Model,OpenAI-Compatible LLM,Single-Label Classification Model,Overlap Analysis,QR Code Detection,Qwen3.5,Object Detection Model,Qwen 3.6 API,Detections Consensus,Multi-Label Classification Model,SAM 3,OpenAI,PLC Reader,Image Convert Grayscale,Instance Segmentation Model,Roboflow Dataset Upload,SAM 3,Detections Classes Replacement,Instance Segmentation Model,Roboflow Dataset Upload,PLC Writer,Qwen 3.5 API,OC-SORT Tracker,Seg Preview,VLM As Classifier,Line Counter,MoonshotAI Kimi,Stability AI Image Generation,Trace Visualization,Path Deviation,Qwen2.5-VL,Icon Visualization,SIFT Comparison,Morphological Transformation,SmolVLM2,LMM For Classification,Clip Comparison,Environment Secrets Store,Detections Merge,Halo Visualization,Data Aggregator,Google Gemma,Ellipse Visualization,Twilio SMS/MMS Notification,Polygon Visualization,Crop Visualization,Absolute Static Crop,Model Monitoring Inference Aggregator,OpenRouter,OpenAI,PLC ModbusTCP,Motion Detection,Heatmap Visualization,Detections Filter,Perception Encoder Embedding Model,Dimension Collapse,Barcode Detection,YOLO-World Model,Google Gemini,Clip Comparison,Google Gemini,Background Subtraction,Keypoint Visualization,CSV Formatter,Stitch Images,Florence-2 Model,Current Time,Detections List Roll-Up,OpenAI,Qwen3-VL,Slack Notification,CLIP Embedding Model,SIFT,Multi-Label Classification Model,Local File Sink,Cosine Similarity,Image Contours,Pixel Color Count,GLM-OCR,Image Slicer,Time in Zone,Semantic Segmentation Model,Stitch OCR Detections,Semantic Segmentation Model,Multi-Label Classification Model,QR Code Generator,Detection Event Log,Detections Transformation,Mask Area Measurement,Google Vision OCR,Image Blur,Property Definition,Roboflow Vision Events,Bounding Rectangle,SAM2 Video Tracker,Grid Visualization,Qwen3.5-VL,Llama 3.2 Vision,Velocity,Label Visualization,SIFT Comparison,Detections Stitch,Circle Visualization,SAM3 Video Tracker,Camera Focus,MoonshotAI Kimi,CogVLM,SAM 3 Interactive,Bounding Box Visualization,LMM,Continue If,Roboflow Visual Search,EasyOCR,Cache Get,Instance Segmentation Model,Pixelate Visualization,Keypoint Detection Model,SORT Tracker,Track Class Lock,Object Detection Model,Anthropic Claude,Time in Zone,MQTT Writer,Polygon Visualization,SAM 3,Model Comparison Visualization,Single-Label Classification Model - outputs:
Line Counter,MoonshotAI Kimi,Stability AI Image Generation,Trace Visualization,Path Deviation,Image Stack,Anthropic Claude,Icon Visualization,SIFT Comparison,Morphological Transformation,Color Visualization,LMM For Classification,Single-Label Classification Model,Perspective Correction,Corner Visualization,Roboflow Custom Metadata,Halo Visualization,Dynamic Zone,Keypoint Detection Model,Qwen-VL,Email Notification,Halo Visualization,Object Detection Model,Google Gemma,Background Color Visualization,Ellipse Visualization,Email Notification,Twilio SMS/MMS Notification,Text Display,Polygon Visualization,Crop Visualization,Image Preprocessing,Template Matching,Model Monitoring Inference Aggregator,OpenRouter,OpenAI,Florence-2 Model,Motion Detection,Heatmap Visualization,OpenAI,Perception Encoder Embedding Model,Blur Visualization,Depth Estimation,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,YOLO-World Model,Google Gemini,Clip Comparison,Google Gemini,Keypoint Visualization,Webhook Sink,Florence-2 Model,Current Time,Contrast Equalization,OpenAI,Moondream2,Line Counter,Google Gemini,Slack Notification,Triangle Visualization,Time in Zone,CLIP Embedding Model,Multi-Label Classification Model,Local File Sink,Keypoint Detection Model,Pixel Color Count,GLM-OCR,Roboflow Asset Library Attributes,Polygon Zone Visualization,Time in Zone,Google Gemma API,Stitch OCR Detections,Line Counter Visualization,Semantic Segmentation Model,Distance Measurement,Image Threshold,Multi-Label Classification Model,Camera Calibration,QR Code Generator,S3 Sink,Microsoft SQL Server Sink,Twilio SMS Notification,Google Vision OCR,Image Blur,Morphological Transformation,Roboflow Vision Events,Size Measurement,PTZ Tracking (ONVIF),Stability AI Inpainting,Classification Label Visualization,Stitch OCR Detections,Event Writer,Qwen3.5-VL,Mask Visualization,Llama 3.2 Vision,Reference Path Visualization,Label Visualization,OPC UA Writer Sink,Dot Visualization,Cache Set,Dynamic Crop,Detections Stitch,Circle Visualization,Llama 3.2 Vision,BoT-SORT Tracker,Path Deviation,SAM3 Video Tracker,Gaze Detection,Segment Anything 2 Model,OpenAI-Compatible LLM,MoonshotAI Kimi,Single-Label Classification Model,CogVLM,Object Detection Model,SAM 3 Interactive,Qwen 3.6 API,Detections Consensus,Bounding Box Visualization,Multi-Label Classification Model,LMM,OpenAI,SAM 3,Instance Segmentation Model,Roboflow Visual Search,Roboflow Dataset Upload,SAM 3,Cache Get,Instance Segmentation Model,Detections Classes Replacement,Pixelate Visualization,Keypoint Detection Model,Instance Segmentation Model,Roboflow Dataset Upload,PLC Writer,Qwen 3.5 API,Object Detection Model,Anthropic Claude,Time in Zone,MQTT Writer,Polygon Visualization,SAM 3,Model Comparison Visualization,Single-Label Classification Model,Seg Preview
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[classification_prediction,keypoint_detection_prediction,object_detection_prediction,instance_segmentation_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"
}