Using the following code on JupyterLab in order to run Google Video Intelligence Package:
from google.cloud import videointelligence
import os
client = videointelligence.VideoIntelligenceServiceClient('VidIntelligence.JSON')
job = client.annotate_video(
input_uri='gs://vidintelligencebucket/The Simpsons - Monopoly Night.mp4',
features=['LABEL_DETECTION', 'SHOT_CHANGE_DETECTION'],
)
result = job.result()
When I run it, the following error appears:
AttributeError: 'str' object has no attribute 'annotate_video'
Any suggestions?