

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)。

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

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

以下代码示例向您展示了如何将 Amazon Rekognition 与软件开发套件 (SDK) AWS 配合使用。

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

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

**更多资源**
+  **[Amazon Rekognition 开发人员指南](https://docs.aws.amazon.com/rekognition/latest/dg/what-is.html)**——有关 Amazon Rekognition 的更多信息。
+ **[Amazon Rekognition API 参考](https://docs.aws.amazon.com/rekognition/latest/APIReference/Welcome.html)**——有关所有可用的 Amazon Rekognition 操作的详细信息。
+ **[AWS 开发者中心](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23rekognition)** — 您可以按类别或全文搜索筛选的代码示例。
+ **[AWS SDK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)** — 包含首选语言完整代码的 GitHub 存储库。包括有关设置和运行代码的说明。

**Contents**
+ [基本功能](rekognition_code_examples_basics.md)
  + [Hello Amazon Rekognition](rekognition_example_rekognition_Hello_section.md)
  + [操作](rekognition_code_examples_actions.md)
    + [`CompareFaces`](rekognition_example_rekognition_CompareFaces_section.md)
    + [`CreateCollection`](rekognition_example_rekognition_CreateCollection_section.md)
    + [`DeleteCollection`](rekognition_example_rekognition_DeleteCollection_section.md)
    + [`DeleteFaces`](rekognition_example_rekognition_DeleteFaces_section.md)
    + [`DescribeCollection`](rekognition_example_rekognition_DescribeCollection_section.md)
    + [`DetectFaces`](rekognition_example_rekognition_DetectFaces_section.md)
    + [`DetectLabels`](rekognition_example_rekognition_DetectLabels_section.md)
    + [`DetectModerationLabels`](rekognition_example_rekognition_DetectModerationLabels_section.md)
    + [`DetectText`](rekognition_example_rekognition_DetectText_section.md)
    + [`GetCelebrityInfo`](rekognition_example_rekognition_GetCelebrityInfo_section.md)
    + [`IndexFaces`](rekognition_example_rekognition_IndexFaces_section.md)
    + [`ListCollections`](rekognition_example_rekognition_ListCollections_section.md)
    + [`ListFaces`](rekognition_example_rekognition_ListFaces_section.md)
    + [`RecognizeCelebrities`](rekognition_example_rekognition_RecognizeCelebrities_section.md)
    + [`SearchFaces`](rekognition_example_rekognition_SearchFaces_section.md)
    + [`SearchFacesByImage`](rekognition_example_rekognition_SearchFacesByImage_section.md)
+ [场景](rekognition_code_examples_scenarios.md)
  + [构建集合并在其中寻找人脸](rekognition_example_rekognition_Usage_FindFacesInCollection_section.md)
  + [创建无服务器应用程序来管理照片](rekognition_example_cross_PAM_section.md)
  + [检测图像中的 PPE](rekognition_example_cross_RekognitionPhotoAnalyzerPPE_section.md)
  + [检测并显示图像中的元素](rekognition_example_rekognition_Usage_DetectAndDisplayImage_section.md)
  + [检测图像中的人脸](rekognition_example_cross_DetectFaces_section.md)
  + [检测视频中的信息](rekognition_example_rekognition_VideoDetection_section.md)
  + [检测图像中的对象](rekognition_example_cross_RekognitionPhotoAnalyzer_section.md)
  + [检测视频中的人物和对象](rekognition_example_cross_RekognitionVideoDetection_section.md)
  + [保存 EXIF 和其他图像信息](rekognition_example_cross_DetectLabels_section.md)