Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates examples for video #968

Merged
merged 1 commit into from
May 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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