

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 測試內容管制第 7 版並轉換 API 回應
<a name="moderation-response-transform"></a>

Rekognition 將內容管制標籤偵測功能的影像視訊元件機器學習模型從 6.1 版更新為 7 版。此更新提高了整體準確性，並引入了幾個新類別以及修改其他類別。

如果您是 6.1 版的目前影片使用者，我們建議您採取下列動作，無縫轉換為 第 7 版：

1.  下載並使用 AWS 私有 SDK （請參閱 [AWS 內容管制版本 7 的 SDK 和使用者指南](moderation-labels-update-sdk.md)) 來呼叫 StartContentModeration API。

1. 檢閱 API 回應或主控台中傳回的標籤和可信度分數的更新清單。如有必要，請相應地調整您的應用程式後置處理邏輯。

1.  您的帳戶將保留在 6.1 版，直到 2024 年 5 月 13 日為止。如果您想要在 2024 年 5 月 13 日後使用 6.1 版，請在 2024 年 4 月 30 日之前聯絡 [AWS 支援團隊](https://aws.amazon.com/support)以請求延長。我們可以將您的帳戶延伸至 6.1 版，直到 2024 年 6 月 10 日為止。如果我們未在 2024 年 4 月 30 日之前收到您的回覆，您的帳戶將從 2024 年 5 月 13 日開始自動遷移至 7.0 版。

# AWS 內容管制版本 7 的 SDK 和使用者指南
<a name="moderation-labels-update-sdk"></a>

 下載與您選擇的開發語言對應的開發套件，並參閱適當的使用者指南。




| 
| 
| 連結至 SDK | 安裝/使用者指南 | 
| --- |--- |
| [Java-1.X](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_java_v1.jar) | [指南 - Java 1.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_Java1.x.pdf) | 
| [Java-2.X](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_java_v2.jar) | [指南 - Java 2.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_Java2.x.pdf) | 
| [JavaScript v2](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_js_v2.tgz) | [指南 - JavaScript v2.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_JavaScriptV2.pdf) | 
|  [JavaScript v3](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_js_v3.zip) |  [指南 - JavaScript v3.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_JavaScriptV3.pdf) | 
| [Python](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_python.zip) | [指南 - Python 和 AWS CLI.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_Python.pdf) | 
| [Ruby](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_ruby.zip) | [指南 - RubyV3.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_RubyV3.pdf) | 
| [go\$1v1](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_go_v1.zip) | [指南 - GO V1.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_GoV1.pdf) | 
| [go\$1v2](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_go_v2.zip) | [指南 - GO V2.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_GoV2.pdf) | 
| [DotNet](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_dotnet.zip) | [指南 - .NET.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_DotNET.pdf) | 
| [php](https://d1m67pwji3rslw.cloudfront.net/sdk/aws_rekognition_php.zip) | [指南 - PHP.pdf](https://d1m67pwji3rslw.cloudfront.net/guide/Guide_PHP.pdf) | 

## 6.1 至 7 版的標籤映射
<a name="moderation-labels-transform-schema"></a>

內容管制第 7 版新增了標籤類別，並修改了先前現有的標籤名稱。在決定如何將 6.1 標籤映射至 7 個標籤[標籤類別](moderation-api.md#moderation-api-categories)時，請參閱 的分類表。

下節提供一些標籤映射範例。我們建議您先檢閱這些映射和標籤定義，再根據應用程式的後置處理邏輯進行必要的更新。

**L1 映射結構描述**

如果您使用僅篩選最上層類別 (L1) 的後置處理邏輯 （例如 `Explicit Nudity`、 `Violence`等）`Suggestive`，請參閱下表以更新您的程式碼。


| 
| 
| V6.1 L1 | V7 L1 | 
| --- |--- |
| Explicit Nudity | Explicit | 
| Suggestive | Non-Explicit Nudity of Intimate parts and Kissing | 
| Swimwear or Underwear | 
| Violence | Violence | 
| Visually Disturbing | Visually Disturbing | 
| Rude Gestures | Rude Gestures | 
| Drugs | Drugs & Tobacco | 
| Tobacco | Drugs & Tobacco | 
| Alcohol | Alcohol | 
| Gambling | Gambling | 
| Hate Symbols | Hate Symbols | 

**L2 映射結構描述**

如果您使用 L1 和 L2 類別 （例如 `Violence / Weapon Violence`等） 上篩選的後製處理邏輯`Explicit Nudity / Nudity, Suggestive / Female Swimwear Or Underwear`，請參閱下表以更新您的程式碼。


| 
| 
| V6.1 L1 | V6.1 L2 | V7 L1 | V7 L2 | V7 L3 | V7 ContentTypes | 
| --- |--- |--- |--- |--- |--- |
| Explicit Nudity | Nudity | Explicit | Explicit Nudity | 暴露的母乳頭 暴露的臀部或 Anus | 
| Graphic Male Nudity | Explicit | Explicit Nudity | Exposed Male Genitalia | 
| Graphic Female Nudity | Explicit | Explicit Nudity | Exposed Female Genitalia | 
| Sexual Activity | Explicit | Explicit Sexual Activity |  |  | 
| Illustrated Explicit Nudity | Explicit | Explicit Nudity |  | Map to "Animated" and "Illustrated" | 
| Illustrated Explicit Nudity | Explicit | Explicit Sexual Activity |  | Map to "Animated" and "Illustrated" | 
| Adult Toys | Explicit | Sex Toys |  | 
| Suggestive | Female Swimwear Or Underwear | Swimwear or Underwear | Female Swimwear or Underwear |  | 
| Male Swimwear Or Underwear | Swimwear or Underwear | Male Swimwear or Underwear |  | 
| Partial Nudity | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity | Implied Nudity | 
| Barechested Male | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity | Exposed Male Nipple | 
| Revealing Clothes | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity |  | 
| Non-Explicit Nudity of Intimate parts and Kissing | Obstructed Intimate Parts |  | 
| Sexual Situations | Non-Explicit Nudity of Intimate parts and Kissing | Kissing on the Lips |  | 
| Violence | Graphic Violence Or Gore | Violence | Graphic Violence | Blood & Gore | 
| Physical Violence | Violence | Graphic Violence | Physical Violence | 
| Weapon Violence | Violence | Graphic Violence | Weapon Violence | 
| Weapons | Violence | Weapons |  | 
| Self Injury | Violence | Graphic Violence | Self-Harm | 
| Visually Disturbing | Emaciated Bodies | Visually Disturbing | Death and Emaciation | Emaciated Bodies | 
| Corpses | Visually Disturbing | Death and Emaciation | Corpses | 
| Hanging | Visually Disturbing | Death and Emaciation | Corpses | 
| Air Crash | Visually Disturbing | Crashes | Air Crash | 
| Explosions And Blasts | Violence | Graphic Violence | Explosions and Blasts | 
| Rude Gestures | Middle Finger | Rude Gestures | Middle Finger |  | 
| Drugs | Drug Products | Drugs & Tobacco | Products |  | 
| Drug Use | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use |  | 
| Pills | Drugs & Tobacco | Products | Pills | 
| Drug Paraphernalia | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use |  | 
| Tobacco | Tobacco Products | Drugs & Tobacco | Products |  | 
| Smoking | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use | Smoking | 
| Alcohol | Drinking | Alcohol | Alcohol Use | Drinking | 
| Alcoholic Beverages | Alcohol | Alcoholic Beverages |  | 
| Gambling | Gambling | Gambling |  |  | 
| Hate Symbols | Nazi Party | Hate Symbols | Nazi Party |  | 
| White Supremacy | Hate Symbols | White Supremacy |  | 
| Extremist | Hate Symbols | Extremist |  | 