For the complete documentation index, see llms.txt. This page is also available as Markdown.

Google Vision OCR

Detect text in images using Google Vision API

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.

Provide your Google Vision API key or set the value to rf_key:account (or rf_key:user:<id>) to proxy requests through Roboflow's API.

Type identifier

Use the following identifier in step "type" field: roboflow_core/google_vision_ocr@v1 to add the block as a 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.

language_hints

List[str]

Optional list of language codes to pass to the OCR API. If not provided, the API will attempt to detect the language automatically.If provided, language codes must be supported by the OCR API, visit https://cloud.google.com/vision/docs/languages for list of supported language codes..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Runtime compatibility

requires_internet - air-gapped / offline deployments : This block depends on a service that is not reachable from fully offline / air-gapped deployments.

Input and Output Bindings

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

Input and output bindings
Example JSON definition

Last updated

Was this helpful?