

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

# 使用 AWS SDKs Amazon Rekognition 程式碼範例
<a name="service_code_examples"></a>

下列程式碼範例示範如何使用 Amazon Rekognition 搭配 AWS 軟體開發套件 (SDK)。本章中的程式碼範例旨在補充本指南其餘部分中的程式碼範例。

*Actions* 是大型程式的程式碼摘錄，必須在內容中執行。雖然動作會告訴您如何呼叫個別服務函數，但您可以在其相關情境中查看內容中的動作。

*案例*是向您展示如何呼叫服務中的多個函數或與其他 AWS 服務組合來完成特定任務的程式碼範例。

如需 AWS SDK 開發人員指南和程式碼範例的完整清單，請參閱 [搭配 AWS SDK 使用 Rekognition](sdk-general-information-section.md)。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。

**Contents**
+ [基本概念](service_code_examples_basics.md)
  + [Hello Amazon Rekognition](example_rekognition_Hello_section.md)
  + [動作](service_code_examples_actions.md)
    + [`CompareFaces`](example_rekognition_CompareFaces_section.md)
    + [`CreateCollection`](example_rekognition_CreateCollection_section.md)
    + [`DeleteCollection`](example_rekognition_DeleteCollection_section.md)
    + [`DeleteFaces`](example_rekognition_DeleteFaces_section.md)
    + [`DescribeCollection`](example_rekognition_DescribeCollection_section.md)
    + [`DetectFaces`](example_rekognition_DetectFaces_section.md)
    + [`DetectLabels`](example_rekognition_DetectLabels_section.md)
    + [`DetectModerationLabels`](example_rekognition_DetectModerationLabels_section.md)
    + [`DetectText`](example_rekognition_DetectText_section.md)
    + [`GetCelebrityInfo`](example_rekognition_GetCelebrityInfo_section.md)
    + [`IndexFaces`](example_rekognition_IndexFaces_section.md)
    + [`ListCollections`](example_rekognition_ListCollections_section.md)
    + [`ListFaces`](example_rekognition_ListFaces_section.md)
    + [`RecognizeCelebrities`](example_rekognition_RecognizeCelebrities_section.md)
    + [`SearchFaces`](example_rekognition_SearchFaces_section.md)
    + [`SearchFacesByImage`](example_rekognition_SearchFacesByImage_section.md)
+ [案例](service_code_examples_scenarios.md)
  + [建立集合並在其中尋找人臉](example_rekognition_Usage_FindFacesInCollection_section.md)
  + [建立無伺服器應用程式來管理相片](example_cross_PAM_section.md)
  + [偵測映像中的 PPE](example_cross_RekognitionPhotoAnalyzerPPE_section.md)
  + [偵測並顯示映像中的元素](example_rekognition_Usage_DetectAndDisplayImage_section.md)
  + [偵測映像中的人臉](example_cross_DetectFaces_section.md)
  + [偵測映像中的資訊](example_rekognition_VideoDetection_section.md)
  + [偵測映像中的物件](example_cross_RekognitionPhotoAnalyzer_section.md)
  + [偵測映像中的人物和物件](example_cross_RekognitionVideoDetection_section.md)
  + [儲存 EXIF 和其他映像資訊](example_cross_DetectLabels_section.md)