https://github.com/jonathanporta/lambda_face_recognition_prebuilt
https://github.com/jonathanporta/lambda_face_recognition_prebuilt
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonathanporta/lambda_face_recognition_prebuilt
- Owner: JonathanPorta
- Created: 2017-11-19T07:52:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:47:11.000Z (over 3 years ago)
- Last Synced: 2025-04-18T14:53:25.455Z (about 1 year ago)
- Language: Shell
- Size: 20.5 KB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lambda_face_recognition_prebuilt
A prebuilt set of the dependencies needed to run face_recognition in AWS Lambda.
## Usage
`pip install lambda_face_recognition_prebuilt`
Then, simply place this as the first import in your lambda function's handler:
`import lambda_face_recognition_prebuilt.unpack`
## How it Works
The libs needed for face_recognition are built inside a Docker container that matches the environment in which AWS Lambda code is ran.
Since the dependencies for face_recognition exceed the source code size limit of AWS Lambda functions, we do some ridiculousness to make it work. We zip up the deps and then unzip them at runtime.
The unzipping of these deps at runtime will add overhead to your function's start time. So, please keep that in mind in deciding whether to use this package.
## See it in Action
[Here](https://github.com/JonathanPorta/lambda_face_recognition_example) is an example project that uses this project as one of its dependencies.