Skip to content

Commit 55214e9

Browse files
author
AWS
committed
Amazon Rekognition Update: Added support for aggregating moderation labels by video segment timestamps for Stored Video Content Moderation APIs and added additional information about the job to all Stored Video Get API responses.
1 parent 2ab8e93 commit 55214e9

File tree

2 files changed

+139
-2
lines changed

2 files changed

+139
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Rekognition",
4+
"contributor": "",
5+
"description": "Added support for aggregating moderation labels by video segment timestamps for Stored Video Content Moderation APIs and added additional information about the job to all Stored Video Get API responses."
6+
}

services/rekognition/src/main/resources/codegen-resources/service-2.json

Lines changed: 133 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,13 @@
17391739
"member":{"shape":"ContentClassifier"},
17401740
"max":256
17411741
},
1742+
"ContentModerationAggregateBy":{
1743+
"type":"string",
1744+
"enum":[
1745+
"TIMESTAMPS",
1746+
"SEGMENTS"
1747+
]
1748+
},
17421749
"ContentModerationDetection":{
17431750
"type":"structure",
17441751
"members":{
@@ -1749,6 +1756,18 @@
17491756
"ModerationLabel":{
17501757
"shape":"ModerationLabel",
17511758
"documentation":"<p>The content moderation label detected by in the stored video.</p>"
1759+
},
1760+
"StartTimestampMillis":{
1761+
"shape":"ULong",
1762+
"documentation":"<p>The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.</p>"
1763+
},
1764+
"EndTimestampMillis":{
1765+
"shape":"ULong",
1766+
"documentation":"<p> The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label. </p>"
1767+
},
1768+
"DurationMillis":{
1769+
"shape":"ULong",
1770+
"documentation":"<p> The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis. </p>"
17521771
}
17531772
},
17541773
"documentation":"<p>Information about an inappropriate, unwanted, or offensive content label detection in a stored video.</p>"
@@ -3460,6 +3479,15 @@
34603479
"Celebrities":{
34613480
"shape":"CelebrityRecognitions",
34623481
"documentation":"<p>Array of celebrities recognized in the video.</p>"
3482+
},
3483+
"JobId":{
3484+
"shape":"JobId",
3485+
"documentation":"<p>Job identifier for the celebrity recognition operation for which you want to obtain results. The job identifer is returned by an initial call to StartCelebrityRecognition.</p>"
3486+
},
3487+
"Video":{"shape":"Video"},
3488+
"JobTag":{
3489+
"shape":"JobTag",
3490+
"documentation":"<p>A job identifier specified in the call to StartCelebrityRecognition and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
34633491
}
34643492
}
34653493
},
@@ -3482,9 +3510,27 @@
34823510
"SortBy":{
34833511
"shape":"ContentModerationSortBy",
34843512
"documentation":"<p>Sort to use for elements in the <code>ModerationLabelDetections</code> array. Use <code>TIMESTAMP</code> to sort array elements by the time labels are detected. Use <code>NAME</code> to alphabetically group elements for a label together. Within each label group, the array element are sorted by detection confidence. The default sort is by <code>TIMESTAMP</code>.</p>"
3513+
},
3514+
"AggregateBy":{
3515+
"shape":"ContentModerationAggregateBy",
3516+
"documentation":"<p>Defines how to aggregate results of the StartContentModeration request. Default aggregation option is TIMESTAMPS. SEGMENTS mode aggregates moderation labels over time.</p>"
34853517
}
34863518
}
34873519
},
3520+
"GetContentModerationRequestMetadata":{
3521+
"type":"structure",
3522+
"members":{
3523+
"SortBy":{
3524+
"shape":"ContentModerationSortBy",
3525+
"documentation":"<p>The sorting method chosen for a GetContentModeration request.</p>"
3526+
},
3527+
"AggregateBy":{
3528+
"shape":"ContentModerationAggregateBy",
3529+
"documentation":"<p>The aggregation method chosen for a GetContentModeration request.</p>"
3530+
}
3531+
},
3532+
"documentation":"<p>Contains metadata about a content moderation request, including the SortBy and AggregateBy options.</p>"
3533+
},
34883534
"GetContentModerationResponse":{
34893535
"type":"structure",
34903536
"members":{
@@ -3511,6 +3557,19 @@
35113557
"ModerationModelVersion":{
35123558
"shape":"String",
35133559
"documentation":"<p>Version number of the moderation detection model that was used to detect inappropriate, unwanted, or offensive content.</p>"
3560+
},
3561+
"JobId":{
3562+
"shape":"JobId",
3563+
"documentation":"<p>Job identifier for the content moderation operation for which you want to obtain results. The job identifer is returned by an initial call to StartContentModeration.</p>"
3564+
},
3565+
"Video":{"shape":"Video"},
3566+
"JobTag":{
3567+
"shape":"JobTag",
3568+
"documentation":"<p>A job identifier specified in the call to StartContentModeration and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
3569+
},
3570+
"GetRequestMetadata":{
3571+
"shape":"GetContentModerationRequestMetadata",
3572+
"documentation":"<p>Information about the paramters used when getting a response. Includes information on aggregation and sorting methods.</p>"
35143573
}
35153574
}
35163575
},
@@ -3554,6 +3613,15 @@
35543613
"Faces":{
35553614
"shape":"FaceDetections",
35563615
"documentation":"<p>An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected. </p>"
3616+
},
3617+
"JobId":{
3618+
"shape":"JobId",
3619+
"documentation":"<p>Job identifier for the face detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartFaceDetection.</p>"
3620+
},
3621+
"Video":{"shape":"Video"},
3622+
"JobTag":{
3623+
"shape":"JobTag",
3624+
"documentation":"<p>A job identifier specified in the call to StartFaceDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
35573625
}
35583626
}
35593627
},
@@ -3640,6 +3708,15 @@
36403708
"Persons":{
36413709
"shape":"PersonMatches",
36423710
"documentation":"<p>An array of persons, <a>PersonMatch</a>, in the video whose face(s) match the face(s) in an Amazon Rekognition collection. It also includes time information for when persons are matched in the video. You specify the input collection in an initial call to <code>StartFaceSearch</code>. Each <code>Persons</code> element includes a time the person was matched, face match details (<code>FaceMatches</code>) for matching faces in the collection, and person information (<code>Person</code>) for the matched person. </p>"
3711+
},
3712+
"JobId":{
3713+
"shape":"JobId",
3714+
"documentation":"<p>Job identifier for the face search operation for which you want to obtain results. The job identifer is returned by an initial call to StartFaceSearch.</p>"
3715+
},
3716+
"Video":{"shape":"Video"},
3717+
"JobTag":{
3718+
"shape":"JobTag",
3719+
"documentation":"<p>A job identifier specified in the call to StartFaceSearch and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
36433720
}
36443721
}
36453722
},
@@ -3669,6 +3746,20 @@
36693746
}
36703747
}
36713748
},
3749+
"GetLabelDetectionRequestMetadata":{
3750+
"type":"structure",
3751+
"members":{
3752+
"SortBy":{
3753+
"shape":"LabelDetectionSortBy",
3754+
"documentation":"<p>The sorting method chosen for a GetLabelDetection request.</p>"
3755+
},
3756+
"AggregateBy":{
3757+
"shape":"LabelDetectionAggregateBy",
3758+
"documentation":"<p>The aggregation method chosen for a GetLabelDetection request.</p>"
3759+
}
3760+
},
3761+
"documentation":"<p>Contains metadata about a label detection request, including the SortBy and AggregateBy options.</p>"
3762+
},
36723763
"GetLabelDetectionResponse":{
36733764
"type":"structure",
36743765
"members":{
@@ -3695,6 +3786,19 @@
36953786
"LabelModelVersion":{
36963787
"shape":"String",
36973788
"documentation":"<p>Version number of the label detection model that was used to detect labels.</p>"
3789+
},
3790+
"JobId":{
3791+
"shape":"JobId",
3792+
"documentation":"<p>Job identifier for the label detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartLabelDetection.</p>"
3793+
},
3794+
"Video":{"shape":"Video"},
3795+
"JobTag":{
3796+
"shape":"JobTag",
3797+
"documentation":"<p>A job identifier specified in the call to StartLabelDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
3798+
},
3799+
"GetRequestMetadata":{
3800+
"shape":"GetLabelDetectionRequestMetadata",
3801+
"documentation":"<p>Information about the paramters used when getting a response. Includes information on aggregation and sorting methods.</p>"
36983802
}
36993803
}
37003804
},
@@ -3742,6 +3846,15 @@
37423846
"Persons":{
37433847
"shape":"PersonDetections",
37443848
"documentation":"<p>An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An array element will exist for each time a person's path is tracked. </p>"
3849+
},
3850+
"JobId":{
3851+
"shape":"JobId",
3852+
"documentation":"<p>Job identifier for the person tracking operation for which you want to obtain results. The job identifer is returned by an initial call to StartPersonTracking.</p>"
3853+
},
3854+
"Video":{"shape":"Video"},
3855+
"JobTag":{
3856+
"shape":"JobTag",
3857+
"documentation":"<p>A job identifier specified in the call to StartCelebrityRecognition and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
37453858
}
37463859
}
37473860
},
@@ -3793,6 +3906,15 @@
37933906
"SelectedSegmentTypes":{
37943907
"shape":"SegmentTypesInfo",
37953908
"documentation":"<p>An array containing the segment types requested in the call to <code>StartSegmentDetection</code>. </p>"
3909+
},
3910+
"JobId":{
3911+
"shape":"JobId",
3912+
"documentation":"<p>Job identifier for the segment detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartSegmentDetection.</p>"
3913+
},
3914+
"Video":{"shape":"Video"},
3915+
"JobTag":{
3916+
"shape":"JobTag",
3917+
"documentation":"<p>A job identifier specified in the call to StartSegmentDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
37963918
}
37973919
}
37983920
},
@@ -3837,6 +3959,15 @@
38373959
"TextModelVersion":{
38383960
"shape":"String",
38393961
"documentation":"<p>Version number of the text detection model that was used to detect text.</p>"
3962+
},
3963+
"JobId":{
3964+
"shape":"JobId",
3965+
"documentation":"<p>Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection.</p>"
3966+
},
3967+
"Video":{"shape":"Video"},
3968+
"JobTag":{
3969+
"shape":"JobTag",
3970+
"documentation":"<p>A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.</p>"
38403971
}
38413972
}
38423973
},
@@ -4130,9 +4261,9 @@
41304261
},
41314262
"JobTag":{
41324263
"type":"string",
4133-
"max":256,
4264+
"max":1024,
41344265
"min":1,
4135-
"pattern":"[a-zA-Z0-9_.\\-:]+"
4266+
"pattern":"[a-zA-Z0-9_.\\-:+=\\/]+"
41364267
},
41374268
"KinesisDataArn":{
41384269
"type":"string",

0 commit comments

Comments
 (0)