Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Computer Vision on AWS
Computer Vision on AWS

Computer Vision on AWS: Build and deploy real-world CV solutions with Amazon Rekognition, Lookout for Vision, and SageMaker

Arrow left icon
Profile Icon Lauren Mullennex Profile Icon Nate Bachmeier Profile Icon Jay Rao
Arrow right icon
€33.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (8 Ratings)
Paperback Mar 2023 324 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Lauren Mullennex Profile Icon Nate Bachmeier Profile Icon Jay Rao
Arrow right icon
€33.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (8 Ratings)
Paperback Mar 2023 324 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Computer Vision on AWS

Computer Vision Applications and AWS AI/ML Services Overview

In the past decade, the field of computer vision (CV) has rapidly advanced. Research in deep learning (DL) techniques has helped computers mimic human brains to “see” content in videos and images and transform it into actionable insights. There are examples of the wide variety of applications of CV all around us, including self-driving cars, text and handwriting detection, classifying different types of skin cancer in images, industrial equipment inspection, and detecting faces and objects in videos. Despite recent advancements, the availability of vast amounts of data from disparate sources has posed challenges in creating scalable CV solutions that achieve high-quality results. Automating a production CV pipeline is a cumbersome task requiring many steps. You may be asking, “How do I get started?” and “What are the best practices?”.

If you are a machine learning (ML) engineer or data scientist or want to better understand how to build and implement comprehensive CV solutions on Amazon Web Services (AWS), this book is for you. We provide practical code examples, tips, and step-by-step explanations to help you quickly deploy and automate production CV models. We assume that you have intermediate-level knowledge of artificial intelligence (AI) and ML concepts. In this first chapter, we will introduce CV and address implementation challenges, discuss the prevalence of CV across a variety of use cases, and learn about AWS AI/ML services.

In this chapter, we will cover the following:

  • Understanding CV
  • Solving business challenges with CV
  • Exploring AWS AI/ML services
  • Setting up your AWS environment

Technical requirements

You will need a computer with internet access to create an AWS account to set up Amazon SageMaker to run the code samples in the following chapters. The Python code and sample datasets for the solutions discussed are available at https://github.com/PacktPublishing/Computer-Vision-on-AWS.

Understanding CV

CV is a domain within AI and ML. It enables computers to detect and understand visual inputs (videos and images) to make predictions:

Figure 1.1 – CV is a subdomain of AI and ML

Figure 1.1 – CV is a subdomain of AI and ML

Before we discuss the inner workings of a CV system, let’s summarize the different types of ML algorithms:

  • Supervised learning (SL)—Takes a set of labeled input data and predicts a known target value. For example, a model may be trained on a set of labeled dog images. When a new unlabeled dog image is processed by the model, the model correctly predicts that the image is a dog instead of a cat.
  • Unsupervised learning (UL)—Unlabeled data is provided, and patterns or structures need to be found within the data since no labeled target value is present. One example of UL is a targeted marketing campaign where customers need to be segmented into groups based on various common attributes such as demographics.
  • Semi-supervised learning—consists of unlabeled and labeled data. This is beneficial for CV tasks, since it is a time-consuming process to label individual images. With this method, only some of the images in the dataset need to be labeled, in order to label and classify the unlabeled images.

CV architecture and applications

Now that we’ve covered the different types of ML training methods, how does this relate to CV? DL algorithms are commonly used to solve CV problems. These algorithms are composed of artificial neural networks (ANNs) containing layers of nodes, which function like a neuron in a human brain. A neural network (NN) has multiple layers, including one or more input layers, hidden layers, and output layers. Input data flows through the input layers. The nodes perform transformations of the input data in the hidden layers and produce output to the output layer. The output layer is where predictions of the input data occur. The following figure shows an example of a deep NN (DNN) architecture:

Figure 1.2 – DNN architecture

Figure 1.2 – DNN architecture

How does this architecture apply to real-world applications? With CV and DL technology, you can detect patterns in images and use these patterns for classification. One type of NN that excels in classifying images is a convolutional NN (CNN). CNNs were inspired by ANNs. The way the nodes in a CNN communicate replicates how animals visualize the world. One application of CNNs is classifying X-ray images to assist doctors with medical diagnoses:

Figure 1.3 – Image classification of X-rays

Figure 1.3 – Image classification of X-rays

