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 27
27
28
28
import argparse
29
29
30
- from google .cloud import videointelligence_v1beta2 as videointelligence
30
+ from google .cloud import videointelligence_v1p1beta1 as videointelligence
31
31
32
32
33
33
# [START video_face_bounding_boxes]
Original file line number Diff line number Diff line change 22
22
23
23
24
24
BUCKET = os .environ ['CLOUD_STORAGE_BUCKET' ]
25
- FACES_SHORT_FILE_PATH = '/ video/googlework_short.mp4'
25
+ FACES_SHORT_FILE_PATH = 'video/googlework_short.mp4'
26
26
27
27
28
28
@pytest .mark .slow
29
29
def test_face_bounding_boxes (capsys ):
30
30
beta_snippets .face_bounding_boxes (
31
- 'gs://{}{}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
31
+ 'gs://{}/ {}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
32
32
out , _ = capsys .readouterr ()
33
33
assert 'top :' in out
34
34
35
35
36
36
@pytest .mark .slow
37
37
def test_face_emotions (capsys ):
38
38
beta_snippets .face_emotions (
39
- 'gs://{}{}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
39
+ 'gs://{}/ {}' .format (BUCKET , FACES_SHORT_FILE_PATH ))
40
40
out , _ = capsys .readouterr ()
41
41
assert 'CONCENTRATION' in out
You can’t perform that action at this time.
0 commit comments