透過 Video Intelligence Streaming API,您可以偵測及追蹤即時串流多媒體資料中的物件。然後透過 API 提供資料的即時分析結果。
下列設定 JSON 物件顯示如何使用 AIStreamer 即時物件追蹤功能來為串流影片加上註解。
{ "video_config": { "feature": "STREAMING_OBJECT_TRACKING" } }
AIStreamer 會傳回類似下列範例的回應。
Reading response.
Entity description: mirror
Track Id: 12
Entity id: /m/054_l
Confidence: 0.936193287373
Time offset of the first frame: 7.5075s
Bounding box position:
left : 0.0509275756776
top : 0.748813211918
right : 0.218115285039
bottom: 0.979368686676