Search in sources :

Example 1 with StartFaceDetectionResult

use of com.amazonaws.services.rekognition.model.StartFaceDetectionResult in project aws-doc-sdk-examples by awsdocs.

the class VideoDetect method StartFaces.

// Starts face detection in a stored video by calling StartFaceDetection.
// bucket is the S3 bucket that contains the video.
// video is the video filename.
private static void StartFaces(String bucket, String video) throws Exception {
    StartFaceDetectionRequest req = new StartFaceDetectionRequest().withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withNotificationChannel(channel);
    StartFaceDetectionResult startLabelDetectionResult = rek.startFaceDetection(req);
    startJobId = startLabelDetectionResult.getJobId();
}
Also used : StartFaceDetectionRequest(com.amazonaws.services.rekognition.model.StartFaceDetectionRequest) Video(com.amazonaws.services.rekognition.model.Video) S3Object(com.amazonaws.services.rekognition.model.S3Object) StartFaceDetectionResult(com.amazonaws.services.rekognition.model.StartFaceDetectionResult)

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartFaceDetectionRequest (com.amazonaws.services.rekognition.model.StartFaceDetectionRequest)1 StartFaceDetectionResult (com.amazonaws.services.rekognition.model.StartFaceDetectionResult)1 Video (com.amazonaws.services.rekognition.model.Video)1