title: How to use OpenCV with Heroku
body: <p>When I attempt to deploy my application to Heroku I receive the following error:</p>
  
  <blockquote>
  <pre><code>File "/app/project/app/_ _init__.py", line 22, in &lt;module&gt;
  File "/app/project/app/views.py", line 6, in &lt;module&gt;
  import cv2
  from .cv2 import *
  File "/app/.heroku/python/lib/python3.6/site-packages/cv2/_ _init__.py", line 4, in &lt;module&gt;
  2018-03-24T20:40:55.986945+00:00 app[web.1]: ImportError: libSM.so.6: cannot open shared object file: No such file or directory```
  </code></pre>
  </blockquote>
  
  <p>OpenCV is unable to find the libsm directory, however this application runs correctly locally. I have tried using a specific buildpack however those did not seem to find my <code>site-packages</code> folder.</p>
  
  <p>How do I use openCV (python) on Heroku?</p>