I tried using this custom buildpack https://github.com/gimlids/heroku-buildpack-python-opencv
But compilation fails due to a 15 minute timeout.
I also tried setting COMPILE_TIMEOUT: 6000
but it Didn't help
I tried using this custom buildpack https://github.com/gimlids/heroku-buildpack-python-opencv
But compilation fails due to a 15 minute timeout.
I also tried setting COMPILE_TIMEOUT: 6000
but it Didn't help
to get around the 15 minute compile time constraint for buildpacks on heroku, use heroku-anvil to compile the slug.
I found a buildpack that worked well from a similar question about Heroku and OpenCV with Python. I tried to replicate Diogo's work and added a few additional steps to add ffmpeg support and documented the steps in a blog post: How to Install OpenCV on Heroku.
use a 'one-off' dyno (aka heroku run bash
) to compile, push the results to gihub (or store it anywhere else in the cloud), then use that url for your buildpack.
tl, dr; - avoid to re-compile each and every time.