视频智能:呼叫者没有权限

时间:2020-05-03 17:57:19

标签: python jupyter-lab google-vision video-intelligence-api

在JupyterLab上使用以下代码以运行Google Video Intelligence软件包:

from google.cloud import videointelligence
import os

client = videointelligence.VideoIntelligenceServiceClient.from_service_account_json("VidIntelligence.json")
job = client.annotate_video(
input_uri='gs://vidintelligencebucket/The Simpsons - Monopoly Night.mp4',
features=['LABEL_DETECTION', 'SHOT_CHANGE_DETECTION'])
result = job.result()

运行它时,出现以下错误:

PermissionDenied: 403 The caller does not have permission

有什么建议吗?

0 个答案:

没有答案
相关问题