From e887b1de56c5f886412744639960870dbce99b74 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 5 Apr 2021 10:23:48 -0700 Subject: [PATCH] samples: updates face and person to v1 (#528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: updates face and person to v1 * 🦉 Updates from OwlBot * fix: docs link issues * fix: appeasethe doc checker * fix: revert READMEs * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../google-cloud-videointelligence/README.md | 4 +- .../linkinator.config.json | 4 +- .../samples/README.md | 72 +++++++++---------- 3 files changed, 41 insertions(+), 39 deletions(-) diff --git a/packages/google-cloud-videointelligence/README.md b/packages/google-cloud-videointelligence/README.md index 341358ead26..faf778c5b59 100644 --- a/packages/google-cloud-videointelligence/README.md +++ b/packages/google-cloud-videointelligence/README.md @@ -124,6 +124,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-video-intel | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Analyze-face-detection-gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection-gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-face-detection-gcs.js,samples/README.md) | +| Analyze-face-detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-face-detection.js,samples/README.md) | | Analyze-person-detection-gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection-gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection-gcs.js,samples/README.md) | | Analyze-person-detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection.js,samples/README.md) | | Analyze-streaming-annotation-to-storage | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-annotation-to-storage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-streaming-annotation-to-storage.js,samples/README.md) | @@ -134,8 +136,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-video-intel | Analyze-streaming-shot-change | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-shot-change.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-streaming-shot-change.js,samples/README.md) | | Analyze | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze.js,samples/README.md) | | Analyze.v1p2beta1 | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze.v1p2beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze.v1p2beta1.js,samples/README.md) | -| Analyze_face_detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection.js,samples/README.md) | -| Analyze_face_detection_gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection_gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection_gcs.js,samples/README.md) | | Detect_logo | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/detect_logo.js,samples/README.md) | | Detect_logo_gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo_gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/detect_logo_gcs.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | diff --git a/packages/google-cloud-videointelligence/linkinator.config.json b/packages/google-cloud-videointelligence/linkinator.config.json index 29a223b6db6..283aeb5d842 100644 --- a/packages/google-cloud-videointelligence/linkinator.config.json +++ b/packages/google-cloud-videointelligence/linkinator.config.json @@ -3,7 +3,9 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io" + "img.shields.io", + "https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection-gcs.js", + "https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection.js" ], "silent": true, "concurrency": 10 diff --git a/packages/google-cloud-videointelligence/samples/README.md b/packages/google-cloud-videointelligence/samples/README.md index daf4557e0e2..4df76883b7c 100644 --- a/packages/google-cloud-videointelligence/samples/README.md +++ b/packages/google-cloud-videointelligence/samples/README.md @@ -12,6 +12,8 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Analyze-face-detection-gcs](#analyze-face-detection-gcs) + * [Analyze-face-detection](#analyze-face-detection) * [Analyze-person-detection-gcs](#analyze-person-detection-gcs) * [Analyze-person-detection](#analyze-person-detection) * [Analyze-streaming-annotation-to-storage](#analyze-streaming-annotation-to-storage) @@ -22,8 +24,6 @@ * [Analyze-streaming-shot-change](#analyze-streaming-shot-change) * [Analyze](#analyze) * [Analyze.v1p2beta1](#analyze.v1p2beta1) - * [Analyze_face_detection](#analyze_face_detection) - * [Analyze_face_detection_gcs](#analyze_face_detection_gcs) * [Detect_logo](#detect_logo) * [Detect_logo_gcs](#detect_logo_gcs) * [Quickstart](#quickstart) @@ -43,6 +43,40 @@ Before running the samples, make sure you've followed the steps outlined in +### Analyze-face-detection-gcs + +View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection-gcs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-face-detection-gcs.js,samples/README.md) + +__Usage:__ + + +`node samples/analyze-face-detection-gcs.js` + + +----- + + + + +### Analyze-face-detection + +View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-face-detection.js,samples/README.md) + +__Usage:__ + + +`node samples/analyze-face-detection.js` + + +----- + + + + ### Analyze-person-detection-gcs View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection-gcs.js). @@ -213,40 +247,6 @@ __Usage:__ -### Analyze_face_detection - -View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection.js). - -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection.js,samples/README.md) - -__Usage:__ - - -`node samples/analyze_face_detection.js` - - ------ - - - - -### Analyze_face_detection_gcs - -View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection_gcs.js). - -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection_gcs.js,samples/README.md) - -__Usage:__ - - -`node samples/analyze_face_detection_gcs.js` - - ------ - - - - ### Detect_logo View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo.js).