DocTR
हमारे Serverless Hosted API के माध्यम से DocTR OCR model का उपयोग करें
कोड नमूना
3
मॉडल चलाएँ
import os
import cv2
import numpy as np
import requests
from inference_sdk import InferenceHTTPClient
# टेक्स्ट वाली नमूना छवि
content = requests.get("https://media.roboflow.com/inference/license_plate_1.jpg").content
image = cv2.imdecode(np.frombuffer(content, np.uint8), cv2.IMREAD_COLOR)
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"]) # निकाला गया टेक्स्टश्री
AUTPMATIC
280SE
34 T6511Inference speed
मॉडल
विलंबता (ms)
अंतिम अपडेट
क्या यह उपयोगी था?