I am trying to deploy my simple OpenCV based app to Heroku. The app capture live stream only from webcam. My App worked well in the local environment while it gives the following error on Heroku platform.
Exception Value: libSM.so.6: cannot open shared object file: No such file or directory
How can I resolve it?
EDIT: It is not possible to capture live streams using OpenCV on the server. Because the server itself doesn't have a physical camera to be picked by OpenCV. For this purpose, we need javascript functionality to use our local camera by the server. This Github repo can be a good starting point
But this particular error can be resolved using pip install opencv-python-headless
instead of pip install opencv-python