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

Fix: update region tag from v1beta1 to v1 for analyze-face-detection.js #530

Merged
merged 1 commit into from
Apr 6, 2021
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
6 changes: 3 additions & 3 deletions samples/analyze-face-detection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
'use strict';

function main(path = 'YOUR_LOCAL_FILE') {
// [START video_detect_faces_beta]
// [START video_detect_faces]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
// const path = 'Local file to analyze, e.g. ./my-file.mp4';

// Imports the Google Cloud Video Intelligence library + Node's fs library
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
const Video = require('@google-cloud/video-intelligence').v1;
const fs = require('fs');

// Creates a client
Expand Down Expand Up @@ -90,7 +90,7 @@ function main(path = 'YOUR_LOCAL_FILE') {
}

detectFaces();
// [END video_detect_faces_beta]
// [END video_detect_faces]
}

main(...process.argv.slice(2));