Video Intelligence Streaming API 支援在即時串流輸入多媒體資料時即時偵測標籤,並即時串流輸出分析結果。
下列JSON 設定物件顯示如何使用 AIStreamer 即時標籤偵測功能來為串流影片加上註解。
{ "video_config": { "feature": "STREAMING_LABEL_DETECTION", "label_detection_config": { "stationary_camera": "False" } } }
AIStreamer 會傳回類似下列範例的回應。
Reading response. 0.0s: mustang horse (0.9374721646308899) 0.0s: herd (0.9230296611785889) 0.0s: horse (0.9789802432060242)