diff --git a/.gitignore b/.gitignore index 5d32b237..d0901a2a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ system-test/*key.json .DS_Store package-lock.json __pycache__ +*.code-workspace +launch.json \ No newline at end of file diff --git a/samples/detect_logo.js b/samples/detect_logo.js index 958ea4bc..c32caf96 100644 --- a/samples/detect_logo.js +++ b/samples/detect_logo.js @@ -15,14 +15,14 @@ 'use strict'; function main(localFilePath = 'path/to/your/video.mp4') { - // [START video_detect_logo_beta] + // [START video_detect_logo] /** * TODO(developer): Uncomment these variables before running the sample. */ // const localFilePath = 'path/to/your/video.mp4' // Imports the Google Cloud client libraries - const Video = require('@google-cloud/video-intelligence').v1p3beta1; + const Video = require('@google-cloud/video-intelligence'); const fs = require('fs'); // Instantiates a client @@ -102,7 +102,7 @@ function main(localFilePath = 'path/to/your/video.mp4') { } detectLogo(); - // [END video_detect_logo_beta] + // [END video_detect_logo] } main(...process.argv.slice(2)); diff --git a/samples/detect_logo_gcs.js b/samples/detect_logo_gcs.js index fef651f1..22d8717b 100644 --- a/samples/detect_logo_gcs.js +++ b/samples/detect_logo_gcs.js @@ -13,16 +13,19 @@ // limitations under the License. 'use strict'; - +/** + * Recognizes and annotates logos and brand marks in a video. + * @param {string} inputUri video file to annotate + */ function main(inputUri = 'gs://cloud-samples-data/video/googlework_short.mp4') { - // [START video_detect_logo_gcs_beta] + // [START video_detect_logo_gcs] /** * TODO(developer): Uncomment these variables before running the sample. */ // const inputUri = 'gs://cloud-samples-data/video/googlework_short.mp4'; // Imports the Google Cloud client libraries - const Video = require('@google-cloud/video-intelligence').v1p3beta1; + const Video = require('@google-cloud/video-intelligence'); // Instantiates a client const client = new Video.VideoIntelligenceServiceClient(); @@ -99,7 +102,7 @@ function main(inputUri = 'gs://cloud-samples-data/video/googlework_short.mp4') { } detectLogoGcs(); - // [END video_detect_logo_gcs_beta] + // [END video_detect_logo_gcs] } main(...process.argv.slice(2));