Stay organized with collections
Save and categorize content based on your preferences.
This is the gRPC API reference for the Optical Character Recognition pre-trained API that is included with
Vertex AI on Google Distributed Cloud (GDC) air-gapped. Use this guide to programmatically detect text in files and images.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThis page is a gRPC API reference for the Optical Character Recognition (OCR) pre-trained API available on Vertex AI on Google Distributed Cloud (GDC) air-gapped.\u003c/p\u003e\n"],["\u003cp\u003eThe OCR API enables programmatic text detection in files and images.\u003c/p\u003e\n"],["\u003cp\u003eThe service name \u003ccode\u003eOCR_ENDPOINT\u003c/code\u003e is required for creating RPC client stubs.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports two methods, \u003ccode\u003eBatchAnnotateFiles\u003c/code\u003e for batch image detection and annotation on files and \u003ccode\u003eBatchAnnotateImages\u003c/code\u003e for batch image detection and annotation on images.\u003c/p\u003e\n"]]],[],null,["# Vertex AI Optical Character Recognition API\n\nThis is the gRPC API reference for the Optical Character Recognition pre-trained API that is included with\nVertex AI on Google Distributed Cloud (GDC) air-gapped. Use this guide to programmatically detect text in files and images.\n\nService: Optical Character Recognition (OCR)\n--------------------------------------------\n\nThe Service name \u003cvar translate=\"no\"\u003eOCR_ENDPOINT\u003c/var\u003e is required to create RPC client stubs. For more information, see\n[View\nVertex AI service statuses and endpoints](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/vertex-ai-api-status)\n\n\n[google.cloud.vision.v1.ImageAnnotator](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/ocr/rpc/google.cloud.vision.v1#google.cloud.vision.v1.ImageAnnotator)\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------"]]