javav2/example_code/lookoutvision/README.md
Shows how to use the AWS SDK for Java 2.x to work with Amazon Lookout for Vision.
<!--custom.overview.start--> <!--custom.overview.end-->Lookout for Vision enables you to find visual defects in industrial products, accurately and at scale.
For prerequisites, see the README in the javav2 folder.
The following files provide utility classes for managing Amazon Lookout for Vision resources.
The following examples use the utility classes to show how to use the Amazon Lookout for Vision API.
CreateDataset.java - Shows how to create an Amazon Lookout for Vision dataset with CreateDataset. You must have a manifest file to train the model. We provide a script that creates a manifest file from a .csv file. For more information, see Creating a manifest file.
CreateModel.java - Shows how to create an Amazon Lookout for Vision model with CreateModel. You are charged for the amount of time it takes to successfully train a model.
CreateProject.java - Shows how to create an Amazon Lookout for Vision project with CreateProject.
DeleteDataset.java - Shows how to delete an Amazon Lookout for Vision dataset with DeleteDataset.
DeleteModel.java - Shows how to delete an Amazon Lookout for Vision model with DeleteModel.
DeleteProject.java - Shows how to delete an Amazon Lookout for Vision project with DeleteProject.
DescribeDataset.java - Shows how to get information about an Amazon Lookout for Vision dataset with DescribeDataset.
DescribeModel.java - Shows how to get information about an Amazon Lookout for Vision model with DescribeModel.
DescribeModelPackagingJob.java - Shows how to get information about an Amazon Lookout for Vision model packaging job with DescribeModelPackagingJob.
DescribeProject.java - Shows how to get information about an Amazon Lookout for Vision project with DescribeProject.
DetectAnomalies.java - Shows how to analyze an image for anomalies with DetectAnomalies. The configuration file is is analysis-config.json in the resources folder. For more information, see Determining if an image is anomalous.
ListDatasetEntries.java - Shows how to list the JSON lines in an Amazon Lookout for Vision dataset with ListDatasetEntries.
ListModelPackagingJobs.java - Shows how to list the Amazon Lookout for Vision model packaging jobs in a project with ListModelPackagingJobs.
ListModelTags.java - Shows how to list tags attached to an Amazon Lookout for Vision model with ListTagsForResource.
ListModels.java - Shows how to list the Amazon Lookout for Vision models in a project with ListModels.
ListProjects.java - Shows how to list the Amazon Lookout for Vision projects in the current AWS account and AWS Region with ListProjects.
ShowAnomalies.java - Shows how to display classification and segmentation (image masks and anomaly labels) information on an image analyzed by DetectAnomalies. For more information, see Showing classification and segmentation.
StartModel.java - Shows how to start hosting an Amazon Lookout for Vision model with StartModel. You are charged for the amount of time that your model is hosted.
StartModelPackagingJob.java - Shows how to start a Amazon Lookout for Vision model packaging job with StartModelPackagingJob. You specify the model packaging job settings in a JSON format file. We provide a template JSON file for a target device (Jetson Xavier) and a template JSON file for a target platform. For information about the package settings that you can make, see Packaging your model (SDK).
StopModel.java - Shows how to stop a hosted Amazon Lookout for Vision model with StopModel.
TagModel.java - Shows how to attach a tag to an Amazon Lookout for Vision model with TagResource.
UntagModel.java - Shows how to remove a tag from an Amazon Lookout for Vision model with UntagResource.
UpdateDatasetEntries.java - Shows how to update Amazon Lookout for Vision dataset with a manifest file with UpdateDatasetEntries.
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the javav2 folder.
Before running the Amazon Lookout for Vision JUnit tests, you must define values in the config.properties file located in the resources folder. This file contains values that are required to run the JUnit tests. For example, you define an instance name used for various tests. If you do not define all values, the JUnit tests fail.
Define these values to successfully run the JUnit tests:
If you want to use the project, dataset, and model that the testing creates, disable the following tests:
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0