Skip to content

Commit 106a729

Browse files
authored
feat(aws-android-sdk-rekognition): update models to latest (#3279)
1 parent 04db63d commit 106a729

File tree

12 files changed

+728
-189
lines changed

12 files changed

+728
-189
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ DetectCustomLabelsResult detectCustomLabels(DetectCustomLabelsRequest detectCust
15391539
* each face detected, the operation returns face details. These details
15401540
* include a bounding box of the face, a confidence value (that the bounding
15411541
* box contains a face), and a fixed set of attributes such as facial
1542-
* landmarks (for example, coordinates of eye and mouth), presence of beard,
1543-
* sunglasses, and so on.
1542+
* landmarks (for example, coordinates of eye and mouth), pose, presence of
1543+
* facial occlusion, and so on.
15441544
* </p>
15451545
* <p>
15461546
* The face-detection algorithm is most effective on frontal faces. For
@@ -2889,13 +2889,16 @@ GetTextDetectionResult getTextDetection(GetTextDetectionRequest getTextDetection
28892889
* </li>
28902890
* </ul>
28912891
* <p>
2892-
* If you request all facial attributes (by using the
2893-
* <code>detectionAttributes</code> parameter), Amazon Rekognition returns
2894-
* detailed facial attributes, such as facial landmarks (for example,
2895-
* location of eye and mouth) and other facial attributes. If you provide
2896-
* the same image, specify the same collection, and use the same external ID
2897-
* in the <code>IndexFaces</code> operation, Amazon Rekognition doesn't save
2898-
* duplicate face metadata.
2892+
* If you request <code>ALL</code> or specific facial attributes (e.g.,
2893+
* <code>FACE_OCCLUDED</code>) by using the detectionAttributes parameter,
2894+
* Amazon Rekognition returns detailed facial attributes, such as facial
2895+
* landmarks (for example, location of eye and mouth), facial occlusion, and
2896+
* other facial attributes.
2897+
* </p>
2898+
* <p>
2899+
* If you provide the same image, specify the same collection, and use the
2900+
* same external ID in the <code>IndexFaces</code> operation, Amazon
2901+
* Rekognition doesn't save duplicate face metadata.
28992902
* </p>
29002903
* <p/>
29012904
* <p>

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,8 +2378,8 @@ public DetectCustomLabelsResult detectCustomLabels(
23782378
* each face detected, the operation returns face details. These details
23792379
* include a bounding box of the face, a confidence value (that the bounding
23802380
* box contains a face), and a fixed set of attributes such as facial
2381-
* landmarks (for example, coordinates of eye and mouth), presence of beard,
2382-
* sunglasses, and so on.
2381+
* landmarks (for example, coordinates of eye and mouth), pose, presence of
2382+
* facial occlusion, and so on.
23832383
* </p>
23842384
* <p>
23852385
* The face-detection algorithm is most effective on frontal faces. For
@@ -4155,13 +4155,16 @@ public GetTextDetectionResult getTextDetection(GetTextDetectionRequest getTextDe
41554155
* </li>
41564156
* </ul>
41574157
* <p>
4158-
* If you request all facial attributes (by using the
4159-
* <code>detectionAttributes</code> parameter), Amazon Rekognition returns
4160-
* detailed facial attributes, such as facial landmarks (for example,
4161-
* location of eye and mouth) and other facial attributes. If you provide
4162-
* the same image, specify the same collection, and use the same external ID
4163-
* in the <code>IndexFaces</code> operation, Amazon Rekognition doesn't save
4164-
* duplicate face metadata.
4158+
* If you request <code>ALL</code> or specific facial attributes (e.g.,
4159+
* <code>FACE_OCCLUDED</code>) by using the detectionAttributes parameter,
4160+
* Amazon Rekognition returns detailed facial attributes, such as facial
4161+
* landmarks (for example, location of eye and mouth), facial occlusion, and
4162+
* other facial attributes.
4163+
* </p>
4164+
* <p>
4165+
* If you provide the same image, specify the same collection, and use the
4166+
* same external ID in the <code>IndexFaces</code> operation, Amazon
4167+
* Rekognition doesn't save duplicate face metadata.
41654168
* </p>
41664169
* <p/>
41674170
* <p>

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,18 @@
2424
public enum Attribute {
2525

2626
DEFAULT("DEFAULT"),
27-
ALL("ALL");
27+
ALL("ALL"),
28+
AGE_RANGE("AGE_RANGE"),
29+
BEARD("BEARD"),
30+
EMOTIONS("EMOTIONS"),
31+
EYEGLASSES("EYEGLASSES"),
32+
EYES_OPEN("EYES_OPEN"),
33+
GENDER("GENDER"),
34+
MOUTH_OPEN("MOUTH_OPEN"),
35+
MUSTACHE("MUSTACHE"),
36+
FACE_OCCLUDED("FACE_OCCLUDED"),
37+
SMILE("SMILE"),
38+
SUNGLASSES("SUNGLASSES");
2839

2940
private String value;
3041

@@ -42,6 +53,17 @@ public String toString() {
4253
enumMap = new HashMap<String, Attribute>();
4354
enumMap.put("DEFAULT", DEFAULT);
4455
enumMap.put("ALL", ALL);
56+
enumMap.put("AGE_RANGE", AGE_RANGE);
57+
enumMap.put("BEARD", BEARD);
58+
enumMap.put("EMOTIONS", EMOTIONS);
59+
enumMap.put("EYEGLASSES", EYEGLASSES);
60+
enumMap.put("EYES_OPEN", EYES_OPEN);
61+
enumMap.put("GENDER", GENDER);
62+
enumMap.put("MOUTH_OPEN", MOUTH_OPEN);
63+
enumMap.put("MUSTACHE", MUSTACHE);
64+
enumMap.put("FACE_OCCLUDED", FACE_OCCLUDED);
65+
enumMap.put("SMILE", SMILE);
66+
enumMap.put("SUNGLASSES", SUNGLASSES);
4567
}
4668

4769
/**

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public class CreateFaceLivenessSessionRequestSettings implements Serializable {
3030
* audit images will be stored. Note that the Amazon S3 bucket must be
3131
* located in the caller's AWS account and in the same region as the Face
3232
* Liveness end-point. Additionally, the Amazon S3 object keys are
33-
* auto-generated by the Face Liveness system.
33+
* auto-generated by the Face Liveness system. Requires that the caller has
34+
* the <code>s3:PutObject</code> permission on the Amazon S3 bucket.
3435
* </p>
3536
*/
3637
private LivenessOutputConfig outputConfig;
@@ -54,7 +55,8 @@ public class CreateFaceLivenessSessionRequestSettings implements Serializable {
5455
* audit images will be stored. Note that the Amazon S3 bucket must be
5556
* located in the caller's AWS account and in the same region as the Face
5657
* Liveness end-point. Additionally, the Amazon S3 object keys are
57-
* auto-generated by the Face Liveness system.
58+
* auto-generated by the Face Liveness system. Requires that the caller has
59+
* the <code>s3:PutObject</code> permission on the Amazon S3 bucket.
5860
* </p>
5961
*
6062
* @return <p>
@@ -63,6 +65,8 @@ public class CreateFaceLivenessSessionRequestSettings implements Serializable {
6365
* must be located in the caller's AWS account and in the same
6466
* region as the Face Liveness end-point. Additionally, the Amazon
6567
* S3 object keys are auto-generated by the Face Liveness system.
68+
* Requires that the caller has the <code>s3:PutObject</code>
69+
* permission on the Amazon S3 bucket.
6670
* </p>
6771
*/
6872
public LivenessOutputConfig getOutputConfig() {
@@ -75,7 +79,8 @@ public LivenessOutputConfig getOutputConfig() {
7579
* audit images will be stored. Note that the Amazon S3 bucket must be
7680
* located in the caller's AWS account and in the same region as the Face
7781
* Liveness end-point. Additionally, the Amazon S3 object keys are
78-
* auto-generated by the Face Liveness system.
82+
* auto-generated by the Face Liveness system. Requires that the caller has
83+
* the <code>s3:PutObject</code> permission on the Amazon S3 bucket.
7984
* </p>
8085
*
8186
* @param outputConfig <p>
@@ -84,7 +89,8 @@ public LivenessOutputConfig getOutputConfig() {
8489
* Amazon S3 bucket must be located in the caller's AWS account
8590
* and in the same region as the Face Liveness end-point.
8691
* Additionally, the Amazon S3 object keys are auto-generated by
87-
* the Face Liveness system.
92+
* the Face Liveness system. Requires that the caller has the
93+
* <code>s3:PutObject</code> permission on the Amazon S3 bucket.
8894
* </p>
8995
*/
9096
public void setOutputConfig(LivenessOutputConfig outputConfig) {
@@ -97,7 +103,8 @@ public void setOutputConfig(LivenessOutputConfig outputConfig) {
97103
* audit images will be stored. Note that the Amazon S3 bucket must be
98104
* located in the caller's AWS account and in the same region as the Face
99105
* Liveness end-point. Additionally, the Amazon S3 object keys are
100-
* auto-generated by the Face Liveness system.
106+
* auto-generated by the Face Liveness system. Requires that the caller has
107+
* the <code>s3:PutObject</code> permission on the Amazon S3 bucket.
101108
* </p>
102109
* <p>
103110
* Returns a reference to this object so that method calls can be chained
@@ -109,7 +116,8 @@ public void setOutputConfig(LivenessOutputConfig outputConfig) {
109116
* Amazon S3 bucket must be located in the caller's AWS account
110117
* and in the same region as the Face Liveness end-point.
111118
* Additionally, the Amazon S3 object keys are auto-generated by
112-
* the Face Liveness system.
119+
* the Face Liveness system. Requires that the caller has the
120+
* <code>s3:PutObject</code> permission on the Amazon S3 bucket.
113121
* </p>
114122
* @return A reference to this updated object so that method calls can be
115123
* chained together.

0 commit comments

Comments
 (0)