use of com.amazonaws.services.rekognition.model.StartContentModerationRequest in project aws-doc-sdk-examples by awsdocs.
the class VideoDetect method StartModerationLabels.
// Starts the moderation of content in a video by calling StartContentModeration.
// bucket is the S3 bucket that contains the video.
// video is the video filename.
// ==================================================================
private static void StartModerationLabels(String bucket, String video) throws Exception {
StartContentModerationRequest req = new StartContentModerationRequest().withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withNotificationChannel(channel);
StartContentModerationResult startModerationLabelDetectionResult = rek.startContentModeration(req);
startJobId = startModerationLabelDetectionResult.getJobId();
}
Aggregations