Skip to content

Commit c2035fa

Browse files
telpirionAhrar Monsur
authored and
Ahrar Monsur
committed
feat: person detection samples to GA (#504)
* feat: updates person detection to GA * chore: update file names and region tags * fix: removed renamed samples
1 parent f423cee commit c2035fa

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

video-intelligence/analyze_person_detection_gcs.js renamed to video-intelligence/analyze-person-detection-gcs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
'use strict';
1616

1717
function main(gcsUri = 'YOUR_STORAGE_URI') {
18-
// [START video_detect_person_gcs_beta]
18+
// [START video_detect_person_gcs]
1919
/**
2020
* TODO(developer): Uncomment these variables before running the sample.
2121
*/
2222
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.mp4';
2323

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

2727
// Creates a client
2828
const video = new Video.VideoIntelligenceServiceClient();
@@ -95,7 +95,7 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
9595
}
9696

9797
detectPersonGCS();
98-
// [END video_detect_person_gcs_beta]
98+
// [END video_detect_person_gcs]
9999
}
100100

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

video-intelligence/analyze_person_detection.js renamed to video-intelligence/analyze-person-detection.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
'use strict';
1616

1717
function main(path = 'YOUR_LOCAL_FILE') {
18-
// [START video_detect_person_beta]
18+
// [START video_detect_person]
1919
/**
2020
* TODO(developer): Uncomment these variables before running the sample.
2121
*/
2222
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.mp4';
2323

2424
// Imports the Google Cloud Video Intelligence library + Node's fs library
25-
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
25+
const Video = require('@google-cloud/video-intelligence').v1;
2626
const fs = require('fs');
2727
// Creates a client
2828
const video = new Video.VideoIntelligenceServiceClient();
@@ -104,7 +104,7 @@ function main(path = 'YOUR_LOCAL_FILE') {
104104
}
105105

106106
detectPerson();
107-
// [END video_detect_person_beta]
107+
// [END video_detect_person]
108108
}
109109

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

video-intelligence/system-test/analyze_person_detection_gcs.test.js renamed to video-intelligence/system-test/analyze-person-detection-gcs.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {describe, it} = require('mocha');
2020

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

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

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

video-intelligence/system-test/analyze_person_detection.test.js renamed to video-intelligence/system-test/analyze-person-detection.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {describe, it} = require('mocha');
2020

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

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

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

0 commit comments

Comments
 (0)