即時物件追蹤

透過 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