Skip to content

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

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Google Vision OCR in version v1 has.

Bindings
  • input

    • image (image): Image to run OCR.
    • api_key (Union[secret, string]): Your Google Vision API key.
  • output

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"
}