借助 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