use of com.amazonaws.services.rekognition.model.StartFaceSearchResult in project aws-doc-sdk-examples by awsdocs.
the class VideoDetect method StartFaceSearchCollection.
// Started face collection search in a video by calling StartFaceSearch.
// bucket is the S3 bucket that contains the video.
// video is the video filename.
// Change CollectionId to the ID of the collection that you want to search
private static void StartFaceSearchCollection(String bucket, String video) throws Exception {
StartFaceSearchRequest req = new StartFaceSearchRequest().withCollectionId("CollectionId").withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withNotificationChannel(channel);
StartFaceSearchResult startPersonCollectionSearchResult = rek.startFaceSearch(req);
startJobId = startPersonCollectionSearchResult.getJobId();
}
Aggregations