視線検出を使用する
ビデオのフレームで視線検出モデルを実行します。
Video Inference API で Gaze Detection を使用する
pip install roboflowfrom roboflow import Roboflow, GazeModel
rf = Roboflow(api_key="API_KEY")
model = GazeModel()
job_id, signed_url, expire_time = model.predict_video(
"football-video.mp4",
fps=5,
prediction_type="batch-video",
)
results = model.poll_until_video_results(job_id)
print(results)Last updated
Was this helpful?