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();
}
Aggregations