Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: adds spaces to region tags, other fixes (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored Feb 12, 2020
1 parent ce494a2 commit 2b6943e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions samples/analyze.v1p3beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

async function detectPerson(path) {
//[START video_detect_person_beta]
// [START video_detect_person_beta]
// Imports the Google Cloud Video Intelligence library + Node's fs library
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');
Expand Down Expand Up @@ -44,6 +44,7 @@ async function detectPerson(path) {
},
};
// Detects people in a video
// We get the first result because only one video is processed.
const [operation] = await video.annotateVideo(request);
const results = await operation.promise();
console.log('Waiting for operation to complete...');
Expand Down Expand Up @@ -96,7 +97,7 @@ async function detectPerson(path) {
// [END video_detect_person_beta]
}
async function detectPersonGCS(gcsUri) {
//[START video_detect_person_gcs_beta]
// [START video_detect_person_gcs_beta]
// Imports the Google Cloud Video Intelligence library
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
// Creates a client
Expand Down Expand Up @@ -173,7 +174,7 @@ async function detectPersonGCS(gcsUri) {
// [END video_detect_person_gcs_beta]
}
async function detectFaces(path) {
//[START video_detect_faces_beta]
// [START video_detect_faces_beta]
// Imports the Google Cloud Video Intelligence library + Node's fs library
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');
Expand Down Expand Up @@ -244,10 +245,10 @@ async function detectFaces(path) {
}
}
}
//[END video_detect_faces_beta]
// [END video_detect_faces_beta]
}
async function detectFacesGCS(gcsUri) {
//[START video_detect_faces_gcs_beta]
// [START video_detect_faces_gcs_beta]
// Imports the Google Cloud Video Intelligence library
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
// Creates a client
Expand Down Expand Up @@ -314,7 +315,7 @@ async function detectFacesGCS(gcsUri) {
}
}
}
//[END video_detect_faces_gcs_beta]
// [END video_detect_faces_gcs_beta]
}

async function main() {
Expand Down

0 comments on commit 2b6943e

Please sign in to comment.