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.

asked 6 months ago205 views
1 Answer
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
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions