Skip to content

Simple script that builds an AWS Lambda deployment package including OpenCV

License

Notifications You must be signed in to change notification settings

the-real-adammork/aws-lambda-python-opencv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OpenCV module for AWS Lambda

Description

This is a simple script that builds a deployment package including OpenCV compatible with the AWS Lambda Python runtime for Ubuntu AMI - ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20170221 (ami-f4cc1de2). The dynamic library is compiled with all extended instruction sets supported by Lambda CPU and binaries are stripped to save space. You simply need to add your code inside lambda_function.py and possibly your haar cascades files or additional Python modules.

  • Build duration: ~20 min on T2.micro / ~15 min on C4.2xlarge
  • Package size without haar cascades included: 26MB
  • OpenCV 3.1 by default but may work with newer

Needs to be built on an Amazon Linux instance.

Module building

Option 1: with an existing instance

  • Clone repo
  • Launch the script cd aws-lambda-python-opencv-master && ./build.sh

About

Simple script that builds an AWS Lambda deployment package including OpenCV

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 92.0%
  • Python 8.0%