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
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¶
API Key Required: This block requires a valid Roboflow API key with vision-events:write
scope. The API key must be configured in your environment or workflow configuration.
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.. | ✅ |
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:
Corner Visualization,Roboflow Dataset Upload,Stitch OCR Detections,Gaze Detection,Time in Zone,Instance Segmentation Model,SIFT,Line Counter Visualization,Detections Combine,Pixelate Visualization,Semantic Segmentation Model,S3 Sink,Detections Classes Replacement,Halo Visualization,SIFT Comparison,OC-SORT Tracker,Cosine Similarity,Qwen3-VL,Crop Visualization,Roboflow Dataset Upload,Mask Visualization,Detection Offset,CLIP Embedding Model,Heatmap Visualization,Detections List Roll-Up,Google Vision OCR,Cache Set,Florence-2 Model,Florence-2 Model,Environment Secrets Store,VLM As Classifier,OpenAI,Background Color Visualization,Template Matching,SIFT Comparison,Detections Filter,LMM,Detections Merge,Motion Detection,Single-Label Classification Model,Dynamic Zone,Seg Preview,Object Detection Model,Roboflow Vision Events,Detections Stitch,Triangle Visualization,Expression,Stability AI Outpainting,Stitch Images,Image Blur,Ellipse Visualization,CogVLM,Google Gemini,Continue If,Morphological Transformation,LMM For Classification,Detection Event Log,Dot Visualization,GLM-OCR,Model Monitoring Inference Aggregator,Keypoint Detection Model,Image Convert Grayscale,Icon Visualization,Detections Stabilizer,Camera Focus,Reference Path Visualization,Llama 3.2 Vision,Byte Tracker,Byte Tracker,Classification Label Visualization,Stability AI Inpainting,SAM 3,Perspective Correction,Size Measurement,Email Notification,Single-Label Classification Model,Delta Filter,Line Counter,Local File Sink,Mask Area Measurement,YOLO-World Model,Twilio SMS/MMS Notification,Clip Comparison,Clip Comparison,Blur Visualization,Bounding Box Visualization,VLM As Detector,Slack Notification,Image Threshold,Email Notification,Object Detection Model,Dimension Collapse,Stability AI Image Generation,Grid Visualization,Dynamic Crop,Image Slicer,Image Preprocessing,Trace Visualization,Halo Visualization,ByteTrack Tracker,Roboflow Custom Metadata,Cache Get,Circle Visualization,Keypoint Detection Model,Twilio SMS Notification,Data Aggregator,Anthropic Claude,Polygon Visualization,Detections Consensus,Identify Changes,Webhook Sink,Overlap Filter,Anthropic Claude,VLM As Detector,OpenAI,PTZ Tracking (ONVIF),Bounding Rectangle,Anthropic Claude,Background Subtraction,Multi-Label Classification Model,Keypoint Visualization,Time in Zone,Stitch OCR Detections,Detections Transformation,Identify Outliers,Perception Encoder Embedding Model,SAM 3,VLM As Classifier,Distance Measurement,Google Gemini,Path Deviation,Image Slicer,Image Contours,Model Comparison Visualization,Barcode Detection,OpenAI,Time in Zone,Depth Estimation,EasyOCR,Absolute Static Crop,Multi-Label Classification Model,JSON Parser,Velocity,Relative Static Crop,Pixel Color Count,QR Code Generator,First Non Empty Or Default,SAM 3,OCR Model,Text Display,Qwen2.5-VL,Instance Segmentation Model,CSV Formatter,SORT Tracker,Label Visualization,Segment Anything 2 Model,Polygon Zone Visualization,Google Gemini,Rate Limiter,Camera Calibration,Qwen3.5-VL,Contrast Equalization,Line Counter,Path Deviation,SmolVLM2,Byte Tracker,Property Definition,Color Visualization,OpenAI,Dominant Color,QR Code Detection,Buffer,Camera Focus,Polygon Visualization,Moondream2 - outputs:
Image Threshold,Email Notification,Corner Visualization,Roboflow Dataset Upload,Object Detection Model,Stitch OCR Detections,Gaze Detection,Stability AI Image Generation,Time in Zone,Dynamic Crop,Instance Segmentation Model,Image Preprocessing,Line Counter Visualization,Trace Visualization,Halo Visualization,Roboflow Custom Metadata,Cache Get,Pixelate Visualization,Circle Visualization,S3 Sink,Detections Classes Replacement,Keypoint Detection Model,Twilio SMS Notification,Halo Visualization,Anthropic Claude,Polygon Visualization,Detections Consensus,Roboflow Dataset Upload,Crop Visualization,Mask Visualization,CLIP Embedding Model,Heatmap Visualization,Webhook Sink,Cache Set,Google Vision OCR,Florence-2 Model,Florence-2 Model,Anthropic Claude,OpenAI,OpenAI,PTZ Tracking (ONVIF),Background Color Visualization,Template Matching,Anthropic Claude,SIFT Comparison,Multi-Label Classification Model,Keypoint Visualization,Time in Zone,Stitch OCR Detections,LMM,Perception Encoder Embedding Model,SAM 3,Motion Detection,Single-Label Classification Model,Dynamic Zone,Seg Preview,Object Detection Model,Roboflow Vision Events,Detections Stitch,Triangle Visualization,Distance Measurement,Google Gemini,Path Deviation,Model Comparison Visualization,Stability AI Outpainting,Image Blur,Ellipse Visualization,OpenAI,Time in Zone,Depth Estimation,Multi-Label Classification Model,CogVLM,Google Gemini,Morphological Transformation,LMM For Classification,Dot Visualization,GLM-OCR,Model Monitoring Inference Aggregator,Keypoint Detection Model,Pixel Color Count,Icon Visualization,QR Code Generator,SAM 3,Text Display,Reference Path Visualization,Instance Segmentation Model,Llama 3.2 Vision,Label Visualization,Classification Label Visualization,Segment Anything 2 Model,Polygon Zone Visualization,Stability AI Inpainting,Google Gemini,SAM 3,Perspective Correction,Camera Calibration,Size Measurement,Email Notification,Contrast Equalization,Line Counter,Path Deviation,Single-Label Classification Model,Line Counter,Color Visualization,OpenAI,Local File Sink,Twilio SMS/MMS Notification,YOLO-World Model,Clip Comparison,Blur Visualization,Bounding Box Visualization,Polygon Visualization,Moondream2,Slack Notification
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[keypoint_detection_prediction,instance_segmentation_prediction,classification_prediction,object_detection_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..
-
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
}