Add the following lines to your Dockerfile:
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 -y
These commands install the cv2 dependencies that are normally present on the local machine, but might be missing in your Docker container causing the issue.
More Related Contents:
- How to integrate Pygame and PyQt4?
- Randomly generate 4 or 5 digit Unique Codes in Subsequent Runs of the Script
- Why does list.append evaluate to false in a boolean context? [duplicate]
- urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error
- How to initialize a two-dimensional array in Python?
- How to truncate float values?
- Execution of Python code with -m option or not
- Python script to do something at the same time every day [duplicate]
- Pandas: How to easily share a sample dataframe using df.to_dict()?
- Split a string at uppercase letters
- Selenium waitForElement
- How do I do exponentiation in python? [duplicate]
- Cannot find vcvarsall.bat when running a Python script
- Good uses for mutable function argument default values?
- How to normalize a 2-dimensional numpy array in python less verbose?
- Remove ‘b’ character do in front of a string literal in Python 3 [duplicate]
- What does the random.sample() method in Python do?
- Changing plot scale by a factor in matplotlib
- Making a Django form class with a dynamic number of fields
- Python Flask Render Text from Variable like render_template
- How to parse somewhat wrong JSON with Python?
- python 3 open() default encoding
- How can I safely create a directory (possibly including intermediate directories)?
- How can I simulate 2.x’s tuple unpacking for lambda parameters, using 3.x?
- Module function vs staticmethod vs classmethod vs no decorators: Which idiom is more pythonic?
- Python ConfigParser cannot search .ini file correctly (Ubuntu 14, Python 3.4)
- How to find exit code or reason when atexit callback is called in Python?
- How to connect broken lines in a binary image using Python/Opencv
- I want to let my Discord Bot send images/gifs
- How to fix ipykernel_launcher.py: error: unrecognized arguments in jupyter?