Heroku and OpenCV with Python

允我心安 提交于 2019-11-29 06:49:59

Links posted by friism didin't work for me, so I created a custom buildpack that should be more than enough for the situation you described.

You can find the buildpack here.

this question has also come up on the Heroku forums. It looks like there are a couple buildpacks you could look into:

Here's how to use a custom buildpack.

Its for the fellow googlers who might have been facing the same issue. Just simply change opencv-python in your requirements.txt to opencv-python-headless.

opencv-python-headless is an opencv build that has no gpu support. The file libsm.so (P.S dont remember the name correctly) that is giving the error is for GPU support.

For reference :

opencv-python-headless

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!