

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Amazon Rekognition 的代码示例 AWS SDKs
<a name="service_code_examples"></a>

以下代码示例展示了如何将 Amazon Rekognition 与软件开发套件 (SDK) AWS 一起使用。本章中的代码示例旨在补充本指南其余部分中的代码示例。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 AWS 服务服务结合来完成特定任务的代码示例。

有关 S AWS DK 开发者指南和代码示例的完整列表，请参阅[将 Rekognition 与 SDK 配合使用 AWS](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)