There are multiple types of problems that CV can solve that we will highlight throughout this book. Localization locates one or more objects in an image and draws a bounding box around the object(s). Object detection uses localization and classification to identify and classify one or multiple objects in an image. These tasks are more complicated than image classification. Faster R-CNN (Regions with CNN), SSD (single shot detector), and YOLO (you only look once) are other types of DNN models that can be used for object detection tasks. These models are designed for performance such as decreasing latency and increasing accuracy.

Segmentation—including instance segmentation and semantic segmentation—highlights the pixels of an image, instead of objects, and classifies them. Segmentation can also be applied to videos to detect black frames, color bars, end credits, and shot changes:

Figure 1.4 – Examples of different CV problem types

Figure 1.4 – Examples of different CV problem types

Despite recent advances in CV and DL, there are still challenges within the field. CV systems are complex, there are vast amounts of data to process, and considerations need to be taken before training a model. It is important to understand the data available since a model is only as good as the quality of your data, and the steps required to prepare the data for model training.

Data processing and feature engineering

CV deals with images and videos, which are a form of unstructured data. Unstructured data does not have a predefined data model and cannot be stored in a database row and column format. This type of data poses unique challenges compared to tabular data. More processing is required to transform the data into a usable format. A computer sees an image as a matrix of pixel values. A pixel is a set of numbers between 0-255 in the red, green, blue (RGB) system. Images vary in their resolutions, dimensions, and colors. In order to train a model, CV algorithms require that images are normalized such that they are the same size. Additional image processing techniques include resizing, rotating, enhancing the resolution, and converting from RGB to grayscale. Another technique is image masking, which allows us to focus on a region of interest. In the following photos, we apply a mask to highlight the motorcycle:

Figure 1.5 – Applying an image mask to highlight the motorcycle

Figure 1.5 – Applying an image mask to highlight the motorcycle

Preprocessing is important since images are often large and take up lots of storage. Resizing an image and converting it to grayscale can speed up the ML training process. However, this technique is not always optimal for the problem we’re trying to solve. For example, in medical image analysis such as skin cancer diagnosis, the colors of the samples are relevant for a proper diagnosis. This is why it’s important to have a complete understanding of the business problem you’re trying to solve before choosing how to process your data. In the following chapters, we’ll provide code examples that detail various image preprocessing steps.

Features or attributes in ML are important input data characteristics that affect the output or target variable of a model. Distinct features in an image help a model differentiate objects from one another. Determining relevant features depends on the context of your business problem. If you’re trying to identify a Golden Retriever dog in a group of images also containing cats, then height is an important feature. However, if you’re looking to classify different types of dogs, then height is not always a distinguishing feature since Golden Retrievers are similar in height to many other dog breeds. In this case, color and coat length might be more useful features.

Data labeling

