use of com.amazonaws.services.rekognition.model.StartLabelDetectionRequest in project aws-doc-sdk-examples by awsdocs.
the class VideoDetect method StartLabels.
// Starts label detection by calling StartLabelDetection.
// bucket is the S3 bucket that contains the video.
// video is the video filename.
private static void StartLabels(String bucket, String video) throws Exception {
StartLabelDetectionRequest req = new StartLabelDetectionRequest().withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withMinConfidence(50F).withJobTag("DetectingLabels").withNotificationChannel(channel);
StartLabelDetectionResult startLabelDetectionResult = rek.startLabelDetection(req);
startJobId = startLabelDetectionResult.getJobId();
}
Aggregations