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

Update sample region tags #39

Merged
merged 2 commits into from May 21, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions samples/analyze.js
Expand Up @@ -16,7 +16,7 @@
'use strict';

function analyzeLabelsGCS(gcsUri) {
// [START analyze_labels_gcs]
// [START video_analyze_labels_gcs]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence').v1;

Expand Down Expand Up @@ -77,11 +77,11 @@ function analyzeLabelsGCS(gcsUri) {
.catch(err => {
console.error('ERROR:', err);
});
// [END analyze_labels_gcs]
// [END video_analyze_labels_gcs]
}

function analyzeLabelsLocal(path) {
// [START analyze_labels_local]
// [START video_analyze_labels_local]
// Imports the Google Cloud Video Intelligence library + Node's fs library
const video = require('@google-cloud/video-intelligence').v1;
const fs = require('fs');
Expand Down Expand Up @@ -148,11 +148,11 @@ function analyzeLabelsLocal(path) {
.catch(err => {
console.error('ERROR:', err);
});
// [END analyze_labels_local]
// [END video_analyze_labels_local]
}

function analyzeShots(gcsUri) {
// [START analyze_shots]
// [START video_analyze_shots]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence').v1;

Expand Down Expand Up @@ -219,11 +219,11 @@ function analyzeShots(gcsUri) {
.catch(err => {
console.error('ERROR:', err);
});
// [END analyze_shots]
// [END video_analyze_shots]
}

function analyzeSafeSearch(gcsUri) {
// [START analyze_safe_search]
// [START video_analyze_explicit_content]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence').v1;

Expand Down Expand Up @@ -287,7 +287,7 @@ function analyzeSafeSearch(gcsUri) {
.catch(err => {
console.error('ERROR:', err);
});
// [END analyze_safe_search]
// [END video_analyze_explicit_content]
}

function analyzeVideoTranscription(gcsUri) {
Expand Down
4 changes: 2 additions & 2 deletions samples/quickstart.js
Expand Up @@ -15,7 +15,7 @@

'use strict';

// [START videointelligence_quickstart]
// [START video_quickstart]
// Imports the Google Cloud Video Intelligence library
const videoIntelligence = require('@google-cloud/video-intelligence');

Expand Down Expand Up @@ -77,4 +77,4 @@ client
.catch(err => {
console.error('ERROR:', err);
});
// [END videointelligence_quickstart]
// [END video_quickstart]