

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Rekognition の分析タイプについて
<a name="how-it-works-types"></a>

Amazon Rekognition Image API と Amazon Rekognition Video API で実行できる分析のタイプは以下のとおりです。API の詳細については、「[Rekognition の画像およびビデオオペレーションについて](how-it-works-operations-intro.md)」を参照してください。

以下の表は、使用するメディアのタイプおよびユースケースに応じて使用すべきオペレーションを一覧にまとめたものです。


****  

| ユースケース | メディアタイプ | オペレーション | 
| --- | --- | --- | 
|  [コンテンツのモデレーション](moderation.md)  | イメージ |  [DetectModerationLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html)、[StartMediaAnalysisJob](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html)、[GetMediaAnalysisJob](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetMediaAnalysisJob.html)、[ListMediaAnalysisJobs](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListMediaAnalysisJobs.html)  | 
|  | 保存済みビデオ | [StartContentModeration](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartContentModeration.html)、[GetContentModeration](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetContentModeration.html)  | 
| 本人確認 | [イメージ](collections.md) | [CreateCollection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateCollection.html)、[CreateUser](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateUser.html)、[IndexFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html)、[AssociateFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AssociateFaces.html)、[SearchFacesByImage](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFacesByImage.html)、[SearchUsersByImage](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html) | 
|  | [保存済みビデオ](procedure-person-search-videos.md) | [CreateCollection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateCollection.html)、[IndexFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html)、[StartFaceSearch](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceSearch.html)、[GetFaceSearch](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceSearch.html) | 
|  | ストリーミングビデオ ([顔のライブネスの検出](face-liveness.md)) |  [CreateFaceLivenessSession](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateFaceLivenessSession.html)、[StartFaceLivenessSession](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceLivenessSession.html)、[GetFaceLivenessSessionResults](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceLivenessSessionResults.html)  | 
| [顔分析](faces.md) | イメージ | [DetectFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectFaces.html)、[CompareFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html) | 
|  | 保存済みビデオ | [StartFaceDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceDetection.html)、[GetFaceDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceDetection.html) | 
|  | ストリーミングビデオ | [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor.html)、[StartStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartStreamProcessor.html) | 
| [オブジェクトとアクティビティの認識](labels.md) | イメージ | [DetectLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectLabels.html) | 
|  | 保存済みビデオ | [StartLabelDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartLabelDetection.html)、[GetLabelDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetLabelDetection.html) | 
| [コネクテッドホーム](https://github.com/aws-samples/rekognition-streaming-video-events) | ストリーミングビデオ | [StartStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartStreamProcessor.html) | 
| [メディア分析](segments.md) | 保存済みビデオ | [StartSegmentDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartSegmentDetection.html)、[GetSegmentDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetSegmentDetection.html) | 
| [職場の安全](ppe-detection.md) | イメージ | [DetectProtectiveEquipment](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectProtectiveEquipment.html) | 
| [テキストの検出](text-detection.md) | イメージ | [DetectText](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectText.html) | 
|  | 動画 | [StartTextDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartTextDetection.html)、[GetTextDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetTextDetection.html) | 
| [人物の動線の検出](persons.md) | 動画 | [StartPersonTracking](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartPersonTracking.html)、[GetPersonTracking](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetPersonTracking.html) | 
| [有名人の認識](celebrities.md) | イメージ | [RecognizeCelebrities](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html) | 
|  | 動画 | [StartCelebrityRecognition](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartCelebrityRecognition.html)、[GetCelebrityRecognition](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityRecognition.html) | 
| [カスタムラベル検出](https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/what-is.html) | イメージ | [DetectCustomLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectCustomLabels.html) | 
|  | モデルトレーニング | [「Custom Labels developer guide」を参照のこと](https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/what-is.html) | 

## ラベル
<a name="how-it-works-labels-intro"></a>

ラベルとは、オブジェクト (花、木、テーブルなど)、イベント (結婚式、卒業式、誕生日会など)、概念 (風景、夜、自然など)、アクティビティ (走る、バスケットボールをするなど) のうちのいずれかを指します。Amazon Rekognition では、イメージやビデオ内のラベルを検出できます。詳細については、「[オブジェクトおよび概念の検出](labels.md)」を参照してください。

Rekognition は、イメージや保存済みビデオから、大量のラベルリストを検出できます。また、ストリーミングビデオから少数のラベルを検出することもできます。

ラベルを検出するには、ユースケースに応じて次のオペレーションを使用します。
+ イメージ内のラベルを検出するには、[DetectLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectLabels.html) を使用します。主要な色や画質といったイメージの特性を識別できます。実行するには、[DetectLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectLabels.html) と共に `IMAGE_PROPERTIES` を入力パラメータとして使用します。
+ 保存済みビデオのラベルを検出するには、[StartLabelDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartLabelDetection.html) を使用します。保存済みビデオでは、主要な色や画質の検出はサポートされていません。
+ ストリーミングビデオのラベルを検出するには、[CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor.html) を使用します。ストリーミングビデオでは、主要な色や画質の検出はサポートされていません。

イメージと保存済みビデオの両方で返すラベルの種類は、包含フィルターと除外フィルターのオプションを使用することで指定できます。

## カスタムラベル
<a name="how-it-works-custom-labels-intro"></a>

Amazon Rekognition カスタムラベルは、機械学習モデルをトレーニングすることで、ビジネスニーズに固有のイメージ内のオブジェクトやシーンを識別できます。たとえば、モデルをトレーニングして、ロゴを検出したり、組立ラインでエンジニアリング機械部品を検出したりできます。

**注記**  
Amazon Rekognition カスタムラベルの詳細については、[[Amazon Rekognition カスタムラベル開発者ガイド](https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/what-is.html)] を参照してください。

Amazon Rekognition には、機械学習モデルの作成、トレーニング、評価、実行に使用するコンソールが用意されています。詳細については、[[Amazon Rekognition カスタムラベル デベロッパーガイド](https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/gs-introduction.html)] の [*Amazon Rekognition カスタムラベルを使い始める*] を参照してください。Amazon Rekognition カスタムラベル API を使用して、モデルをトレーニングおよび実行することもできます。詳細については、[[Amazon Rekognition カスタムラベル デベロッパー ガイド](https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/gs-cli.html)] の [*Amazon Rekognition カスタムラベル SDK を使い始める*] を参照してください。

トレーニングされたモデルを使用してイメージを分析するには、[DetectCustomLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectCustomLabels.html) を使用します。

## Face Liveness による検出
<a name="face-liveness-detection"></a>

Amazon Rekognition Face Liveness を使用すると、顔での本人確認をパスしたユーザーが実際にカメラの前に存在しており、そのユーザーをかたった偽者ではないことを、確認できます。Face Liveness は、カメラにしかけられたなりすまし攻撃やカメラを回避する攻撃を検出する機能です。Face Liveness のチェックはユーザーが短い自撮り動画を撮影することで完了し、それにより Liveness のスコアが返されます。Face Liveness は確率的計算で算出され、チェック後に信頼スコア (0～100) が返されます。スコアが高いほど、チェックした人物が実在している確実性が高くなります。

Face Liveness の詳細については、「[顔のライブネスの検出](face-liveness.md)」を参照してください。

## 顔の検出と分析
<a name="how-it-works-faces-intro"></a>

Amazon Rekognition では、イメージおよび保存済みビデオ内の顔を検出できます。Amazon Rekognition を使用すると、以下に関する情報を取得できます。
+ イメージまたはビデオで顔が検出された場所
+ 顔のランドマーク (目の位置など)
+ イメージ内で顔を覆っている物の有無
+ 確認できる感情 (うれしい、悲しいなど)
+ イメージ内にいる人の視線の方向

性別や年齢といった人口統計的情報を読み取ることもできます。また、イメージ内の顔を、別のイメージで検出された顔と比較することもできます。顔に関する情報を保存して、後で取得することもできます。詳細については、「[顔の検出と分析](faces.md)」を参照してください。

イメージから顔を検出するときは [DetectFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectFaces.html) を使用します。保存済みビデオから顔を検出するときは [StartFaceDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceDetection.html) を使用します。

## 顔検索
<a name="how-it-works-search-faces-intro"></a>

Amazon Rekognition では顔を検索することができます。顔情報は、コレクションと呼ばれるコンテナ内にインデックス付けされます。これにより、コレクション内の顔情報を、イメージ、保存済みビデオ、ストリーミングビデオで検出された顔と照合することができます。詳細については、[コレクション内での顔の検索](collections.md) を参照してください。

イメージから既知の顔を検索するときは [DetectFaces](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectFaces.html) を使用します。保存済みビデオで顔を検索するときは [StartFaceDetection](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceDetection.html) を使用します。ストリーミングビデオで既知の顔を検索するときは [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor.html) を使用します。

## 人物の動線
<a name="how-it-works-persons-intro"></a>

Amazon Rekognition では、保存されたビデオで検出された人物のパスを追跡できます。Amazon Rekognition Video は、ビデオで検出された人物のパス追跡、顔の詳細、およびフレーム内の位置情報を提供します。詳細については、「[人物の動線の検出](persons.md)」を参照してください。

保存済みビデオから人物を検出するときは [StartPersonTracking](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartPersonTracking.html) を使用します。

## 個人用保護具
<a name="how-it-works-ppe-intro"></a>

 Amazon Rekognition では、イメージ内で検出された人物が着用している個人用保護具 (PPE) を検出できます。Amazon Rekognition は、フェイスカバー、ハンドカバー、ヘッドカバーを検出します。Amazon Rekognition は、PPE のアイテムが適切な体の部位をカバーしているかどうかを予測します。検出された人物や PPE アイテムの境界ボックスを取得することもできます。詳細については、「[個人用保護具を検出する。](ppe-detection.md)」を参照してください。

イメージから PPE を検出するときは [DetectProtectiveEquipment](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectProtectiveEquipment.html) を使用します。

## 有名人
<a name="how-it-works-celebrities-intro"></a>

 Amazon Rekognition では、イメージや保存されたビデオに写っている多数の有名人を認識できます。イメージで有名人の顔が写っている場所、顔の特徴、表情に関する情報を取得できます。保存済みビデオ全体で表示される有名人の追跡情報を取得できます。また、認識されている有名人について、感情表現や性別の提示などの詳細情報を得ることもできます。詳細については、「[有名人の認識](celebrities.md)」を参照してください。

イメージから有名人を識別するときは [RecognizeCelebrities](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html) を使用します。保存済みビデオから有名人を識別するときは [StartCelebrityRecognition](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartCelebrityRecognition.html) を使用します。

## テキストの検出
<a name="how-it-works-text-intro"></a>

Amazon Rekognition Text in Image は、イメージ内のテキストを検出し、機械判読可能なテキストに変換することができます。詳細については、「[テキストの検出](text-detection.md)」を参照してください。

イメージからテキストを検出するときは [DetectText](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectText.html) を使用します。

## 不適切または不快なコンテンツ
<a name="how-it-works-moderation-intro"></a>

Amazon Rekognition では、イメージや保存されたビデオにアダルトコンテンツや暴力的なコンテンツが含まれていないかどうかを分析できます。詳細については、「[コンテンツのモデレーション](moderation.md)」を参照してください。

イメージから PPE を検出するときは [DetectModerationLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html) を使用します。保存済みビデオから適切でない内容を検出するときは [StartContentModeration](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartContentModeration.html) を使用します。

## カスタマイズ
<a name="how-it-works-customization"></a>

Rekognition で利用できる特定のイメージ分析 API を使用すると、ユーザー独自のデータでトレーニングされたカスタムアダプターを作成することにより、深層学習モデルの精度を高めることができます。アダプターとは、Rekognition の事前トレーニング済み深層学習モデルにプラグインされるコンポーネントで、ユーザーのイメージに基づく専門知識によりモデルの精度を高めます。アダプターは、サンプルイメージを提供しこれに注釈をつけることにより、ニーズに合うようにトレーニングします。

アダプターを作成すると、AdapterID が提供されます。この AdapterID をオペレーションに提供することで、作成したアダプターを使用するように指定できます。例えば、AdapterId を、同期的にイメージを分析する [DetectModerationLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html) API に提供するとします。リクエストの一部で AdapterID を指定すると、Rekognition が自動的にこれを使用し、イメージの予測精度を高めます。こうして、Rekognition の機能を活用しつつニーズに合わせてこれをカスタマイズすることができます。

[StartMediaAnalysisJob](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html) API を使用して、イメージの予測を一括で取得することもできます。詳細については「[Bulk analysis](https://docs.aws.amazon.com/rekognition/latest/dg/bulk-analysis.html)」を参照してください。

Rekognition のコンソールにイメージをアップロードし分析を実行すると、Rekognition のオペレーションの精度を評価できます。Rekognition は選択した機能を使ってイメージに注釈を付けます。その後、予測を検証し、検証済みの予測を使って、アダプターを作成することで恩恵を受けるラベルはどれかを判断できます。

現在ご利用いただけるのは、[DetectModerationLabels](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html) の付いたアダプターです。アダプターの作成および使用に関する詳細は、「[カスタムモデレーションによる精度の向上](moderation-custom-moderation.md)」を参照してください。

## 一括分析
<a name="how-it-works-bulk"></a>

Rekognition の一括分析を使用すると、[StartMediaAnalysisJob](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartMediaAnalysisJob.html) オペレーションと併せてマニフェストファイルを使用することにより、大量のイメージのコレクションを非同期的に処理できます。詳細については「[Bulk analysis](https://docs.aws.amazon.com/rekognition/latest/dg/bulk-analysis.html)」を参照してください。