Search in sources :

Example 1 with StartContentModerationResult

use of com.amazonaws.services.rekognition.model.StartContentModerationResult 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();
}
Also used : StartContentModerationRequest(com.amazonaws.services.rekognition.model.StartContentModerationRequest) Video(com.amazonaws.services.rekognition.model.Video) StartContentModerationResult(com.amazonaws.services.rekognition.model.StartContentModerationResult) S3Object(com.amazonaws.services.rekognition.model.S3Object)

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartContentModerationRequest (com.amazonaws.services.rekognition.model.StartContentModerationRequest)1 StartContentModerationResult (com.amazonaws.services.rekognition.model.StartContentModerationResult)1 Video (com.amazonaws.services.rekognition.model.Video)1