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 danoscarmike committed Sep 30, 2020
1 parent 02b1686 commit 190f0f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
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
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
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 190f0f8

Please sign in to comment.