谷歌云视频智能

时间:2021-01-22 14:57:43

标签: google-cloud-platform video-intelligence-api

在谷歌云文档下面说:

使用镜头变化检测对视频进行注释 本教程将引导您使用 SHOT_CHANGE_DETECTION 请求完成一个基本的 Video 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 进行场景检测?

1 个答案:

答案 0 :(得分:1)

根据 official documentation "Video Intelligence API 自动识别存储和流式视频中的 20,000 多个对象、地点和动作。它还区分场景变化并在视频、镜头或帧级别提取丰富的元数据",所以,你的问题的答案是肯定的,API 有场景检测。