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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则