Image Moderation - Evaluate Url Input
Retourneert de waarschijnlijkheid van de afbeelding die ongepaste inhoud of inhoud voor volwassenen bevat.
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=url&CacheImage={CacheImage}
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Ondersteunde Azure Cognitive Services-eindpunten (protocol- en hostnaam, zoals https://westus.api.cognitive.microsoft.com). |
Cache
|
query |
boolean |
Of de ingediende installatiekopieën moeten worden bewaard voor toekomstig gebruik. Als dit wordt weggelaten, is de standaardwaarde false. |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Content-Type | True |
string |
Inhoudstype. |
Aanvraagbody
Name | Type | Description |
---|---|---|
DataRepresentation |
string |
|
Value |
string |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK | ||
Other Status Codes |
Foutreactie. |
Beveiliging
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Voorbeelden
Evaluate Image request
Voorbeeldaanvraag
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=url
{
"DataRepresentation": "URL",
"Value": "https://moderatorsampleimages.blob.core.windows.net/samples/sample.jpg"
}
Voorbeeldrespons
{
"AdultClassificationScore": 0.021854378283023834,
"IsImageAdultClassified": false,
"RacyClassificationScore": 0.045791395008563995,
"IsImageRacyClassified": false,
"AdvancedInfo": [
{
"Key": "ImageDownloadTimeInMs",
"Value": "2328"
}
],
"Result": false,
"Status": {
"Code": 3000,
"Description": "OK",
"Exception": ""
},
"TrackingId": "SEA_ad975eeae1f24f81bebb40be0c3ba4fd_ContentModerator.Preview_c6ca58fc-dc30-4961-9526-e8bdfb3b3bf5",
"CacheID": "c660dfa6-eba9-4950-aa58-a6967de57ea8_636422189473647994"
}
Definities
Name | Description |
---|---|
APIError |
Foutinformatie die door de API wordt geretourneerd. |
Error |
Fouttekst. |
Evaluate |
Evaluatieantwoordobject. |
Key |
Eigenschappen van sleutel-waardepaarobjecten. |
Status |
Statuseigenschappen. |
APIError
Foutinformatie die door de API wordt geretourneerd.
Name | Type | Description |
---|---|---|
Error |
Fouttekst. |
Error
Fouttekst.
Name | Type | Description |
---|---|---|
Code |
string |
|
Message |
string |
Evaluate
Evaluatieantwoordobject.
Name | Type | Description |
---|---|---|
AdultClassificationScore |
number |
Classificatiescore voor volwassenen. |
AdvancedInfo |
Geavanceerde informatie. |
|
CacheID |
string |
Cache-id. |
IsImageAdultClassified |
boolean |
Geeft aan of een afbeelding is geclassificeerd als volwassene. |
IsImageRacyClassified |
boolean |
Geeft aan of de afbeelding is geclassificeerd als ongepast. |
RacyClassificationScore |
number |
Racy-classificatiescore. |
Result |
boolean |
Evaluatieresultaat. |
Status |
Evaluatiestatus. |
|
TrackingId |
string |
Tracerings-id. |
KeyValuePair
Eigenschappen van sleutel-waardepaarobjecten.
Name | Type | Description |
---|---|---|
Key |
string |
Sleutelparameter. |
Value |
string |
Waardeparameter. |
Status
Statuseigenschappen.
Name | Type | Description |
---|---|---|
Code |
integer |
Statuscode. |
Description |
string |
Statusbeschrijving. |
Exception |
string |
Uitzonderingsstatus. |