Search in sources :

Example 1 with StartPersonTrackingResult

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

the class VideoDetect method StartPersons.

// Starts the tracking of people in a video by calling StartPersonTracking
// bucket is the S3 bucket that contains the video.
// video is the video filename.
private static void StartPersons(String bucket, String video) throws Exception {
    int maxResults = 10;
    String paginationToken = null;
    StartPersonTrackingRequest req = new StartPersonTrackingRequest().withVideo(new Video().withS3Object(new S3Object().withBucket(bucket).withName(video))).withNotificationChannel(channel);
    StartPersonTrackingResult startPersonDetectionResult = rek.startPersonTracking(req);
    startJobId = startPersonDetectionResult.getJobId();
}
Also used : Video(com.amazonaws.services.rekognition.model.Video) StartPersonTrackingRequest(com.amazonaws.services.rekognition.model.StartPersonTrackingRequest) S3Object(com.amazonaws.services.rekognition.model.S3Object) StartPersonTrackingResult(com.amazonaws.services.rekognition.model.StartPersonTrackingResult)

Aggregations

S3Object (com.amazonaws.services.rekognition.model.S3Object)1 StartPersonTrackingRequest (com.amazonaws.services.rekognition.model.StartPersonTrackingRequest)1 StartPersonTrackingResult (com.amazonaws.services.rekognition.model.StartPersonTrackingResult)1 Video (com.amazonaws.services.rekognition.model.Video)1