LoginSignup
1

More than 1 year has passed since last update.

posted at

updated at

HerokuでOpenCVを使う

requirements.txtに入れる

 opencv-contrib-python-headless

Buildpacksにaptのビルドパックを入れる
90bb46604c15545fe78348d65fbc7d5d.png

もしくはコマンドでもオケ

heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt

Aptfileに以下を記載

libsm6
libxrender1
libfontconfig1
libice6

手順は以下の動画がわかりやすかった
https://www.youtube.com/watch?v=9GCLwYlM8cc

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
1