DetectLabels

command
v0.0.0-...-e8b88a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

README

DetectLabels/DetectLabels.go

This example performs three tasks:

  1. Saves the image in an Amazon Simple Storage Service (Amazon S3) bucket with an "uploads/" prefix.
  2. Gets any ELIF information from the image and saves in the Amazon DynamoDB (DynamoDB) table.
  3. Detects instances of real-world entities, such as flowers, weddings, and nature, within a JPEG or PNG image, and saves those instances as name/confidence pairs in the DynamoDB table.
  4. Creates a thumbnail version of the image, no larger than 80 pixels by 80 pixels, and saves it in the same bucket with a "thumbs/" prefix and "thumb" suffix.

go run DetectLabels.go -b BUCKET -t TABLE -f IMAGE

  • BUCKET is the name of the bucket where the images are saved.
  • TABLE is the name of the bucket to which the item is copied.
  • IMAGE is the name of the JPG or PNG table.

The unit test accepts similar values in config.json.

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL