Package: lookoutvision
Amazon Lookout for Vision Python SDKThe Amazon Lookout for Vision Python SDK is an open-source library that allows data
scientists and software developers to easily build, train and deploy computer vision (CV)
models using Amazon Lookout for Vision.Computer Vision -Comput vision is an interdisciplinary field that deals with how computers can be made to gain a high level understanding from digital images or videos <https://en.wikipedia.org/wiki/Computer_vision#Definition>_Amazon Lookout for Vision -https://aws.amazon.com/lookout-for-vision/The Amazon Lookout for Vision Python SDK enables you to do the following.Easily check your images for compliants (e.g. right size, shape, etc.)Easily rescale images to make them compliantData upload to the necessary S3 structureSimple creation of manifest files (incl. upload to the correct location)Train a computer vision model using Amazon Lookout for VisionDeploy a computer vision model using Amazon Lookout for Vision(Batch) Predict using Amazon Lookout for VisionStop the model hosting after you are done/whenever necessaryTable of ContentsGetting Started With Sample Jupyter Notebooks <#getting-started-with-sample-jupyter-notebooks>__Installing the Amazon Lookout for Vision Python SDK <#installing-the-amazon-lookout-for-vision-python-sdk>__Further Readings <#further-readings>__Licensing <#licensing>__Getting Started With Sample Jupyter NotebooksThe best way to quickly review how the Amazon Lookout for Vision Python SDK works
is to review the related example notebooks. These notebooks provide code and
descriptions for creating and running a full project in Amazon Lookout for Vision Using
the Amazon Lookout for Vision Python SDK.Example Notebooks in SageMakerIn Amazon SageMaker, upload the Jupyter notebook from theexample/folder of this repository.To run this exampleCreate a Notebook Instance <https://docs.aws.amazon.com/sagemaker/latest/dg/gs-setup-working-env.html>__ in SageMaker.Add an inline policy to your Amazon SageMaker role in IAM with the following JSON structure::{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lookoutvision:*"
            ],
            "Resource": "*"
        }
    ]
}Upload the Jupyter notebook fromexample/folder.Bring your good and bad images and upload them to your notebook instance.Note:Store the good images in a folder namedgood/and the bad images in a folder namedbad/.Run Example Notebooks LocallyTo run theAmazon Lookout for Vision Python SDK example notebooks locally, download
the sample notebook and open them in a working Jupyter instance.Install Jupyter:https://jupyter.readthedocs.io/en/latest/install.htmlDownload the following files from:https://github.com/aws/amazon-lookout-for-vision-python-sdk/tree/master/example.:code:lookout_for_vision_example.ipynbOpen the files in Jupyter.Installing the Amazon Lookout for Vision Python SDKThe Amazon Lookout for Vision Python SDK is built to PyPI and can be installed with
pip as follows.::pip install lookoutvisionYou can install from source by cloning this repository and running a pip install
command in the root directory of the repository:::git clone https://github.com/aws/amazon-lookout-for-vision-python-sdk.git
cd amazon-lookout-for-vision-python-sdk
pip install .Supported Operating SystemsThe Amazon Lookout for Vision Python SDK supports Unix/Linux and Mac.Supported Python VersionsThe Amazon Lookout for Vision Python SDK is tested on:Python 3.6Overview of SDKThe Amazon Lookout for Vision Python SDK provides a Python API that enables you to
create computer vision models using Amazon Lookout for Vision and directly in your
Python code and Jupyter notebooks.Using this SDK you can:Easily check your images for compliants (e.g. right size, shape, etc.)Easily rescale images to make them compliantData upload to the necessay S3 structureSimple creation of manifest files (incl. upload to the correct location)Train a computer vision model using Amazon Lookout for VisionDeploy a computer vision model using Amazon Lookout for Vision(Batch) Predict using Amazon Lookout for VisionStop the hosting of the model when you are done.For a detailed API reference of the Amazon Lookout for Vision Python SDK,
be sure to view this documentation onAmazon Lookout for VisionAmazon Lookout for Vision is a machine learning (ML) service that spots defects and anomalies in visual representations using computer vision (CV). With Amazon Lookout for Vision, manufacturing companies can increase quality and reduce operational costs by quickly identifying differences in images of objects at scale. For example, Amazon Lookout for Vision can be used to identify missing components in products, damage to vehicles or structures, irregularities in production lines, miniscule defects in silicon wafers, and other similar problems. Amazon Lookout for Vision uses ML to see and understand images from any camera as a person would, but with an even higher degree of accuracy and at a much larger scale. Amazon Lookout for Vision allows customers to eliminate the need for costly and inconsistent manual inspection, while improving quality control, defect and damage assessment, and compliance. In minutes, you can begin using Amazon Lookout for Vision to automate inspection of images and objects–with no machine learning expertise required.AWS PermissionsAs a managed service, Amazon Lookout for Vision performs operations on your behalf on
AWS hardware that is managed by Amazon Lookout for Vision.  Amazon Lookout for Vision can
perform only operations that the user permits.  You can read more about which
permissions are necessary in theAWS Documentation <https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/what-is.html>.The Amazon Lookout for Vision Python SDK should not require any additional permissions
aside from what is required for using .boto3.  However, if you are
using an IAM role with a path in it, you should grant permission foriam:GetRole.SecuritySeehttps://github.com/aws-samples/amazon-lookout-for-vision-python-sdk/blob/main/CONTRIBUTING.md#security-issue-notificationsfor more information.LicensingAmazon Lookout for Vision Python SDK is licensed under the Apache 2.0 License. It is
copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. The
license is available at:http://aws.amazon.com/apache2.0/