use of com.amazonaws.services.rekognition.model.StartCelebrityRecognitionResult 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();
}
Aggregations