use of com.amazonaws.services.rekognition.model.StartFaceDetectionRequest 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();
}
Aggregations