物体検出(Object Detection)
Roboflow でホストされている物体検出モデルで推論を実行します。
# inference-sdk をインポートする
from inference_sdk import InferenceHTTPClient
CLIENT = InferenceHTTPClient(
api_url="https://detect.roboflow.com",
api_key="API_KEY"
)
result = CLIENT.infer(your_image.jpg, model_id="football-players-detection-3zvbc/12")base64 YOUR_IMAGE.jpg | curl -d @- \
"https://detect.roboflow.com/your-model/42?api_key=YOUR_KEY"curl -X POST "https://detect.roboflow.com/your-model/42?\
api_key=YOUR_KEY&\
image=https%3A%2F%2Fi.imgur.com%2FPEEvqPN.png"APIリファレンス
URL
名前
タイプ
説明
Query Parameters
名前
タイプ
説明
Request Body
タイプ
説明
レスポンス形式
Inference API の JSON 出力からボックスを描画する
Last updated
Was this helpful?