L2Cs-Net
L2Cs-Net 시선 감지 모델을 Serverless Cloud API를 통해 사용하세요.
코드 예시
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['x']}, {face['y']}) - yaw: {yaw:.3f}, pitch: {pitch:.3f}")추론 속도
모델
지연 시간(ms)
Inference(자가 호스팅)에서 사용
워크플로의 실행 모드
추가 읽을거리
마지막 업데이트
도움이 되었나요?