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.

posta 7 mesi fa215 visualizzazioni
1 Risposta
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
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande