Search in sources :

Example 1 with StartLabelDetectionResult

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

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartLabelDetectionRequest (com.amazonaws.services.rekognition.model.StartLabelDetectionRequest)1 StartLabelDetectionResult (com.amazonaws.services.rekognition.model.StartLabelDetectionResult)1 Video (com.amazonaws.services.rekognition.model.Video)1