Google Vision OCR¶
Class: GoogleVisionOCRBlockV1
Source: inference.core.workflows.core_steps.models.foundation.google_vision_ocr.v1.GoogleVisionOCRBlockV1
Detect text in images using Google Vision OCR.
Supported types of text detection:
text_detection
: optimized for areas of text within a larger image.ocr_text_detection
: optimized for dense text documents.
You need to provide your Google Vision API key to use this block.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/google_vision_ocr@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.. | ❌ |
ocr_type |
str |
Type of OCR to use. | ❌ |
api_key |
str |
Your Google Vision API key. | ✅ |
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 Google Vision OCR
in version v1
.
- inputs:
Florence-2 Model
,Stitch Images
,Pixelate Visualization
,Multi-Label Classification Model
,LMM For Classification
,SIFT Comparison
,Keypoint Detection Model
,Corner Visualization
,Blur Visualization
,Single-Label Classification Model
,Mask Visualization
,OCR Model
,Perspective Correction
,Object Detection Model
,SIFT
,Local File Sink
,Model Monitoring Inference Aggregator
,Polygon Zone Visualization
,Polygon Visualization
,VLM as Classifier
,Halo Visualization
,Grid Visualization
,Image Slicer
,Model Comparison Visualization
,Trace Visualization
,Camera Focus
,CogVLM
,Image Threshold
,Google Vision OCR
,Keypoint Visualization
,Email Notification
,Crop Visualization
,Webhook Sink
,Image Preprocessing
,OpenAI
,Roboflow Custom Metadata
,Instance Segmentation Model
,Roboflow Dataset Upload
,Clip Comparison
,Roboflow Dataset Upload
,Stitch OCR Detections
,Slack Notification
,Anthropic Claude
,Image Blur
,Relative Static Crop
,Circle Visualization
,Image Convert Grayscale
,Dot Visualization
,Google Gemini
,Background Color Visualization
,Bounding Box Visualization
,Ellipse Visualization
,Image Contours
,Label Visualization
,Classification Label Visualization
,Line Counter Visualization
,Florence-2 Model
,LMM
,Stability AI Inpainting
,Reference Path Visualization
,Twilio SMS Notification
,OpenAI
,Dynamic Crop
,VLM as Detector
,Color Visualization
,Triangle Visualization
,CSV Formatter
,Llama 3.2 Vision
,Absolute Static Crop
- outputs:
Path Deviation
,Pixelate Visualization
,LMM For Classification
,Line Counter
,Instance Segmentation Model
,CLIP Embedding Model
,Blur Visualization
,Mask Visualization
,Line Counter
,Detections Filter
,YOLO-World Model
,Model Monitoring Inference Aggregator
,Cache Get
,Polygon Visualization
,Halo Visualization
,Google Vision OCR
,Model Comparison Visualization
,Email Notification
,CogVLM
,Image Threshold
,Byte Tracker
,Keypoint Visualization
,Detections Classes Replacement
,Image Preprocessing
,Detection Offset
,Roboflow Dataset Upload
,Slack Notification
,Stitch OCR Detections
,Background Color Visualization
,Bounding Box Visualization
,Ellipse Visualization
,Classification Label Visualization
,Label Visualization
,Line Counter Visualization
,Byte Tracker
,LMM
,Stability AI Inpainting
,Reference Path Visualization
,Dynamic Crop
,Byte Tracker
,Triangle Visualization
,Distance Measurement
,Time in Zone
,Detections Stitch
,Florence-2 Model
,SIFT Comparison
,Corner Visualization
,Perspective Correction
,Local File Sink
,Polygon Zone Visualization
,Twilio SMS Notification
,Trace Visualization
,Webhook Sink
,Size Measurement
,OpenAI
,Roboflow Custom Metadata
,Detections Consensus
,Cache Set
,Crop Visualization
,Instance Segmentation Model
,Roboflow Dataset Upload
,Clip Comparison
,Anthropic Claude
,Image Blur
,Circle Visualization
,Dot Visualization
,Google Gemini
,Segment Anything 2 Model
,Florence-2 Model
,Time in Zone
,Detections Stabilizer
,Path Deviation
,OpenAI
,Color Visualization
,Pixel Color Count
,Llama 3.2 Vision
,Detections Transformation
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Google Vision OCR
in version v1
has.
Bindings
Example JSON definition of step Google Vision OCR
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/google_vision_ocr@v1",
"image": "$inputs.image",
"ocr_type": "<block_does_not_provide_example>",
"api_key": "xxx-xxx"
}