【发布时间】:2021-01-24 04:24:54
【问题描述】:
谷歌云文档中如下所述:
使用镜头变化检测对视频进行注释 本教程使用 SHOT_CHANGE_DETECTION 请求引导您完成一个基本的视频 API 应用程序。 SHOT_CHANGE_DETECTION 请求提供注释结果:
视频中出现的所有镜头列表,代码如下:
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.Feature.SHOT_CHANGE_DETECTION]
operation = video_client.annotate_video(
request={"features": features, "input_uri": path}
)
print("\nProcessing video for shot change annotations:")
result = operation.result(timeout=120)
print("\nFinished processing.")
但没有提到换镜头时对场景的检测。
如何使用 Google Cloud Video Intelligence 进行场景检测?
【问题讨论】:
标签: google-cloud-platform video-intelligence-api