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

fix: adds spaces to region tags, other fixes #369

Merged
merged 1 commit into from
Feb 12, 2020
Merged
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
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