L2Cs-Net
हमारे Serverless Cloud API के माध्यम से L2Cs-Net नज़र पहचान मॉडल का उपयोग करें
कोड नमूना
3
मॉडल चलाएँ
import os
import supervision as sv
from inference_sdk import InferenceHTTPClient
image = sv.load_image_from_url("https://media.roboflow.com/inference/man.jpg")
client = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key=os.environ["ROBOFLOW_API_KEY"],
).select_api_v1()
result = client.detect_gazes(image)
for prediction in result[0]["predictions"]:
face = prediction["face"]
yaw = prediction["yaw"]
pitch = prediction["pitch"]
print(f"Face at ({face['x']}, {face['y']}) - yaw: {yaw:.3f}, pitch: {pitch:.3f}")इन्फरेंस गति
मॉडल
विलंबता (ms)
Inference के साथ उपयोग करें (सेल्फ-होस्टेड)
वर्कफ़्लोज़ में निष्पादन मोड
अधिक पढ़ें
अंतिम अपडेट
क्या यह उपयोगी था?