Search in sources :

Example 1 with StartCelebrityRecognitionRequest

use of com.amazonaws.services.rekognition.model.StartCelebrityRecognitionRequest in project aws-doc-sdk-examples by awsdocs.

the class VideoDetect method StartCelebrities.

// Starts the detection of celebrities in a video by calling StartCelebrityRecognition.
// bucket is the S3 bucket that contains the video.
// video is the video filename.
private static void StartCelebrities(String bucket, String video) throws Exception {
    StartCelebrityRecognitionRequest req = new StartCelebrityRecognitionRequest().withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withNotificationChannel(channel);
    StartCelebrityRecognitionResult startCelebrityRecognitionResult = rek.startCelebrityRecognition(req);
    startJobId = startCelebrityRecognitionResult.getJobId();
}
Also used : Video(com.amazonaws.services.rekognition.model.Video) S3Object(com.amazonaws.services.rekognition.model.S3Object) StartCelebrityRecognitionRequest(com.amazonaws.services.rekognition.model.StartCelebrityRecognitionRequest) StartCelebrityRecognitionResult(com.amazonaws.services.rekognition.model.StartCelebrityRecognitionResult)

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartCelebrityRecognitionRequest (com.amazonaws.services.rekognition.model.StartCelebrityRecognitionRequest)1 StartCelebrityRecognitionResult (com.amazonaws.services.rekognition.model.StartCelebrityRecognitionResult)1 Video (com.amazonaws.services.rekognition.model.Video)1