Manifest file format for custom moderation for amazon Rekognition

0

I'm trying to submit a manifest file to upload images as shown here: Enter image description here But I don't see anywhere mentioning the format of this manifest file. I wonder if anyone supporting the product can provide any insight on this?

  • I mean the exact json format of this file.

已提問 7 個月前檢視次數 215 次
1 個回答
0

Hello,

Please follow the following format when creating an input manifest:

{"source-ref": "s3://foo/bar/Nudity.jpg", "content-moderation-groundtruth": {"ModerationLabels": [{"Name": "Explicit Nudity"}, {"Name": "Suggestive"}]}}
{"source-ref": "s3://foo/bar/Safe.jpg", "content-moderation-groundtruth": {"ModerationLabels": []}}
{"source-ref": "s3://foo/bar/Alcohol.jpg", "content-moderation-groundtruth": {"ModerationLabels": [{"Name": "Alcohol"}]}}

source-ref refers to the S3 location for each image, which must be in .jpg or .png format. source-ref must refer to an S3 location that you have read access to.

content-moderation-groundtruth refers to the Content Moderation labels that are present for the image. Note that each label listed in ModerationLabels must be a Top-Level Category listed in the Moderation documentation; Second-Level Categories will not be processed. For images without labels, provide an empty array for ModerationLabels.

Feel free to let us know if any further clarifications are needed.

AWS
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南