DocTR
Use the DocTR OCR model through our Serverless Cloud API
Code sample
3
Run the model
import os
import supervision as sv
from inference_sdk import InferenceHTTPClient
# Sample image containing text
image = sv.load_image_from_url("https://media.roboflow.com/inference/license_plate_1.jpg")
client = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
result = client.ocr_image(inference_input=image, model="doctr")
print(result["result"]) # Extracted textMr
AUTPMATIC
280SE
34 T6511Inference speed
Model
Latency (ms)
Use with Inference (self-hosted)
Further reading
Last updated
Was this helpful?