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

DocTR

हमारे Serverless Hosted API के माध्यम से DocTR OCR model का उपयोग करें

DocTR एक दस्तावेज़ OCR मॉडल है, जिसे हमारे माध्यम से तैनात किया जा सकता है Serverless Hosted API.

कोड नमूना

DocTR को सीधे HTTP endpoint के माध्यम से चलाएँ, इसके साथ curl, या inference-sdk रैपर के साथ।

1

अपनी API Key प्राप्त करें

एक Roboflow खाता बनाएं, अपनी key यहाँ पर ढूँढें Roboflow API settings page और इसे अपने shell में उपलब्ध कराएँ:

export ROBOFLOW_API_KEY="your-key-here"
2

मॉडल चलाएँ

को कॉल करें /doctr/ocr एंडपॉइंट को curl:

curl --location 'https://serverless.roboflow.com/doctr/ocr' \\
  --header 'Content-Type: application/json' \
  --data '{
    \"api_key\": \"'\"$ROBOFLOW_API_KEY\"'\",
    "image": {"type": "url", "value": "https://media.roboflow.com/inference/license_plate_1.jpg"}
  }'

Inference speed

Latency मापी गई Roboflow Inference 1x NVIDIA L4 पर, batch size 1, warmup के बाद का औसत।

मॉडल
विलंबता (ms)

doctr

83.5

एक पूर्ण दस्तावेज़ छवि पर मापा गया (text detection plus recognition).

सेट करें api_url को अपने deployment target से मिलाएँ:

  • https://serverless.roboflow.com Serverless Hosted API के लिए।

  • http://localhost:9001 एक local Inference server.

  • आपका Dedicated Deployment एक private endpoint के लिए URL.

अंतिम अपडेट

क्या यह उपयोगी था?