google-cloud-video-intelligence overview (2.0.27)

com.google.cloud.videointelligence.v1

The interfaces provided are listed below, along with usage samples.

VideoIntelligenceServiceClient

Service Description: Service that implements the Video Intelligence API.

Sample for VideoIntelligenceServiceClient:

   
 try 
  
 ( 
 VideoIntelligenceServiceClient 
  
 videoIntelligenceServiceClient 
  
 = 
  
 VideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 String 
  
 inputUri 
  
 = 
  
 "inputUri470706498" 
 ; 
  
 List<Feature> 
  
 features 
  
 = 
  
 new 
  
 ArrayList 
<> (); 
  
 AnnotateVideoResponse 
  
 response 
  
 = 
  
 videoIntelligenceServiceClient 
 . 
 annotateVideoAsync 
 ( 
 inputUri 
 , 
  
 features 
 ). 
 get 
 (); 
  
 } 
  
 

com.google.cloud.videointelligence.v1.stub

com.google.cloud.videointelligence.v1beta2

The interfaces provided are listed below, along with usage samples.

VideoIntelligenceServiceClient

Service Description: Service that implements Google Cloud Video Intelligence API.

Sample for VideoIntelligenceServiceClient:

   
 try 
  
 ( 
 VideoIntelligenceServiceClient 
  
 videoIntelligenceServiceClient 
  
 = 
  
 VideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 String 
  
 inputUri 
  
 = 
  
 "inputUri470706498" 
 ; 
  
 List<Feature> 
  
 features 
  
 = 
  
 new 
  
 ArrayList 
<> (); 
  
 AnnotateVideoResponse 
  
 response 
  
 = 
  
 videoIntelligenceServiceClient 
 . 
 annotateVideoAsync 
 ( 
 inputUri 
 , 
  
 features 
 ). 
 get 
 (); 
  
 } 
  
 

com.google.cloud.videointelligence.v1beta2.stub

com.google.cloud.videointelligence.v1p1beta1

The interfaces provided are listed below, along with usage samples.

VideoIntelligenceServiceClient

Service Description: Service that implements Google Cloud Video Intelligence API.

Sample for VideoIntelligenceServiceClient:

   
 try 
  
 ( 
 VideoIntelligenceServiceClient 
  
 videoIntelligenceServiceClient 
  
 = 
  
 VideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 String 
  
 inputUri 
  
 = 
  
 "inputUri470706498" 
 ; 
  
 List<Feature> 
  
 features 
  
 = 
  
 new 
  
 ArrayList 
<> (); 
  
 AnnotateVideoResponse 
  
 response 
  
 = 
  
 videoIntelligenceServiceClient 
 . 
 annotateVideoAsync 
 ( 
 inputUri 
 , 
  
 features 
 ). 
 get 
 (); 
  
 } 
  
 

com.google.cloud.videointelligence.v1p1beta1.stub

com.google.cloud.videointelligence.v1p2beta1

The interfaces provided are listed below, along with usage samples.

VideoIntelligenceServiceClient

Service Description: Service that implements Google Cloud Video Intelligence API.

Sample for VideoIntelligenceServiceClient:

   
 try 
  
 ( 
 VideoIntelligenceServiceClient 
  
 videoIntelligenceServiceClient 
  
 = 
  
 VideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 String 
  
 inputUri 
  
 = 
  
 "inputUri470706498" 
 ; 
  
 List<Feature> 
  
 features 
  
 = 
  
 new 
  
 ArrayList 
<> (); 
  
 AnnotateVideoResponse 
  
 response 
  
 = 
  
 videoIntelligenceServiceClient 
 . 
 annotateVideoAsync 
 ( 
 inputUri 
 , 
  
 features 
 ). 
 get 
 (); 
  
 } 
  
 

com.google.cloud.videointelligence.v1p2beta1.stub

com.google.cloud.videointelligence.v1p3beta1

The interfaces provided are listed below, along with usage samples.

VideoIntelligenceServiceClient

Service Description: Service that implements the Video Intelligence API.

Sample for VideoIntelligenceServiceClient:

   
 try 
  
 ( 
 VideoIntelligenceServiceClient 
  
 videoIntelligenceServiceClient 
  
 = 
  
 VideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 String 
  
 inputUri 
  
 = 
  
 "inputUri470706498" 
 ; 
  
 List<Feature> 
  
 features 
  
 = 
  
 new 
  
 ArrayList 
<> (); 
  
 AnnotateVideoResponse 
  
 response 
  
 = 
  
 videoIntelligenceServiceClient 
 . 
 annotateVideoAsync 
 ( 
 inputUri 
 , 
  
 features 
 ). 
 get 
 (); 
  
 } 
  
 

StreamingVideoIntelligenceServiceClient

Service Description: Service that implements streaming Video Intelligence API.

Sample for StreamingVideoIntelligenceServiceClient:

   
 try 
  
 ( 
 StreamingVideoIntelligenceServiceClient 
  
 streamingVideoIntelligenceServiceClient 
  
 = 
  
 StreamingVideoIntelligenceServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 BidiStream<StreamingAnnotateVideoRequest 
 , 
  
 StreamingAnnotateVideoResponse 
>  
 bidiStream 
  
 = 
  
 streamingVideoIntelligenceServiceClient 
 . 
 streamingAnnotateVideoCallable 
 (). 
 call 
 (); 
  
 StreamingAnnotateVideoRequest 
  
 request 
  
 = 
  
 StreamingAnnotateVideoRequest 
 . 
 newBuilder 
 (). 
 build 
 (); 
  
 bidiStream 
 . 
 send 
 ( 
 request 
 ); 
  
 for 
  
 ( 
 StreamingAnnotateVideoResponse 
  
 response 
  
 : 
  
 bidiStream 
 ) 
  
 { 
  
 // Do something when a response is received. 
  
 } 
  
 } 
  
 

com.google.cloud.videointelligence.v1p3beta1.stub

Design a Mobile Site
View Site in Mobile | Classic
Share by: