Image Moderation - Evaluate Url Input
외설 콘텐츠 또는 성인 콘텐츠가 포함된 이미지의 확률을 반환합니다.
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=url&CacheImage={CacheImage}
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
지원되는 Azure Cognitive Services 엔드포인트(프로토콜 및 호스트 이름(예: https://westus.api.cognitive.microsoft.com). |
Cache
|
query |
boolean |
나중에 사용할 수 있도록 제출된 이미지를 유지할지 여부입니다. 생략하면 기본값은 false입니다. |
요청 헤더
Name | 필수 | 형식 | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Content-Type | True |
string |
콘텐츠 형식입니다. |
요청 본문
Name | 형식 | Description |
---|---|---|
DataRepresentation |
string |
|
Value |
string |
응답
Name | 형식 | Description |
---|---|---|
200 OK | ||
Other Status Codes |
오류 응답입니다. |
보안
Ocp-Apim-Subscription-Key
형식:
apiKey
In(다음 안에):
header
예제
Evaluate Image request
샘플 요청
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=url
{
"DataRepresentation": "URL",
"Value": "https://moderatorsampleimages.blob.core.windows.net/samples/sample.jpg"
}
샘플 응답
{
"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"
}
정의
Name | Description |
---|---|
APIError |
API가 반환하는 오류 정보입니다. |
Error |
오류 본문입니다. |
Evaluate |
평가 응답 개체입니다. |
Key |
키/값 쌍 개체 속성입니다. |
Status |
상태 속성입니다. |
APIError
API가 반환하는 오류 정보입니다.
Name | 형식 | Description |
---|---|---|
Error |
오류 본문입니다. |
Error
오류 본문입니다.
Name | 형식 | Description |
---|---|---|
Code |
string |
|
Message |
string |
Evaluate
평가 응답 개체입니다.
Name | 형식 | Description |
---|---|---|
AdultClassificationScore |
number |
성인 분류 점수입니다. |
AdvancedInfo |
고급 정보입니다. |
|
CacheID |
string |
캐시 ID입니다. |
IsImageAdultClassified |
boolean |
이미지가 성인으로 분류되는지를 나타냅니다. |
IsImageRacyClassified |
boolean |
이미지가 외설로 분류되는지를 나타냅니다. |
RacyClassificationScore |
number |
외설 분류 점수입니다. |
Result |
boolean |
평가 결과입니다. |
Status |
평가 상태입니다. |
|
TrackingId |
string |
추적 ID입니다. |
KeyValuePair
키/값 쌍 개체 속성입니다.
Name | 형식 | Description |
---|---|---|
Key |
string |
키 매개 변수입니다. |
Value |
string |
값 매개 변수입니다. |
Status
상태 속성입니다.
Name | 형식 | Description |
---|---|---|
Code |
integer |
상태 코드입니다. |
Description |
string |
상태 설명입니다. |
Exception |
string |
예외 상태입니다. |