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

Commit

Permalink
feat: person detection samples to GA (#504)
Browse files Browse the repository at this point in the history
* feat: updates person detection to GA

* chore: update file names and region tags

* fix: removed renamed samples
  • Loading branch information
telpirion authored Dec 3, 2020
1 parent edc0aa2 commit eec2a65
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
'use strict';

function main(gcsUri = 'YOUR_STORAGE_URI') {
// [START video_detect_person_gcs_beta]
// [START video_detect_person_gcs]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.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;

// Creates a client
const video = new Video.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -95,7 +95,7 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
}

detectPersonGCS();
// [END video_detect_person_gcs_beta]
// [END video_detect_person_gcs]
}

main(...process.argv.slice(2));
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_person_beta]
// [START video_detect_person]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.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
const video = new Video.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -104,7 +104,7 @@ function main(path = 'YOUR_LOCAL_FILE') {
}

detectPerson();
// [END video_detect_person_beta]
// [END video_detect_person]
}

main(...process.argv.slice(2));
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const {describe, it} = require('mocha');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const cmd = 'node analyze_person_detection_gcs.js';
const cmd = 'node analyze-person-detection-gcs.js';
const gcsUri = 'gs://cloud-samples-data/video/googlework_short.mp4';

describe('analyzing people in video', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const {describe, it} = require('mocha');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const cmd = 'node analyze_person_detection.js';
const cmd = 'node analyze-person-detection.js';
const file = 'resources/googlework_short.mp4';

describe('analyzing people in video', () => {
Expand Down

0 comments on commit eec2a65

Please sign in to comment.