File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
video/cloud-client/analyze Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2727
2828import argparse
2929
30- from google .cloud import videointelligence_v1beta2 as videointelligence
30+ from google .cloud import videointelligence_v1p1beta1 as videointelligence
3131
3232
3333# [START video_face_bounding_boxes]
Original file line number Diff line number Diff line change 2222
2323
2424BUCKET = os .environ ['CLOUD_STORAGE_BUCKET' ]
25- FACES_SHORT_FILE_PATH = '/ video/googlework_short.mp4'
25+ FACES_SHORT_FILE_PATH = 'video/googlework_short.mp4'
2626
2727
2828@pytest .mark .slow
2929def test_face_bounding_boxes (capsys ):
3030 beta_snippets .face_bounding_boxes (
31- 'gs://{}{}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
31+ 'gs://{}/ {}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
3232 out , _ = capsys .readouterr ()
3333 assert 'top :' in out
3434
3535
3636@pytest .mark .slow
3737def test_face_emotions (capsys ):
3838 beta_snippets .face_emotions (
39- 'gs://{}{}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
39+ 'gs://{}/ {}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
4040 out , _ = capsys .readouterr ()
4141 assert 'CONCENTRATION' in out
You can’t perform that action at this time.
0 commit comments