Moderation
This rule checks that the image does not contain any/specific moderation labels.
Parameter table
param | unit | required | description |
---|---|---|---|
confidence | no | The minimum confidence level required for the moderation labels detection. | |
filters | no | An array of moderation labels to filter out. |
How to setup
This rule evaluates whether an image contains moderation labels. Key parameters include:
confidence
: The minimum confidence level required for the moderation labels detection.filters
: An array of moderation labels to check for.
These parameters are optional. If no confidence level is provided, the rule will check for labels
with a confidence level of 50% or higher. If the filters
parameter is not provided,
the rule will check the image against any moderation labels.
Examples
value | valid | confidence | filters | description |
---|---|---|---|---|
✅ | (blood & gore, nudity) | The image should not contain "blood & gore" or "nudity" labels. | ||
❌ | 90 | (blood & gore) | The image should not contain "blood & gore" labels with a confidence level above 90%. | |
✅ | 90 | The image should not contain any moderation labels with a confidence level more than 90%. |