Import cv2

My requirements.txt have:

Locally it runs ok, but shows a error message when deploy:
at=error code=H10 desc=“App crashed” method=GET path="/healthz" request_id=39c6e51d-a024-43ee-b6f0-fdfc57f83a8e fwd=“” dyno= connect= service= status=503 bytes= protocol=http

When I put import cv2 shows this message above.

Anyone can help me ?


I do not have a heroku development with opencv, however,
I thought that if using opencv-contrib-python, you do NOT need to also have opencv-python

Moreover, I think you need to use the headless package so that it can work on heroku… opencv-contrib-python-headless

Thanks for your reply.