https://github.com/tobilg/opencv2-lambda-layer
A AWS Lambda layer for OpenCV2
https://github.com/tobilg/opencv2-lambda-layer
aws aws-lambda lambda-layer layer opencv-python opencv2 python
Last synced: 9 months ago
JSON representation
A AWS Lambda layer for OpenCV2
- Host: GitHub
- URL: https://github.com/tobilg/opencv2-lambda-layer
- Owner: tobilg
- License: mit
- Created: 2020-03-28T14:21:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T17:54:08.000Z (over 5 years ago)
- Last Synced: 2025-01-31T04:51:43.985Z (11 months ago)
- Topics: aws, aws-lambda, lambda-layer, layer, opencv-python, opencv2, python
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opencv2-lambda-layer
A AWS Lambda layer for OpenCV2. Build it yourself and publish it to your private AWS account.
## Building
For building the OpenCV2 lambda layer, you will need working installations of Docker and Serverless.
### Layer content creation
You can run `./build.sh` in the root directory of this repository to create the layer content and deploy it to your AWS account.
## Usage
### Using the layer
You can now use the stack output `OpenCV2Python37LambdaLayer` in other stacks to reference the newly created Tile38 Lambda layer.
For example, if you use Serverless, you can reference if via
```yaml
functions:
myfunction:
...
layers:
- ${cf:opencv2-lambda-layer-dev.OpenCV2Python37LambdaLayer}
```
Note that the `dev` in the variable above is the stage of your layer service.