Skip to content

Commit

Permalink
Updates examples for video [(#968)](GoogleCloudPlatform/python-docs-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
gguuss authored and Jon Wayne Parrott committed May 31, 2017
1 parent 585f971 commit a6ba677
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 5 additions & 5 deletions samples/analyze/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ To run this sample:
Usage Examples:
python analyze.py faces gs://cloudmleap/video/next/volleyball_court.mp4
python analyze.py labels gs://cloudmleap/video/next/fox-snatched.mp4
python analyze.py labels_file resources/fox-snatched.mp4
python analyze.py shots gs://cloudmleap/video/next/gbikes_dinosaur.mp4
python analyze.py safe_search gs://cloudmleap/video/next/animals.mp4
python analyze.py faces gs://demomaker/google_gmail.mp4
python analyze.py labels gs:/cloud-ml-sandbox/video/chicago.mp4
python analyze.py labels_file resources/cat.mp4
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
python analyze.py safe_search gs://demomaker/gbikes_dinosaur.mp4
positional arguments:
{faces,labels,labels_file,safe_search,shots}
Expand Down
2 changes: 1 addition & 1 deletion samples/analyze/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
python analyze.py faces gs://demomaker/google_gmail.mp4
python analyze.py labels gs:/cloud-ml-sandbox/video/chicago.mp4
python analyze.py labels_file resources/fox-snatched.mp4
python analyze.py labels_file resources/cat.mp4
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
python analyze.py safe_search gs://demomaker/gbikes_dinosaur.mp4
Expand Down
12 changes: 12 additions & 0 deletions samples/analyze/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Resources folder for local files

Copy from Google Cloud Storage to this folder for testing video analysis
of local files. For `cat.mp4` used in the usage example, run the following
`gcloud` command.

gsutil cp gs://demomaker/cat.mp4 .

Now, when you run the following command, the video used for label detection
will be passed from here:

python analyze.py labels_file resources/cat.mp4

0 comments on commit a6ba677

Please sign in to comment.