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

Commit

Permalink
fix: update region tag from v1beta1 to v1 for analyze-face-detection.js
Browse files Browse the repository at this point in the history
  • Loading branch information
morgandu committed Apr 6, 2021
1 parent ef087fc commit 1e06f9f
Showing 1 changed file with 3 additions and 3 deletions.
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));

0 comments on commit 1e06f9f

Please sign in to comment.