AWS Panorama for Computer Vision Applications Continued…

TensorIoT Editor
Feb 4 · 3 min read

By: Viraj Deshwal, Machine Learning Engineer, TensorIoT and Nicholas Burden, Technical Evangelist, TensorIoT

Image for post
Image for post

Welcome to the second in our series about AWS Panorama, the new tool providing cloud integration to bring Computer Vision to the edge with a fully managed AWS Edge inference device for real-time inference.

Amazon Web Services (AWS) released AWS Panorama during re:Invent 2020, and TensorIoT is actively incorporating this exciting new tool into our products and solutions, such as SafetyVisor, our professional computer vision product that detects usage of masks and other protective gear.

In this blog, we’ll explore connecting an iPhone or any other camera using RTSP (Real-Time Streaming Protocol) stream to Panorama appliance and creating an application to detect people, cars, trains and other environmental objects. We will be detecting all the classes available in the VOC Dataset (

Step 1: Download the ResNet-50 ( model trained on VOC dataset and upload in the S3. The S3 should have the following name format: “Aws-panorama-xyz”

Model downloadable link —

Step 2: Go to Lambda ( in the AWS console and click on “create function.”

Step 3: Select Author from Scratch.

Give function name “aws-panorama-lambda-xyz”

Choose Runtime: Python 3.7

Once the lambda is created, scroll down and clean your window and copy the following code in your lamda’s “Function code” window.

Important Notes — Inline 21st, Make sure the name of your model is the same

Here -> (“model”, “people_counter”, “Model for people counting”, “Name of your model”),

Step 4: In the “Runtime setting” of the lambda. Click Edit and change the lambda handler to => lambda_function.main

Step 5: Click on Actions => Publish New version.

We will be using the version number of the lambda during the deployment.

Step 6: Go to Panorama, Click on My application => Create Application.

Step 7: Name the application. Example — “aws-panorama-XYZ”

Step 8: Choose Model — pay close attention to the details in this step -

  1. Choose the model name we inserted in our lambda in line 21. For example, I inserted the name in my lambda “ aws-panorama-person-detection”
  2. Here In “Choose A model” -

a. Paste the AWS S3 model object path

b. Enter the model name

c. Model framework — MxNet

d. Click on add input — Input 1 (1. input name — “data” 2. Shape — 1, 3, 512, 512)

e. Click add

Step 9: Choose Lambda -

Select the name of your lambda function, click on [+] button and select the latest version of your deployment.

Step 10: Proceed to Deployment

  1. Choose Appliance — Name of your Panorama Appliance(Hardware)
  2. Choose Camera Setting — Select the camera streams connected to your appliance.
  3. Click Deploy.

Step 10: Go to the Cloudwatch console.

  1. Click on Log Groups.
  2. Search panorama — you will see your logs with name starting with

“/aws/greengrass/Lambda/us-west-2/ac count_number/aws-panorama-xyz”

3. Inside your logs open the first one which will also include your device name.

Now you’re all set to use detection with AWS Panorama. If you have any questions or requests for further content you can email us at

About us —

As a launch partner for AWS Panorama, TensorIoT has invested in training, updating models, and integrating Panorama into our Computer Vision Solutions. AWS Panorama brings Cloud-to-Edge to a managed service for creating, deploying, and managing applications at the Edge.


Making Things Intelligent

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store