Skip to content

Commit 2c6e785

Browse files
feat(aws-android-sdk-rekognition): update models to latest (#3236)
Co-authored-by: Matt Creaser <[email protected]>
1 parent ed989cc commit 2c6e785

File tree

694 files changed

+4057
-729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

694 files changed

+4057
-729
lines changed

aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java

Lines changed: 100 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -676,6 +676,10 @@ CompareFacesResult compareFaces(CompareFacesRequest compareFacesRequest)
676676
* copy operation has finished when the value of <code>Status</code> is
677677
* <code>COPYING_COMPLETED</code>.
678678
* </p>
679+
* <p>
680+
* This operation requires permissions to perform the
681+
* <code>rekognition:CopyProjectVersion</code> action.
682+
* </p>
679683
*
680684
* @param copyProjectVersionRequest
681685
* @return copyProjectVersionResult The response from the CopyProjectVersion
@@ -812,6 +816,40 @@ CreateCollectionResult createCollection(CreateCollectionRequest createCollection
812816
CreateDatasetResult createDataset(CreateDatasetRequest createDatasetRequest)
813817
throws AmazonClientException, AmazonServiceException;
814818

819+
/**
820+
* <p>
821+
* This API operation initiates a Face Liveness session. It returns a
822+
* <code>SessionId</code>, which you can use to start streaming Face
823+
* Liveness video and get the results for a Face Liveness session. You can
824+
* use the <code>OutputConfig</code> option in the Settings parameter to
825+
* provide an Amazon S3 bucket location. The Amazon S3 bucket stores
826+
* reference images and audit images. You can use
827+
* <code>AuditImagesLimit</code> to limit of audit images returned. This
828+
* number is between 0 and 4. By default, it is set to 0. The limit is best
829+
* effort and based on the duration of the selfie-video.
830+
* </p>
831+
*
832+
* @param createFaceLivenessSessionRequest
833+
* @return createFaceLivenessSessionResult The response from the
834+
* CreateFaceLivenessSession service method, as returned by Amazon
835+
* Rekognition.
836+
* @throws AccessDeniedException
837+
* @throws InternalServerErrorException
838+
* @throws InvalidParameterException
839+
* @throws ThrottlingException
840+
* @throws ProvisionedThroughputExceededException
841+
* @throws AmazonClientException If any internal errors are encountered
842+
* inside the client while attempting to make the request or
843+
* handle the response. For example if a network connection is
844+
* not available.
845+
* @throws AmazonServiceException If an error response is returned by Amazon
846+
* Rekognition indicating either a problem with the data in the
847+
* request, or a server side issue.
848+
*/
849+
CreateFaceLivenessSessionResult createFaceLivenessSession(
850+
CreateFaceLivenessSessionRequest createFaceLivenessSessionRequest)
851+
throws AmazonClientException, AmazonServiceException;
852+
815853
/**
816854
* <p>
817855
* Creates a new Amazon Rekognition Custom Labels project. A project is a
@@ -940,11 +978,11 @@ CreateProjectVersionResult createProjectVersion(
940978
* <p>
941979
* If you are creating a stream processor for detecting faces, you provide
942980
* as input a Kinesis video stream (<code>Input</code>) and a Kinesis data
943-
* stream (<code>Output</code>) stream. You also specify the face
944-
* recognition criteria in <code>Settings</code>. For example, the
945-
* collection containing faces that you want to recognize. After you have
946-
* finished analyzing a streaming video, use <a>StopStreamProcessor</a> to
947-
* stop processing.
981+
* stream (<code>Output</code>) stream for receiving the output. You must
982+
* use the <code>FaceSearch</code> option in <code>Settings</code>,
983+
* specifying the collection that contains the faces you want to recognize.
984+
* After you have finished analyzing a streaming video, use
985+
* <a>StopStreamProcessor</a> to stop processing.
948986
* </p>
949987
* </li>
950988
* <li>
@@ -954,9 +992,10 @@ CreateProjectVersionResult createProjectVersion(
954992
* information (<code>Output</code>), and an Amazon SNS topic ARN (
955993
* <code>NotificationChannel</code>). You can also provide a KMS key ID to
956994
* encrypt the data sent to your Amazon S3 bucket. You specify what you want
957-
* to detect in <code>ConnectedHomeSettings</code>, such as people, packages
958-
* and people, or pets, people, and packages. You can also specify where in
959-
* the frame you want Amazon Rekognition to monitor with
995+
* to detect by using the <code>ConnectedHome</code> option in settings, and
996+
* selecting one of the following: <code>PERSON</code>, <code>PET</code>,
997+
* <code>PACKAGE</code>, <code>ALL</code> You can also specify where in the
998+
* frame you want Amazon Rekognition to monitor with
960999
* <code>RegionsOfInterest</code>. When you run the
9611000
* <a>StartStreamProcessor</a> operation on a label detection stream
9621001
* processor, you input start and stop information to determine the length
@@ -1152,6 +1191,10 @@ DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectRequest)
11521191
* <a>ListProjectPolicies</a>. To attach a project policy to a project, call
11531192
* <a>PutProjectPolicy</a>.
11541193
* </p>
1194+
* <p>
1195+
* This operation requires permissions to perform the
1196+
* <code>rekognition:DeleteProjectPolicy</code> action.
1197+
* </p>
11551198
*
11561199
* @param deleteProjectPolicyRequest
11571200
* @return deleteProjectPolicyResult The response from the
@@ -1592,7 +1635,7 @@ DetectFacesResult detectFaces(DetectFacesRequest detectFacesRequest)
15921635
* </p>
15931636
* <p>
15941637
* For each object, scene, and concept the API returns one or more labels.
1595-
* The API returns the following types of information regarding labels:
1638+
* The API returns the following types of information about labels:
15961639
* </p>
15971640
* <ul>
15981641
* <li>
@@ -1708,8 +1751,7 @@ DetectFacesResult detectFaces(DetectFacesRequest detectFacesRequest)
17081751
* </p>
17091752
* </note>
17101753
* <p>
1711-
* This is a stateless API operation. That is, the operation does not
1712-
* persist any data.
1754+
* This is a stateless API operation that doesn't return any data.
17131755
* </p>
17141756
* <p>
17151757
* This operation requires permissions to perform the
@@ -2264,6 +2306,39 @@ GetContentModerationResult getContentModeration(
22642306
GetFaceDetectionResult getFaceDetection(GetFaceDetectionRequest getFaceDetectionRequest)
22652307
throws AmazonClientException, AmazonServiceException;
22662308

2309+
/**
2310+
* <p>
2311+
* Retrieves the results of a specific Face Liveness session. It requires
2312+
* the <code>sessionId</code> as input, which was created using
2313+
* <code>CreateFaceLivenessSession</code>. Returns the corresponding Face
2314+
* Liveness confidence score, a reference image that includes a face
2315+
* bounding box, and audit images that also contain face bounding boxes. The
2316+
* Face Liveness confidence score ranges from 0 to 100. The reference image
2317+
* can optionally be returned.
2318+
* </p>
2319+
*
2320+
* @param getFaceLivenessSessionResultsRequest
2321+
* @return getFaceLivenessSessionResultsResult The response from the
2322+
* GetFaceLivenessSessionResults service method, as returned by
2323+
* Amazon Rekognition.
2324+
* @throws AccessDeniedException
2325+
* @throws InternalServerErrorException
2326+
* @throws InvalidParameterException
2327+
* @throws SessionNotFoundException
2328+
* @throws ThrottlingException
2329+
* @throws ProvisionedThroughputExceededException
2330+
* @throws AmazonClientException If any internal errors are encountered
2331+
* inside the client while attempting to make the request or
2332+
* handle the response. For example if a network connection is
2333+
* not available.
2334+
* @throws AmazonServiceException If an error response is returned by Amazon
2335+
* Rekognition indicating either a problem with the data in the
2336+
* request, or a server side issue.
2337+
*/
2338+
GetFaceLivenessSessionResultsResult getFaceLivenessSessionResults(
2339+
GetFaceLivenessSessionResultsRequest getFaceLivenessSessionResultsRequest)
2340+
throws AmazonClientException, AmazonServiceException;
2341+
22672342
/**
22682343
* <p>
22692344
* Gets the face search results for Amazon Rekognition Video face search
@@ -3020,6 +3095,10 @@ ListFacesResult listFaces(ListFacesRequest listFacesRequest) throws AmazonClient
30203095
* To attach a project policy to a project, call <a>PutProjectPolicy</a>. To
30213096
* remove a project policy from a project, call <a>DeleteProjectPolicy</a>.
30223097
* </p>
3098+
* <p>
3099+
* This operation requires permissions to perform the
3100+
* <code>rekognition:ListProjectPolicies</code> action.
3101+
* </p>
30233102
*
30243103
* @param listProjectPoliciesRequest
30253104
* @return listProjectPoliciesResult The response from the
@@ -3131,6 +3210,10 @@ ListTagsForResourceResult listTagsForResource(
31313210
* <p>
31323211
* You copy a model version by calling <a>CopyProjectVersion</a>.
31333212
* </p>
3213+
* <p>
3214+
* This operation requires permissions to perform the
3215+
* <code>rekognition:PutProjectPolicy</code> action.
3216+
* </p>
31343217
*
31353218
* @param putProjectPolicyRequest
31363219
* @return putProjectPolicyResult The response from the PutProjectPolicy
@@ -3869,6 +3952,10 @@ StartTextDetectionResult startTextDetection(StartTextDetectionRequest startTextD
38693952
* Stops a running model. The operation might take a while to complete. To
38703953
* check the current status, call <a>DescribeProjectVersions</a>.
38713954
* </p>
3955+
* <p>
3956+
* This operation requires permissions to perform the
3957+
* <code>rekognition:StopProjectVersion</code> action.
3958+
* </p>
38723959
*
38733960
* @param stopProjectVersionRequest
38743961
* @return stopProjectVersionResult The response from the StopProjectVersion
@@ -4064,6 +4151,7 @@ UpdateDatasetEntriesResult updateDatasetEntries(
40644151
* @throws InvalidParameterException
40654152
* @throws ResourceNotFoundException
40664153
* @throws ProvisionedThroughputExceededException
4154+
* @throws ResourceInUseException
40674155
* @throws AmazonClientException If any internal errors are encountered
40684156
* inside the client while attempting to make the request or
40694157
* handle the response. For example if a network connection is

0 commit comments

Comments
 (0)