OpenCV with AWS Lambda

I wrote a Lambda function (Python 2.7) that uses OpenCV. I need to import CV2 and I am having trouble providing the library in my .zip. Has anyone used OpenCV with Lambda? How can I provide a CV2 module.

+7
python opencv amazon-web-services aws-lambda
source share
2 answers

You must copy OpenCV inside the zip code that you submit to AWS Lambda

This method helps deploy using OpenCV https://github.com/aeddi/aws-lambda-python-opencv/blob/master/build.sh

+2
source share

You will need to create your code on Amazon Linux.

Please see my answer: fooobar.com/questions/832447 / ...

0
source share

All Articles