Skip to content

Commit 3a5e5e9

Browse files
gguussleahecole
authored andcommitted
Updates examples for video [(#968)](#968)
1 parent 378f091 commit 3a5e5e9

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

videointelligence/samples/analyze/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ To run this sample:
8888
8989
Usage Examples:
9090
91-
python analyze.py faces gs://cloudmleap/video/next/volleyball_court.mp4
92-
python analyze.py labels gs://cloudmleap/video/next/fox-snatched.mp4
93-
python analyze.py labels_file resources/fox-snatched.mp4
94-
python analyze.py shots gs://cloudmleap/video/next/gbikes_dinosaur.mp4
95-
python analyze.py safe_search gs://cloudmleap/video/next/animals.mp4
91+
python analyze.py faces gs://demomaker/google_gmail.mp4
92+
python analyze.py labels gs:/cloud-ml-sandbox/video/chicago.mp4
93+
python analyze.py labels_file resources/cat.mp4
94+
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
95+
python analyze.py safe_search gs://demomaker/gbikes_dinosaur.mp4
9696
9797
positional arguments:
9898
{faces,labels,labels_file,safe_search,shots}

videointelligence/samples/analyze/analyze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
python analyze.py faces gs://demomaker/google_gmail.mp4
2323
python analyze.py labels gs:/cloud-ml-sandbox/video/chicago.mp4
24-
python analyze.py labels_file resources/fox-snatched.mp4
24+
python analyze.py labels_file resources/cat.mp4
2525
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
2626
python analyze.py safe_search gs://demomaker/gbikes_dinosaur.mp4
2727
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Resources folder for local files
2+
3+
Copy from Google Cloud Storage to this folder for testing video analysis
4+
of local files. For `cat.mp4` used in the usage example, run the following
5+
`gcloud` command.
6+
7+
gsutil cp gs://demomaker/cat.mp4 .
8+
9+
Now, when you run the following command, the video used for label detection
10+
will be passed from here:
11+
12+
python analyze.py labels_file resources/cat.mp4

0 commit comments

Comments
 (0)