Data annotation or data labeling is the process of labeling your input datasets. It helps derive value from your unstructured data for SL. Some of the challenges with data labeling are that it is a manual process that is time-consuming, humans have a bias for labeling an object, and it’s difficult to scale. Amazon SageMaker Ground Truth Plus (https://aws.amazon.com/sagemaker/data-labeling/) helps address these challenges by automating this process. It contains a labeling user interface (UI) and quality workflow customizations. The labeling is done by an expert workforce with domain knowledge of the ML tasks to complete. This improves the label quality and leads to better training datasets. In Chapter 9, we will cover a code example using SageMaker Ground Truth Plus.

Amazon Rekognition Custom Labels (https://aws.amazon.com/rekognition/custom-labels-features/) also provides a visual interface to label your images. Labels can be applied to the entire image or you can create bounding boxes to label specific objects. In the next two chapters, we will discuss Amazon Rekognition and Rekognition Custom Labels in more detail.

In this section, we discussed the architecture behind DL CV algorithms. We also covered data processing, feature engineering, and data labeling considerations to create high-quality training datasets. In the next section, we will discuss the evolution of CV and how it can be applied to many different business use cases.

Solving business challenges with CV

CV has tremendous business value across a variety of industries and use cases. There have also been recent technological advancements that are generating excitement within the field. The first use case of CV was noted over 60 years ago when a digital scanner was used to transform images into grids of numbers. Today, vision transformers and generative AI allow us to quickly create images and videos from text prompts. The applications of CV are evident across every industry, including healthcare, manufacturing, media and entertainment, retail, agriculture, sports, education, and transportation. Deriving meaningful insights from images and videos has helped accelerate business efficiency and improved the customer experience. In this section, we will briefly cover the latest CV implementations and highlight use cases that we will be diving deeper into throughout this book.

New applications of CV

In 1961, Lawrence Roberts, who is often considered the “father” of CV, presented in his paper Machine Perception of Three-Dimensional Solids (https://dspace.mit.edu/bitstream/handle/1721.1/11589/33959125-MIT.pdf) how a computer could construct a 3D array of objects from a 2D photograph. This groundbreaking paper led researchers to explore the value of image recognition and object detection. Since the discovery of NNs and DL, the field of CV has made great strides in developing more accurate and efficient models. Earlier, we reviewed some of these models, such as CNN and YOLO. These models are widely adopted for a variety of CV tasks. Recently, a new model called vision transformers has emerged that outperforms CNN in terms of accuracy and efficiency. Before we review vision transformers in more detail, let’s summarize the idea of transformers and their relevance in CV.

In order to understand transformers, we first need to explore a DL concept that is used in natural language processing (NLP), called attention. An introduction to transformers and self-attention was first presented in the paper Attention is All You Need (https://arxiv.org/pdf/1706.03762.pdf). The attention mechanism is used in RNN sequence-to-sequence (seq2seq) models. One example of an application of seq2seq models is language translation. This model is composed of an encoder and a decoder. The encoder processes the input sequence, and the decoder generates the transformed output. There are hidden state vectors that take the input sequence and the context vector from the encoder and send them to the decoder to predict the output sequence. The following diagram is an illustration of these concepts:

Figure 1.6 – Translating a sentence from English to German using a seq2seq model

Figure 1.6 – Translating a sentence from English to German using a seq2seq model

In the above, we pay attention to the context of the words in the input to determine the next sequence when generating the output. Another example of attention from Attention is All You Need weighs the importance of different inputs when making predictions. Here is a sentiment analysis example from the paper for a hotel service task, where the bold words are considered relevant:

Figure 1.7 – Example of attention for sentiment analysis from “Attention is All You Need”

Figure 1.7 – Example of attention for sentiment analysis from “Attention is All You Need”

A transformer relies on self-attention, which is defined in the paper as “an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence”. Transformers are important in the application of NLP because they capture the relationship and context of words in text. Take a look at the following sentences:

Andy Jassy is the current CEO of Amazon. He was previously the CEO of Amazon Web Services.

Using transformers, we are able to understand that “He” in the second sentence is referring to Andy Jassy. Without this context of the subject in the first sentence, it is difficult to understand the relationship between the rest of the words in the text.

Now that we’ve reviewed transformers and explained their importance in NLP, how does this relate to CV? The vision transformer was introduced in a 2021 paper, An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (https://arxiv.org/pdf/2010.11929v2.pdf). Vision transformers expand upon the concept of text transformers. The technical details of vision transformers are outside of the scope of this book; however, they have shown great improvement over CNNs for image classification tasks. Transformer architecture has introduced new innovations such as generative AI. Generative AI is blurring the lines between generating separate models for NLP and CV. With generative AI, we can generate images from a text phrase. One image generator developed by OpenAI is called DALL-E (https://openai.com/blog/dall-e-now-available-without-waitlist/). Another example created by Stability AI is called Stable Diffusion (https://huggingface.co/spaces/stabilityai/stable-diffusion). All that is required to generate an image is to type in an English phrase. The following figure shows an example of images generated by Stable Diffusion:

Figure 1.8 - Images created from text “An astronaut in the mountains” using Stable Diffusion

Figure 1.8 - Images created from text “An astronaut in the mountains” using Stable Diffusion

The potential use cases for transformers and generative AI are just beginning to be explored. Throughout the rest of this book, we will discuss the following real-world applications of CV and provide code examples.

Contactless check-in and checkout

To improve the customer experience, many businesses have adopted contactless check-in and checkout processes. This provides a frictionless experience that reduces cost and is easier to scale. It also adds a layer of enhanced security. Instead of checking out from a grocery store using a credit card or trying to remember a PIN, you can use a biometric option such as your palm or facial recognition. In Chapter 3, we will walk through a code example to build a contactless hotel check-in system using identity verification.

Video analysis

You can use CV to analyze videos to detect objects in real time. This helps gather analytics for security footage and helps ensure compliance requirements are met in a manufacturing facility. In the media and entertainment industry, companies can monetize their content by automating the analysis of videos to determine when to insert advertisements. In Chapter 5, we will use CV to annotate and automate security video footage.

Content moderation

The amount of digital content is increasing. Often, this content is moderated manually by human reviewers, which is not a scalable or cost-effective solution. Companies in the gaming, social media, financial services, and healthcare industries are looking to protect their brands, create safe online communities that improve the user experience, meet regulatory and compliance requirements, and reduce the cost of content moderation. CV services combined with additional AI services, such as NLP, can automatically moderate image, video, text, and audio workflows to detect unwanted or offensive content and protect sensitive information. In Chapter 6, we teach you how to incorporate these capabilities into an automated pipeline.

CV at the edge

CV at the edge allows you to run your models locally on an edge device to make real-time predictions and reduce latency. Many ML use cases require that models run on the edge. To meet privacy preservation standards, users’ data needs to be kept directly on devices such as mobile phones, smart cameras, and smart speakers. Also, your devices may be running in places with limited connectivity such as oil drills, or even in space where it is impossible to send your data to the cloud to perform inference. Consultancy firm Deloitte estimates that today there are over 750 million AI devices, and that number is only continuing to grow. What types of use cases can CV solve at the edge? Camera streams on a manufacturing floor can trigger multiple models and alert maintenance teams when equipment defects are identified and can also detect issues in product quality. It also has applications in healthcare. CV models can be deployed on X-ray machines and in operating rooms to quickly process medical images, which helps with faster patient diagnosis. In Chapters 7 and 8, we’ll dive deeper into CV at the edge and provide code examples to solve industrial Internet of Things (IoT) scenarios and defect detection.

In this section, we introduced transformers and discussed their impact on CV. We also covered common challenges that can be solved with CV across multiple industries. These use cases are not an exhaustive list and represent only a small sample of how CV can unlock meaningful insights from your content and accelerate your business outcomes. In the next section, we will introduce the AWS AI/ML services and the benefits of using these services in your downstream applications.

Exploring AWS AI/ML services

There are many challenges faced when building and deploying a production CV model. It’s often difficult to find the right ML skill sets. Gathering high-quality data and labeling the data is a manual and costly process. Data processing and feature engineering require domain expertise. Developing, training, and testing ML models takes time. Once a model is created and deployed into production, it’s challenging to scale on-premises and difficult to understand which metrics to monitor to detect data and model quality drift. Reducing inference latency, automating the retraining process, and managing the underlying infrastructure are also concerns.

AWS AI/ML services are designed to address these challenges. These services are fully managed, so you don’t have to worry about their underlying architecture. You can also optimize your costs by only paying for what you use. Within the portfolio of AWS AI/ML services, there are several approaches to choose from when building your CV application.

AWS AI services

AWS AI services provide pre-trained models that use DL technology to solve common use cases such as image classification, personalized recommendations, fraud detection, anomaly detection, and NLP. These services don’t require any ML expertise and they’re easily integrated into your applications or with other AWS services by calling APIs. They help remove the undifferentiated heavy lifting of dealing with image preprocessing and feature extraction. This way, you can focus on solving your business problems and moving to production faster.

One of the AI services for CV is Amazon Rekognition. It is a fully managed DL-based service that detects objects, people, activities, scenes, text, and inappropriate content in images and videos. It also provides facial analysis and facial search capabilities. Rekognition contains pre-trained models but also allows you to train your own custom model using Rekognition Custom Models. In the next two chapters, we provide code examples and applications of Rekognition and Rekognition Custom Models.

Amazon Lookout for Vision (https://aws.amazon.com/lookout-for-vision/) is another AI service that uses CV to detect anomalies and defects in manufacturing. Using pre-trained models, it helps improve industrial quality assurance by analyzing images to identify objects with visual defects. This helps improve your operational efficiency. In Chapter 7, we go into more detail about using Lookout for Vision.

For building and managing CV applications at the edge, AWS Panorama (https://aws.amazon.com/panorama/) provides ML devices and a software development kit (SDK) to add CV to your cameras.

This helps to automate costly inspection tasks by building CV applications to analyze video feeds. The Panorama appliance performs predictions locally for real-time decision-making. With Panorama, you can train your own models or select pre-built applications from AWS or third-party vendors.

These are only a few examples of the AWS AI services we will be focusing on in this book. For more details on the pre-trained services available for your applications, visit the AWS Machine Learning | AI Services page (https://aws.amazon.com/machine-learning/ai-services/).

Amazon SageMaker

If you are interested in fine-tuning a pre-trained model, using built-in algorithms, or building your own custom ML model, Amazon SageMaker (https://aws.amazon.com/sagemaker/) is a comprehensive fully managed ML service that allows you to prepare data, build, train, and deploy ML models for any use case. SageMaker provides the infrastructure, tools, visual interfaces, workflows, and MLOps capabilities for every step of the ML life cycle to help you deploy and manage models at scale. SageMaker also contains an integrated development environment (IDE) called SageMaker Studio where you can perform all steps within the ML life cycle and orchestrate continuous integration/continuous deployment (CI/CD) pipelines. For more information on SageMaker Studio, refer to the book Getting Started with SageMaker Studio, by Michael Hsieh (https://www.packtpub.com/product/getting-started-with-amazon-sagemaker-studio/9781801070157):

Figure 1.9 – Amazon SageMaker features and capabilities

Figure 1.9 – Amazon SageMaker features and capabilities

With SageMaker, you can use transfer learning (TL) to fine-tune and reuse a pre-trained model without training a model from scratch. This saves you time and allows you to transfer the domain knowledge you gained previously to solve a new ML problem. This technique can be applied to CV or any type of business problem.

SageMaker contains dozens of pre-built algorithms that are optimized for speed, scale, and accuracy. They include support for supervised and unsupervised algorithms to solve a variety of use cases, including CV-related problems such as image classification, object detection, and semantic segmentation.

If a pre-trained or pre-built solution does not fit your needs, you have the option to build a custom ML model. There is a variety of powerful CPU and GPU compute options available for training and hosting your model on SageMaker. In Chapter 12, we will build a custom CV model on SageMaker to classify different types of skin cancer.

In this section, we provided an overview of the AWS AI/ML services related to CV. Next, we will show you how to set up the AWS environment that you will use throughout this book to build CV solutions.

Setting up your AWS environment

In the following chapters, you will need access to an AWS account to run the code examples. If you already have an AWS account, feel free to skip this section and move on to the next chapter.

Note

Please use the AWS Free Tier, which allows you to try services free of charge based on certain service usage limits or time limits. See https://aws.amazon.com/free for more details.

Follow the instructions at https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-creating.html to sign up for an AWS account, then proceed as follows:

  1. Once the AWS account is created, sign in using your email address and password and access the AWS Management Console at https://console.aws.amazon.com/.
  2. Type IAM in the services search bar at the top of the console and select IAM to navigate to the IAM console. Select Users from the left panel in the IAM console and select on Add User.
  3. Enter a User name value, then select Programmatic access and AWS Management Console access for Access type. Keep the Console password setting as Autogenerated password, and keep Require password reset as selected:
Figure 1.10 – Setting your IAM username and access type

Figure 1.10 – Setting your IAM username and access type

  1. Select Next: Permissions. On the Set permissions page, select on Attach existing policies directly and select the checkbox to the left of AdministratorAccess. Select Next twice to go to the Review page. Select Create user:
Figure 1.11 – Adding Administrator access for IAM user

Figure 1.11 – Adding Administrator access for IAM user

  1. Now, go back to the AWS Management Console (console.aws.amazon.com) and select Sign In. Provide the IAM username you created in the previous step along with a temporary password, and enter a new password to log in to the console.

Creating an Amazon SageMaker Jupyter notebook instance

We will be using Jupyter Notebooks to run our code in the following chapters. Please execute the following steps to create a notebook instance in Amazon SageMaker:

  1. In the AWS Management Console, type SageMaker in the services search bar at the top of the page, and select on it to access the Amazon SageMaker console.
  2. On the left panel, select on Notebook to expand, and select Notebook instances.
  3. At the top right of the Notebook instances page, select Create notebook instance.
  4. Under Notebook instance settings, type a name for Notebook instance name. For Notebook instance type, select m1.t3.medium since it falls under the AWS Free Tier:
Figure 1.12 – Amazon SageMaker: Notebook instance settings

Figure 1.12 – Amazon SageMaker: Notebook instance settings

  1. Under the Permissions and encryption section, select the IAM role list and choose Create a new role. Specify Any S3 bucket to provide access to all S3 buckets.
  2. Leave the rest of the default options in the remaining sections and select Create notebook instance.
  3. It will take a few minutes for the notebook instance to provision. Once the status is InService, you are ready to proceed. The following chapters will provide instructions for executing the code examples.

Now, you are ready to deploy the code examples that will show you how to use AWS AI/ML services to deploy CV solutions. Throughout the rest of the book, you will use a SageMaker notebook instance for these steps.

Summary

In this chapter, we covered the architecture behind a CV DNN and the common CV problem types. We discussed how to create high-quality datasets by preprocessing your input images, extracting features, and auto-labeling your data. Next, we summarized recent CV advancements and provided a brief overview of common CV use cases and their importance in deriving value for your business. We also explored AWS AI/ML services and how they can be used to quickly deploy production solutions.

In the next chapter, we will introduce Amazon Rekognition. You will learn about the different Rekognition APIs and how to interact with them. We will dive deeper into several use cases and provide Python code examples for execution.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how to quickly deploy and automate end-to-end CV pipelines on AWS
  • Implement design principles to mitigate bias and scale production of CV workloads
  • Work with code examples to master CV concepts using AWS AI/ML services

Description

Computer vision (CV) is a field of artificial intelligence that helps transform visual data into actionable insights to solve a wide range of business challenges. This book provides prescriptive guidance to anyone looking to learn how to approach CV problems for quickly building and deploying production-ready models. You’ll begin by exploring the applications of CV and the features of Amazon Rekognition and Amazon Lookout for Vision. The book will then walk you through real-world use cases such as identity verification, real-time video analysis, content moderation, and detecting manufacturing defects that’ll enable you to understand how to implement AWS AI/ML services. As you make progress, you'll also use Amazon SageMaker for data annotation, training, and deploying CV models. In the concluding chapters, you'll work with practical code examples, and discover best practices and design principles for scaling, reducing cost, improving the security posture, and mitigating bias of CV workloads. By the end of this AWS book, you'll be able to accelerate your business outcomes by building and implementing CV into your production environments with the help of AWS AI/ML services.

Who is this book for?

If you are a machine learning engineer or data scientist looking to discover best practices and learn how to build comprehensive CV solutions on AWS, this book is for you. Knowledge of AWS basics is required to grasp the concepts covered in this book more effectively. A solid understanding of machine learning concepts and the Python programming language will also be beneficial.

What you will learn

  • Apply CV across industries, including e-commerce, logistics, and media
  • Build custom image classifiers with Amazon Rekognition Custom Labels
  • Create automated end-to-end CV workflows on AWS
  • Detect product defects on edge devices using Amazon Lookout for Vision
  • Build, deploy, and monitor CV models using Amazon SageMaker
  • Discover best practices for designing and evaluating CV workloads
  • Develop an AI governance strategy across the entire machine learning life cycle
Estimated delivery fee Deliver to Greece

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 31, 2023
Length: 324 pages
Edition : 1st
Language : English
ISBN-13 : 9781801078689
Category :
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Greece

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Publication date : Mar 31, 2023
Length: 324 pages
Edition : 1st
Language : English
ISBN-13 : 9781801078689
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 105.97
Unlocking the Secrets of Prompt Engineering
€33.99
Synthetic Data for Machine Learning
€37.99
Computer Vision on AWS
€33.99
Total 105.97 Stars icon

Table of Contents

20 Chapters
Part 1: Introduction to CV on AWS and Amazon Rekognition Chevron down icon Chevron up icon
Chapter 1: Computer Vision Applications and AWS AI/ML Services Overview Chevron down icon Chevron up icon
Chapter 2: Interacting with Amazon Rekognition Chevron down icon Chevron up icon
Chapter 3: Creating Custom Models with Amazon Rekognition Custom Labels Chevron down icon Chevron up icon
Part 2: Applying CV to Real-World Use Cases Chevron down icon Chevron up icon
Chapter 4: Using Identity Verification to Build a Contactless Hotel Check-In System Chevron down icon Chevron up icon
Chapter 5: Automating a Video Analysis Pipeline Chevron down icon Chevron up icon
Chapter 6: Moderating Content with AWS AI Services Chevron down icon Chevron up icon
Part 3: CV at the edge Chevron down icon Chevron up icon
Chapter 7: Introducing Amazon Lookout for Vision Chevron down icon Chevron up icon
Chapter 8: Detecting Manufacturing Defects Using CV at the Edge Chevron down icon Chevron up icon
Part 4: Building CV Solutions with Amazon SageMaker Chevron down icon Chevron up icon
Chapter 9: Labeling Data with Amazon SageMaker Ground Truth Chevron down icon Chevron up icon
Chapter 10: Using Amazon SageMaker for Computer Vision Chevron down icon Chevron up icon
Part 5: Best Practices for Production-Ready CV Workloads Chevron down icon Chevron up icon
Chapter 11: Integrating Human-in-the-Loop with Amazon Augmented AI (A2I) Chevron down icon Chevron up icon
Chapter 12: Best Practices for Designing an End-to-End CV Pipeline Chevron down icon Chevron up icon
Chapter 13: Applying AI Governance in CV Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(8 Ratings)
5 star 87.5%
4 star 12.5%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




andrescolombia May 09, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Beginners or experimented AIML professionals can benefit from this easy to read yet strong and relevant compilation of must know tips, tricks, and evolution of CV, and where’s heading to based on relevant use cases and vertical examples.
Amazon Verified review Amazon
Dror Aug 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Deep learning (DL) has taken the world by storm, revolutionizing entire fields such as computer vision and natural language processing. Beyond the unprecedented accuracy of DL-based computer vision models, computer vision in the deep learning era has been greatly facilitated by useful cloud APIs, such as those on AWS. While there are already many good books on various aspects of modern (DL-based) computer vision, this book is an excellent and rather unique resource for leveraging cloud APIs for solving real-world computer vision tasks quickly and effectively.The book begins with a clear and detailed overview of computer vision on AWS and Amazon Rekognition. It proceeds with detailed examples of real-world use cases and their related implementations using AWS services, such as real-time video analysis, content moderation, and detection of manufacturing defects. An overview of related Amazon SageMaker capabilities is also provided, with detailed examples of data annotation, training, and deployment of computer vision models. The last part of the book describes useful best practices and important design principles, such as for scaling, cost reduction, security and mitigating bias. The accompanying GitHub repository includes practical and detailed code examples, and is very helpful in reinforcing the materials and concepts presented in the book.This practical guide will benefit any data scientist or machine learning practitioner who wants to better understand how to efficiently build effective computer vision solutions on AWS. Some understanding of machine learning concepts, as well as familiarity with the Python programming language, will be helpful to fully benefit from this book.Highly recommended!
Amazon Verified review Amazon
tt0507 May 02, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book serves as an excellent resource for learning about AWS and its computer vision services. The book focuses more on utilizing AWS services, so basic knowledge of computer vision is required. I especially enjoyed part 4 of the book, where they detail the real-world application of computer vision. Overall, an excellent book for people into computer vision.
Amazon Verified review Amazon
Deep P. May 07, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Computer Vision on AWS" is a comprehensive guide to building computer vision solutions using AWS services. The book is authored by Lauren Mullennex, Mate Bachmeier, and Jay Rao, who are experienced data scientists and engineers with a deep understanding of computer vision and AWS.The book is divided into five parts: "Introduction to Computer Vision on AWS and Amazon Rekognition", "Applying CV to Real-world Use-Cases", "CV at the Edge", "Building CV Solutions with Amazon SageMaker" and last but not least "Best Practices for Production-ready CV Workloads". The first part provides an introduction to computer vision and AWS services and explores the use of the Rekognition service in AWS and its use cases. In contrast, the second part delves into the details of building computer vision applications on Real World scenarios. The third part covers advanced topics such as object detection, and face recognition. The fourth part covers Enhancing the power of Building CV applications using AWS SageMaker. And the last part gives us a comprehensive guide for the best practices to follow for production-ready workload for CV applications.The book is well-written and easy to follow, even for those with little or no prior experience in computer vision or AWS. The authors provide clear explanations of key concepts and offer practical examples that illustrate how to implement computer vision solutions using AWS services. The code samples provided in the book are also very helpful for readers who want to experiment with the concepts discussed in the book.One of the book's strengths is the authors' emphasis on best practices and how to avoid common pitfalls when building computer vision solutions on AWS. They also provide guidance on how to optimize performance and cost-effectiveness when working with AWS services.Overall, "Computer Vision on AWS" is an excellent resource for anyone who wants to learn how to build computer vision solutions on AWS. The book is well-organized, and clearly written, and provides practical guidance and best practices for building computer vision applications using AWS services. I highly recommend this book to data scientists, engineers, and anyone interested in computer vision and AWS.
Amazon Verified review Amazon
Rmz Jun 19, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The authors did a great job in summarizing modern approaches to using AWS for computer vision. The setup instructions in addition to the code is important for beginners to digest - and as someone who uses AWS often for CV, I find this to be a great resource to quickly dive deep into areas I am not familiar with
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela