OCR

Extract text from images using the hosted DocTR OCR endpoint on the Hosted API (Legacy).

Optical Character Recognition (OCR) is the process of text recognition, used to extract text from images, serving as an easier alternative to manual data entry.

Perform OCR

GET https://infer.roboflow.com/doctr/ocr

Query Parameters

NameTypeDescription
api_key<mark style="color:red;">*</mark>StringA Roboflow API Key

Request Body

NameTypeDescription
image<mark style="color:red;">*</mark>ObjectA JSON object containing image information and data
image.type<mark style="color:red;">*</mark>StringOne of the following: "url" or "base64"
image.value<mark style="color:red;">*</mark>StringEither a URL or a base64 encoded image

To learn about how to deploy an OCR solution locally on your device using Python, check out this blog post.

You can also deploy an OCR solution on your device using our open-source inference server. Learn more about deploying DocTR (OCR) locally here.