Skip to content

Commit 4d33f67

Browse files
awsmobilesdkpalpatim
authored andcommitted
[aws-android-sdk-rekognition] Update models to latest (#1070)
1 parent 661c175 commit 4d33f67

File tree

98 files changed

+5568
-3171
lines changed

Some content is hidden

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

98 files changed

+5568
-3171
lines changed

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

Lines changed: 332 additions & 187 deletions
Large diffs are not rendered by default.

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

Lines changed: 366 additions & 199 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
* Structure containing the estimated age range, in years, for a face.
2323
* </p>
2424
* <p>
25-
* Rekognition estimates an age-range for faces detected in the input image.
26-
* Estimated age ranges can overlap; a face of a 5 year old may have an
27-
* estimated range of 4-6 whilst the face of a 6 year old may have an estimated
28-
* range of 4-8.
25+
* Amazon Rekognition estimates an age range for faces detected in the input
26+
* image. Estimated age ranges can overlap. A face of a 5-year-old might have an
27+
* estimated range of 4-6, while the face of a 6-year-old might have an
28+
* estimated range of 4-8.
2929
* </p>
3030
*/
3131
public class AgeRange implements Serializable {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* <p>
22-
* Identifies the bounding box around the object, face or text. The
22+
* Identifies the bounding box around the label, face, or text. The
2323
* <code>left</code> (x-coordinate) and <code>top</code> (y-coordinate) are
2424
* coordinates representing the top and left sides of the bounding box. Note
2525
* that the upper-left corner of the image is the origin (0,0).

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* Provides information about a celebrity recognized by the operation.
22+
* Provides information about a celebrity recognized by the
23+
* <a>RecognizeCelebrities</a> operation.
2324
* </p>
2425
*/
2526
public class Celebrity implements Serializable {
@@ -59,8 +60,8 @@ public class Celebrity implements Serializable {
5960

6061
/**
6162
* <p>
62-
* The confidence, in percentage, that Rekognition has that the recognized
63-
* face is the celebrity.
63+
* The confidence, in percentage, that Amazon Rekognition has that the
64+
* recognized face is the celebrity.
6465
* </p>
6566
* <p>
6667
* <b>Constraints:</b><br/>
@@ -310,16 +311,16 @@ public Celebrity withFace(ComparedFace face) {
310311

311312
/**
312313
* <p>
313-
* The confidence, in percentage, that Rekognition has that the recognized
314-
* face is the celebrity.
314+
* The confidence, in percentage, that Amazon Rekognition has that the
315+
* recognized face is the celebrity.
315316
* </p>
316317
* <p>
317318
* <b>Constraints:</b><br/>
318319
* <b>Length: </b>0 - 100<br/>
319320
*
320321
* @return <p>
321-
* The confidence, in percentage, that Rekognition has that the
322-
* recognized face is the celebrity.
322+
* The confidence, in percentage, that Amazon Rekognition has that
323+
* the recognized face is the celebrity.
323324
* </p>
324325
*/
325326
public Float getMatchConfidence() {
@@ -328,16 +329,16 @@ public Float getMatchConfidence() {
328329

329330
/**
330331
* <p>
331-
* The confidence, in percentage, that Rekognition has that the recognized
332-
* face is the celebrity.
332+
* The confidence, in percentage, that Amazon Rekognition has that the
333+
* recognized face is the celebrity.
333334
* </p>
334335
* <p>
335336
* <b>Constraints:</b><br/>
336337
* <b>Length: </b>0 - 100<br/>
337338
*
338339
* @param matchConfidence <p>
339-
* The confidence, in percentage, that Rekognition has that the
340-
* recognized face is the celebrity.
340+
* The confidence, in percentage, that Amazon Rekognition has
341+
* that the recognized face is the celebrity.
341342
* </p>
342343
*/
343344
public void setMatchConfidence(Float matchConfidence) {
@@ -346,8 +347,8 @@ public void setMatchConfidence(Float matchConfidence) {
346347

347348
/**
348349
* <p>
349-
* The confidence, in percentage, that Rekognition has that the recognized
350-
* face is the celebrity.
350+
* The confidence, in percentage, that Amazon Rekognition has that the
351+
* recognized face is the celebrity.
351352
* </p>
352353
* <p>
353354
* Returns a reference to this object so that method calls can be chained
@@ -357,8 +358,8 @@ public void setMatchConfidence(Float matchConfidence) {
357358
* <b>Length: </b>0 - 100<br/>
358359
*
359360
* @param matchConfidence <p>
360-
* The confidence, in percentage, that Rekognition has that the
361-
* recognized face is the celebrity.
361+
* The confidence, in percentage, that Amazon Rekognition has
362+
* that the recognized face is the celebrity.
362363
* </p>
363364
* @return A reference to this updated object so that method calls can be
364365
* chained together.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* <p>
2222
* Provides information about a face in a target image that matches the source
23-
* image face analysed by <code>CompareFaces</code>. The <code>Face</code>
23+
* image face analyzed by <code>CompareFaces</code>. The <code>Face</code>
2424
* property contains the bounding box of the face in the target image. The
2525
* <code>Similarity</code> property is the confidence that the source image face
2626
* matches the face in the bounding box.

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

Lines changed: 99 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
* </note>
3333
* <p>
3434
* You pass the input and target images either as base64-encoded image bytes or
35-
* as a references to images in an Amazon S3 bucket. If you use the Amazon CLI
36-
* to call Amazon Rekognition operations, passing image bytes is not supported.
37-
* The image must be either a PNG or JPEG formatted file.
35+
* as references to images in an Amazon S3 bucket. If you use the AWS CLI to
36+
* call Amazon Rekognition operations, passing image bytes isn't supported. The
37+
* image must be formatted as a PNG or JPEG file.
3838
* </p>
3939
* <p>
4040
* In response, the operation returns an array of face matches ordered by
@@ -91,6 +91,12 @@ public class CompareFacesRequest extends AmazonWebServiceRequest implements Seri
9191
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
9292
* image bytes is not supported.
9393
* </p>
94+
* <p>
95+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
96+
* need to base64-encode image bytes passed using the <code>Bytes</code>
97+
* field. For more information, see Images in the Amazon Rekognition
98+
* developer guide.
99+
* </p>
94100
*/
95101
private Image sourceImage;
96102

@@ -100,6 +106,12 @@ public class CompareFacesRequest extends AmazonWebServiceRequest implements Seri
100106
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
101107
* image bytes is not supported.
102108
* </p>
109+
* <p>
110+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
111+
* need to base64-encode image bytes passed using the <code>Bytes</code>
112+
* field. For more information, see Images in the Amazon Rekognition
113+
* developer guide.
114+
* </p>
103115
*/
104116
private Image targetImage;
105117

@@ -132,11 +144,23 @@ public CompareFacesRequest() {
132144
* you use the AWS CLI to call Amazon Rekognition operations,
133145
* passing base64-encoded image bytes is not supported.
134146
* </p>
147+
* <p>
148+
* If you are using an AWS SDK to call Amazon Rekognition, you
149+
* might not need to base64-encode image bytes passed using the
150+
* <code>Bytes</code> field. For more information, see Images in
151+
* the Amazon Rekognition developer guide.
152+
* </p>
135153
* @param targetImage <p>
136154
* The target image as base64-encoded bytes or an S3 object. If
137155
* you use the AWS CLI to call Amazon Rekognition operations,
138156
* passing base64-encoded image bytes is not supported.
139157
* </p>
158+
* <p>
159+
* If you are using an AWS SDK to call Amazon Rekognition, you
160+
* might not need to base64-encode image bytes passed using the
161+
* <code>Bytes</code> field. For more information, see Images in
162+
* the Amazon Rekognition developer guide.
163+
* </p>
140164
*/
141165
public CompareFacesRequest(Image sourceImage, Image targetImage) {
142166
setSourceImage(sourceImage);
@@ -149,12 +173,24 @@ public CompareFacesRequest(Image sourceImage, Image targetImage) {
149173
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
150174
* image bytes is not supported.
151175
* </p>
176+
* <p>
177+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
178+
* need to base64-encode image bytes passed using the <code>Bytes</code>
179+
* field. For more information, see Images in the Amazon Rekognition
180+
* developer guide.
181+
* </p>
152182
*
153183
* @return <p>
154184
* The input image as base64-encoded bytes or an S3 object. If you
155185
* use the AWS CLI to call Amazon Rekognition operations, passing
156186
* base64-encoded image bytes is not supported.
157187
* </p>
188+
* <p>
189+
* If you are using an AWS SDK to call Amazon Rekognition, you might
190+
* not need to base64-encode image bytes passed using the
191+
* <code>Bytes</code> field. For more information, see Images in the
192+
* Amazon Rekognition developer guide.
193+
* </p>
158194
*/
159195
public Image getSourceImage() {
160196
return sourceImage;
@@ -166,12 +202,24 @@ public Image getSourceImage() {
166202
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
167203
* image bytes is not supported.
168204
* </p>
205+
* <p>
206+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
207+
* need to base64-encode image bytes passed using the <code>Bytes</code>
208+
* field. For more information, see Images in the Amazon Rekognition
209+
* developer guide.
210+
* </p>
169211
*
170212
* @param sourceImage <p>
171213
* The input image as base64-encoded bytes or an S3 object. If
172214
* you use the AWS CLI to call Amazon Rekognition operations,
173215
* passing base64-encoded image bytes is not supported.
174216
* </p>
217+
* <p>
218+
* If you are using an AWS SDK to call Amazon Rekognition, you
219+
* might not need to base64-encode image bytes passed using the
220+
* <code>Bytes</code> field. For more information, see Images in
221+
* the Amazon Rekognition developer guide.
222+
* </p>
175223
*/
176224
public void setSourceImage(Image sourceImage) {
177225
this.sourceImage = sourceImage;
@@ -184,6 +232,12 @@ public void setSourceImage(Image sourceImage) {
184232
* image bytes is not supported.
185233
* </p>
186234
* <p>
235+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
236+
* need to base64-encode image bytes passed using the <code>Bytes</code>
237+
* field. For more information, see Images in the Amazon Rekognition
238+
* developer guide.
239+
* </p>
240+
* <p>
187241
* Returns a reference to this object so that method calls can be chained
188242
* together.
189243
*
@@ -192,6 +246,12 @@ public void setSourceImage(Image sourceImage) {
192246
* you use the AWS CLI to call Amazon Rekognition operations,
193247
* passing base64-encoded image bytes is not supported.
194248
* </p>
249+
* <p>
250+
* If you are using an AWS SDK to call Amazon Rekognition, you
251+
* might not need to base64-encode image bytes passed using the
252+
* <code>Bytes</code> field. For more information, see Images in
253+
* the Amazon Rekognition developer guide.
254+
* </p>
195255
* @return A reference to this updated object so that method calls can be
196256
* chained together.
197257
*/
@@ -206,12 +266,24 @@ public CompareFacesRequest withSourceImage(Image sourceImage) {
206266
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
207267
* image bytes is not supported.
208268
* </p>
269+
* <p>
270+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
271+
* need to base64-encode image bytes passed using the <code>Bytes</code>
272+
* field. For more information, see Images in the Amazon Rekognition
273+
* developer guide.
274+
* </p>
209275
*
210276
* @return <p>
211277
* The target image as base64-encoded bytes or an S3 object. If you
212278
* use the AWS CLI to call Amazon Rekognition operations, passing
213279
* base64-encoded image bytes is not supported.
214280
* </p>
281+
* <p>
282+
* If you are using an AWS SDK to call Amazon Rekognition, you might
283+
* not need to base64-encode image bytes passed using the
284+
* <code>Bytes</code> field. For more information, see Images in the
285+
* Amazon Rekognition developer guide.
286+
* </p>
215287
*/
216288
public Image getTargetImage() {
217289
return targetImage;
@@ -223,12 +295,24 @@ public Image getTargetImage() {
223295
* AWS CLI to call Amazon Rekognition operations, passing base64-encoded
224296
* image bytes is not supported.
225297
* </p>
298+
* <p>
299+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
300+
* need to base64-encode image bytes passed using the <code>Bytes</code>
301+
* field. For more information, see Images in the Amazon Rekognition
302+
* developer guide.
303+
* </p>
226304
*
227305
* @param targetImage <p>
228306
* The target image as base64-encoded bytes or an S3 object. If
229307
* you use the AWS CLI to call Amazon Rekognition operations,
230308
* passing base64-encoded image bytes is not supported.
231309
* </p>
310+
* <p>
311+
* If you are using an AWS SDK to call Amazon Rekognition, you
312+
* might not need to base64-encode image bytes passed using the
313+
* <code>Bytes</code> field. For more information, see Images in
314+
* the Amazon Rekognition developer guide.
315+
* </p>
232316
*/
233317
public void setTargetImage(Image targetImage) {
234318
this.targetImage = targetImage;
@@ -241,6 +325,12 @@ public void setTargetImage(Image targetImage) {
241325
* image bytes is not supported.
242326
* </p>
243327
* <p>
328+
* If you are using an AWS SDK to call Amazon Rekognition, you might not
329+
* need to base64-encode image bytes passed using the <code>Bytes</code>
330+
* field. For more information, see Images in the Amazon Rekognition
331+
* developer guide.
332+
* </p>
333+
* <p>
244334
* Returns a reference to this object so that method calls can be chained
245335
* together.
246336
*
@@ -249,6 +339,12 @@ public void setTargetImage(Image targetImage) {
249339
* you use the AWS CLI to call Amazon Rekognition operations,
250340
* passing base64-encoded image bytes is not supported.
251341
* </p>
342+
* <p>
343+
* If you are using an AWS SDK to call Amazon Rekognition, you
344+
* might not need to base64-encode image bytes passed using the
345+
* <code>Bytes</code> field. For more information, see Images in
346+
* the Amazon Rekognition developer guide.
347+
* </p>
252348
* @return A reference to this updated object so that method calls can be
253349
* chained together.
254350
*/

0 commit comments

Comments
 (0)