@aws-sdk/client-rekognition 3.427.0 → 3.429.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/dist-cjs/models/models_0.js +12 -12
- package/dist-cjs/models/models_1.js +11 -1
- package/dist-cjs/protocols/Aws_json1_1.js +48 -1
- package/dist-es/models/models_0.js +10 -10
- package/dist-es/models/models_1.js +10 -0
- package/dist-es/protocols/Aws_json1_1.js +48 -1
- package/dist-types/commands/CopyProjectVersionCommand.d.ts +12 -5
- package/dist-types/commands/CreateDatasetCommand.d.ts +9 -4
- package/dist-types/commands/CreateProjectCommand.d.ts +13 -6
- package/dist-types/commands/CreateProjectVersionCommand.d.ts +29 -22
- package/dist-types/commands/CreateStreamProcessorCommand.d.ts +5 -3
- package/dist-types/commands/DeleteDatasetCommand.d.ts +9 -4
- package/dist-types/commands/DeleteProjectCommand.d.ts +2 -2
- package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +4 -1
- package/dist-types/commands/DeleteProjectVersionCommand.d.ts +6 -7
- package/dist-types/commands/DescribeDatasetCommand.d.ts +4 -1
- package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +12 -4
- package/dist-types/commands/DescribeProjectsCommand.d.ts +6 -1
- package/dist-types/commands/DetectCustomLabelsCommand.d.ts +9 -4
- package/dist-types/commands/DetectModerationLabelsCommand.d.ts +12 -0
- package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +4 -1
- package/dist-types/commands/ListDatasetEntriesCommand.d.ts +4 -1
- package/dist-types/commands/ListDatasetLabelsCommand.d.ts +4 -1
- package/dist-types/commands/ListProjectPoliciesCommand.d.ts +4 -1
- package/dist-types/commands/PutProjectPolicyCommand.d.ts +12 -6
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +2 -1
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +6 -5
- package/dist-types/commands/StartContentModerationCommand.d.ts +5 -3
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +5 -3
- package/dist-types/commands/StartFaceSearchCommand.d.ts +5 -3
- package/dist-types/commands/StartLabelDetectionCommand.d.ts +5 -3
- package/dist-types/commands/StartPersonTrackingCommand.d.ts +5 -3
- package/dist-types/commands/StartProjectVersionCommand.d.ts +11 -7
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +5 -3
- package/dist-types/commands/StartTextDetectionCommand.d.ts +5 -3
- package/dist-types/commands/StopProjectVersionCommand.d.ts +7 -3
- package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +9 -4
- package/dist-types/models/models_0.d.ts +253 -241
- package/dist-types/models/models_1.d.ts +130 -13
- package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +99 -94
- package/dist-types/ts3.4/models/models_1.d.ts +37 -6
- package/package.json +32 -32
|
@@ -1,6 +1,128 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { BlackFrame, ConnectedHomeSettingsForUpdate, DatasetChanges, DetectionFilter, FaceAttributes, KinesisVideoStreamStartSelector, LabelDetectionFeatureName, LabelDetectionSettings, NotificationChannel, ProjectVersionStatus, RegionOfInterest, SegmentType, StreamProcessorDataSharingPreference, Video } from "./models_0";
|
|
2
|
+
import { BlackFrame, ConnectedHomeSettingsForUpdate, DatasetChanges, DetectionFilter, FaceAttributes, FaceDetail, KinesisVideoStreamStartSelector, LabelDetectionFeatureName, LabelDetectionSettings, NotificationChannel, ProjectVersionStatus, RegionOfInterest, SearchedFaceDetails, SegmentType, StreamProcessorDataSharingPreference, UserMatch, Video } from "./models_0";
|
|
3
3
|
import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
* @enum
|
|
7
|
+
*/
|
|
8
|
+
export declare const UnsearchedFaceReason: {
|
|
9
|
+
readonly EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES";
|
|
10
|
+
readonly EXTREME_POSE: "EXTREME_POSE";
|
|
11
|
+
readonly FACE_NOT_LARGEST: "FACE_NOT_LARGEST";
|
|
12
|
+
readonly LOW_BRIGHTNESS: "LOW_BRIGHTNESS";
|
|
13
|
+
readonly LOW_CONFIDENCE: "LOW_CONFIDENCE";
|
|
14
|
+
readonly LOW_FACE_QUALITY: "LOW_FACE_QUALITY";
|
|
15
|
+
readonly LOW_SHARPNESS: "LOW_SHARPNESS";
|
|
16
|
+
readonly SMALL_BOUNDING_BOX: "SMALL_BOUNDING_BOX";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type UnsearchedFaceReason = (typeof UnsearchedFaceReason)[keyof typeof UnsearchedFaceReason];
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
* <p>Face details inferred from the image but not used for search. The response attribute
|
|
25
|
+
* contains reasons for why a face wasn't used for Search. </p>
|
|
26
|
+
*/
|
|
27
|
+
export interface UnsearchedFace {
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* <p>Structure containing attributes of the face that the algorithm detected.</p>
|
|
31
|
+
* <p>A <code>FaceDetail</code> object contains either the default facial attributes or all
|
|
32
|
+
* facial attributes. The default attributes are <code>BoundingBox</code>,
|
|
33
|
+
* <code>Confidence</code>, <code>Landmarks</code>, <code>Pose</code>, and
|
|
34
|
+
* <code>Quality</code>.</p>
|
|
35
|
+
* <p>
|
|
36
|
+
* <a>GetFaceDetection</a> is the only Amazon Rekognition Video stored video operation that can
|
|
37
|
+
* return a <code>FaceDetail</code> object with all attributes. To specify which attributes to
|
|
38
|
+
* return, use the <code>FaceAttributes</code> input parameter for <a>StartFaceDetection</a>. The following Amazon Rekognition Video operations return only the default
|
|
39
|
+
* attributes. The corresponding Start operations don't have a <code>FaceAttributes</code> input
|
|
40
|
+
* parameter:</p>
|
|
41
|
+
* <ul>
|
|
42
|
+
* <li>
|
|
43
|
+
* <p>GetCelebrityRecognition</p>
|
|
44
|
+
* </li>
|
|
45
|
+
* <li>
|
|
46
|
+
* <p>GetPersonTracking</p>
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>
|
|
49
|
+
* <p>GetFaceSearch</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* </ul>
|
|
52
|
+
* <p>The Amazon Rekognition Image <a>DetectFaces</a> and <a>IndexFaces</a> operations
|
|
53
|
+
* can return all facial attributes. To specify which attributes to return, use the
|
|
54
|
+
* <code>Attributes</code> input parameter for <code>DetectFaces</code>. For
|
|
55
|
+
* <code>IndexFaces</code>, use the <code>DetectAttributes</code> input parameter.</p>
|
|
56
|
+
*/
|
|
57
|
+
FaceDetails?: FaceDetail;
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* <p> Reasons why a face wasn't used for Search. </p>
|
|
61
|
+
*/
|
|
62
|
+
Reasons?: UnsearchedFaceReason[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export interface SearchUsersByImageResponse {
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* <p>An array of UserID objects that matched the input face, along with the confidence in the
|
|
71
|
+
* match. The returned structure will be empty if there are no matches. Returned if the
|
|
72
|
+
* SearchUsersByImageResponse action is successful.</p>
|
|
73
|
+
*/
|
|
74
|
+
UserMatches?: UserMatch[];
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
* <p>Version number of the face detection model associated with the input collection
|
|
78
|
+
* CollectionId.</p>
|
|
79
|
+
*/
|
|
80
|
+
FaceModelVersion?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
* <p>A list of FaceDetail objects containing the BoundingBox for the largest face in image, as
|
|
84
|
+
* well as the confidence in the bounding box, that was searched for matches. If no valid face is
|
|
85
|
+
* detected in the image the response will contain no SearchedFace object.</p>
|
|
86
|
+
*/
|
|
87
|
+
SearchedFace?: SearchedFaceDetails;
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
* <p>List of UnsearchedFace objects. Contains the face details infered from the specified image
|
|
91
|
+
* but not used for search. Contains reasons that describe why a face wasn't used for Search.
|
|
92
|
+
* </p>
|
|
93
|
+
*/
|
|
94
|
+
UnsearchedFaces?: UnsearchedFace[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export interface StartCelebrityRecognitionRequest {
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* <p>The video in which you want to recognize celebrities. The video must be stored
|
|
103
|
+
* in an Amazon S3 bucket.</p>
|
|
104
|
+
*/
|
|
105
|
+
Video: Video | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* <p>Idempotent token used to identify the start request. If you use the same token with multiple
|
|
109
|
+
* <code>StartCelebrityRecognition</code> requests, the same <code>JobId</code> is returned. Use
|
|
110
|
+
* <code>ClientRequestToken</code> to prevent the same job from being accidently started more than once. </p>
|
|
111
|
+
*/
|
|
112
|
+
ClientRequestToken?: string;
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
* <p>The Amazon SNS topic ARN that you want Amazon Rekognition Video to publish the completion status of the
|
|
116
|
+
* celebrity recognition analysis to. The Amazon SNS topic must have a topic name that begins with <i>AmazonRekognition</i> if you are using the AmazonRekognitionServiceRole permissions policy.</p>
|
|
117
|
+
*/
|
|
118
|
+
NotificationChannel?: NotificationChannel;
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* <p>An identifier you specify that's returned in the completion notification that's published to your Amazon Simple Notification Service topic.
|
|
122
|
+
* For example, you can use <code>JobTag</code> to group related jobs and identify them in the completion notification.</p>
|
|
123
|
+
*/
|
|
124
|
+
JobTag?: string;
|
|
125
|
+
}
|
|
4
126
|
/**
|
|
5
127
|
* @public
|
|
6
128
|
*/
|
|
@@ -113,7 +235,7 @@ export interface StartFaceDetectionRequest {
|
|
|
113
235
|
* <p>
|
|
114
236
|
* <code>ALL</code> - All facial attributes are returned.</p>
|
|
115
237
|
*/
|
|
116
|
-
FaceAttributes?: FaceAttributes
|
|
238
|
+
FaceAttributes?: FaceAttributes;
|
|
117
239
|
/**
|
|
118
240
|
* @public
|
|
119
241
|
* <p>An identifier you specify that's returned in the completion notification that's published to your Amazon Simple Notification Service topic.
|
|
@@ -225,7 +347,7 @@ export interface StartLabelDetectionRequest {
|
|
|
225
347
|
* @public
|
|
226
348
|
* <p>The features to return after video analysis. You can specify that GENERAL_LABELS are returned.</p>
|
|
227
349
|
*/
|
|
228
|
-
Features?:
|
|
350
|
+
Features?: LabelDetectionFeatureName[];
|
|
229
351
|
/**
|
|
230
352
|
* @public
|
|
231
353
|
* <p>The settings for a StartLabelDetection request.Contains the specified parameters for the label detection request of an asynchronous label analysis operation.
|
|
@@ -298,11 +420,6 @@ export interface StartProjectVersionRequest {
|
|
|
298
420
|
* @public
|
|
299
421
|
* <p>The minimum number of inference units to use. A single
|
|
300
422
|
* inference unit represents 1 hour of processing. </p>
|
|
301
|
-
* <p>For information about the number
|
|
302
|
-
* of transactions per second (TPS) that an inference unit can support, see
|
|
303
|
-
* <i>Running a trained Amazon Rekognition Custom Labels model</i> in the
|
|
304
|
-
* Amazon Rekognition Custom Labels Guide.
|
|
305
|
-
* </p>
|
|
306
423
|
* <p>Use a higher number to increase the TPS throughput of your model. You are charged for the number
|
|
307
424
|
* of inference units that you use.
|
|
308
425
|
* </p>
|
|
@@ -323,7 +440,7 @@ export interface StartProjectVersionResponse {
|
|
|
323
440
|
* @public
|
|
324
441
|
* <p>The current running status of the model. </p>
|
|
325
442
|
*/
|
|
326
|
-
Status?: ProjectVersionStatus
|
|
443
|
+
Status?: ProjectVersionStatus;
|
|
327
444
|
}
|
|
328
445
|
/**
|
|
329
446
|
* @public
|
|
@@ -423,7 +540,7 @@ export interface StartSegmentDetectionRequest {
|
|
|
423
540
|
* @public
|
|
424
541
|
* <p>An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.</p>
|
|
425
542
|
*/
|
|
426
|
-
SegmentTypes:
|
|
543
|
+
SegmentTypes: SegmentType[] | undefined;
|
|
427
544
|
}
|
|
428
545
|
/**
|
|
429
546
|
* @public
|
|
@@ -578,7 +695,7 @@ export interface StartTextDetectionResponse {
|
|
|
578
695
|
export interface StopProjectVersionRequest {
|
|
579
696
|
/**
|
|
580
697
|
* @public
|
|
581
|
-
* <p>The Amazon Resource Name (ARN) of the model version that you want to
|
|
698
|
+
* <p>The Amazon Resource Name (ARN) of the model version that you want to stop.</p>
|
|
582
699
|
* <p>This operation requires permissions to perform the <code>rekognition:StopProjectVersion</code> action.</p>
|
|
583
700
|
*/
|
|
584
701
|
ProjectVersionArn: string | undefined;
|
|
@@ -591,7 +708,7 @@ export interface StopProjectVersionResponse {
|
|
|
591
708
|
* @public
|
|
592
709
|
* <p>The current status of the stop operation. </p>
|
|
593
710
|
*/
|
|
594
|
-
Status?: ProjectVersionStatus
|
|
711
|
+
Status?: ProjectVersionStatus;
|
|
595
712
|
}
|
|
596
713
|
/**
|
|
597
714
|
* @public
|
|
@@ -740,7 +857,7 @@ export interface UpdateStreamProcessorRequest {
|
|
|
740
857
|
* A list of parameters you want to delete from the stream processor.
|
|
741
858
|
* </p>
|
|
742
859
|
*/
|
|
743
|
-
ParametersToDelete?:
|
|
860
|
+
ParametersToDelete?: StreamProcessorParameterToDelete[];
|
|
744
861
|
}
|
|
745
862
|
/**
|
|
746
863
|
* @public
|
|
@@ -6,10 +6,8 @@ import {
|
|
|
6
6
|
MetadataBearer as __MetadataBearer,
|
|
7
7
|
MiddlewareStack,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
SearchUsersByImageResponse,
|
|
12
|
-
} from "../models/models_0";
|
|
9
|
+
import { SearchUsersByImageRequest } from "../models/models_0";
|
|
10
|
+
import { SearchUsersByImageResponse } from "../models/models_1";
|
|
13
11
|
import {
|
|
14
12
|
RekognitionClientResolvedConfig,
|
|
15
13
|
ServiceInputTypes,
|
|
@@ -6,8 +6,10 @@ import {
|
|
|
6
6
|
MetadataBearer as __MetadataBearer,
|
|
7
7
|
MiddlewareStack,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
StartCelebrityRecognitionRequest,
|
|
11
|
+
StartCelebrityRecognitionResponse,
|
|
12
|
+
} from "../models/models_1";
|
|
11
13
|
import {
|
|
12
14
|
RekognitionClientResolvedConfig,
|
|
13
15
|
ServiceInputTypes,
|