From c56e827d75389c89134e0c10e995e792643f2528 Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:37:40 -0400 Subject: [PATCH 1/7] Corrected copy-paste on doc string --- video/cloud-client/faces/faces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/cloud-client/faces/faces.py b/video/cloud-client/faces/faces.py index 3bca1510f9f..c2f8ac95aa5 100644 --- a/video/cloud-client/faces/faces.py +++ b/video/cloud-client/faces/faces.py @@ -14,8 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This application demonstrates how to perform shot change detection with the -Google Cloud Video Intelligence API. +"""This application demonstrates how to perform face +detection with the Google Cloud Video Intelligence API. For more information, check out the documentation at https://cloud.google.com/videointelligence/docs. From 2f45527c549d60a2b7cf0da85c1bd2b5b7cb065d Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:38:26 -0400 Subject: [PATCH 2/7] Updated doc/help string to be more specific to labels tool --- video/cloud-client/labels/labels.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video/cloud-client/labels/labels.py b/video/cloud-client/labels/labels.py index 5f45b831374..b5c2f42e3cf 100644 --- a/video/cloud-client/labels/labels.py +++ b/video/cloud-client/labels/labels.py @@ -14,8 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This application demonstrates how to perform basic operations with the -Google Cloud Video Intelligence API. +"""This application demonstrates how to detect labels from a video +based on the image content with the Google Cloud Video Intelligence +API. For more information, check out the documentation at https://cloud.google.com/videointelligence/docs. From e8086d025203d07e130a3963556d5caecf0c892e Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:39:05 -0400 Subject: [PATCH 3/7] Made shotchange doc/help string more specific --- video/cloud-client/shotchange/shotchange.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/cloud-client/shotchange/shotchange.py b/video/cloud-client/shotchange/shotchange.py index 4db4ca3bc0a..bd68008460f 100644 --- a/video/cloud-client/shotchange/shotchange.py +++ b/video/cloud-client/shotchange/shotchange.py @@ -14,8 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This application demonstrates how to perform basic operations with the -Google Cloud Video Intelligence API. +"""This application demonstrates how to identify all different shots +in a video using the Google Cloud Video Intelligence API. For more information, check out the documentation at https://cloud.google.com/videointelligence/docs. From fc42ab9d455d5c779d313fd31e0f54da5210da24 Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:40:19 -0400 Subject: [PATCH 4/7] Tweaked doc/help string to indicate no arg expected --- video/cloud-client/quickstart/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/cloud-client/quickstart/quickstart.py b/video/cloud-client/quickstart/quickstart.py index 1f31d46657a..de9b47e6abb 100644 --- a/video/cloud-client/quickstart/quickstart.py +++ b/video/cloud-client/quickstart/quickstart.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This application demonstrates label detection using the Google Cloud API. +"""This application demonstrates label detection on a demo video using the Google Cloud API. Usage: python quickstart.py From bc048d890fecf1691e4c91ef07eb8b71c005504b Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:47:15 -0400 Subject: [PATCH 5/7] Adjusted import order to satisfy flake8 --- video/cloud-client/faces/faces_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/cloud-client/faces/faces_test.py b/video/cloud-client/faces/faces_test.py index 9ca80920fa8..fde928dcfc9 100644 --- a/video/cloud-client/faces/faces_test.py +++ b/video/cloud-client/faces/faces_test.py @@ -15,8 +15,8 @@ # limitations under the License. import os -import faces import pytest +import faces BUCKET = os.environ['CLOUD_STORAGE_BUCKET'] From 90844dba7ac7d6cfc3bff6a0e168c7e01a76977e Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:50:52 -0400 Subject: [PATCH 6/7] Wrapped doc string to 79 chars to flake8 correctly --- video/cloud-client/quickstart/quickstart.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/cloud-client/quickstart/quickstart.py b/video/cloud-client/quickstart/quickstart.py index de9b47e6abb..d284237469e 100644 --- a/video/cloud-client/quickstart/quickstart.py +++ b/video/cloud-client/quickstart/quickstart.py @@ -14,10 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This application demonstrates label detection on a demo video using the Google Cloud API. +"""This application demonstrates label detection on a demo video using +the Google Cloud API. Usage: python quickstart.py + """ From 6393e43493fe314408fcf6b572207d385bcedcf5 Mon Sep 17 00:00:00 2001 From: "Perry A. Stoll" Date: Thu, 12 Oct 2017 00:56:13 -0400 Subject: [PATCH 7/7] Adjusted import order to pass flake8 test --- video/cloud-client/labels/labels_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/cloud-client/labels/labels_test.py b/video/cloud-client/labels/labels_test.py index 31a68358f6f..2022a116794 100644 --- a/video/cloud-client/labels/labels_test.py +++ b/video/cloud-client/labels/labels_test.py @@ -15,8 +15,8 @@ # limitations under the License. import os -import labels import pytest +import labels BUCKET = os.environ['CLOUD_STORAGE_BUCKET']