Skip to content

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 and Ace Nassri committed Nov 17, 2022
1 parent ef7c15b commit 4f019de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions video-intelligence/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 4f019de

Please sign in to comment.