Compartilhar via


Image Moderation - Evaluate File Input

Returns probabilities of the image containing racy or adult content.

POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=stream&CacheImage={CacheImage}

URI Parameters

Name In Required Type Description
Endpoint
path True

string

Supported Azure Cognitive Services endpoints (protocol and host name, such as https://westus.api.cognitive.microsoft.com).

CacheImage
query

boolean

Whether to retain the submitted image for future use. If it's omitted, the default is false.

Request Header

Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Request Body

Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"

Name Type Description
ImageStream

object

Image file.

Responses

Name Type Description
200 OK

Evaluate

Other Status Codes

APIError

Error response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Definitions

Name Description
APIError

Error information that the API returns.

Error

Error body.

Evaluate

Evaluation response object.

KeyValuePair

Key/value pair object properties.

Status

Status properties.

APIError

Error information that the API returns.

Name Type Description
Error

Error

Error body.

Error

Error body.

Name Type Description
Code

string

Message

string

Evaluate

Evaluation response object.

Name Type Description
AdultClassificationScore

number

Adult classification score.

AdvancedInfo

KeyValuePair[]

Advanced info.

CacheID

string

Cache ID.

IsImageAdultClassified

boolean

Indicates if an image is classified as adult.

IsImageRacyClassified

boolean

Indicates if the image is classified as racy.

RacyClassificationScore

number

Racy classification score.

Result

boolean

Evaluation result.

Status

Status

Evaluation status.

TrackingId

string

Tracking ID.

KeyValuePair

Key/value pair object properties.

Name Type Description
Key

string

Key parameter.

Value

string

Value parameter.

Status

Status properties.

Name Type Description
Code

integer

Status code.

Description

string

Status description.

Exception

string

Exception status.