在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
有什么建议吗?