Search in sources :

Example 1 with StartFaceSearchResult

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();
}
Also used : StartFaceSearchResult(com.amazonaws.services.rekognition.model.StartFaceSearchResult) Video(com.amazonaws.services.rekognition.model.Video) StartFaceSearchRequest(com.amazonaws.services.rekognition.model.StartFaceSearchRequest) S3Object(com.amazonaws.services.rekognition.model.S3Object)

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartFaceSearchRequest (com.amazonaws.services.rekognition.model.StartFaceSearchRequest)1 StartFaceSearchResult (com.amazonaws.services.rekognition.model.StartFaceSearchResult)1 Video (com.amazonaws.services.rekognition.model.Video)1