@aws-sdk/client-rekognition 3.33.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/package.json +39 -39
  3. package/dist/es/Rekognition.js +1 -4
  4. package/dist/es/Rekognition.js.map +1 -1
  5. package/dist/es/RekognitionClient.js +1 -9
  6. package/dist/es/RekognitionClient.js.map +1 -1
  7. package/dist/es/commands/CompareFacesCommand.js +2 -89
  8. package/dist/es/commands/CompareFacesCommand.js.map +1 -1
  9. package/dist/es/commands/CreateCollectionCommand.js +2 -39
  10. package/dist/es/commands/CreateCollectionCommand.js.map +1 -1
  11. package/dist/es/commands/CreateProjectCommand.js +2 -29
  12. package/dist/es/commands/CreateProjectCommand.js.map +1 -1
  13. package/dist/es/commands/CreateProjectVersionCommand.js +2 -38
  14. package/dist/es/commands/CreateProjectVersionCommand.js.map +1 -1
  15. package/dist/es/commands/CreateStreamProcessorCommand.js +2 -37
  16. package/dist/es/commands/CreateStreamProcessorCommand.js.map +1 -1
  17. package/dist/es/commands/DeleteCollectionCommand.js +2 -31
  18. package/dist/es/commands/DeleteCollectionCommand.js.map +1 -1
  19. package/dist/es/commands/DeleteFacesCommand.js +2 -30
  20. package/dist/es/commands/DeleteFacesCommand.js.map +1 -1
  21. package/dist/es/commands/DeleteProjectCommand.js +2 -30
  22. package/dist/es/commands/DeleteProjectCommand.js.map +1 -1
  23. package/dist/es/commands/DeleteProjectVersionCommand.js +2 -34
  24. package/dist/es/commands/DeleteProjectVersionCommand.js.map +1 -1
  25. package/dist/es/commands/DeleteStreamProcessorCommand.js +2 -28
  26. package/dist/es/commands/DeleteStreamProcessorCommand.js.map +1 -1
  27. package/dist/es/commands/DescribeCollectionCommand.js +2 -32
  28. package/dist/es/commands/DescribeCollectionCommand.js.map +1 -1
  29. package/dist/es/commands/DescribeProjectVersionsCommand.js +2 -31
  30. package/dist/es/commands/DescribeProjectVersionsCommand.js.map +1 -1
  31. package/dist/es/commands/DescribeProjectsCommand.js +2 -28
  32. package/dist/es/commands/DescribeProjectsCommand.js.map +1 -1
  33. package/dist/es/commands/DescribeStreamProcessorCommand.js +2 -28
  34. package/dist/es/commands/DescribeStreamProcessorCommand.js.map +1 -1
  35. package/dist/es/commands/DetectCustomLabelsCommand.js +2 -77
  36. package/dist/es/commands/DetectCustomLabelsCommand.js.map +1 -1
  37. package/dist/es/commands/DetectFacesCommand.js +2 -49
  38. package/dist/es/commands/DetectFacesCommand.js.map +1 -1
  39. package/dist/es/commands/DetectLabelsCommand.js +2 -99
  40. package/dist/es/commands/DetectLabelsCommand.js.map +1 -1
  41. package/dist/es/commands/DetectModerationLabelsCommand.js +2 -40
  42. package/dist/es/commands/DetectModerationLabelsCommand.js.map +1 -1
  43. package/dist/es/commands/DetectProtectiveEquipmentCommand.js +2 -66
  44. package/dist/es/commands/DetectProtectiveEquipmentCommand.js.map +1 -1
  45. package/dist/es/commands/DetectTextCommand.js +2 -48
  46. package/dist/es/commands/DetectTextCommand.js.map +1 -1
  47. package/dist/es/commands/GetCelebrityInfoCommand.js +2 -34
  48. package/dist/es/commands/GetCelebrityInfoCommand.js.map +1 -1
  49. package/dist/es/commands/GetCelebrityRecognitionCommand.js +2 -61
  50. package/dist/es/commands/GetCelebrityRecognitionCommand.js.map +1 -1
  51. package/dist/es/commands/GetContentModerationCommand.js +2 -56
  52. package/dist/es/commands/GetContentModerationCommand.js.map +1 -1
  53. package/dist/es/commands/GetFaceDetectionCommand.js +2 -39
  54. package/dist/es/commands/GetFaceDetectionCommand.js.map +1 -1
  55. package/dist/es/commands/GetFaceSearchCommand.js +2 -57
  56. package/dist/es/commands/GetFaceSearchCommand.js.map +1 -1
  57. package/dist/es/commands/GetLabelDetectionCommand.js +2 -47
  58. package/dist/es/commands/GetLabelDetectionCommand.js.map +1 -1
  59. package/dist/es/commands/GetPersonTrackingCommand.js +2 -56
  60. package/dist/es/commands/GetPersonTrackingCommand.js.map +1 -1
  61. package/dist/es/commands/GetSegmentDetectionCommand.js +2 -49
  62. package/dist/es/commands/GetSegmentDetectionCommand.js.map +1 -1
  63. package/dist/es/commands/GetTextDetectionCommand.js +2 -45
  64. package/dist/es/commands/GetTextDetectionCommand.js.map +1 -1
  65. package/dist/es/commands/IndexFacesCommand.js +2 -126
  66. package/dist/es/commands/IndexFacesCommand.js.map +1 -1
  67. package/dist/es/commands/ListCollectionsCommand.js +2 -32
  68. package/dist/es/commands/ListCollectionsCommand.js.map +1 -1
  69. package/dist/es/commands/ListFacesCommand.js +2 -34
  70. package/dist/es/commands/ListFacesCommand.js.map +1 -1
  71. package/dist/es/commands/ListStreamProcessorsCommand.js +2 -27
  72. package/dist/es/commands/ListStreamProcessorsCommand.js.map +1 -1
  73. package/dist/es/commands/ListTagsForResourceCommand.js +2 -31
  74. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  75. package/dist/es/commands/RecognizeCelebritiesCommand.js +2 -57
  76. package/dist/es/commands/RecognizeCelebritiesCommand.js.map +1 -1
  77. package/dist/es/commands/SearchFacesByImageCommand.js +2 -73
  78. package/dist/es/commands/SearchFacesByImageCommand.js.map +1 -1
  79. package/dist/es/commands/SearchFacesCommand.js +2 -47
  80. package/dist/es/commands/SearchFacesCommand.js.map +1 -1
  81. package/dist/es/commands/StartCelebrityRecognitionCommand.js +2 -38
  82. package/dist/es/commands/StartCelebrityRecognitionCommand.js.map +1 -1
  83. package/dist/es/commands/StartContentModerationCommand.js +2 -38
  84. package/dist/es/commands/StartContentModerationCommand.js.map +1 -1
  85. package/dist/es/commands/StartFaceDetectionCommand.js +2 -39
  86. package/dist/es/commands/StartFaceDetectionCommand.js.map +1 -1
  87. package/dist/es/commands/StartFaceSearchCommand.js +2 -36
  88. package/dist/es/commands/StartFaceSearchCommand.js.map +1 -1
  89. package/dist/es/commands/StartLabelDetectionCommand.js +2 -41
  90. package/dist/es/commands/StartLabelDetectionCommand.js.map +1 -1
  91. package/dist/es/commands/StartPersonTrackingCommand.js +2 -35
  92. package/dist/es/commands/StartPersonTrackingCommand.js.map +1 -1
  93. package/dist/es/commands/StartProjectVersionCommand.js +2 -36
  94. package/dist/es/commands/StartProjectVersionCommand.js.map +1 -1
  95. package/dist/es/commands/StartSegmentDetectionCommand.js +2 -42
  96. package/dist/es/commands/StartSegmentDetectionCommand.js.map +1 -1
  97. package/dist/es/commands/StartStreamProcessorCommand.js +2 -29
  98. package/dist/es/commands/StartStreamProcessorCommand.js.map +1 -1
  99. package/dist/es/commands/StartTextDetectionCommand.js +2 -34
  100. package/dist/es/commands/StartTextDetectionCommand.js.map +1 -1
  101. package/dist/es/commands/StopProjectVersionCommand.js +2 -28
  102. package/dist/es/commands/StopProjectVersionCommand.js.map +1 -1
  103. package/dist/es/commands/StopStreamProcessorCommand.js +2 -27
  104. package/dist/es/commands/StopStreamProcessorCommand.js.map +1 -1
  105. package/dist/es/commands/TagResourceCommand.js +2 -31
  106. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  107. package/dist/es/commands/UntagResourceCommand.js +2 -31
  108. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  109. package/dist/es/endpoints.js +1 -1
  110. package/dist/es/endpoints.js.map +1 -1
  111. package/dist/es/models/models_0.js +0 -621
  112. package/dist/es/models/models_0.js.map +1 -1
  113. package/dist/es/package.json +39 -39
  114. package/dist/es/pagination/DescribeProjectVersionsPaginator.js +16 -28
  115. package/dist/es/pagination/DescribeProjectVersionsPaginator.js.map +1 -1
  116. package/dist/es/pagination/DescribeProjectsPaginator.js +16 -28
  117. package/dist/es/pagination/DescribeProjectsPaginator.js.map +1 -1
  118. package/dist/es/pagination/GetCelebrityRecognitionPaginator.js +16 -28
  119. package/dist/es/pagination/GetCelebrityRecognitionPaginator.js.map +1 -1
  120. package/dist/es/pagination/GetContentModerationPaginator.js +16 -28
  121. package/dist/es/pagination/GetContentModerationPaginator.js.map +1 -1
  122. package/dist/es/pagination/GetFaceDetectionPaginator.js +16 -28
  123. package/dist/es/pagination/GetFaceDetectionPaginator.js.map +1 -1
  124. package/dist/es/pagination/GetFaceSearchPaginator.js +16 -28
  125. package/dist/es/pagination/GetFaceSearchPaginator.js.map +1 -1
  126. package/dist/es/pagination/GetLabelDetectionPaginator.js +16 -28
  127. package/dist/es/pagination/GetLabelDetectionPaginator.js.map +1 -1
  128. package/dist/es/pagination/GetPersonTrackingPaginator.js +16 -28
  129. package/dist/es/pagination/GetPersonTrackingPaginator.js.map +1 -1
  130. package/dist/es/pagination/GetSegmentDetectionPaginator.js +16 -28
  131. package/dist/es/pagination/GetSegmentDetectionPaginator.js.map +1 -1
  132. package/dist/es/pagination/GetTextDetectionPaginator.js +16 -28
  133. package/dist/es/pagination/GetTextDetectionPaginator.js.map +1 -1
  134. package/dist/es/pagination/ListCollectionsPaginator.js +16 -28
  135. package/dist/es/pagination/ListCollectionsPaginator.js.map +1 -1
  136. package/dist/es/pagination/ListFacesPaginator.js +16 -28
  137. package/dist/es/pagination/ListFacesPaginator.js.map +1 -1
  138. package/dist/es/pagination/ListStreamProcessorsPaginator.js +16 -28
  139. package/dist/es/pagination/ListStreamProcessorsPaginator.js.map +1 -1
  140. package/dist/es/protocols/Aws_json1_1.js +1917 -1922
  141. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  142. package/dist/es/runtimeConfig.browser.js +0 -3
  143. package/dist/es/runtimeConfig.browser.js.map +1 -1
  144. package/dist/es/runtimeConfig.js +0 -3
  145. package/dist/es/runtimeConfig.js.map +1 -1
  146. package/dist/es/runtimeConfig.native.js +0 -3
  147. package/dist/es/runtimeConfig.native.js.map +1 -1
  148. package/dist/es/runtimeConfig.shared.js +0 -3
  149. package/dist/es/runtimeConfig.shared.js.map +1 -1
  150. package/dist/es/waiters/waitForProjectVersionRunning.js +9 -18
  151. package/dist/es/waiters/waitForProjectVersionRunning.js.map +1 -1
  152. package/dist/es/waiters/waitForProjectVersionTrainingCompleted.js +9 -18
  153. package/dist/es/waiters/waitForProjectVersionTrainingCompleted.js.map +1 -1
  154. package/package.json +39 -39
  155. package/tsconfig.es.json +0 -2
  156. package/tsconfig.json +4 -5
  157. package/tsconfig.types.json +8 -0
