Skip to content

Commit

Permalink
Updates examples for video (#968)
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 2659c6b commit 1c89ff4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
10 changes: 5 additions & 5 deletions video/cloud-client/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 video/cloud-client/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 video/cloud-client/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
2 changes: 1 addition & 1 deletion video/cloud-client/faces/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ To run this sample:
Usage Example:
python faces.py gs://cloudmleap/video/googlework.mp4
python faces.py gs://demomaker/google_gmail.mp4
positional arguments:
path GCS file path for face detection.
Expand Down
2 changes: 1 addition & 1 deletion video/cloud-client/shotchange/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ To run this sample:
Example Usage:
python shotchange.py gs://cloudmleap/video/googlework.mp4
python shotchange.py gs://demomaker/gbikes_dinosaur.mp4
positional arguments:
path GCS path for shot change detection.
Expand Down

0 comments on commit 1c89ff4

Please sign in to comment.