@@ -38,10 +38,10 @@ public class DetectIT {
3838 private ByteArrayOutputStream bout ;
3939 private PrintStream out ;
4040
41- static final String LABEL_GCS_LOCATION = "gs://demomaker /cat.mp4" ;
41+ static final String LABEL_GCS_LOCATION = "gs://cloud-samples-data/video /cat.mp4" ;
4242 static final String LABEL_FILE_LOCATION = "./resources/cat.mp4" ;
43- static final String SHOTS_FILE_LOCATION = "gs://demomaker /gbikes_dinosaur.mp4" ;
44- static final String EXPLICIT_CONTENT_LOCATION = "gs://demomaker /cat.mp4" ;
43+ static final String SHOTS_FILE_LOCATION = "gs://cloud-samples-data/video /gbikes_dinosaur.mp4" ;
44+ static final String EXPLICIT_CONTENT_LOCATION = "gs://cloud-samples-data/video /cat.mp4" ;
4545 static final String SPEECH_GCS_LOCATION =
4646 "gs://java-docs-samples-testing/video/googlework_short.mp4" ;
4747 private static final List <String > POSSIBLE_TEXTS = Arrays .asList (
@@ -106,7 +106,7 @@ public void testSpeechTranscription() throws Exception {
106106
107107 @ Test
108108 public void testTrackObjects () throws Exception {
109- VideoAnnotationResults result = TrackObjects .trackObjects ("resources/cat.mp4" );
109+ VideoAnnotationResults result = TrackObjects .trackObjects (LABEL_FILE_LOCATION );
110110
111111 boolean textExists = false ;
112112 for (ObjectTrackingAnnotation objectTrackingAnnotation : result .getObjectAnnotationsList ()) {
@@ -121,7 +121,7 @@ public void testTrackObjects() throws Exception {
121121
122122 @ Test
123123 public void testTrackObjectsGcs () throws Exception {
124- VideoAnnotationResults result = TrackObjects .trackObjectsGcs ("gs://demomaker/cat.mp4" );
124+ VideoAnnotationResults result = TrackObjects .trackObjectsGcs (LABEL_GCS_LOCATION );
125125
126126 boolean textExists = false ;
127127 for (ObjectTrackingAnnotation objectTrackingAnnotation : result .getObjectAnnotationsList ()) {
0 commit comments