Image Moderation - Evaluate File Input
傳回包含猥褻或成人內容的影像機率。
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate
POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?overload=stream&CacheImage={CacheImage}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
支援的 Azure 認知服務端點(通訊協定和主機名,例如 https://westus.api.cognitive.microsoft.com)。 |
Cache
|
query |
boolean |
是否保留提交的影像以供日後使用。 如果省略,預設值為 false。 |
要求標頭
Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"
名稱 | 必要 | 類型 | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
要求本文
Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"
名稱 | 類型 | Description |
---|---|---|
ImageStream |
object (file) |
圖像檔。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK | ||
Other Status Codes |
錯誤回應。 |
安全性
Ocp-Apim-Subscription-Key
類型:
apiKey
位於:
header
定義
名稱 | Description |
---|---|
APIError |
API 傳回的錯誤資訊。 |
Error |
錯誤本文。 |
Evaluate |
評估回應物件。 |
Key |
索引鍵/值組物件屬性。 |
Status |
狀態屬性。 |
APIError
API 傳回的錯誤資訊。
名稱 | 類型 | Description |
---|---|---|
Error |
錯誤本文。 |
Error
錯誤本文。
名稱 | 類型 | Description |
---|---|---|
Code |
string |
|
Message |
string |
Evaluate
評估回應物件。
名稱 | 類型 | Description |
---|---|---|
AdultClassificationScore |
number |
成人分類分數。 |
AdvancedInfo |
進階資訊。 |
|
CacheID |
string |
快取標識碼。 |
IsImageAdultClassified |
boolean |
指出影像是否分類為成人。 |
IsImageRacyClassified |
boolean |
指出影像是否分類為猥褻。 |
RacyClassificationScore |
number |
猥褻分類分數。 |
Result |
boolean |
評估結果。 |
Status |
評估狀態。 |
|
TrackingId |
string |
追蹤標識碼。 |
KeyValuePair
索引鍵/值組物件屬性。
名稱 | 類型 | Description |
---|---|---|
Key |
string |
索引鍵參數。 |
Value |
string |
Value 參數。 |
Status
狀態屬性。
名稱 | 類型 | Description |
---|---|---|
Code |
integer |
狀態代碼。 |
Description |
string |
狀態描述。 |
Exception |
string |
例外狀況狀態。 |