Skip to content

Commit 5163ccd

Browse files
feat(aws-android-sdk-rekognition): update models to latest (#2957)
Co-authored-by: Erica Eaton <[email protected]>
1 parent 5e158f0 commit 5163ccd

File tree

9 files changed

+314
-54
lines changed

9 files changed

+314
-54
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,6 +3314,10 @@ StartPersonTrackingResult startPersonTracking(
33143314
* </p>
33153315
* </note>
33163316
* <p>
3317+
* For more information, see <i>Running a trained Amazon Rekognition Custom
3318+
* Labels model</i> in the Amazon Rekognition Custom Labels Guide.
3319+
* </p>
3320+
* <p>
33173321
* This operation requires permissions to perform the
33183322
* <code>rekognition:StartProjectVersion</code> action.
33193323
* </p>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4899,6 +4899,10 @@ public StartPersonTrackingResult startPersonTracking(
48994899
* </p>
49004900
* </note>
49014901
* <p>
4902+
* For more information, see <i>Running a trained Amazon Rekognition Custom
4903+
* Labels model</i> in the Amazon Rekognition Custom Labels Guide.
4904+
* </p>
4905+
* <p>
49024906
* This operation requires permissions to perform the
49034907
* <code>rekognition:StartProjectVersion</code> action.
49044908
* </p>

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

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ public class CreateStreamProcessorRequest extends AmazonWebServiceRequest implem
183183
/**
184184
* <p>
185185
* Specifies locations in the frames where Amazon Rekognition checks for
186-
* objects or people. You can specify up to 10 regions of interest. This is
187-
* an optional parameter for label detection stream processors and should
188-
* not be used to create a face search stream processor.
186+
* objects or people. You can specify up to 10 regions of interest, and each
187+
* region has either a polygon or a bounding box. This is an optional
188+
* parameter for label detection stream processors and should not be used to
189+
* create a face search stream processor.
189190
* </p>
190191
*/
191192
private java.util.List<RegionOfInterest> regionsOfInterest;
@@ -910,17 +911,19 @@ public CreateStreamProcessorRequest withKmsKeyId(String kmsKeyId) {
910911
/**
911912
* <p>
912913
* Specifies locations in the frames where Amazon Rekognition checks for
913-
* objects or people. You can specify up to 10 regions of interest. This is
914-
* an optional parameter for label detection stream processors and should
915-
* not be used to create a face search stream processor.
914+
* objects or people. You can specify up to 10 regions of interest, and each
915+
* region has either a polygon or a bounding box. This is an optional
916+
* parameter for label detection stream processors and should not be used to
917+
* create a face search stream processor.
916918
* </p>
917919
*
918920
* @return <p>
919921
* Specifies locations in the frames where Amazon Rekognition checks
920922
* for objects or people. You can specify up to 10 regions of
921-
* interest. This is an optional parameter for label detection
922-
* stream processors and should not be used to create a face search
923-
* stream processor.
923+
* interest, and each region has either a polygon or a bounding box.
924+
* This is an optional parameter for label detection stream
925+
* processors and should not be used to create a face search stream
926+
* processor.
924927
* </p>
925928
*/
926929
public java.util.List<RegionOfInterest> getRegionsOfInterest() {
@@ -930,17 +933,19 @@ public java.util.List<RegionOfInterest> getRegionsOfInterest() {
930933
/**
931934
* <p>
932935
* Specifies locations in the frames where Amazon Rekognition checks for
933-
* objects or people. You can specify up to 10 regions of interest. This is
934-
* an optional parameter for label detection stream processors and should
935-
* not be used to create a face search stream processor.
936+
* objects or people. You can specify up to 10 regions of interest, and each
937+
* region has either a polygon or a bounding box. This is an optional
938+
* parameter for label detection stream processors and should not be used to
939+
* create a face search stream processor.
936940
* </p>
937941
*
938942
* @param regionsOfInterest <p>
939943
* Specifies locations in the frames where Amazon Rekognition
940944
* checks for objects or people. You can specify up to 10 regions
941-
* of interest. This is an optional parameter for label detection
942-
* stream processors and should not be used to create a face
943-
* search stream processor.
945+
* of interest, and each region has either a polygon or a
946+
* bounding box. This is an optional parameter for label
947+
* detection stream processors and should not be used to create a
948+
* face search stream processor.
944949
* </p>
945950
*/
946951
public void setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest) {
@@ -955,9 +960,10 @@ public void setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsO
955960
/**
956961
* <p>
957962
* Specifies locations in the frames where Amazon Rekognition checks for
958-
* objects or people. You can specify up to 10 regions of interest. This is
959-
* an optional parameter for label detection stream processors and should
960-
* not be used to create a face search stream processor.
963+
* objects or people. You can specify up to 10 regions of interest, and each
964+
* region has either a polygon or a bounding box. This is an optional
965+
* parameter for label detection stream processors and should not be used to
966+
* create a face search stream processor.
961967
* </p>
962968
* <p>
963969
* Returns a reference to this object so that method calls can be chained
@@ -966,9 +972,10 @@ public void setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsO
966972
* @param regionsOfInterest <p>
967973
* Specifies locations in the frames where Amazon Rekognition
968974
* checks for objects or people. You can specify up to 10 regions
969-
* of interest. This is an optional parameter for label detection
970-
* stream processors and should not be used to create a face
971-
* search stream processor.
975+
* of interest, and each region has either a polygon or a
976+
* bounding box. This is an optional parameter for label
977+
* detection stream processors and should not be used to create a
978+
* face search stream processor.
972979
* </p>
973980
* @return A reference to this updated object so that method calls can be
974981
* chained together.
@@ -987,9 +994,10 @@ public CreateStreamProcessorRequest withRegionsOfInterest(RegionOfInterest... re
987994
/**
988995
* <p>
989996
* Specifies locations in the frames where Amazon Rekognition checks for
990-
* objects or people. You can specify up to 10 regions of interest. This is
991-
* an optional parameter for label detection stream processors and should
992-
* not be used to create a face search stream processor.
997+
* objects or people. You can specify up to 10 regions of interest, and each
998+
* region has either a polygon or a bounding box. This is an optional
999+
* parameter for label detection stream processors and should not be used to
1000+
* create a face search stream processor.
9931001
* </p>
9941002
* <p>
9951003
* Returns a reference to this object so that method calls can be chained
@@ -998,9 +1006,10 @@ public CreateStreamProcessorRequest withRegionsOfInterest(RegionOfInterest... re
9981006
* @param regionsOfInterest <p>
9991007
* Specifies locations in the frames where Amazon Rekognition
10001008
* checks for objects or people. You can specify up to 10 regions
1001-
* of interest. This is an optional parameter for label detection
1002-
* stream processors and should not be used to create a face
1003-
* search stream processor.
1009+
* of interest, and each region has either a polygon or a
1010+
* bounding box. This is an optional parameter for label
1011+
* detection stream processors and should not be used to create a
1012+
* face search stream processor.
10041013
* </p>
10051014
* @return A reference to this updated object so that method calls can be
10061015
* chained together.

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

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ public class ProjectVersionDescription implements Serializable {
140140
*/
141141
private String kmsKeyId;
142142

143+
/**
144+
* <p>
145+
* The maximum number of inference units Amazon Rekognition Custom Labels
146+
* uses to auto-scale the model. For more information, see
147+
* <a>StartProjectVersion</a>.
148+
* </p>
149+
* <p>
150+
* <b>Constraints:</b><br/>
151+
* <b>Range: </b>1 - <br/>
152+
*/
153+
private Integer maxInferenceUnits;
154+
143155
/**
144156
* <p>
145157
* The Amazon Resource Name (ARN) of the model version.
@@ -870,6 +882,72 @@ public ProjectVersionDescription withKmsKeyId(String kmsKeyId) {
870882
return this;
871883
}
872884

885+
/**
886+
* <p>
887+
* The maximum number of inference units Amazon Rekognition Custom Labels
888+
* uses to auto-scale the model. For more information, see
889+
* <a>StartProjectVersion</a>.
890+
* </p>
891+
* <p>
892+
* <b>Constraints:</b><br/>
893+
* <b>Range: </b>1 - <br/>
894+
*
895+
* @return <p>
896+
* The maximum number of inference units Amazon Rekognition Custom
897+
* Labels uses to auto-scale the model. For more information, see
898+
* <a>StartProjectVersion</a>.
899+
* </p>
900+
*/
901+
public Integer getMaxInferenceUnits() {
902+
return maxInferenceUnits;
903+
}
904+
905+
/**
906+
* <p>
907+
* The maximum number of inference units Amazon Rekognition Custom Labels
908+
* uses to auto-scale the model. For more information, see
909+
* <a>StartProjectVersion</a>.
910+
* </p>
911+
* <p>
912+
* <b>Constraints:</b><br/>
913+
* <b>Range: </b>1 - <br/>
914+
*
915+
* @param maxInferenceUnits <p>
916+
* The maximum number of inference units Amazon Rekognition
917+
* Custom Labels uses to auto-scale the model. For more
918+
* information, see <a>StartProjectVersion</a>.
919+
* </p>
920+
*/
921+
public void setMaxInferenceUnits(Integer maxInferenceUnits) {
922+
this.maxInferenceUnits = maxInferenceUnits;
923+
}
924+
925+
/**
926+
* <p>
927+
* The maximum number of inference units Amazon Rekognition Custom Labels
928+
* uses to auto-scale the model. For more information, see
929+
* <a>StartProjectVersion</a>.
930+
* </p>
931+
* <p>
932+
* Returns a reference to this object so that method calls can be chained
933+
* together.
934+
* <p>
935+
* <b>Constraints:</b><br/>
936+
* <b>Range: </b>1 - <br/>
937+
*
938+
* @param maxInferenceUnits <p>
939+
* The maximum number of inference units Amazon Rekognition
940+
* Custom Labels uses to auto-scale the model. For more
941+
* information, see <a>StartProjectVersion</a>.
942+
* </p>
943+
* @return A reference to this updated object so that method calls can be
944+
* chained together.
945+
*/
946+
public ProjectVersionDescription withMaxInferenceUnits(Integer maxInferenceUnits) {
947+
this.maxInferenceUnits = maxInferenceUnits;
948+
return this;
949+
}
950+
873951
/**
874952
* Returns a string representation of this object; useful for testing and
875953
* debugging.
@@ -906,7 +984,9 @@ public String toString() {
906984
if (getManifestSummary() != null)
907985
sb.append("ManifestSummary: " + getManifestSummary() + ",");
908986
if (getKmsKeyId() != null)
909-
sb.append("KmsKeyId: " + getKmsKeyId());
987+
sb.append("KmsKeyId: " + getKmsKeyId() + ",");
988+
if (getMaxInferenceUnits() != null)
989+
sb.append("MaxInferenceUnits: " + getMaxInferenceUnits());
910990
sb.append("}");
911991
return sb.toString();
912992
}
@@ -942,6 +1022,8 @@ public int hashCode() {
9421022
hashCode = prime * hashCode
9431023
+ ((getManifestSummary() == null) ? 0 : getManifestSummary().hashCode());
9441024
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
1025+
hashCode = prime * hashCode
1026+
+ ((getMaxInferenceUnits() == null) ? 0 : getMaxInferenceUnits().hashCode());
9451027
return hashCode;
9461028
}
9471029

@@ -1021,6 +1103,11 @@ public boolean equals(Object obj) {
10211103
return false;
10221104
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
10231105
return false;
1106+
if (other.getMaxInferenceUnits() == null ^ this.getMaxInferenceUnits() == null)
1107+
return false;
1108+
if (other.getMaxInferenceUnits() != null
1109+
&& other.getMaxInferenceUnits().equals(this.getMaxInferenceUnits()) == false)
1110+
return false;
10241111
return true;
10251112
}
10261113
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* <p>
2222
* Specifies a location within the frame that Rekognition checks for objects of
2323
* interest such as text, labels, or faces. It uses a <code>BoundingBox</code>
24-
* or object or <code>Polygon</code> to set a region of the screen.
24+
* or <code>Polygon</code> to set a region of the screen.
2525
* </p>
2626
* <p>
2727
* A word, face, or label is included in the region if it is more than half in

0 commit comments

Comments
 (0)