Skip to content

Commit

Permalink
Video Intelligence region tag update (#1183)
Browse files Browse the repository at this point in the history
* updates region tags for analyze-labels page

* updates region tags for analyze-labels page

* removes unused dependency region tags

* updates to beta region tag
  • Loading branch information
alixhami authored and nnegrey committed Aug 16, 2018
1 parent bbb3ed9 commit a6aab26
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions video/beta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@
</properties>

<dependencies>
<!-- [START dependencies] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-video-intelligence</artifactId>
<version>0.56.0-beta</version>
</dependency>
<!-- [END dependencies] -->

<!-- Test dependencies -->
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions video/beta/src/main/java/com/example/video/Detect.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void argsHelper(String[] args) throws Exception {
}
}

// [START video_speech_transcription]
// [START video_speech_transcription_gcs_beta]
/**
* Transcribe speech from a video stored on GCS.
*
Expand Down Expand Up @@ -135,5 +135,5 @@ public static void speechTranscription(String gcsUri) throws Exception {
}
}
}
// [END video_speech_transcription]
// [END video_speech_transcription_gcs_beta]
}
2 changes: 0 additions & 2 deletions video/cloud-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@
</properties>

<dependencies>
<!-- [START dependencies] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-video-intelligence</artifactId>
<version>0.56.0-beta</version>
</dependency>
<!-- [END dependencies] -->

<!-- Test dependencies -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static void analyzeLabels(String gcsUri) throws Exception {
* @param filePath the path to the video file to analyze.
*/
public static void analyzeLabelsFile(String filePath) throws Exception {
// [START video_analyze_labels_local]
// [START video_analyze_labels]
// Instantiate a com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient
try (VideoIntelligenceServiceClient client = VideoIntelligenceServiceClient.create()) {
// Read file and encode into Base64
Expand Down Expand Up @@ -251,7 +251,7 @@ public static void analyzeLabelsFile(String filePath) throws Exception {
}
}
}
// [END video_analyze_labels_local]
// [END video_analyze_labels]
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.example.video;

// [START videointelligence_quickstart]
// [START video_quickstart]

import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.videointelligence.v1.AnnotateVideoProgress;
Expand Down Expand Up @@ -81,4 +81,4 @@ public static void main(String[] args) throws Exception {
}
}
}
// [END videointelligence_quickstart]
// [END video_quickstart]

0 comments on commit a6aab26

Please sign in to comment.