@aws-sdk/client-rekognition 3.36.0 → 3.39.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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Rekognition.js +0 -3
- package/dist-cjs/RekognitionClient.js +0 -8
- package/dist-cjs/commands/CompareFacesCommand.js +0 -86
- package/dist-cjs/commands/CreateCollectionCommand.js +0 -36
- package/dist-cjs/commands/CreateProjectCommand.js +0 -26
- package/dist-cjs/commands/CreateProjectVersionCommand.js +0 -35
- package/dist-cjs/commands/CreateStreamProcessorCommand.js +0 -34
- package/dist-cjs/commands/DeleteCollectionCommand.js +0 -28
- package/dist-cjs/commands/DeleteFacesCommand.js +0 -27
- package/dist-cjs/commands/DeleteProjectCommand.js +0 -27
- package/dist-cjs/commands/DeleteProjectVersionCommand.js +0 -31
- package/dist-cjs/commands/DeleteStreamProcessorCommand.js +0 -25
- package/dist-cjs/commands/DescribeCollectionCommand.js +0 -29
- package/dist-cjs/commands/DescribeProjectVersionsCommand.js +0 -28
- package/dist-cjs/commands/DescribeProjectsCommand.js +0 -25
- package/dist-cjs/commands/DescribeStreamProcessorCommand.js +0 -25
- package/dist-cjs/commands/DetectCustomLabelsCommand.js +0 -74
- package/dist-cjs/commands/DetectFacesCommand.js +0 -46
- package/dist-cjs/commands/DetectLabelsCommand.js +0 -96
- package/dist-cjs/commands/DetectModerationLabelsCommand.js +0 -37
- package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +0 -63
- package/dist-cjs/commands/DetectTextCommand.js +0 -45
- package/dist-cjs/commands/GetCelebrityInfoCommand.js +0 -31
- package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +0 -58
- package/dist-cjs/commands/GetContentModerationCommand.js +0 -53
- package/dist-cjs/commands/GetFaceDetectionCommand.js +0 -36
- package/dist-cjs/commands/GetFaceSearchCommand.js +0 -54
- package/dist-cjs/commands/GetLabelDetectionCommand.js +0 -44
- package/dist-cjs/commands/GetPersonTrackingCommand.js +0 -53
- package/dist-cjs/commands/GetSegmentDetectionCommand.js +0 -46
- package/dist-cjs/commands/GetTextDetectionCommand.js +0 -42
- package/dist-cjs/commands/IndexFacesCommand.js +0 -123
- package/dist-cjs/commands/ListCollectionsCommand.js +0 -29
- package/dist-cjs/commands/ListFacesCommand.js +0 -31
- package/dist-cjs/commands/ListStreamProcessorsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -28
- package/dist-cjs/commands/RecognizeCelebritiesCommand.js +0 -54
- package/dist-cjs/commands/SearchFacesByImageCommand.js +0 -70
- package/dist-cjs/commands/SearchFacesCommand.js +0 -44
- package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +0 -35
- package/dist-cjs/commands/StartContentModerationCommand.js +0 -35
- package/dist-cjs/commands/StartFaceDetectionCommand.js +0 -36
- package/dist-cjs/commands/StartFaceSearchCommand.js +0 -33
- package/dist-cjs/commands/StartLabelDetectionCommand.js +0 -38
- package/dist-cjs/commands/StartPersonTrackingCommand.js +0 -32
- package/dist-cjs/commands/StartProjectVersionCommand.js +0 -33
- package/dist-cjs/commands/StartSegmentDetectionCommand.js +0 -39
- package/dist-cjs/commands/StartStreamProcessorCommand.js +0 -26
- package/dist-cjs/commands/StartTextDetectionCommand.js +0 -31
- package/dist-cjs/commands/StopProjectVersionCommand.js +0 -25
- package/dist-cjs/commands/StopStreamProcessorCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -28
- package/dist-cjs/commands/index.js +54 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -69
- package/dist-cjs/models/models_0.js +0 -621
- package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeProjectsPaginator.js +0 -10
- package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +0 -10
- package/dist-cjs/pagination/GetContentModerationPaginator.js +0 -10
- package/dist-cjs/pagination/GetFaceDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetFaceSearchPaginator.js +0 -10
- package/dist-cjs/pagination/GetLabelDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetPersonTrackingPaginator.js +0 -10
- package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetTextDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/ListCollectionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFacesPaginator.js +0 -10
- package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +17 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForProjectVersionRunning.js +0 -9
- package/dist-cjs/waiters/waitForProjectVersionTrainingCompleted.js +0 -9
- package/dist-es/commands/index.js +51 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -69
- package/dist-es/pagination/index.js +14 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +51 -0
- package/dist-types/index.d.ts +5 -69
- package/dist-types/pagination/index.d.ts +14 -0
- package/dist-types/ts3.4/Rekognition.d.ts +52 -1018
- package/dist-types/ts3.4/RekognitionClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/CompareFacesCommand.d.ts +2 -82
- package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateProjectVersionCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/CreateStreamProcessorCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteFacesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteProjectVersionCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DeleteStreamProcessorCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeCollectionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeProjectVersionsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeProjectsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeStreamProcessorCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectCustomLabelsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/DetectFacesCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DetectLabelsCommand.d.ts +2 -92
- package/dist-types/ts3.4/commands/DetectModerationLabelsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DetectProtectiveEquipmentCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/DetectTextCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetCelebrityInfoCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetCelebrityRecognitionCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetContentModerationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetFaceDetectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/GetFaceSearchCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetLabelDetectionCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetPersonTrackingCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetSegmentDetectionCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetTextDetectionCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/IndexFacesCommand.d.ts +2 -119
- package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListFacesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListStreamProcessorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/index.d.ts +51 -0
- package/dist-types/ts3.4/index.d.ts +5 -69
- package/dist-types/ts3.4/models/models_0.d.ts +856 -3431
- package/dist-types/ts3.4/pagination/index.d.ts +14 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForProjectVersionRunning.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForProjectVersionTrainingCompleted.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +33 -33
|
@@ -6,33 +6,11 @@ export interface DescribeProjectVersionsCommandInput extends DescribeProjectVers
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeProjectVersionsCommandOutput extends DescribeProjectVersionsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Lists and describes the models in an Amazon Rekognition Custom Labels project. You
|
|
11
|
-
* can specify up to 10 model versions in <code>ProjectVersionArns</code>. If
|
|
12
|
-
* you don't specify a value, descriptions for all models are returned.</p>
|
|
13
|
-
* <p>This operation requires permissions to perform the <code>rekognition:DescribeProjectVersions</code>
|
|
14
|
-
* 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, DescribeProjectVersionsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
19
|
-
* // const { RekognitionClient, DescribeProjectVersionsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
20
|
-
* const client = new RekognitionClient(config);
|
|
21
|
-
* const command = new DescribeProjectVersionsCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link DescribeProjectVersionsCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link DescribeProjectVersionsCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
9
|
+
|
|
30
10
|
export declare class DescribeProjectVersionsCommand extends $Command<DescribeProjectVersionsCommandInput, DescribeProjectVersionsCommandOutput, RekognitionClientResolvedConfig> {
|
|
31
11
|
readonly input: DescribeProjectVersionsCommandInput;
|
|
32
12
|
constructor(input: DescribeProjectVersionsCommandInput);
|
|
33
|
-
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
13
|
+
|
|
36
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeProjectVersionsCommandInput, DescribeProjectVersionsCommandOutput>;
|
|
37
15
|
private serialize;
|
|
38
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DescribeProjectsCommandInput extends DescribeProjectsRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeProjectsCommandOutput extends DescribeProjectsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Lists and gets information about your Amazon Rekognition Custom Labels projects.</p>
|
|
11
|
-
* <p>This operation requires permissions to perform the <code>rekognition:DescribeProjects</code> action.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { RekognitionClient, DescribeProjectsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
16
|
-
* // const { RekognitionClient, DescribeProjectsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
17
|
-
* const client = new RekognitionClient(config);
|
|
18
|
-
* const command = new DescribeProjectsCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeProjectsCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeProjectsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DescribeProjectsCommand extends $Command<DescribeProjectsCommandInput, DescribeProjectsCommandOutput, RekognitionClientResolvedConfig> {
|
|
28
11
|
readonly input: DescribeProjectsCommandInput;
|
|
29
12
|
constructor(input: DescribeProjectsCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeProjectsCommandInput, DescribeProjectsCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DescribeStreamProcessorCommandInput extends DescribeStreamProce
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeStreamProcessorCommandOutput extends DescribeStreamProcessorResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Provides information about a stream processor created by <a>CreateStreamProcessor</a>. You can get information about the input and output streams, the input parameters for the face recognition being performed,
|
|
11
|
-
* and the current status of the stream processor.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { RekognitionClient, DescribeStreamProcessorCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
16
|
-
* // const { RekognitionClient, DescribeStreamProcessorCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
17
|
-
* const client = new RekognitionClient(config);
|
|
18
|
-
* const command = new DescribeStreamProcessorCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeStreamProcessorCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeStreamProcessorCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DescribeStreamProcessorCommand extends $Command<DescribeStreamProcessorCommandInput, DescribeStreamProcessorCommandOutput, RekognitionClientResolvedConfig> {
|
|
28
11
|
readonly input: DescribeStreamProcessorCommandInput;
|
|
29
12
|
constructor(input: DescribeStreamProcessorCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeStreamProcessorCommandInput, DescribeStreamProcessorCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,79 +6,11 @@ export interface DetectCustomLabelsCommandInput extends DetectCustomLabelsReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectCustomLabelsCommandOutput extends DetectCustomLabelsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model. </p>
|
|
11
|
-
* <p>You specify which version of a model version to use by using the <code>ProjectVersionArn</code> input
|
|
12
|
-
* parameter. </p>
|
|
13
|
-
* <p>You pass the input image as base64-encoded image bytes or as a reference to an image in
|
|
14
|
-
* an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing
|
|
15
|
-
* image bytes is not supported. The image must be either a PNG or JPEG formatted file. </p>
|
|
16
|
-
* <p> For each object that the model version detects on an image, the API returns a
|
|
17
|
-
* (<code>CustomLabel</code>) object in an array (<code>CustomLabels</code>).
|
|
18
|
-
* Each <code>CustomLabel</code> object provides the label name (<code>Name</code>), the level
|
|
19
|
-
* of confidence that the image contains the object (<code>Confidence</code>), and
|
|
20
|
-
* object location information, if it exists, for the label on the image (<code>Geometry</code>). </p>
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* <p>To filter labels that are returned, specify a value for <code>MinConfidence</code>.
|
|
32
|
-
* <code>DetectCustomLabelsLabels</code> only returns labels with a confidence that's higher than
|
|
33
|
-
* the specified value.
|
|
34
|
-
*
|
|
35
|
-
* The value of <code>MinConfidence</code> maps to the assumed threshold values
|
|
36
|
-
* created during training. For more information, see <i>Assumed threshold</i>
|
|
37
|
-
* in the Amazon Rekognition Custom Labels Developer Guide.
|
|
38
|
-
* Amazon Rekognition Custom Labels metrics expresses an assumed threshold as a floating point value between 0-1. The range of
|
|
39
|
-
* <code>MinConfidence</code> normalizes the threshold value to a percentage value (0-100). Confidence
|
|
40
|
-
* responses from <code>DetectCustomLabels</code> are also returned as a percentage.
|
|
41
|
-
* You can use <code>MinConfidence</code> to change the precision and recall or your model.
|
|
42
|
-
* For more information, see
|
|
43
|
-
* <i>Analyzing an image</i> in the Amazon Rekognition Custom Labels Developer Guide. </p>
|
|
44
|
-
*
|
|
45
|
-
* <p>If you don't specify a value for <code>MinConfidence</code>, <code>DetectCustomLabels</code>
|
|
46
|
-
* returns labels based on the assumed threshold of each label.</p>
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* <p>This is a stateless API operation. That is, the operation does not persist any
|
|
53
|
-
* data.</p>
|
|
54
|
-
* <p>This operation requires permissions to perform the
|
|
55
|
-
* <code>rekognition:DetectCustomLabels</code> action. </p>
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* <p>For more information, see
|
|
60
|
-
* <i>Analyzing an image</i> in the Amazon Rekognition Custom Labels Developer Guide. </p>
|
|
61
|
-
* @example
|
|
62
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
63
|
-
* ```javascript
|
|
64
|
-
* import { RekognitionClient, DetectCustomLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
65
|
-
* // const { RekognitionClient, DetectCustomLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
66
|
-
* const client = new RekognitionClient(config);
|
|
67
|
-
* const command = new DetectCustomLabelsCommand(input);
|
|
68
|
-
* const response = await client.send(command);
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @see {@link DetectCustomLabelsCommandInput} for command's `input` shape.
|
|
72
|
-
* @see {@link DetectCustomLabelsCommandOutput} for command's `response` shape.
|
|
73
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
9
|
+
|
|
76
10
|
export declare class DetectCustomLabelsCommand extends $Command<DetectCustomLabelsCommandInput, DetectCustomLabelsCommandOutput, RekognitionClientResolvedConfig> {
|
|
77
11
|
readonly input: DetectCustomLabelsCommandInput;
|
|
78
12
|
constructor(input: DetectCustomLabelsCommandInput);
|
|
79
|
-
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
13
|
+
|
|
82
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectCustomLabelsCommandInput, DetectCustomLabelsCommandOutput>;
|
|
83
15
|
private serialize;
|
|
84
16
|
private deserialize;
|
|
@@ -6,51 +6,11 @@ export interface DetectFacesCommandInput extends DetectFacesRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectFacesCommandOutput extends DetectFacesResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects faces within an image that is provided as input.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>
|
|
13
|
-
* <code>DetectFaces</code> detects the 100 largest faces in the image. For each face
|
|
14
|
-
* detected, the operation returns face details. These details include a bounding box of the
|
|
15
|
-
* face, a confidence value (that the bounding box contains a face), and a fixed set of
|
|
16
|
-
* attributes such as facial landmarks (for example, coordinates of eye and mouth),
|
|
17
|
-
* presence of beard, sunglasses, and so on. </p>
|
|
18
|
-
* <p>The face-detection algorithm is most effective on frontal faces. For non-frontal or
|
|
19
|
-
* obscured faces, the algorithm might not detect the faces or might detect faces with lower
|
|
20
|
-
* confidence. </p>
|
|
21
|
-
* <p>You pass the input image either as base64-encoded image bytes or as a reference to an
|
|
22
|
-
* image in an Amazon S3 bucket. If you use the AWS CLI
|
|
23
|
-
* to call Amazon Rekognition operations, passing image bytes is not
|
|
24
|
-
* supported. The image must be either a PNG or JPEG formatted file. </p>
|
|
25
|
-
*
|
|
26
|
-
* <note>
|
|
27
|
-
* <p>This is a stateless API operation. That is, the operation does not persist any
|
|
28
|
-
* data.</p>
|
|
29
|
-
* </note>
|
|
30
|
-
*
|
|
31
|
-
* <p>This operation requires permissions to perform the
|
|
32
|
-
* <code>rekognition:DetectFaces</code> action. </p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { RekognitionClient, DetectFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
37
|
-
* // const { RekognitionClient, DetectFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
38
|
-
* const client = new RekognitionClient(config);
|
|
39
|
-
* const command = new DetectFacesCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link DetectFacesCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link DetectFacesCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
9
|
+
|
|
48
10
|
export declare class DetectFacesCommand extends $Command<DetectFacesCommandInput, DetectFacesCommandOutput, RekognitionClientResolvedConfig> {
|
|
49
11
|
readonly input: DetectFacesCommandInput;
|
|
50
12
|
constructor(input: DetectFacesCommandInput);
|
|
51
|
-
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
13
|
+
|
|
54
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectFacesCommandInput, DetectFacesCommandOutput>;
|
|
55
15
|
private serialize;
|
|
56
16
|
private deserialize;
|
|
@@ -6,101 +6,11 @@ export interface DetectLabelsCommandInput extends DetectLabelsRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectLabelsCommandOutput extends DetectLabelsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects instances of real-world entities within an image (JPEG or PNG)
|
|
11
|
-
* provided as input. This includes objects like flower, tree, and table; events like
|
|
12
|
-
* wedding, graduation, and birthday party; and concepts like landscape, evening, and nature.
|
|
13
|
-
* </p>
|
|
14
|
-
*
|
|
15
|
-
* <p>For an example, see Analyzing Images Stored in an Amazon S3 Bucket in the Amazon Rekognition Developer Guide.</p>
|
|
16
|
-
* <note>
|
|
17
|
-
* <p>
|
|
18
|
-
* <code>DetectLabels</code> does not support the detection of activities. However, activity detection
|
|
19
|
-
* is supported for label detection in videos. For more information, see StartLabelDetection in the Amazon Rekognition Developer Guide.</p>
|
|
20
|
-
* </note>
|
|
21
|
-
*
|
|
22
|
-
* <p>You pass the input image as base64-encoded image bytes or as a reference to an image in
|
|
23
|
-
* an Amazon S3 bucket. If you use the
|
|
24
|
-
* AWS
|
|
25
|
-
* CLI to call Amazon Rekognition operations, passing image bytes is not
|
|
26
|
-
* supported. The image must be either a PNG or JPEG formatted file. </p>
|
|
27
|
-
* <p> For each object, scene, and concept the API returns one or more labels. Each label
|
|
28
|
-
* provides the object name, and the level of confidence that the image contains the object. For
|
|
29
|
-
* example, suppose the input image has a lighthouse, the sea, and a rock. The response includes
|
|
30
|
-
* all three labels, one for each object. </p>
|
|
31
|
-
*
|
|
32
|
-
* <p>
|
|
33
|
-
* <code>{Name: lighthouse, Confidence: 98.4629}</code>
|
|
34
|
-
* </p>
|
|
35
|
-
* <p>
|
|
36
|
-
* <code>{Name: rock,Confidence: 79.2097}</code>
|
|
37
|
-
* </p>
|
|
38
|
-
* <p>
|
|
39
|
-
* <code> {Name: sea,Confidence: 75.061}</code>
|
|
40
|
-
* </p>
|
|
41
|
-
* <p>In the preceding example, the operation returns one label for each of the three
|
|
42
|
-
* objects. The operation can also return multiple labels for the same object in the image. For
|
|
43
|
-
* example, if the input image shows a flower (for example, a tulip), the operation might return
|
|
44
|
-
* the following three labels. </p>
|
|
45
|
-
* <p>
|
|
46
|
-
* <code>{Name: flower,Confidence: 99.0562}</code>
|
|
47
|
-
* </p>
|
|
48
|
-
* <p>
|
|
49
|
-
* <code>{Name: plant,Confidence: 99.0562}</code>
|
|
50
|
-
* </p>
|
|
51
|
-
* <p>
|
|
52
|
-
* <code>{Name: tulip,Confidence: 99.0562}</code>
|
|
53
|
-
* </p>
|
|
54
|
-
*
|
|
55
|
-
* <p>In this example, the detection algorithm more precisely identifies the flower as a
|
|
56
|
-
* tulip.</p>
|
|
57
|
-
* <p>In response, the API returns an array of labels. In addition, the response also
|
|
58
|
-
* includes the orientation correction. Optionally, you can specify <code>MinConfidence</code> to
|
|
59
|
-
* control the confidence threshold for the labels returned. The default is 55%. You can also add
|
|
60
|
-
* the <code>MaxLabels</code> parameter to limit the number of labels returned. </p>
|
|
61
|
-
* <note>
|
|
62
|
-
* <p>If the object detected is a person, the operation doesn't provide the same facial
|
|
63
|
-
* details that the <a>DetectFaces</a> operation provides.</p>
|
|
64
|
-
* </note>
|
|
65
|
-
* <p>
|
|
66
|
-
* <code>DetectLabels</code> returns bounding boxes for instances of common object labels in an array of
|
|
67
|
-
* <a>Instance</a> objects. An <code>Instance</code> object contains a
|
|
68
|
-
* <a>BoundingBox</a> object, for the location of the label on the image. It also includes
|
|
69
|
-
* the confidence by which the bounding box was detected.</p>
|
|
70
|
-
* <p>
|
|
71
|
-
* <code>DetectLabels</code> also returns a hierarchical taxonomy of detected labels. For example,
|
|
72
|
-
* a detected car might be assigned the label <i>car</i>. The label <i>car</i>
|
|
73
|
-
* has two parent labels: <i>Vehicle</i> (its parent) and <i>Transportation</i> (its
|
|
74
|
-
* grandparent).
|
|
75
|
-
* The response returns the entire list of ancestors for a label. Each ancestor is a unique label in the response.
|
|
76
|
-
* In the previous example, <i>Car</i>, <i>Vehicle</i>, and <i>Transportation</i>
|
|
77
|
-
* are returned as unique labels in the response.
|
|
78
|
-
* </p>
|
|
79
|
-
* <p>This is a stateless API operation. That is, the operation does not persist any
|
|
80
|
-
* data.</p>
|
|
81
|
-
* <p>This operation requires permissions to perform the
|
|
82
|
-
* <code>rekognition:DetectLabels</code> action. </p>
|
|
83
|
-
* @example
|
|
84
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
85
|
-
* ```javascript
|
|
86
|
-
* import { RekognitionClient, DetectLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
87
|
-
* // const { RekognitionClient, DetectLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
88
|
-
* const client = new RekognitionClient(config);
|
|
89
|
-
* const command = new DetectLabelsCommand(input);
|
|
90
|
-
* const response = await client.send(command);
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* @see {@link DetectLabelsCommandInput} for command's `input` shape.
|
|
94
|
-
* @see {@link DetectLabelsCommandOutput} for command's `response` shape.
|
|
95
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
9
|
+
|
|
98
10
|
export declare class DetectLabelsCommand extends $Command<DetectLabelsCommandInput, DetectLabelsCommandOutput, RekognitionClientResolvedConfig> {
|
|
99
11
|
readonly input: DetectLabelsCommandInput;
|
|
100
12
|
constructor(input: DetectLabelsCommandInput);
|
|
101
|
-
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
13
|
+
|
|
104
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectLabelsCommandInput, DetectLabelsCommandOutput>;
|
|
105
15
|
private serialize;
|
|
106
16
|
private deserialize;
|
|
@@ -6,42 +6,11 @@ export interface DetectModerationLabelsCommandInput extends DetectModerationLabe
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectModerationLabelsCommandOutput extends DetectModerationLabelsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects unsafe content in a specified JPEG or PNG format image.
|
|
11
|
-
* Use <code>DetectModerationLabels</code> to moderate images depending on your requirements.
|
|
12
|
-
* For example, you might want to filter images that contain nudity, but not images containing
|
|
13
|
-
* suggestive content.</p>
|
|
14
|
-
* <p>To filter images, use the labels returned by <code>DetectModerationLabels</code>
|
|
15
|
-
* to determine which types of content are appropriate.</p>
|
|
16
|
-
*
|
|
17
|
-
* <p>For information about moderation labels,
|
|
18
|
-
* see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.</p>
|
|
19
|
-
* <p>You pass the input image either as base64-encoded image bytes or as a reference to an
|
|
20
|
-
* image in 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
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { RekognitionClient, DetectModerationLabelsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
28
|
-
* // const { RekognitionClient, DetectModerationLabelsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
29
|
-
* const client = new RekognitionClient(config);
|
|
30
|
-
* const command = new DetectModerationLabelsCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link DetectModerationLabelsCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link DetectModerationLabelsCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
9
|
+
|
|
39
10
|
export declare class DetectModerationLabelsCommand extends $Command<DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput, RekognitionClientResolvedConfig> {
|
|
40
11
|
readonly input: DetectModerationLabelsCommandInput;
|
|
41
12
|
constructor(input: DetectModerationLabelsCommandInput);
|
|
42
|
-
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
13
|
+
|
|
45
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput>;
|
|
46
15
|
private serialize;
|
|
47
16
|
private deserialize;
|
|
@@ -6,68 +6,11 @@ export interface DetectProtectiveEquipmentCommandInput extends DetectProtectiveE
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectProtectiveEquipmentCommandOutput extends DetectProtectiveEquipmentResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the
|
|
11
|
-
* following types of PPE.</p>
|
|
12
|
-
* <ul>
|
|
13
|
-
* <li>
|
|
14
|
-
* <p>Face cover</p>
|
|
15
|
-
* </li>
|
|
16
|
-
* <li>
|
|
17
|
-
* <p>Hand cover</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>Head cover</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* </ul>
|
|
23
|
-
*
|
|
24
|
-
* <p>You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket.
|
|
25
|
-
* The image must be either a PNG or JPG formatted file. </p>
|
|
26
|
-
*
|
|
27
|
-
* <p>
|
|
28
|
-
* <code>DetectProtectiveEquipment</code> detects PPE worn by up to 15 persons detected in an image.</p>
|
|
29
|
-
* <p>For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand).
|
|
30
|
-
* For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE
|
|
31
|
-
* covers the body part. The API returns the confidence it has in each detection
|
|
32
|
-
* (person, PPE, body part and body part coverage). It also returns a bounding box (<a>BoundingBox</a>) for each detected
|
|
33
|
-
* person and each detected item of PPE. </p>
|
|
34
|
-
* <p>You can optionally request a summary of detected PPE items with the <code>SummarizationAttributes</code> input parameter.
|
|
35
|
-
* The summary provides the following information. </p>
|
|
36
|
-
* <ul>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>The persons detected as wearing all of the types of PPE that you specify.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>The persons detected as not wearing all of the types PPE that you specify.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>The persons detected where PPE adornment could not be determined. </p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>This is a stateless API operation. That is, the operation does not persist any data.</p>
|
|
48
|
-
*
|
|
49
|
-
* <p>This operation requires permissions to perform the <code>rekognition:DetectProtectiveEquipment</code> action. </p>
|
|
50
|
-
* @example
|
|
51
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
52
|
-
* ```javascript
|
|
53
|
-
* import { RekognitionClient, DetectProtectiveEquipmentCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
54
|
-
* // const { RekognitionClient, DetectProtectiveEquipmentCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
55
|
-
* const client = new RekognitionClient(config);
|
|
56
|
-
* const command = new DetectProtectiveEquipmentCommand(input);
|
|
57
|
-
* const response = await client.send(command);
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @see {@link DetectProtectiveEquipmentCommandInput} for command's `input` shape.
|
|
61
|
-
* @see {@link DetectProtectiveEquipmentCommandOutput} for command's `response` shape.
|
|
62
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
9
|
+
|
|
65
10
|
export declare class DetectProtectiveEquipmentCommand extends $Command<DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput, RekognitionClientResolvedConfig> {
|
|
66
11
|
readonly input: DetectProtectiveEquipmentCommandInput;
|
|
67
12
|
constructor(input: DetectProtectiveEquipmentCommandInput);
|
|
68
|
-
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
13
|
+
|
|
71
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput>;
|
|
72
15
|
private serialize;
|
|
73
16
|
private deserialize;
|
|
@@ -6,50 +6,11 @@ export interface DetectTextCommandInput extends DetectTextRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DetectTextCommandOutput extends DetectTextResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Detects text in the input image and converts it into machine-readable text.</p>
|
|
11
|
-
* <p>Pass the input image as base64-encoded image bytes or as a reference to an image in an
|
|
12
|
-
* Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a
|
|
13
|
-
* reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not
|
|
14
|
-
* supported. The image must be either a .png or .jpeg formatted file. </p>
|
|
15
|
-
* <p>The <code>DetectText</code> operation returns text in an array of <a>TextDetection</a> elements, <code>TextDetections</code>. Each
|
|
16
|
-
* <code>TextDetection</code> element provides information about a single word or line of text
|
|
17
|
-
* that was detected in the image. </p>
|
|
18
|
-
* <p>A word is one or more ISO basic latin script characters that are not separated by spaces.
|
|
19
|
-
* <code>DetectText</code> can detect up to 100 words in an image.</p>
|
|
20
|
-
* <p>A line is a string of equally spaced words. A line isn't necessarily a complete
|
|
21
|
-
* sentence. For example, a driver's license number is detected as a line. A line ends when there
|
|
22
|
-
* is no aligned text after it. Also, a line ends when there is a large gap between words,
|
|
23
|
-
* relative to the length of the words. This means, depending on the gap between words, Amazon Rekognition
|
|
24
|
-
* may detect multiple lines in text aligned in the same direction. Periods don't represent the
|
|
25
|
-
* end of a line. If a sentence spans multiple lines, the <code>DetectText</code> operation
|
|
26
|
-
* returns multiple lines.</p>
|
|
27
|
-
* <p>To determine whether a <code>TextDetection</code> element is a line of text or a word,
|
|
28
|
-
* use the <code>TextDetection</code> object <code>Type</code> field. </p>
|
|
29
|
-
* <p>To be detected, text must be within +/- 90 degrees orientation of the horizontal axis.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>For more information, see DetectText in the Amazon Rekognition Developer Guide.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { RekognitionClient, DetectTextCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
36
|
-
* // const { RekognitionClient, DetectTextCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
37
|
-
* const client = new RekognitionClient(config);
|
|
38
|
-
* const command = new DetectTextCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link DetectTextCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link DetectTextCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
9
|
+
|
|
47
10
|
export declare class DetectTextCommand extends $Command<DetectTextCommandInput, DetectTextCommandOutput, RekognitionClientResolvedConfig> {
|
|
48
11
|
readonly input: DetectTextCommandInput;
|
|
49
12
|
constructor(input: DetectTextCommandInput);
|
|
50
|
-
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
13
|
+
|
|
53
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectTextCommandInput, DetectTextCommandOutput>;
|
|
54
15
|
private serialize;
|
|
55
16
|
private deserialize;
|
|
@@ -6,36 +6,11 @@ export interface GetCelebrityInfoCommandInput extends GetCelebrityInfoRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetCelebrityInfoCommandOutput extends GetCelebrityInfoResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets the name and additional information about a celebrity based on their Amazon Rekognition ID.
|
|
11
|
-
* The additional information is returned as an array of URLs. If there is no additional
|
|
12
|
-
* information about the celebrity, this list is empty.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>For more information, see Recognizing Celebrities in an Image in
|
|
15
|
-
* the Amazon Rekognition Developer Guide.</p>
|
|
16
|
-
* <p>This operation requires permissions to perform the
|
|
17
|
-
* <code>rekognition:GetCelebrityInfo</code> action. </p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { RekognitionClient, GetCelebrityInfoCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
22
|
-
* // const { RekognitionClient, GetCelebrityInfoCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
23
|
-
* const client = new RekognitionClient(config);
|
|
24
|
-
* const command = new GetCelebrityInfoCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link GetCelebrityInfoCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link GetCelebrityInfoCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
9
|
+
|
|
33
10
|
export declare class GetCelebrityInfoCommand extends $Command<GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput, RekognitionClientResolvedConfig> {
|
|
34
11
|
readonly input: GetCelebrityInfoCommandInput;
|
|
35
12
|
constructor(input: GetCelebrityInfoCommandInput);
|
|
36
|
-
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
13
|
+
|
|
39
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput>;
|
|
40
15
|
private serialize;
|
|
41
16
|
private deserialize;
|
|
@@ -6,63 +6,11 @@ export interface GetCelebrityRecognitionCommandInput extends GetCelebrityRecogni
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetCelebrityRecognitionCommandOutput extends GetCelebrityRecognitionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by
|
|
11
|
-
* <a>StartCelebrityRecognition</a>.</p>
|
|
12
|
-
* <p>Celebrity recognition in a video is an asynchronous operation. Analysis is started by a call
|
|
13
|
-
* to <a>StartCelebrityRecognition</a> which returns a job identifier (<code>JobId</code>).
|
|
14
|
-
* When the celebrity recognition operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service
|
|
15
|
-
* topic registered in the initial call to <code>StartCelebrityRecognition</code>.
|
|
16
|
-
* To get the results of the celebrity recognition analysis, first check that the status value published to the Amazon SNS
|
|
17
|
-
* topic is <code>SUCCEEDED</code>. If so, call <code>GetCelebrityDetection</code> and pass the job identifier
|
|
18
|
-
* (<code>JobId</code>) from the initial call to <code>StartCelebrityDetection</code>. </p>
|
|
19
|
-
*
|
|
20
|
-
* <p>For more information, see Working With Stored Videos in the Amazon Rekognition Developer Guide.</p>
|
|
21
|
-
* <p>
|
|
22
|
-
* <code>GetCelebrityRecognition</code> returns detected celebrities and the time(s) they are detected in an array
|
|
23
|
-
* (<code>Celebrities</code>) of <a>CelebrityRecognition</a>
|
|
24
|
-
* objects. Each <code>CelebrityRecognition</code> contains information about the celebrity in a <a>CelebrityDetail</a>
|
|
25
|
-
* object and the time, <code>Timestamp</code>, the celebrity was detected.
|
|
26
|
-
* </p>
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>
|
|
29
|
-
* <code>GetCelebrityRecognition</code> only returns the default
|
|
30
|
-
* facial attributes (<code>BoundingBox</code>, <code>Confidence</code>,
|
|
31
|
-
* <code>Landmarks</code>, <code>Pose</code>, and <code>Quality</code>). The other facial attributes listed
|
|
32
|
-
* in the <code>Face</code> object of the following response syntax are not returned. For more information,
|
|
33
|
-
* see FaceDetail in the Amazon Rekognition Developer Guide. </p>
|
|
34
|
-
* </note>
|
|
35
|
-
* <p>By default, the <code>Celebrities</code> array is sorted by time (milliseconds from the start of the video).
|
|
36
|
-
* You can also sort the array by celebrity by specifying the value <code>ID</code> in the <code>SortBy</code> input parameter.</p>
|
|
37
|
-
* <p>The <code>CelebrityDetail</code> object includes the celebrity identifer and additional information urls. If you don't store
|
|
38
|
-
* the additional information urls, you can get them later by calling <a>GetCelebrityInfo</a> with the celebrity identifer.</p>
|
|
39
|
-
* <p>No information is returned for faces not recognized as celebrities.</p>
|
|
40
|
-
* <p>Use MaxResults parameter to limit the number of labels returned. If there are more results than
|
|
41
|
-
* specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a
|
|
42
|
-
* pagination token for getting the next set of results. To get the next page of results, call <code>GetCelebrityDetection</code>
|
|
43
|
-
* and populate the <code>NextToken</code> request parameter with the token
|
|
44
|
-
* value returned from the previous call to <code>GetCelebrityRecognition</code>.</p>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { RekognitionClient, GetCelebrityRecognitionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
49
|
-
* // const { RekognitionClient, GetCelebrityRecognitionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
50
|
-
* const client = new RekognitionClient(config);
|
|
51
|
-
* const command = new GetCelebrityRecognitionCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link GetCelebrityRecognitionCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link GetCelebrityRecognitionCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
9
|
+
|
|
60
10
|
export declare class GetCelebrityRecognitionCommand extends $Command<GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput, RekognitionClientResolvedConfig> {
|
|
61
11
|
readonly input: GetCelebrityRecognitionCommandInput;
|
|
62
12
|
constructor(input: GetCelebrityRecognitionCommandInput);
|
|
63
|
-
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
13
|
+
|
|
66
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput>;
|
|
67
15
|
private serialize;
|
|
68
16
|
private deserialize;
|