@@ -3,88 +3,13 @@ import { DetectCustomLabelsRequest, DetectCustomLabelsResponse } from "../models
3
3
  import { deserializeAws_json1_1DetectCustomLabelsCommand, serializeAws_json1_1DetectCustomLabelsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model. </p>
8
- * <p>You specify which version of a model version to use by using the <code>ProjectVersionArn</code> input
9
- * parameter. </p>
10
- * <p>You pass the input image as base64-encoded image bytes or as a reference to an image in
11
- * an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing
12
- * image bytes is not supported. The image must be either a PNG or JPEG formatted file. </p>
13
- * <p> For each object that the model version detects on an image, the API returns a
14
- * (<code>CustomLabel</code>) object in an array (<code>CustomLabels</code>).
15
- * Each <code>CustomLabel</code> object provides the label name (<code>Name</code>), the level
16
- * of confidence that the image contains the object (<code>Confidence</code>), and
17
- * object location information, if it exists, for the label on the image (<code>Geometry</code>). </p>
18
- *
19
- *
20
- *
21
- *
22
- *
23
- *
24
- *
25
- *
26
- *
27
- *
28
- * <p>To filter labels that are returned, specify a value for <code>MinConfidence</code>.
29
- * <code>DetectCustomLabelsLabels</code> only returns labels with a confidence that's higher than
30
- * the specified value.
31
- *
32
- * The value of <code>MinConfidence</code> maps to the assumed threshold values
33
- * created during training. For more information, see <i>Assumed threshold</i>
34
- * in the Amazon Rekognition Custom Labels Developer Guide.
35
- * Amazon Rekognition Custom Labels metrics expresses an assumed threshold as a floating point value between 0-1. The range of
36
- * <code>MinConfidence</code> normalizes the threshold value to a percentage value (0-100). Confidence
37
- * responses from <code>DetectCustomLabels</code> are also returned as a percentage.
38
- * You can use <code>MinConfidence</code> to change the precision and recall or your model.
39
- * For more information, see
40
- * <i>Analyzing an image</i> in the Amazon Rekognition Custom Labels Developer Guide. </p>
41
- *
42
- * <p>If you don't specify a value for <code>MinConfidence</code>, <code>DetectCustomLabels</code>
43
- * returns labels based on the assumed threshold of each label.</p>
44
- *
45
- *
46
- *
47
- *
48
- *
49
- * <p>This is a stateless API operation. That is, the operation does not persist any
50
- * data.</p>
51
- * <p>This operation requires permissions to perform the
52
- * <code>rekognition:DetectCustomLabels</code> action. </p>
53
- *
54
- *
55
- *
56
- * <p>For more information, see
57
- * <i>Analyzing an image</i> in the Amazon Rekognition Custom Labels Developer Guide. </p>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { RekognitionClient, DetectCustomLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
62
- * // const { RekognitionClient, DetectCustomLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
63
- * const client = new RekognitionClient(config);
64
- * const command = new DetectCustomLabelsCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link DetectCustomLabelsCommandInput} for command's `input` shape.
69
- * @see {@link DetectCustomLabelsCommandOutput} for command's `response` shape.
70
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- var DetectCustomLabelsCommand = /** @class */ (function (_super) {
6
+ var DetectCustomLabelsCommand = (function (_super) {
74
7
  __extends(DetectCustomLabelsCommand, _super);
75
- // Start section: command_properties
76
- // End section: command_properties
77
8
  function DetectCustomLabelsCommand(input) {
78
- var _this =
79
- // Start section: command_constructor
80
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
81
10
  _this.input = input;
82
11
  return _this;
83
- // End section: command_constructor
84
12
  }
85
- /**
86
- * @internal
87
- */
88
13
  DetectCustomLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
89
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
90
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"DetectCustomLabelsCommand.js","sourceRoot":"","sources":["../../../commands/DetectCustomLabelsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH;IAA+C,6CAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,mCAAqB,KAAqC;QAA1D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,CAAC;QACM,IA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AAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,6CAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,+CAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAIH,gCAAC;AAAD,CAAC,AAtDD,CAA+C,QAAQ,GAsDtD"}
@@ -3,60 +3,13 @@ import { DetectFacesRequest, DetectFacesResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1DetectFacesCommand, serializeAws_json1_1DetectFacesCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects faces within an image that is provided as input.</p>
8
- *
9
- * <p>
10
- * <code>DetectFaces</code> detects the 100 largest faces in the image. For each face
11
- * detected, the operation returns face details. These details include a bounding box of the
12
- * face, a confidence value (that the bounding box contains a face), and a fixed set of
13
- * attributes such as facial landmarks (for example, coordinates of eye and mouth),
14
- * presence of beard, sunglasses, and so on. </p>
15
- * <p>The face-detection algorithm is most effective on frontal faces. For non-frontal or
16
- * obscured faces, the algorithm might not detect the faces or might detect faces with lower
17
- * confidence. </p>
18
- * <p>You pass the input image either as base64-encoded image bytes or as a reference to an
19
- * image in an Amazon S3 bucket. If you use the AWS CLI
20
- * to call Amazon Rekognition operations, passing image bytes is not
21
- * supported. The image must be either a PNG or JPEG formatted file. </p>
22
- *
23
- * <note>
24
- * <p>This is a stateless API operation. That is, the operation does not persist any
25
- * data.</p>
26
- * </note>
27
- *
28
- * <p>This operation requires permissions to perform the
29
- * <code>rekognition:DetectFaces</code> action. </p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { RekognitionClient, DetectFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
34
- * // const { RekognitionClient, DetectFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
35
- * const client = new RekognitionClient(config);
36
- * const command = new DetectFacesCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link DetectFacesCommandInput} for command's `input` shape.
41
- * @see {@link DetectFacesCommandOutput} for command's `response` shape.
42
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- var DetectFacesCommand = /** @class */ (function (_super) {
6
+ var DetectFacesCommand = (function (_super) {
46
7
  __extends(DetectFacesCommand, _super);
47
- // Start section: command_properties
48
- // End section: command_properties
49
8
  function DetectFacesCommand(input) {
50
- var _this =
51
- // Start section: command_constructor
52
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
53
10
  _this.input = input;
54
11
  return _this;
55
- // End section: command_constructor
56
12
  }
57
- /**
58
- * @internal
59
- */
60
13
  DetectFacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
61
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
62
15
  var stack = clientStack.concat(this.middlewareStack);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G,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kBAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,mBAAmB,CAAC,kBAAkB;SACjE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
@@ -3,110 +3,13 @@ import { DetectLabelsRequest, DetectLabelsResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1DetectLabelsCommand, serializeAws_json1_1DetectLabelsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects instances of real-world entities within an image (JPEG or PNG)
8
- * provided as input. This includes objects like flower, tree, and table; events like
9
- * wedding, graduation, and birthday party; and concepts like landscape, evening, and nature.
10
- * </p>
11
- *
12
- * <p>For an example, see Analyzing Images Stored in an Amazon S3 Bucket in the Amazon Rekognition Developer Guide.</p>
13
- * <note>
14
- * <p>
15
- * <code>DetectLabels</code> does not support the detection of activities. However, activity detection
16
- * is supported for label detection in videos. For more information, see StartLabelDetection in the Amazon Rekognition Developer Guide.</p>
17
- * </note>
18
- *
19
- * <p>You pass the input image as base64-encoded image bytes or as a reference to an image in
20
- * an Amazon S3 bucket. If you use the
21
- * AWS
22
- * CLI to call Amazon Rekognition operations, passing image bytes is not
23
- * supported. The image must be either a PNG or JPEG formatted file. </p>
24
- * <p> For each object, scene, and concept the API returns one or more labels. Each label
25
- * provides the object name, and the level of confidence that the image contains the object. For
26
- * example, suppose the input image has a lighthouse, the sea, and a rock. The response includes
27
- * all three labels, one for each object. </p>
28
- *
29
- * <p>
30
- * <code>{Name: lighthouse, Confidence: 98.4629}</code>
31
- * </p>
32
- * <p>
33
- * <code>{Name: rock,Confidence: 79.2097}</code>
34
- * </p>
35
- * <p>
36
- * <code> {Name: sea,Confidence: 75.061}</code>
37
- * </p>
38
- * <p>In the preceding example, the operation returns one label for each of the three
39
- * objects. The operation can also return multiple labels for the same object in the image. For
40
- * example, if the input image shows a flower (for example, a tulip), the operation might return
41
- * the following three labels. </p>
42
- * <p>
43
- * <code>{Name: flower,Confidence: 99.0562}</code>
44
- * </p>
45
- * <p>
46
- * <code>{Name: plant,Confidence: 99.0562}</code>
47
- * </p>
48
- * <p>
49
- * <code>{Name: tulip,Confidence: 99.0562}</code>
50
- * </p>
51
- *
52
- * <p>In this example, the detection algorithm more precisely identifies the flower as a
53
- * tulip.</p>
54
- * <p>In response, the API returns an array of labels. In addition, the response also
55
- * includes the orientation correction. Optionally, you can specify <code>MinConfidence</code> to
56
- * control the confidence threshold for the labels returned. The default is 55%. You can also add
57
- * the <code>MaxLabels</code> parameter to limit the number of labels returned. </p>
58
- * <note>
59
- * <p>If the object detected is a person, the operation doesn't provide the same facial
60
- * details that the <a>DetectFaces</a> operation provides.</p>
61
- * </note>
62
- * <p>
63
- * <code>DetectLabels</code> returns bounding boxes for instances of common object labels in an array of
64
- * <a>Instance</a> objects. An <code>Instance</code> object contains a
65
- * <a>BoundingBox</a> object, for the location of the label on the image. It also includes
66
- * the confidence by which the bounding box was detected.</p>
67
- * <p>
68
- * <code>DetectLabels</code> also returns a hierarchical taxonomy of detected labels. For example,
69
- * a detected car might be assigned the label <i>car</i>. The label <i>car</i>
70
- * has two parent labels: <i>Vehicle</i> (its parent) and <i>Transportation</i> (its
71
- * grandparent).
72
- * The response returns the entire list of ancestors for a label. Each ancestor is a unique label in the response.
73
- * In the previous example, <i>Car</i>, <i>Vehicle</i>, and <i>Transportation</i>
74
- * are returned as unique labels in the response.
75
- * </p>
76
- * <p>This is a stateless API operation. That is, the operation does not persist any
77
- * data.</p>
78
- * <p>This operation requires permissions to perform the
79
- * <code>rekognition:DetectLabels</code> action. </p>
80
- * @example
81
- * Use a bare-bones client and the command you need to make an API call.
82
- * ```javascript
83
- * import { RekognitionClient, DetectLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
84
- * // const { RekognitionClient, DetectLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
85
- * const client = new RekognitionClient(config);
86
- * const command = new DetectLabelsCommand(input);
87
- * const response = await client.send(command);
88
- * ```
89
- *
90
- * @see {@link DetectLabelsCommandInput} for command's `input` shape.
91
- * @see {@link DetectLabelsCommandOutput} for command's `response` shape.
92
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
93
- *
94
- */
95
- var DetectLabelsCommand = /** @class */ (function (_super) {
6
+ var DetectLabelsCommand = (function (_super) {
96
7
  __extends(DetectLabelsCommand, _super);
97
- // Start section: command_properties
98
- // End section: command_properties
99
8
  function DetectLabelsCommand(input) {
100
- var _this =
101
- // Start section: command_constructor
102
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
103
10
  _this.input = input;
104
11
  return _this;
105
- // End section: command_constructor
106
12
  }
107
- /**
108
- * @internal
109
- */
110
13
  DetectLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
111
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
112
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"DetectLabelsCommand.js","sourceRoot":"","sources":["../../../commands/DetectLabelsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH;IAAyC,uCAIxC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,6BAAqB,KAA+B;QAApD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA0B;;QAGlD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,+CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,qBAAqB,CAAC;QAC1C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,mBAAmB,CAAC,kBAAkB;YAC/D,wBAAwB,EAAE,oBAAoB,CAAC,kBAAkB;SAClE,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AAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,qBAAqB,CAAC;QAC1C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,mBAAmB,CAAC,kBAAkB;YAC/D,wBAAwB,EAAE,oBAAoB,CAAC,kBAAkB;SAClE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,uCAAS,GAAjB,UAAkB,KAA+B,EAAE,OAAuB;QACxE,OAAO,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,yCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,yCAAyC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAIH,0BAAC;AAAD,CAAC,AAtDD,CAAyC,QAAQ,GAsDhD"}
@@ -3,51 +3,13 @@ import { DetectModerationLabelsRequest, DetectModerationLabelsResponse } from ".
3
3
  import { deserializeAws_json1_1DetectModerationLabelsCommand, serializeAws_json1_1DetectModerationLabelsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects unsafe content in a specified JPEG or PNG format image.
8
- * Use <code>DetectModerationLabels</code> to moderate images depending on your requirements.
9
- * For example, you might want to filter images that contain nudity, but not images containing
10
- * suggestive content.</p>
11
- * <p>To filter images, use the labels returned by <code>DetectModerationLabels</code>
12
- * to determine which types of content are appropriate.</p>
13
- *
14
- * <p>For information about moderation labels,
15
- * see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.</p>
16
- * <p>You pass the input image either as base64-encoded image bytes or as a reference to an
17
- * image in an Amazon S3 bucket. If you use the
18
- * AWS
19
- * CLI to call Amazon Rekognition operations, passing image bytes is not
20
- * supported. The image must be either a PNG or JPEG formatted file. </p>
21
- * @example
22
- * Use a bare-bones client and the command you need to make an API call.
23
- * ```javascript
24
- * import { RekognitionClient, DetectModerationLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
25
- * // const { RekognitionClient, DetectModerationLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
26
- * const client = new RekognitionClient(config);
27
- * const command = new DetectModerationLabelsCommand(input);
28
- * const response = await client.send(command);
29
- * ```
30
- *
31
- * @see {@link DetectModerationLabelsCommandInput} for command's `input` shape.
32
- * @see {@link DetectModerationLabelsCommandOutput} for command's `response` shape.
33
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
34
- *
35
- */
36
- var DetectModerationLabelsCommand = /** @class */ (function (_super) {
6
+ var DetectModerationLabelsCommand = (function (_super) {
37
7
  __extends(DetectModerationLabelsCommand, _super);
38
- // Start section: command_properties
39
- // End section: command_properties
40
8
  function DetectModerationLabelsCommand(input) {
41
- var _this =
42
- // Start section: command_constructor
43
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
44
10
  _this.input = input;
45
11
  return _this;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  DetectModerationLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
52
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"DetectModerationLabelsCommand.js","sourceRoot":"","sources":["../../../commands/DetectModerationLabelsCommand.ts"],"names":[],"mappings":";AACA,OAAO,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U,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,6BAA6B,CAAC,kBAAkB;YACzE,wBAAwB,EAAE,8BAA8B,CAAC,kBAAkB;SAC5E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,iDAAS,GAAjB,UAAkB,KAAyC,EAAE,OAAuB;QAClF,OAAO,iDAAiD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEO,mDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,mDAAmD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAIH,oCAAC;AAAD,CAAC,AAtDD,CAAmD,QAAQ,GAsD1D"}
@@ -3,77 +3,13 @@ import { DetectProtectiveEquipmentRequest, DetectProtectiveEquipmentResponse } f
3
3
  import { deserializeAws_json1_1DetectProtectiveEquipmentCommand, serializeAws_json1_1DetectProtectiveEquipmentCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the
8
- * following types of PPE.</p>
9
- * <ul>
10
- * <li>
11
- * <p>Face cover</p>
12
- * </li>
13
- * <li>
14
- * <p>Hand cover</p>
15
- * </li>
16
- * <li>
17
- * <p>Head cover</p>
18
- * </li>
19
- * </ul>
20
- *
21
- * <p>You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket.
22
- * The image must be either a PNG or JPG formatted file. </p>
23
- *
24
- * <p>
25
- * <code>DetectProtectiveEquipment</code> detects PPE worn by up to 15 persons detected in an image.</p>
26
- * <p>For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand).
27
- * For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE
28
- * covers the body part. The API returns the confidence it has in each detection
29
- * (person, PPE, body part and body part coverage). It also returns a bounding box (<a>BoundingBox</a>) for each detected
30
- * person and each detected item of PPE. </p>
31
- * <p>You can optionally request a summary of detected PPE items with the <code>SummarizationAttributes</code> input parameter.
32
- * The summary provides the following information. </p>
33
- * <ul>
34
- * <li>
35
- * <p>The persons detected as wearing all of the types of PPE that you specify.</p>
36
- * </li>
37
- * <li>
38
- * <p>The persons detected as not wearing all of the types PPE that you specify.</p>
39
- * </li>
40
- * <li>
41
- * <p>The persons detected where PPE adornment could not be determined. </p>
42
- * </li>
43
- * </ul>
44
- * <p>This is a stateless API operation. That is, the operation does not persist any data.</p>
45
- *
46
- * <p>This operation requires permissions to perform the <code>rekognition:DetectProtectiveEquipment</code> action. </p>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { RekognitionClient, DetectProtectiveEquipmentCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
51
- * // const { RekognitionClient, DetectProtectiveEquipmentCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
52
- * const client = new RekognitionClient(config);
53
- * const command = new DetectProtectiveEquipmentCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link DetectProtectiveEquipmentCommandInput} for command's `input` shape.
58
- * @see {@link DetectProtectiveEquipmentCommandOutput} for command's `response` shape.
59
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
- var DetectProtectiveEquipmentCommand = /** @class */ (function (_super) {
6
+ var DetectProtectiveEquipmentCommand = (function (_super) {
63
7
  __extends(DetectProtectiveEquipmentCommand, _super);
64
- // Start section: command_properties
65
- // End section: command_properties
66
8
  function DetectProtectiveEquipmentCommand(input) {
67
- var _this =
68
- // Start section: command_constructor
69
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
70
10
  _this.input = input;
71
11
  return _this;
72
- // End section: command_constructor
73
12
  }
74
- /**
75
- * @internal
76
- */
77
13
  DetectProtectiveEquipmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
78
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"DetectProtectiveEquipmentCommand.js","sourceRoot":"","sources":["../../../commands/DetectProtectiveEquipmentCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AACzG,OAAO,EACL,sDAAsD,EACtD,oDAAoD,GACrD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH;IAAsD,oDAIrD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,0CAAqB,KAA4C;QAAjE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAuC;;QAG/D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,4DAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,kCAAkC,CAAC;QACvD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gCAAgC,CAAC,kBAAkB;YAC5E,wBAAwB,EAAE,iCAAiC,CAAC,kBAAkB;SAC/E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,oDAAS,GAAjB,UAAkB,KAA4C,EAAE,OAAuB;QACrF,OAAO,oDAAoD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAEO,sDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,sDAAsD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAIH,uCAAC;AAAD,CAAC,AAzDD,CAAsD,QAAQ,GAyD7D"}
1
+ {"version":3,"file":"DetectProtectiveEquipmentCommand.js","sourceRoot":"","sources":["../../../commands/DetectProtectiveEquipmentCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AACzG,OAAO,EACL,sDAAsD,EACtD,oDAAoD,GACrD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsE7D;IAAsD,oDAIrD;IAIC,0CAAqB,KAA4C;QAAjE,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAuC;;IAIjE,CAAC;IAKD,4DAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,kCAAkC,CAAC;QACvD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gCAAgC,CAAC,kBAAkB;YAC5E,wBAAwB,EAAE,iCAAiC,CAAC,kBAAkB;SAC/E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,oDAAS,GAAjB,UAAkB,KAA4C,EAAE,OAAuB;QACrF,OAAO,oDAAoD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAEO,sDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,sDAAsD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAIH,uCAAC;AAAD,CAAC,AAzDD,CAAsD,QAAQ,GAyD7D"}
@@ -3,59 +3,13 @@ import { DetectTextRequest, DetectTextResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1DetectTextCommand, serializeAws_json1_1DetectTextCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Detects text in the input image and converts it into machine-readable text.</p>
8
- * <p>Pass the input image as base64-encoded image bytes or as a reference to an image in an
9
- * Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a
10
- * reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not
11
- * supported. The image must be either a .png or .jpeg formatted file. </p>
12
- * <p>The <code>DetectText</code> operation returns text in an array of <a>TextDetection</a> elements, <code>TextDetections</code>. Each
13
- * <code>TextDetection</code> element provides information about a single word or line of text
14
- * that was detected in the image. </p>
15
- * <p>A word is one or more ISO basic latin script characters that are not separated by spaces.
16
- * <code>DetectText</code> can detect up to 100 words in an image.</p>
17
- * <p>A line is a string of equally spaced words. A line isn't necessarily a complete
18
- * sentence. For example, a driver's license number is detected as a line. A line ends when there
19
- * is no aligned text after it. Also, a line ends when there is a large gap between words,
20
- * relative to the length of the words. This means, depending on the gap between words, Amazon Rekognition
21
- * may detect multiple lines in text aligned in the same direction. Periods don't represent the
22
- * end of a line. If a sentence spans multiple lines, the <code>DetectText</code> operation
23
- * returns multiple lines.</p>
24
- * <p>To determine whether a <code>TextDetection</code> element is a line of text or a word,
25
- * use the <code>TextDetection</code> object <code>Type</code> field. </p>
26
- * <p>To be detected, text must be within +/- 90 degrees orientation of the horizontal axis.</p>
27
- *
28
- * <p>For more information, see DetectText in the Amazon Rekognition Developer Guide.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { RekognitionClient, DetectTextCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
33
- * // const { RekognitionClient, DetectTextCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
34
- * const client = new RekognitionClient(config);
35
- * const command = new DetectTextCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link DetectTextCommandInput} for command's `input` shape.
40
- * @see {@link DetectTextCommandOutput} for command's `response` shape.
41
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- var DetectTextCommand = /** @class */ (function (_super) {
6
+ var DetectTextCommand = (function (_super) {
45
7
  __extends(DetectTextCommand, _super);
46
- // Start section: command_properties
47
- // End section: command_properties
48
8
  function DetectTextCommand(input) {
49
- var _this =
50
- // Start section: command_constructor
51
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
52
10
  _this.input = input;
53
11
  return _this;
54
- // End section: command_constructor
55
12
  }
56
- /**
57
- * @internal
58
- */
59
13
  DetectTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
60
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
61
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"DetectTextCommand.js","sourceRoot":"","sources":["../../../commands/DetectTextCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH;IAAuC,qCAItC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,2BAAqB,KAA6B;QAAlD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwB;;QAGhD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,6CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,C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sD9C"}
@@ -3,45 +3,13 @@ import { GetCelebrityInfoRequest, GetCelebrityInfoResponse } from "../models/mod
3
3
  import { deserializeAws_json1_1GetCelebrityInfoCommand, serializeAws_json1_1GetCelebrityInfoCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Gets the name and additional information about a celebrity based on their Amazon Rekognition ID.
8
- * The additional information is returned as an array of URLs. If there is no additional
9
- * information about the celebrity, this list is empty.</p>
10
- *
11
- * <p>For more information, see Recognizing Celebrities in an Image in
12
- * the Amazon Rekognition Developer Guide.</p>
13
- * <p>This operation requires permissions to perform the
14
- * <code>rekognition:GetCelebrityInfo</code> action. </p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { RekognitionClient, GetCelebrityInfoCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
19
- * // const { RekognitionClient, GetCelebrityInfoCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
20
- * const client = new RekognitionClient(config);
21
- * const command = new GetCelebrityInfoCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link GetCelebrityInfoCommandInput} for command's `input` shape.
26
- * @see {@link GetCelebrityInfoCommandOutput} for command's `response` shape.
27
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
- var GetCelebrityInfoCommand = /** @class */ (function (_super) {
6
+ var GetCelebrityInfoCommand = (function (_super) {
31
7
  __extends(GetCelebrityInfoCommand, _super);
32
- // Start section: command_properties
33
- // End section: command_properties
34
8
  function GetCelebrityInfoCommand(input) {
35
- var _this =
36
- // Start section: command_constructor
37
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
38
10
  _this.input = input;
39
11
  return _this;
40
- // End section: command_constructor
41
12
  }
42
- /**
43
- * @internal
44
- */
45
13
  GetCelebrityInfoCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
46
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
47
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"GetCelebrityInfoCommand.js","sourceRoot":"","sources":["../../../commands/GetCelebrityInfoCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IAA6C,2CAI5C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,iCAAqB,KAAmC;QAAxD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA8B;;QAGtD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,mDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,IAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,uBAAuB,CAAC,kBAAkB;YACnE,wBAAwB,EAAE,wBAAwB,CAAC,k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