Back to Aws Doc Sdk Examples

Amazon Rekognition code examples for the SDK for Kotlin

kotlin/services/rekognition/README.md

latest4.5 KB
Original Source

Amazon Rekognition code examples for the SDK for Kotlin

Overview

Shows how to use the AWS SDK for Kotlin to work with Amazon Rekognition.

<!--custom.overview.start--> <!--custom.overview.end-->

Amazon Rekognition makes it easy to add image and video analysis to your applications.

⚠ Important

  • Running this code might result in charges to your AWS account. For more details, see AWS Pricing and Free Tier.
  • Running the tests might result in charges to your AWS account.
  • We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see Grant least privilege.
  • This code is not tested in every AWS Region. For more information, see AWS Regional Services.
<!--custom.important.start--> <!--custom.important.end-->

Code examples

Prerequisites

For prerequisites, see the README in the kotlin folder.

<!--custom.prerequisites.start--> <!--custom.prerequisites.end-->

Single actions

Code excerpts that show you how to call individual service functions.

Scenarios

Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.

<!--custom.examples.start-->

Custom Examples

  • CelebrityInfo - Demonstrates how to get information about a detected celebrity.
  • DetectPPE - Demonstrates how to detect Personal Protective Equipment (PPE) worn by people detected in an image.
  • VideoDetectFaces - Demonstrates how to detect faces in a video stored in an Amazon S3 bucket.
  • VideoDetectInappropriate - Demonstrates how to detect inappropriate or offensive content in a video stored in an Amazon S3 bucket.
<!--custom.examples.end-->

Run the examples

Instructions

<!--custom.instructions.start--> <!--custom.instructions.end-->

Detect information in videos

This example shows you how to do the following:

  • Start Amazon Rekognition jobs to detect elements like people, objects, and text in videos.
  • Check job status until jobs finish.
  • Output the list of elements detected by each job.
<!--custom.scenario_prereqs.rekognition_VideoDetection.start--> <!--custom.scenario_prereqs.rekognition_VideoDetection.end--> <!--custom.scenarios.rekognition_VideoDetection.start--> <!--custom.scenarios.rekognition_VideoDetection.end-->

Tests

⚠ Running tests might result in charges to your AWS account.

To find instructions for running these tests, see the README in the kotlin folder.

<!--custom.tests.start--> <!--custom.tests.end-->

Additional resources

<!--custom.resources.start--> <!--custom.resources.end-->

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0