I wrote a Lambda function (Python 2.7) that uses OpenCV. I need to import CV2 and I'm having trouble providing the library in my .zip. Has anyone used OpenCV with Lambda? How can I provide the CV2 module.
You can run Python code in AWS Lambda. Lambda provides runtimes for Python that run your code to process events. Your code runs in an environment that includes the SDK for Python (Boto3), with credentials from an AWS Identity and Access Management (IAM) role that you manage.
AWS Lambda allows you to add custom logic to AWS resources such as Amazon S3 buckets and Amazon DynamoDB tables, so you can easily apply compute to data as it enters or moves through the cloud. It is easy to get started with AWS Lambda.
You must copy the OpenCV inside the zip that you send to AWS Lambda
This method helps to deploy with OpenCV https://github.com/aeddi/aws-lambda-python-opencv/blob/master/build.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With