@@ -133,13 +133,6 @@ public interface AmazonRekognition {
133133 * or <code>HIGH</code>. If you do not want to filter detected faces,
134134 * specify <code>NONE</code>. The default value is <code>NONE</code>.
135135 * </p>
136- * <note>
137- * <p>
138- * To use quality filtering, you need a collection associated with version 3
139- * of the face model or higher. To get the version of the face model
140- * associated with a collection, call <a>DescribeCollection</a>.
141- * </p>
142- * </note>
143136 * <p>
144137 * If the image doesn't contain Exif metadata, <code>CompareFaces</code>
145138 * returns orientation information for the source and target images. Use
@@ -428,8 +421,8 @@ DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest)
428421 /**
429422 * <p>
430423 * Deletes an Amazon Rekognition Custom Labels project. To delete a project
431- * you must first delete all versions of the model associated with the
432- * project. To delete a version of a model, see <a>DeleteProjectVersion</a>.
424+ * you must first delete all models associated with the project. To delete a
425+ * model, see <a>DeleteProjectVersion</a>.
433426 * </p>
434427 * <p>
435428 * This operation requires permissions to perform the
@@ -459,13 +452,14 @@ DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectRequest)
459452
460453 /**
461454 * <p>
462- * Deletes a version of a model.
455+ * Deletes an Amazon Rekognition Custom Labels model.
463456 * </p>
464457 * <p>
465- * You must first stop the model before you can delete it . To check if a
466- * model is running , use the <code>Status</code> field returned from
458+ * You can't delete a model if it is running or if it is training . To check
459+ * the status of a model , use the <code>Status</code> field returned from
467460 * <a>DescribeProjectVersions</a>. To stop a running model call
468- * <a>StopProjectVersion</a>.
461+ * <a>StopProjectVersion</a>. If the model is training, wait until it
462+ * finishes.
469463 * </p>
470464 * <p>
471465 * This operation requires permissions to perform the
@@ -1478,6 +1472,77 @@ GetLabelDetectionResult getLabelDetection(GetLabelDetectionRequest getLabelDetec
14781472 GetPersonTrackingResult getPersonTracking (GetPersonTrackingRequest getPersonTrackingRequest )
14791473 throws AmazonClientException , AmazonServiceException ;
14801474
1475+ /**
1476+ * <p>
1477+ * Gets the segment detection results of a Amazon Rekognition Video analysis
1478+ * started by <a>StartSegmentDetection</a>.
1479+ * </p>
1480+ * <p>
1481+ * Segment detection with Amazon Rekognition Video is an asynchronous
1482+ * operation. You start segment detection by calling
1483+ * <a>StartSegmentDetection</a> which returns a job identifier (
1484+ * <code>JobId</code>). When the segment detection operation finishes,
1485+ * Amazon Rekognition publishes a completion status to the Amazon Simple
1486+ * Notification Service topic registered in the initial call to
1487+ * <code>StartSegmentDetection</code>. To get the results of the segment
1488+ * detection operation, first check that the status value published to the
1489+ * Amazon SNS topic is <code>SUCCEEDED</code>. if so, call
1490+ * <code>GetSegmentDetection</code> and pass the job identifier (
1491+ * <code>JobId</code>) from the initial call of
1492+ * <code>StartSegmentDetection</code>.
1493+ * </p>
1494+ * <p>
1495+ * <code>GetSegmentDetection</code> returns detected segments in an array (
1496+ * <code>Segments</code>) of <a>SegmentDetection</a> objects.
1497+ * <code>Segments</code> is sorted by the segment types specified in the
1498+ * <code>SegmentTypes</code> input parameter of
1499+ * <code>StartSegmentDetection</code>. Each element of the array includes
1500+ * the detected segment, the precentage confidence in the acuracy of the
1501+ * detected segment, the type of the segment, and the frame in which the
1502+ * segment was detected.
1503+ * </p>
1504+ * <p>
1505+ * Use <code>SelectedSegmentTypes</code> to find out the type of segment
1506+ * detection requested in the call to <code>StartSegmentDetection</code>.
1507+ * </p>
1508+ * <p>
1509+ * Use the <code>MaxResults</code> parameter to limit the number of segment
1510+ * detections returned. If there are more results than specified in
1511+ * <code>MaxResults</code>, the value of <code>NextToken</code> in the
1512+ * operation response contains a pagination token for getting the next set
1513+ * of results. To get the next page of results, call
1514+ * <code>GetSegmentDetection</code> and populate the <code>NextToken</code>
1515+ * request parameter with the token value returned from the previous call to
1516+ * <code>GetSegmentDetection</code>.
1517+ * </p>
1518+ * <p>
1519+ * For more information, see Detecting Video Segments in Stored Video in the
1520+ * Amazon Rekognition Developer Guide.
1521+ * </p>
1522+ *
1523+ * @param getSegmentDetectionRequest
1524+ * @return getSegmentDetectionResult The response from the
1525+ * GetSegmentDetection service method, as returned by Amazon
1526+ * Rekognition.
1527+ * @throws AccessDeniedException
1528+ * @throws InternalServerErrorException
1529+ * @throws InvalidParameterException
1530+ * @throws InvalidPaginationTokenException
1531+ * @throws ProvisionedThroughputExceededException
1532+ * @throws ResourceNotFoundException
1533+ * @throws ThrottlingException
1534+ * @throws AmazonClientException If any internal errors are encountered
1535+ * inside the client while attempting to make the request or
1536+ * handle the response. For example if a network connection is
1537+ * not available.
1538+ * @throws AmazonServiceException If an error response is returned by Amazon
1539+ * Rekognition indicating either a problem with the data in the
1540+ * request, or a server side issue.
1541+ */
1542+ GetSegmentDetectionResult getSegmentDetection (
1543+ GetSegmentDetectionRequest getSegmentDetectionRequest ) throws AmazonClientException ,
1544+ AmazonServiceException ;
1545+
14811546 /**
14821547 * <p>
14831548 * Gets the text detection results of a Amazon Rekognition Video analysis
@@ -1582,7 +1647,7 @@ GetTextDetectionResult getTextDetection(GetTextDetectionRequest getTextDetection
15821647 * Developer Guide.
15831648 * </p>
15841649 * <p>
1585- * If you provide the optional <code>ExternalImageID </code> for the input
1650+ * If you provide the optional <code>ExternalImageId </code> for the input
15861651 * image you provided, Amazon Rekognition associates this ID with all faces
15871652 * that it detects. When you call the <a>ListFaces</a> operation, the
15881653 * response returns the external ID. You can use this external image ID to
@@ -1828,11 +1893,11 @@ ListStreamProcessorsResult listStreamProcessors(
18281893 * Developer Guide.
18291894 * </p>
18301895 * <p>
1831- * <code>RecognizeCelebrities</code> returns the 100 largest faces in the
1896+ * <code>RecognizeCelebrities</code> returns the 64 largest faces in the
18321897 * image. It lists recognized celebrities in the <code>CelebrityFaces</code>
18331898 * array and unrecognized faces in the <code>UnrecognizedFaces</code> array.
18341899 * <code>RecognizeCelebrities</code> doesn't return celebrities whose faces
1835- * aren't among the largest 100 faces in the image.
1900+ * aren't among the largest 64 faces in the image.
18361901 * </p>
18371902 * <p>
18381903 * For each celebrity recognized, <code>RecognizeCelebrities</code> returns
@@ -2356,6 +2421,65 @@ StartProjectVersionResult startProjectVersion(
23562421 StartProjectVersionRequest startProjectVersionRequest ) throws AmazonClientException ,
23572422 AmazonServiceException ;
23582423
2424+ /**
2425+ * <p>
2426+ * Starts asynchronous detection of segment detection in a stored video.
2427+ * </p>
2428+ * <p>
2429+ * Amazon Rekognition Video can detect segments in a video stored in an
2430+ * Amazon S3 bucket. Use <a>Video</a> to specify the bucket name and the
2431+ * filename of the video. <code>StartSegmentDetection</code> returns a job
2432+ * identifier (<code>JobId</code>) which you use to get the results of the
2433+ * operation. When segment detection is finished, Amazon Rekognition Video
2434+ * publishes a completion status to the Amazon Simple Notification Service
2435+ * topic that you specify in <code>NotificationChannel</code>.
2436+ * </p>
2437+ * <p>
2438+ * You can use the <code>Filters</code>
2439+ * (<a>StartSegmentDetectionFilters</a>) input parameter to specify the
2440+ * minimum detection confidence returned in the response. Within
2441+ * <code>Filters</code>, use <code>ShotFilter</code>
2442+ * (<a>StartShotDetectionFilter</a>) to filter detected shots. Use
2443+ * <code>TechnicalCueFilter</code> (<a>StartTechnicalCueDetectionFilter</a>)
2444+ * to filter technical cues.
2445+ * </p>
2446+ * <p>
2447+ * To get the results of the segment detection operation, first check that
2448+ * the status value published to the Amazon SNS topic is
2449+ * <code>SUCCEEDED</code>. if so, call <a>GetSegmentDetection</a> and pass
2450+ * the job identifier (<code>JobId</code>) from the initial call to
2451+ * <code>StartSegmentDetection</code>.
2452+ * </p>
2453+ * <p>
2454+ * For more information, see Detecting Video Segments in Stored Video in the
2455+ * Amazon Rekognition Developer Guide.
2456+ * </p>
2457+ *
2458+ * @param startSegmentDetectionRequest
2459+ * @return startSegmentDetectionResult The response from the
2460+ * StartSegmentDetection service method, as returned by Amazon
2461+ * Rekognition.
2462+ * @throws AccessDeniedException
2463+ * @throws IdempotentParameterMismatchException
2464+ * @throws InvalidParameterException
2465+ * @throws InvalidS3ObjectException
2466+ * @throws InternalServerErrorException
2467+ * @throws VideoTooLargeException
2468+ * @throws ProvisionedThroughputExceededException
2469+ * @throws LimitExceededException
2470+ * @throws ThrottlingException
2471+ * @throws AmazonClientException If any internal errors are encountered
2472+ * inside the client while attempting to make the request or
2473+ * handle the response. For example if a network connection is
2474+ * not available.
2475+ * @throws AmazonServiceException If an error response is returned by Amazon
2476+ * Rekognition indicating either a problem with the data in the
2477+ * request, or a server side issue.
2478+ */
2479+ StartSegmentDetectionResult startSegmentDetection (
2480+ StartSegmentDetectionRequest startSegmentDetectionRequest )
2481+ throws AmazonClientException , AmazonServiceException ;
2482+
23592483 /**
23602484 * <p>
23612485 * Starts processing a stream processor. You create a stream processor by
0 commit comments